/* Strata shared shell (revamp step 2, 2026-10-25).
   One header, one footer and the type/colour tokens for every page. Loaded after each page's own
   styles, so it wins on the shell only; page content keeps its own CSS until its revamp step.
   Tokens follow the UI/UX Revamp Visual Guide v1.0, recoloured to neon coral + cobalt (Orlando, 2026-10-26). */
:root{
  --s-mineral:#F4F4F2; --s-paper:#FCFCFB; --s-ink:#14213D; --s-clay:#FF5E57; --s-clay-dark:#C2362F; --s-action:#2B59F0; --s-action-dark:#1F45C7;
  --s-sand:#FFB020; --s-sage:#8FB0FF; --s-teal:#2B59F0; --s-line:#E3E3DF; --s-muted:#5E6B66;
  --s-serif:'Fraunces',Georgia,'Times New Roman',serif;
  --s-sans:'Manrope',Arial,sans-serif;
  --s-radius-control:6px; --s-radius-panel:10px;
}
/* Editorial serif for titles and destination names; the interface stays in Manrope. */
h1, h2, .modal-head h3, .country-card .hero-id h3, .s-serif{font-family:var(--s-serif) !important;font-weight:500 !important;letter-spacing:-0.012em;}
table, .tile-value, .num, .stat-chip .num{font-variant-numeric:tabular-nums;}

/* Skip link and visible focus */
.s-skip{position:absolute;left:-9999px;top:10px;z-index:1000;background:var(--s-paper);color:var(--s-ink);padding:10px 14px;border-radius:var(--s-radius-control);font:600 14px var(--s-sans);text-decoration:none;box-shadow:0 2px 10px rgba(0,0,0,.12);}
.s-skip:focus{left:12px;}
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible{outline:2px solid var(--s-action);outline-offset:2px;}

/* Header */
.site-header{background:var(--s-mineral);border-bottom:1px solid var(--s-line);position:relative;z-index:50;}
.site-header .header-inner{display:flex;align-items:center;gap:36px;}
.site-header .main-nav{display:flex;align-items:center;gap:30px;flex:1;}
.site-header .main-nav a{font:600 14.5px var(--s-sans);color:var(--s-ink);text-decoration:none;padding:6px 0;border-bottom:2px solid transparent;}
.site-header .main-nav a:hover{color:var(--s-clay-dark);}
.site-header .main-nav a[aria-current="page"]{border-bottom-color:var(--s-clay);}
.site-header .header-actions{display:flex;align-items:center;gap:22px;flex:none;}
.site-header .header-actions .link-plain{font:600 14.5px var(--s-sans);color:var(--s-ink);text-decoration:none;}
.site-header .header-actions .link-plain:hover{color:var(--s-clay-dark);}
.s-nav-toggle{display:none;align-items:center;gap:6px;background:transparent;border:1px solid var(--s-ink);color:var(--s-ink);border-radius:var(--s-radius-control);padding:8px 12px;font:600 13.5px var(--s-sans);cursor:pointer;}
.s-mobile-nav{display:none;border-top:1px solid var(--s-line);background:var(--s-paper);padding:8px 20px 16px;}
.s-mobile-nav.open{display:block;}
.s-mobile-nav a{display:block;padding:12px 0;border-bottom:1px solid var(--s-line);font:600 16px var(--s-sans);color:var(--s-ink);text-decoration:none;}
.s-mobile-nav a[aria-current="page"]{color:var(--s-clay-dark);}
@media (max-width:980px){
  .site-header .main-nav{display:none;}
  .s-nav-toggle{display:inline-flex;}
  .site-header .header-inner{justify-content:space-between;gap:12px;}
}
@media (max-width:640px){
  .site-header .header-actions .link-plain{display:none;}
  .site-header .header-actions{gap:10px;}
  .site-header .header-actions .btn{padding:9px 14px;font-size:12.5px;white-space:nowrap;}
}

