/* Site-wide additions. Loaded AFTER each page's mockup stylesheet.
 * Only elements the approved mockups do not define live here: current-page state,
 * the Client Portal link, the mobile menu, draft markers, and Insights category links.
 * Nothing here restyles an element that a mockup already styles. */

/* Current page in the navy navigation (colour taken from the Insights mockup's .links .active) */
.links a[aria-current="page"] { color: #d8b983; }

/* THE logo (partials/logo.njk), the same on every page (Scott, 2026-11-13): the approved
   Eagle Search Partners logo with the tagline centred beneath it. The headers grow to fit it. */
.esp-brand { display: inline-flex; flex-direction: column; align-items: center; flex: none; color: inherit; text-decoration: none; }
.esp-brand img { display: block; height: 78px; width: auto; }
.esp-brand small {
  display: block; margin-top: 10px; white-space: nowrap;
  font: 700 9px/1 Arial, Helvetica, sans-serif; letter-spacing: .3em; text-transform: uppercase;
}
.esp-brand--navy small { color: #b9c6cd; }
.esp-brand--white small { color: #5e6d73; }
.page-advisory .nav, .page-executive-search .nav, .page-insights .nav, .page-article .nav { height: auto; padding-top: 18px; padding-bottom: 18px; }
.page-about header { height: auto; padding: 16px 0; }
@media (max-width: 480px) {
  .esp-brand img { height: 60px; }
  .esp-brand small { margin-top: 8px; font-size: 8.5px; letter-spacing: .12em; }
}

/* Homepage hero: the oversized "ESP" watermark is removed (per Scott 2026-11-13). */
.page-home .hero::after { display: none; }

/* Homepage, phones: the mockup's own mobile rules zero the header's top/bottom padding and the
   hero's side margins (.wrap and .hero padding override each other), so the logo touches the top
   edge and the headline touches the screen edge. Restore them. */
@media (max-width: 750px) {
  .page-home .nav { padding-top: 22px; padding-bottom: 22px; }
  .page-home .hero.wrap { padding-left: 23px; padding-right: 23px; }
}
/* Executive Search, tablets/phones: same mockup issue: the hero loses its side margins. */
@media (max-width: 850px) { .page-executive-search .hero.wrap { padding-left: 24px; padding-right: 24px; } }

/* Client Portal: secondary navigation item */
.links .portal-link { color: #9fb0b9; border-left: 1px solid #3d5463; padding-left: 24px; }
.links .portal-link:hover { color: #d6b47d; }
.navlinks .portal-link { color: #7a8a91; border-left: 1px solid #d8dedc; padding-left: 26px; }

/* Mobile menu (the mockups hide their links on small screens and provide no menu) */
.nav { position: relative; }
.site-menu-toggle {
  display: none; position: relative; width: 40px; height: 40px; padding: 0; background: none; border: 0; color: #fff; cursor: pointer;
}
.site-menu-toggle .bars, .site-menu-toggle .bars::before, .site-menu-toggle .bars::after {
  position: absolute; left: 9px; width: 22px; height: 2px; background: currentColor; content: "";
}
.site-menu-toggle .bars { top: 19px; }
.site-menu-toggle .bars::before { left: 0; top: -7px; }
.site-menu-toggle .bars::after { left: 0; top: 7px; }
.site-menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.site-menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.site-menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
.site-menu-toggle:focus-visible { outline: 2px solid #b99b68; outline-offset: 2px; }
.site-menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
  background: #102333; border-top: 1px solid #2a4252; padding: 6px 24px 18px;
}
.site-menu[hidden] { display: none; }
.site-menu a { display: block; padding: 15px 0; border-bottom: 1px solid #22394a; font-size: 14px; color: #dce4e8; letter-spacing: .04em; }
.site-menu a[aria-current="page"] { color: #d8b983; }
.page-about .site-menu-toggle { color: #20333e; }
.page-about .site-menu { background: #fff; border-top-color: #e4e6e4; border-bottom: 1px solid #e4e6e4; }
.page-about .site-menu a { color: #20333e; border-bottom-color: #eef0ee; }
.page-about .site-menu a[aria-current="page"] { color: #9d7f50; }

/* Navy-header pages: the shared nav carries more items than the mockups' page-specific navs,
   so the Client Portal link moves into the menu earlier, and the menu appears where links hide. */
@media (max-width: 980px) { .links .portal-link { display: none; } }
@media (max-width: 980px) {
  body:not(.page-about):not(.page-home) .links a:not(.nav-cta) { display: none; }
  body:not(.page-about):not(.page-home) .site-menu-toggle { display: inline-block; }
  body:not(.page-about):not(.page-home) .links { gap: 12px; }
}
@media (max-width: 980px) { .page-home .links a:not(.nav-cta) { display: none; } .page-home .site-menu-toggle { display: inline-block; } }
@media (max-width: 750px) { .page-home .nav { flex-wrap: nowrap; } }
@media (max-width: 1080px) { .page-about .site-menu-toggle { display: inline-block; } .page-about .navlinks { display: none; } }

/* Phones: the menu icon sits beside the firm name without taking layout space,
   so the logo keeps its size and position. */
@media (max-width: 480px) {
  .nav .nav-cta { display: none; }
  body:not(.page-about) .site-menu-toggle { position: absolute; right: 12px; top: 50%; margin-top: -20px; }
}

/* Footer lines stack on small screens */
@media (max-width: 750px) { .footer-row > span { display: block; margin-bottom: 8px; } }

/* Draft markers (preview builds only) */
.draft-banner {
  background: #7a5a17; color: #fff; text-align: center; padding: 9px 16px;
  font: 700 11px Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.draft-tag {
  display: inline-block; align-self: flex-start; margin-bottom: 12px; padding: 4px 8px;
  background: #f1e6cf; color: #6b5223; font: 700 9px Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase;
}

/* Insights category links (in the library header, styled as the mockup's .note) */
.category-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.category-links a { font-size: 12px; color: #77868b; }
.category-links a:hover, .category-links a[aria-current="page"] { color: #a58754; }
@media (max-width: 850px) { .label-row { flex-wrap: wrap; } .category-links { justify-content: flex-start; } }

/* Downloads offered on publication pages */
.download-card { margin: 46px 0 10px; padding: 30px 32px; background: #f5f4ef; border-top: 3px solid #b99b68; display: flex; gap: 28px; align-items: center; justify-content: space-between; }
.download-card h3 { font: 26px/1.3 Georgia, serif; margin: 6px 0 8px; letter-spacing: -.02em; }
.download-card p { font: 15px/1.7 Arial, Helvetica, sans-serif !important; color: #586970 !important; margin: 0 !important; }
.download-card .label { font: 700 10px Arial, Helvetica, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #9c8051; }
@media (max-width: 650px) { .download-card { display: block; } .download-card .button { margin-top: 20px; } }

/* About: founder photograph (per Scott 2026-11-13). The temporary photo is only 200px, so it is
   shown at its native size inside a compact version of the mockup's portrait panel
   (same grey ground and inset white rule) instead of filling a 620px-tall column. */
.page-about .hero-grid { grid-template-columns: 1fr 290px; min-height: 0; align-items: center; gap: 40px; }
.page-about .portrait { min-height: 0; width: 290px; height: 290px; justify-self: end; }
.page-about .portrait::before { inset: 16px; }
.page-about .portrait img { position: relative; inset: auto; width: 200px; height: 200px; object-fit: cover; }
@media (max-width: 850px) {
  .page-about .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .page-about .portrait { min-height: 0; width: 280px; height: 280px; justify-self: start; margin-bottom: 55px; }
}

/* About: LinkedIn link in the founder signature */
.signature .linkedin-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #20333e;
  border-bottom: 1px solid #b49764; padding-bottom: 5px;
}
.signature .linkedin-link svg { flex: none; }
.signature .linkedin-link:hover { color: #9d7f50; }

/* Insights sign-up: honeypot field (hidden from people) and the on-page status message */
.signup-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-status { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: #e6ecef !important; }
.signup-status[data-kind="success"] { font-family: Georgia, serif; font-size: 22px; color: #d8b983 !important; }
.signup-status[data-kind="error"] { color: #f0c9a4 !important; }
.signup-status a { color: #d8b983; border-bottom: 1px solid currentColor; }
.signup-form button:disabled { opacity: .6; cursor: default; }
.signup-form[hidden] { display: none; }
/* Inline confirmation (subscriber experience V1, 2026-12-02). Shown by site.js only after the sign-up
   function accepts the address; the status line stays for screen readers. */
.signup-confirmed[hidden], [data-signup-box].is-confirmed .signup-pre { display: none !important; }
.signup-confirmed { border-top: 3px solid #b99b68; padding-top: 18px; }
.signup-confirmed .eyebrow { color: #e3c794; }
.signup-confirmed h2 { font-family: Georgia, serif; font-weight: 400; font-size: 32px; line-height: 1.2; margin: 14px 0; color: #fff; }
.signup-confirmed p { color: #dce4e8; font-size: 15px; line-height: 1.8; margin: 0 0 12px; }
.join--light .signup-confirmed .eyebrow { color: #9c8051; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Featured research (Home + Insights): two links side by side, wrapping on narrow screens (Scott 2026-11-18). */
.feature-links { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; }

/* Privacy notice: a plain reading column inside the Insights page styles. */
.legal { max-width: 760px; }
.legal h1 { margin: 10px 0 6px; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal p { line-height: 1.7; }

/* ---- Responsive review 2026-11-18 (Scott: validate 375–1920px) ---------------------------------
   Each rule applies only at the widths where the issue was found; desktop design is unchanged. */

/* Hero side margins: the mockups' .hero padding cancels .wrap's side padding, so below ~1240px
   the hero text and Home's service panels touched the screen edge (768/1024 tablets). */
@media (min-width: 751px) and (max-width: 1240px) { .page-home .hero.wrap { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 851px) and (max-width: 1240px) { .page-executive-search .hero.wrap { padding-left: 40px; padding-right: 40px; } }

/* Home, tablets: four approach steps were cramped into narrow columns; use two per row. */
@media (min-width: 431px) and (max-width: 900px) { .page-home .steps { grid-template-columns: repeat(2, 1fr); row-gap: 10px; } }

/* Home: the "Start a Conversation" button beside the newsletter line wrapped onto three lines. */
.page-home .newsletter .btn { white-space: nowrap; flex: none; }

/* Footer: keep the copyright on one line when the footer row wraps. */
.footer-row > span:first-child { white-space: nowrap; }

/* Touch screens: enlarge the tappable area of small text links without changing how they look. */
@media (pointer: coarse) {
  .links a, .navlinks a, .category-links a, .breadcrumb a, .footer-row a { padding-top: 12px; padding-bottom: 12px; }
  .textlink, .feature-links a, .linkedin-link { position: relative; }
  .textlink::before, .feature-links a::before, .linkedin-link::before { content: ""; position: absolute; inset: -12px -4px; }
}

/* Phones: the label/value rows (Advisory "What else deserves examination", Executive Search
   "Perspectives informing the mandate") keep their values right-aligned when they wrap. */
@media (max-width: 480px) {
  .page-advisory .diag-row span, .page-executive-search .mandate-visual .input span { text-align: right; max-width: 58%; }
}

/* ---- Analytics consent banner (2026-11-19, awaiting Scott's visual approval) --------------------
   A slim bar fixed to the bottom of the screen in the site's navy and gold. It overlays the page,
   so no approved layout moves. Colours are literal because each page's mockup CSS defines its own variables. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: #102333; color: #dce4e8;
  border-top: 2px solid #b99b68; box-shadow: 0 -10px 30px rgba(11, 27, 40, .18); font-family: Arial, Helvetica, sans-serif; }
.consent[hidden] { display: none; }
.consent-inner { max-width: 1160px; margin: 0 auto; padding: 16px 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; }
.consent-text { margin: 0; font-size: 13px; line-height: 1.6; color: #dce4e8; }
.consent-text a { color: #d8b983; border-bottom: 1px solid currentColor; }
.consent-actions { display: flex; gap: 10px; flex: none; }
.consent-btn { font: bold 12px Arial, Helvetica, sans-serif; letter-spacing: .03em; padding: 11px 20px; cursor: pointer; border: 1px solid #b99b68; }
.consent-accept { background: #b99b68; color: #122431; }
.consent-decline { background: transparent; color: #f2f4f3; border-color: #758894; }
.consent-btn:hover { filter: brightness(1.08); }
.consent-btn:focus-visible, .cookie-settings-link:focus-visible { outline: 2px solid #d8b983; outline-offset: 2px; }
@media (max-width: 700px) {
  .consent-inner { flex-direction: column; align-items: stretch; padding: 14px 20px; }
  .consent-actions .consent-btn { flex: 1; padding: 13px 10px; }
}
/* Footer "Cookie settings": a button that looks exactly like the footer's text links. */
.cookie-settings-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.cookie-settings-link:hover { color: #a58754; }
@media (pointer: coarse) { .footer-row .cookie-settings-link { padding-top: 12px; padding-bottom: 12px; } }

/* Unsubscribe page: same reading column as the privacy notice. */
.unsubscribe-actions { margin-top: 26px; }
.unsubscribe-status { margin-top: 18px; }
.unsubscribe-status[data-kind="success"] { font: 22px/1.5 Georgia, serif; color: #192b37; }
.unsubscribe-status[data-kind="error"] { color: #8a4b1f; }
.unsubscribe-actions .button { border: 0; cursor: pointer; font-family: Arial, Helvetica, sans-serif; }
.unsubscribe-actions .button:disabled { opacity: .6; cursor: default; }
.unsubscribe-form[hidden], .unsubscribe-help[hidden] { display: none; }
.legal code { font-size: .92em; background: #f5f4ef; padding: 1px 5px; }
.legal .cookie-settings-link { color: inherit; }
/* Short pages: the footer sits at the bottom of the window whatever the header or screen height.
   Scoped to the Unsubscribe page only; no other page's layout changes. */
body.page-unsubscribe { min-height: 100vh; display: flex; flex-direction: column; }
body.page-unsubscribe > main { flex: 1 0 auto; }
