/* Feerasta header, announce bar and skip link: one stylesheet for every page (19 Nov 2026).
   The header is scoped to #topbar and its tokens are defined on the header itself, so the same file renders the same
   header on pages built in the homepage design (next.css) and on older pages whose body still uses its own stylesheets,
   without touching either. Load it after next.css (or after the page's own stylesheets). Source of the markup:
   portfolio-site/tools/stamp-next-chrome.py.
   Layout: brand left, the four tabs truly centred on the page, actions right (three columns from 1280px up; below that
   the Menu button carries the tabs). Country, currency and language are one menu (details.region). Controls are 40px
   tall on a desktop pointer and 44px everywhere else. */
@font-face{font-family:'Newsreader';font-style:normal;font-weight:300 600;font-display:swap;src:url(/assets/fonts/newsreader-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/hanken-grotesk-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* Tokens (the homepage's, on the header only) */
body>.skip,body>.announce,#topbar{
  --bg:#F5F0E6;--bg-2:#ECE5D6;--surface:#FCF9F2;--ink:#141B2B;--muted:#454D5C;--line:#CFC5AE;--accent:#9C3F1B;
  --on-deep:#F3EEE2;--accent-on-deep:#EEA784;--deep:#1A2236;--btn-bg:#141B2B;--btn-ink:#F5F0E6;--focus:#9C3F1B;
  --g-fill:rgba(255,252,245,.56);--g-fill-strong:rgba(255,252,245,.74);--g-tile:rgba(255,255,255,.55);--g-rim:rgba(255,255,255,.9);
  --g-hi:inset 0 1px 0 rgba(255,255,255,.95);--g-shadow:0 1px 2px rgba(40,32,16,.08),0 26px 50px -26px rgba(40,32,16,.34);--g-line:rgba(20,27,43,.14);
  --sans:'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;--serif:'Newsreader',Georgia,'Times New Roman',serif;
  --gutter:48px;--blur:22px;--s1:8px;--s2:16px;--s3:24px;
}
:root[data-theme="dark"] :is(body>.skip,body>.announce,#topbar){
  --bg:#141B2B;--bg-2:#1A2236;--surface:#273249;--ink:#F3EEE2;--muted:#BAC2D0;--line:#3C4A66;--accent:#EEA784;
  --on-deep:#141B2B;--accent-on-deep:#9C3F1B;--deep:#F3EEE2;--btn-bg:#F3EEE2;--btn-ink:#141B2B;--focus:#EEA784;
  --g-fill:rgba(39,50,73,.78);--g-fill-strong:rgba(39,50,73,.92);--g-tile:rgba(255,255,255,.07);--g-rim:rgba(255,255,255,.14);
  --g-hi:inset 0 1px 0 rgba(255,255,255,.16);--g-shadow:0 1px 2px rgba(0,0,0,.35),0 24px 46px -24px rgba(0,0,0,.6);--g-line:rgba(243,238,226,.14);
}
@media (max-width:960px){body>.skip,body>.announce,#topbar{--gutter:32px}}
@media (max-width:760px){body>.skip,body>.announce,#topbar{--gutter:20px;--blur:12px}}

/* Skip link and announcement bar */
body>.skip{position:absolute;left:-999px;top:8px;background:var(--btn-bg);color:var(--btn-ink);padding:12px 18px;z-index:100;border-radius:8px;font:400 18px/1.55 var(--sans);text-decoration:none}
body>.skip:focus{left:8px}
body>.announce{position:relative;z-index:51;display:flex;align-items:center;justify-content:center;gap:var(--s1);min-height:48px;padding:6px calc(var(--gutter) + 44px) 6px var(--gutter);background:var(--deep);color:var(--on-deep);text-align:center;font:400 18px/1.55 var(--sans);box-sizing:border-box}
body>.announce[hidden]{display:none}
body>.announce p{margin:0;font-size:15px;line-height:1.4}
body>.announce a{color:inherit;text-decoration:underline;text-decoration-color:var(--accent-on-deep);text-underline-offset:6px;text-decoration-thickness:1px;font-weight:500}
body>.announce .announce-close{position:absolute;right:calc(var(--gutter) - 8px);top:50%;transform:translateY(-50%);min-width:44px;min-height:44px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer;padding:0}
body>.announce .announce-close:hover{background:rgba(243,238,226,.14)}
body>.announce :focus-visible{outline:3px solid var(--on-deep);outline-offset:3px;border-radius:4px}
@media (max-width:760px){body>.announce{padding:6px 56px 6px var(--gutter);justify-content:flex-start;text-align:left}}

/* The bar */
#topbar,#topbar *,#topbar *::before,#topbar *::after{box-sizing:border-box}
#topbar{position:sticky;top:12px;left:auto;right:auto;width:auto;max-width:none;min-width:0;height:auto;z-index:50;margin:12px var(--gutter) 0;border-radius:18px;padding:0 var(--s3);background:var(--g-fill);border:1px solid var(--g-rim);box-shadow:var(--g-hi),var(--g-shadow);-webkit-backdrop-filter:blur(var(--blur)) saturate(160%);backdrop-filter:blur(var(--blur)) saturate(160%);font:400 18px/1.55 var(--sans);color:var(--ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;text-align:start;letter-spacing:0;text-transform:none}
#topbar.firm{background:var(--g-fill-strong)}
@media (prefers-reduced-transparency:reduce){#topbar{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--surface)}}
@media (prefers-contrast:more){#topbar{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--surface);border-color:var(--ink)}}
@media (max-width:760px){#topbar{margin:8px 10px 0;padding:0 14px}}
#topbar .top-in{inline-size:auto}
#topbar a{color:inherit;text-decoration:none;font:inherit}
#topbar :focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:4px}
#topbar svg{max-width:none}
#topbar .top-in{display:flex;align-items:center;flex-wrap:nowrap;gap:var(--s1);min-height:68px;margin:0;padding:0;max-width:none;width:auto;position:static;background:none;border:0}
@media (max-width:760px){#topbar .top-in{min-height:60px;gap:10px}}
#topbar .brand{display:inline-flex;align-items:center;gap:10px;min-height:44px;font:400 1.8rem/1 var(--serif);letter-spacing:-.02em;color:var(--ink)}
#topbar .brand span{font:600 1.7rem/1 var(--serif);letter-spacing:-.01em}
#topbar .brand .mark{flex:none;width:42px;height:42px;color:var(--ink)}
#topbar .nav{display:flex;gap:4px;margin:0 auto;flex:none;position:static;background:none;border:0;padding:0;width:auto;height:auto}
#topbar .nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;font:500 18px/1.55 var(--sans);border-radius:8px;color:var(--ink);background:none;border:0}
#topbar .nav a:hover{background:var(--g-tile)}
#topbar .top-r{display:flex;align-items:center;gap:6px;flex:none;margin-left:auto;position:static}
#topbar .hdr-call{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;border-radius:10px;font-weight:500;white-space:nowrap}
#topbar .hdr-call:hover{background:var(--g-tile)}
#topbar .hdr-call svg{flex:none;width:22px;height:22px;stroke-width:1.6}
#topbar .hdr-call .num-t{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#topbar .btn.hdr-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;margin:0 6px;border-radius:8px;font:600 16px/1 var(--sans);white-space:nowrap;border:1.5px solid var(--btn-bg);background:var(--btn-bg);color:var(--btn-ink);cursor:pointer;transition:transform .18s ease;letter-spacing:0;text-transform:none;height:auto;width:auto}
#topbar .btn.hdr-btn:hover{transform:translateY(-1px)}
#topbar .hdr-short{display:none}
#topbar .theme-toggle{width:44px;height:44px;min-width:44px;min-height:44px;display:inline-grid;place-items:center;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--ink);cursor:pointer;padding:0;margin:0 0 0 2px}
#topbar .theme-toggle:hover{background:var(--g-tile);border-color:var(--g-line)}
#topbar .theme-toggle svg{width:22px;height:22px;stroke-width:1.6}
@media (max-width:1180px){#topbar .nav a{padding:0 10px}}
@media (max-width:1080px){#topbar .btn.hdr-btn{padding:0 16px}}
@media (max-width:760px){#topbar .btn.hdr-btn{display:none}#topbar .hdr-call{border:1px solid var(--g-line)}}

/* Menu button (below 1280px the tabs live here) */
#topbar .menu{display:none;position:relative}
#topbar .menu summary{list-style:none;cursor:pointer;min-height:44px;display:inline-flex;align-items:center;padding:0 14px;border:1.5px solid var(--g-line);border-radius:8px;font:500 16px/1.55 var(--sans);color:var(--ink)}
#topbar .menu summary::-webkit-details-marker{display:none}
#topbar .menu nav{position:absolute;right:0;top:52px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px;min-width:200px;max-height:70vh;overflow:auto;box-shadow:var(--g-shadow);display:block;z-index:70}
#topbar .menu nav a{display:flex;align-items:center;min-height:48px;padding:0 14px;font:500 18px/1.55 var(--sans);border-radius:8px}
#topbar .menu nav a:hover,#topbar .menu nav a[aria-current]{background:var(--g-tile)}
#topbar .menu .ask-proxy{display:flex;align-items:center;width:100%;min-height:48px;padding:0 14px;border:0;background:transparent;color:var(--ink);font:500 18px/1.55 var(--sans);text-align:start;cursor:pointer;border-radius:8px}
@media (max-width:1279px){#topbar .nav{display:none}#topbar .menu{display:block}#topbar .top-r{margin-left:auto}}

/* Three columns from 1280px up: the tabs are centred on the bar, whatever the right side holds */
@media (min-width:1280px){
  #topbar .top-in{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
  #topbar .brand{justify-self:start}
  #topbar .nav{justify-self:center;margin:0}
  #topbar .top-r{justify-self:end;margin-left:0}
}
@media (min-width:1280px) and (max-width:1439px){#topbar .hdr-long{display:none}#topbar .hdr-short{display:inline}}
@media (min-width:1280px) and (hover:hover) and (pointer:fine){
  #topbar .top-in{min-height:64px}
  #topbar .nav a{min-height:40px;font-size:15px;padding:0 12px}
  #topbar .btn.hdr-btn{min-height:40px;padding:0 16px;font-size:15px;margin:0 2px}
  #topbar .hdr-call,#topbar .theme-toggle{min-width:40px;min-height:40px}
  #topbar .theme-toggle{width:40px;height:40px}
  #topbar .region summary{min-height:40px;font-size:15px;padding:0 10px}
  #topbar .top-r{gap:2px}
}

/* Country, currency and language: one menu */
#topbar .region{position:relative;display:block}
#topbar .region summary{list-style:none;cursor:pointer;min-height:44px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;border-radius:10px;font:500 16px/1.55 var(--sans);white-space:nowrap;color:var(--ink)}
#topbar .region summary::-webkit-details-marker{display:none}
#topbar .region summary::after,#topbar .region-more summary::after{content:"";width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px)}
#topbar .region summary:hover{background:var(--g-tile)}
#topbar .region-list{position:absolute;right:0;top:calc(100% + 10px);z-index:70;width:288px;max-height:min(70vh,640px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:var(--g-shadow)}
#topbar .region-g[hidden]{display:none}
#topbar .region-h{margin:0;padding:10px 14px 4px;font:600 14px/1.3 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
#topbar .region-h{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px}
#topbar .region-h span{white-space:nowrap}
#topbar .region-h small{margin-left:0;font:500 14px/1.3 var(--sans);letter-spacing:0;text-transform:none}
/* Flags: inline SVG symbols (#f-US, #f-CA, #f-PT, defined once in the header), the flags' own colours, a hairline so white never vanishes */
#topbar .flag{flex:none;width:20px;height:14px;border-radius:2px;box-shadow:0 0 0 1px var(--g-line);display:block}
/* The bar control: flag and code only. All three markets are in the markup stacked in one grid cell, so the width is the widest of
   them and never changes; CSS shows the one for <html data-market> (set at the edge), United States when it is absent. */
#topbar .region-now{display:inline-grid;font-weight:600;letter-spacing:.02em}
#topbar .rn{grid-area:1/1;display:inline-flex;align-items:center;gap:8px;visibility:hidden}
#topbar .rn b{font-weight:600}
#topbar .rn-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#topbar .rn-US{visibility:visible}
html[data-market="CA"] #topbar .rn-US,html[data-market="PT"] #topbar .rn-US{visibility:hidden}
html[data-market="CA"] #topbar .rn-CA,html[data-market="PT"] #topbar .rn-PT{visibility:visible}
#topbar .region-list a,#topbar .menu-region a{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 14px;font:500 16px/1.55 var(--sans);border-radius:8px}
#topbar .region-list a:hover,#topbar .region-list a[aria-current]{background:var(--g-tile)}
#topbar .region a[aria-current]::after,#topbar .menu-region a[aria-current]::after{content:"";flex:none;width:12px;height:7px;margin-left:12px;border-left:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(-45deg)}
#topbar .region-more summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;font:500 16px/1.55 var(--sans);border-radius:8px}
#topbar .region-more summary::-webkit-details-marker{display:none}
#topbar .region-more[open] summary::after{transform:rotate(225deg) translateY(-2px)}
#topbar .region-more summary:hover{background:var(--g-tile)}
#topbar .menu-region{display:none;border-top:1px solid var(--g-line);margin-top:6px;padding-top:6px}
@media (max-width:760px){#topbar .region{display:none}#topbar .menu-region{display:block}}
[dir="rtl"] #topbar .region-list{right:auto;left:0}

/* Older pages carry rules for the same class names (.nav, .theme-toggle, .brand, .btn): these keep the header identical there. */
#topbar nav.nav,#topbar nav.nav a:not(:hover){background:transparent!important;box-shadow:none!important;border:0!important}
#topbar nav.nav a:hover{background:var(--g-tile)!important}
#topbar nav.nav a{color:var(--ink)!important;text-decoration:none!important}
#topbar .theme-toggle{color:var(--ink)!important;background:transparent}
#topbar .theme-toggle:hover{background:var(--g-tile)!important}
#topbar .brand,#topbar .brand span{color:var(--ink)!important;text-decoration:none!important}
#topbar .hdr-call{color:var(--ink)!important}
#topbar .btn.hdr-btn{color:var(--btn-ink)!important;background:var(--btn-bg)!important}
#topbar nav,#topbar .top-in,#topbar .top-r{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background-image:none}
#topbar .theme-toggle svg{color:var(--ink)!important;stroke:currentColor!important;fill:none}

/* Page-level fixes from the 19 Nov audit, loaded with the header on every page:
   footer copy buttons and the footer logo link reach 44px tap targets; on phones the floating Ask Feerasta pill no longer sits
   over the last lines of a page (pages without the call bar get room at the bottom). */
.feer-footer .copy-chip,.contact-alt .copy-chip{min-height:44px;min-width:44px}
.feer-footer .feer-footer-brand{display:inline-flex;align-items:center;min-height:44px}
@media (max-width:760px){body:not(:has(.callbar)){padding-bottom:88px}}