/* Footer */
.site-footer .footer-logo-row{display:flex;align-items:center;gap:10px;}
.site-footer .footer-logo{height:32px;width:auto;display:block;}
.site-footer .footer-wordmark{font:700 21px var(--s-sans);color:#fff;letter-spacing:-0.01em;}
.site-footer .footer-nav a{text-decoration:none;}
.site-footer .footer-nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:4px;}

/* No horizontal page scroll from any wide child on phones */
html, body{max-width:100%;overflow-x:clip;}
@media (prefers-reduced-motion: reduce){ *{animation-duration:.01ms !important;transition-duration:.01ms !important;scroll-behavior:auto !important;} }

/* Step 8 (2026-10-25): contrast fixes to WCAG 2.2 AA. Secondary text #5E6B66 (4.86:1 on limestone). */
:root{--cool-gray:#5E6B66;--slate:#5E6B66;}

/* Coral + cobalt theme (2026-10-26, Orlando: "neon coral with matched water ... coral and cobalt").
   Neon coral #FF5E57 is the accent (live status, Proven Draw, Potential, highlights); it fails 4.5:1
   with white, so anything sitting on coral uses ink text, and coral text uses #C2362F (4.9:1).
   Cobalt #2B59F0 carries actions and selected states (white on cobalt 5.5:1). Ink is navy #14213D. */
:root{--forest:#14213D;--ink:#14213D;--charcoal:#14213D;--brand-blue:#14213D;
  --clay:#FF5E57;--core-red:#FF5E57;--clay-dark:#C2362F;--core-red-dark:#C2362F;
  --teal-c:#2B59F0;--teal:#2B59F0;--sand-c:#FFB020;--action:#2B59F0;--action-dark:#1F45C7;}
.mv-btn--primary, .btn.mv-btn--primary{background:#2B59F0 !important;border-color:#2B59F0 !important;color:#fff !important;}
.mv-btn--primary:hover, .btn.mv-btn--primary:hover{background:#1F45C7 !important;border-color:#1F45C7 !important;}
.btn-outline:hover, .hero .btn-outline:hover{background:#2B59F0 !important;border-color:#2B59F0 !important;color:#fff !important;}
.inv-view-switch button[aria-selected="true"], .inv-regions button[aria-pressed="true"],
.seg button.on, .ins-legend .tg.on, .mini-chip.active-dark{background:#2B59F0 !important;border-color:#2B59F0 !important;color:#fff !important;}
/* Matched water: Leaflet basemaps are lifted to sit with the world map's #EEF4F5 sea. */
.leaflet-tile-pane{filter:brightness(1.12);}
.leaflet-container{background:#EEF4F5 !important;}

/* Footer artwork (2026-10-26, Orlando): navy terrain with one cobalt and one coral trace, replacing the contour band
   on every page. Anchored low so the traces run under the brand and nav rows. */
.site-footer{background-color:#14213D !important;background-image:url("strata-footer-terrain.webp") !important;
  background-size:cover !important;background-position:center 72% !important;background-repeat:no-repeat !important;}

/* Header lockup and layout (2026-11-02, Orlando: logo too big and misaligned, header composition differed
   between pages; footer proportions preferred). The header now uses the footer's lockup (symbol + live
   "strata" text) at nav scale, and one identical frame on every page: same max width, padding and height. */
.site-header .header-inner{max-width:1440px !important;margin:0 auto !important;padding:0 32px !important;min-height:64px;box-sizing:border-box;display:flex;align-items:center;gap:36px;}
.site-header .header-logo-link{display:flex !important;align-items:center;gap:8px;flex:none;text-decoration:none;}
.site-header .header-logo{height:26px !important;width:26px !important;display:block;}
.site-header .header-wordmark{font:700 19px/1 var(--s-sans);color:var(--s-ink);letter-spacing:-0.01em;}
.site-header .main-nav{gap:30px;}
.site-header .header-actions .btn{padding:10px 18px;font-size:13.5px;line-height:1.2;}
@media (max-width:980px){ .site-header .header-inner{padding:0 20px !important;} }
@media (max-width:640px){
  .site-header .header-inner{padding:0 14px !important;min-height:56px;}
  .site-header .header-logo{height:22px !important;width:22px !important;}
  .site-header .header-wordmark{font-size:17px;}
  .site-header .header-logo-link{gap:7px;}
  .site-header .header-actions .btn{padding:8px 12px;font-size:12.5px;}
  .s-nav-toggle{padding:7px 10px;font-size:13px;}
}
.site-header .header-actions .link-plain[aria-current="page"]{color:var(--s-clay-dark);}
.site-footer .footer-legal{width:100%;display:flex;gap:18px;flex-wrap:wrap;font-size:12.5px;border-top:1px solid rgba(255,255,255,.14);padding-top:16px;margin-top:4px;}
.site-footer .footer-legal a{color:#C3CCDD;text-decoration:none;font-weight:500;}
.site-footer .footer-legal a:hover{color:#fff;}

/* 2026-11-17: Merivia brand system v1. Header and footer carry the Merivia Insights lockup (colour on light, reverse on ink).
   The lockup files are the brand set's 2400 px lockups with the transparent clear space trimmed, so a 32 px image is a 32 px logo
   (Orlando, 17 Nov: the padded file looked shrunk, with white space on its sides). Clear space is given by the layout instead. */
.site-header .header-logo{height:32px !important;width:auto !important;display:block;}
@media (max-width:640px){.site-header .header-logo{height:26px !important;}}
/* Small phones: the lockup is wide, so it steps down and the header button tightens to keep Menu on screen. */
@media (max-width:640px){.site-header .header-inner{gap:10px !important;}}
@media (max-width:430px){.site-header .header-logo{height:22px !important;}.site-header .header-actions{gap:8px !important;}.site-header .header-actions .btn{padding:8px 11px !important;font-size:12px !important;}.s-nav-toggle{padding:7px 10px !important;font-size:12.5px !important;}}
/* The Inventory page is full width, so its header and footer follow the page's own 24 px gutters instead of the 1440 px frame. */
.site-header.header-fluid .header-inner{max-width:none !important;padding:0 24px !important;}
@media (max-width:640px){.site-header.header-fluid .header-inner{padding:0 14px !important;}}
/* Footer (17 Nov, Orlando: too clunky): two slim rows. Logo and main links; then the legal line and the secondary links. */
.site-footer{padding:26px 0 20px !important;margin-top:0;}
.site-footer .sf-inner{max-width:1440px;margin:0 auto;padding:0 32px;box-sizing:border-box;}
.site-footer.footer-fluid .sf-inner{max-width:none;padding:0 24px;}
.site-footer .sf-top,.site-footer .sf-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px 28px;flex-wrap:wrap;}
.site-footer .sf-bottom{margin-top:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.14);}
.site-footer .footer-logo{height:28px;width:auto;display:block;}
.site-footer .sf-nav{display:flex;gap:6px 26px;flex-wrap:wrap;}
.site-footer .sf-nav a{font:600 14px var(--s-sans);color:#fff;text-decoration:none;}
.site-footer .sf-links{display:flex;gap:4px 20px;flex-wrap:wrap;}
.site-footer .sf-links a{font:500 13px var(--s-sans);color:#C9CED8;text-decoration:none;}
.site-footer .sf-nav a:hover,.site-footer .sf-links a:hover{color:#fff;text-decoration:underline;text-underline-offset:4px;}
.site-footer .sf-legal{margin:0;font:500 13px/1.5 var(--s-sans);color:#C9CED8;}
@media (max-width:980px){.site-footer .sf-inner{padding:0 20px;}}
@media (max-width:640px){.site-footer .sf-inner,.site-footer.footer-fluid .sf-inner{padding:0 14px;}.site-footer .sf-top,.site-footer .sf-bottom{flex-direction:column;align-items:flex-start;}}
