/* Design tokens, shared by index.html (the replay) and findings.html (the analyses).
   Extracted so the two pages cannot drift apart: they are one site, and a chart on the
   findings page has to use the same categorical slot for "wind" that the map does, or the
   reader has to relearn the colors halfway through.

   The categorical slots are validated for contrast against --plane in dark; keep them in
   that order and reuse them rather than adding a sixth color. --bar-h is the timeline
   bar's height and is only meaningful on index.html, but it lives here because the footer
   band lines up with it on both pages. */
:root {
  color-scheme: dark;
  --plane:#0b0b0c; --surface-1:#141416; --surface-2:#1c1c1f; --surface-3:#26262a;
  --map-bg:#0a1520;
  --ink:#f4f4f2; --ink-2:#b6b5ad; --muted:#8b8981;
  --grid:#26262a; --axis:#3a3a3e; --hair:rgba(255,255,255,.08);
  /* Categorical slots, validated against --plane in dark by the dataviz validator:
     lightness band, chroma floor, adjacent-pair CVD separation (worst 8.4 deutan,
     s3<->s2), normal-vision floor and contrast all pass.
     --s4 was #d19100, which sat above the dark lightness band (L 0.70 vs a 0.48-0.67
     band); snapped to the nearest passing step.
     KNOWN LIMIT: under all-pairs rather than adjacent-pairs, s2 <-> s4 is only dE 2.3
     (deutan). Both are warm. So these four are safe where series sit apart or are
     directly labelled, and NOT safe as four interchangeable colors in one scatter,
     where any two points can land side by side. Facet instead of coloring, as
     findings.html does for elevation vs rainfall. */
  --s1:#4a92e8; --s2:#e0633a; --s3:#1faa79; --s4:#c08400;
  --critical:#e04747; --warning:#fab219;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
  --pad:16px; --bar-h:78px;
}

/* What each categorical slot means across both pages. Stated here because the mapping is a
   design decision, not a CSS detail, and the findings page has to honour it:
     --s1  wind / gusts
     --s2  power outages
     --s3  rain, streamflow
     --s4  turbidity
     --warning  crossed a flood threshold  ·  --critical  major flood stage */
