/* M6 13 Nov 2026: dark copy of assets/saffron.css (colours remapped by build/remap_dark.py; layout unchanged) */
/* Palette A "Saffron Light" (owner choice 17 Oct 2026; rebrand-plan-20261017 §18.3/§18.4, mockups/v3/m3.css .pA).
   Loaded LAST on every page, after styleB.css. Re-skin only: no data/feature change. Geist fonts + Flow Map motion kept.
   Hard-coded dark literals in the older layers were remapped by scripts/saffron/remap_light.py. */
:root,html body{
  --bg:#0a0e17;--bg2:#182033;--surface:#131a29;--surface2:#182033;--surface3:#1a2236;
  --line:#1f2940;--line2:#2a3550;--field:#3a4660;
  --text:#e8edf7;--text2:#c4cede;--muted:#9aa7bb;--faint:#9aa7bb;
  --accent:#2dd4bf;--accent2:#5eead4;--accent-ink:#04201d;--accbg:#183a34;
  --hl:#ee7f2b;--hl-text:#ee7c2b;--hlbg:#3a2c18;
  --green:#43d67b;--red:#e65b5b;--blue:#6285ea;--amber:#ee7c2b;--violet:#a479e7;--cyan:#2ec2eb;
  --ok:#3adf77;--okbg:#183a21;--warn:#e65b5b;--warnbg:#3a1818;
  --lbl-fact:#43d67b;--lbl-fore:#6285ea;--lbl-spec:#a479e7;
  /* compact type scale (−20–25%): display 24→42, head 18→25, num 22→28, lead 15→16, body 14→15, card 13.5, small 12 */
  --t-small:0.75rem;--t-card:0.84375rem;--t-body:clamp(0.875rem,0.82rem + 0.18vw,0.9375rem);--t-lead:clamp(0.9375rem,0.9rem + 0.12vw,1rem);
  --t-head:clamp(1.125rem,0.95rem + 0.85vw,1.5625rem);--t-display:clamp(1.5rem,0.9rem + 2.6vw,2.625rem);--t-num:clamp(1.375rem,1rem + 0.95vw,1.75rem);
  --sp-section:clamp(2.5rem,1.75rem + 2.5vw,4rem);
  --fs-cap:12px;--fs-sm:12px;--fs-body:15px;--fs-lead:var(--t-lead);--fs-h3:var(--t-lead);--fs-h2:var(--t-head);--fs-h1:var(--t-display);
  /* section colours:one per part, each >=4.5:1 on #0a0e17 and #131a29, hues kept far apart */
  --c-home:#33e5d7;--c-brief:#ee7f2b;--c-opps:#96db3d;--c-learn:#a479e7;--c-discover:#2ba9ee;--c-countries:#ef5379;--c-power:#ef5379;--c-method:#9aa7bb;
  color-scheme:dark}
html body,html body.nm{background:var(--bg)!important;color:var(--text)}
html body .nm-hero{background:transparent}
::selection{background:var(--accbg);color:var(--text)}
/* header / nav / sheets on paper */
html body .nm-hd{background:rgba(10,14,23,0.96)!important;border-bottom:1px solid var(--line)}
html body .nm-bnav{background:rgba(19,26,41,0.98)!important;border-top:1px solid var(--line)}
html body .nm-sheet{background:rgba(10,14,23,0.99)!important}
html body .nm-sheet a{color:var(--text)}
html body .nm-logo i{background:var(--accent)!important;color:#04201d!important}
html body .nm-logo b{color:var(--accent)!important}
/* type scale */
html body .rank-big{font-size:36px}
html body .r0-metric .v{color:var(--accent)}
html body .r0-num,html body .r0-top5 .n{color:var(--hl-text)}
/* buttons */
html body :is(.nm-btn.pri,.nm-btn.primary,.nm-btn[data-kind=pri],.r0-btn.primary,.btn:not(.ghost)){background:var(--accent)!important;border-color:var(--accent)!important;color:#04201d!important}
html body :is(.nm-btn,.r0-btn):not(.pri):not(.primary){background:var(--surface);border-color:var(--line2);color:var(--text)}
html body .tab[aria-selected=true],html body .nm-tab[aria-selected=true]{background:var(--accent)!important;border-color:var(--accent)!important;color:#04201d!important}
html body :is(.sec-brief,.sec-opps,.sec-learn,.sec-discover) .r0-filters button[aria-pressed=true]{color:#fff}
html body .r0-filters button[aria-pressed=true]{color:#fff}
/* labels / tags on light: tinted fill + deep ink (AA) */
html body .nm-tag.fact,html body .r0-lbl.FACT{background:#182033;border-color:#86c79c;color:#43d67b}
html body .nm-tag.calc{background:#182033;border-color:#9db4ea;color:#6285ea}
html body .nm-tag.est,html body .nm-tag.model,html body .r0-lbl.OUR_CALC,html body .r0-lbl.ESTIMATE{background:var(--hlbg);border-color:#e7b77d;color:var(--hl-text)}
html body .nm-tag.opin,html body .r0-lbl.OPINION,html body .r0-lbl.SPECULATION{background:#182033;border-color:#3e2673;color:#a479e7}
html body .nm-tag.prev{background:var(--hlbg);border-color:#e7b77d;color:var(--hl-text)}
html body .r0-lbl.FORECAST{background:#182033;color:#6285ea}
html body .r0-lbl{background:var(--surface)}
html body .r0-draft,html body .r0-door .soon{background:var(--hlbg);color:#ee7b2b;border:1px solid #e7b77d}
html body .nm-bnav a .p3,html body .p3{background:var(--hlbg)!important;color:#ee7b2b!important}
/* inline JS styles written for the dark theme */
html body [style*="color:#fff"]{color:var(--text)!important}
html body [style*="background:#050914"]{background:var(--surface)!important}
html body [style*="background:#fff;left"]{background:var(--text)!important}
/* up / down */
html body .up,html body .text-emerald-300,html body .text-emerald-400{color:#3adf77!important}
html body .down,html body .text-rose-300,html body .text-rose-400{color:#e65b5b!important}
/* Flow Map on paper: warm land, teal arcs, saffron India */
html body .f2-land{fill:#ece6da;stroke:#615338}
html body .f2-arc{stroke:#0f766e;stroke-opacity:.28}
html body .f2-glow{stroke:#0f766e}
html body .f2-hub{fill:#33e5d7}
html body .f2-ind{fill:#ee7f2b}
html body .f2-ring{stroke:#ee7f2b}
html body .f2-cap{color:var(--muted);background:rgba(10,14,23,0.9)}
@media (min-width:761px){html body .nm-hero::before{background:linear-gradient(90deg,rgba(10,14,23,0.96) 0%,rgba(10,14,23,0.78) 46%,rgba(10,14,23,0) 72%)}}
/* charts (countries map / bubbles, sparklines) */
html body .nm-card,html body .r0-card,html body .card{box-shadow:0 1px 2px rgba(26,29,35,.04)}
html body .nm-table tr.me td{background:var(--hlbg)}
html body .nm-table tbody tr:hover td{background:rgba(26,29,35,.03)}
html body .nm-v3-note .chip3{background:var(--hlbg);color:#ee7b2b;border:1px solid #e7b77d}
html body [aria-pressed=true] .faint,html body [aria-selected=true] .faint{color:#e2f3f0}
