/* Forecast Fresh — the RRFS house on the Forecast Network.
 *
 * The network's grammar is US highway signage (Overpass, the open cut of FHWA Highway
 * Gothic; warm paper; MUTCD colours). Eagle is guide-sign green, Points is
 * motorist-services blue, Canada is red. Fresh takes MUTCD purple — the colour of
 * managed and express lanes — for a model whose whole point is rapid refresh, and the
 * fluorescent yellow-green of the school/ped palette as its "new this hour" accent.
 * Light only, always (network rule: no dark mode). Dark insets for imagery are fine.
 */

:root {
  /* shared network tokens */
  --paper: #e6e2da;
  --card: #ffffff;
  --ink: #161616;
  --ink2: #4a463e;
  --line: #c9c5bc;
  --line2: #e4e1d9;
  --mut: #6e6a60;
  --green: #04663d;          /* Eagle */
  --blue: #0a5ca8;           /* Points */
  --shield-red: #c0331a;
  --amber: #f2ac14;
  --figure: #0a0e14;

  /* Fresh: the express lane */
  --sign: #4f2683;           /* MUTCD purple — the lead */
  --sign-dk: #341659;
  --sign-sub: #dccdf0;
  --fresh: #c5e000;          /* fluorescent yellow-green — fill only, never text on white */
  --fresh-ink: #3d4600;

  /* chart roles (plumes) */
  --c-ctl: #4f2683;          /* the deterministic RRFS, the control member */
  --c-mean: #161616;         /* ensemble mean — dashed as its second channel */
  --c-member: #a693c6;       /* the five perturbed members: exchangeable, one hue */
  --c-lag: #cfc5e2;          /* the previous cycle's six, lighter still */
  --c-band: rgba(79, 38, 131, .09);
  --grid: #ebe8e1;
  --night: #f1eff5;

  /* precipitation type (validated: all >= 3:1 on white; the two icy types also hatch) */
  --p-rain: #1f8a4c;
  --p-snow: #2a78d6;
  --p-frzr: #d23a8c;
  --p-sleet: #7a3fc0;

  --font: 'Overpass', Helvetica, Arial, sans-serif;
  --mono-font: 'Overpass Mono', ui-monospace, monospace;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper); color: var(--ink); font-family: var(--font);
  -webkit-font-smoothing: antialiased; line-height: 1.45;
}
a { color: inherit; }
a:hover { text-decoration-thickness: 2px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono-font); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.mut { color: var(--mut); }
.nowrap { white-space: nowrap; }

/* ── utility bar ───────────────────────────────────────── */
.util {
  background: var(--ink); color: #cfccc4; border-bottom: 3px solid var(--sign);
  position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0, 0, 0, .22);
}
.util .bar {
  max-width: 1620px; margin: 0 auto; padding: 0 16px; min-height: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.util .brand { font-family: var(--mono-font); font-size: 11px; letter-spacing: .08em; color: #e9e7e0; text-decoration: none; }
.util .brand b { color: var(--fresh); font-weight: 700; }
.util .lnks { display: flex; gap: 16px; flex-wrap: wrap; }
.util .lnks a { color: #e9e7e0; font-weight: 700; font-size: 11px; letter-spacing: .07em; text-decoration: none; }
.util .lnks a:hover, .util .lnks a[aria-current="page"] { color: var(--sign-sub); }
.util .lnks .sib { color: #a9a59b; }

/* ── the express-lane sign (site mark) ───────────────────── */
.sign {
  background: var(--sign); color: #fff; border-radius: 10px; padding: 24px 24px 22px;
  box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 6px rgba(255, 255, 255, .92), 0 10px 30px rgba(0, 0, 0, .16);
  position: relative; overflow: hidden;
}
.sign a { color: #fff; }
.signhead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.word { margin: 0; font-weight: 900; font-size: clamp(30px, 6vw, 56px); line-height: .92; letter-spacing: -.02em; }
.word .hl { color: var(--fresh); }
.tag { margin: 10px 0 0; font-weight: 700; font-size: clamp(14px, 2.2vw, 17px); color: var(--sign-sub); max-width: 60ch; }

/* The managed-lane plaque: the Fresh answer to Eagle's shield and Points' plaque. */
.plaque {
  flex: none; display: inline-flex; flex-direction: column; align-items: center; line-height: 1;
  border: 2.5px solid #fff; border-radius: 6px; padding: 6px 10px 7px; text-align: center; min-width: 86px;
}
.plaque .a { font-size: 8px; font-weight: 800; letter-spacing: .18em; color: var(--sign-sub); }
.plaque .b { font-size: 22px; font-weight: 900; letter-spacing: .03em; margin: 3px 0 2px; }
.plaque .c { font-size: 8px; font-weight: 800; letter-spacing: .12em; background: var(--fresh); color: var(--sign-dk); padding: 2px 5px; border-radius: 2px; }

/* The "OPENS IN" countdown panel, a variable-message sign. */
.vms {
  margin-top: 18px; display: inline-flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: #120a1f; border-radius: 6px; padding: 10px 14px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25);
}
.vms .lbl { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--sign-sub); }
.vms .led { font-family: var(--mono-font); font-weight: 700; font-size: clamp(18px, 3vw, 24px); color: var(--fresh); letter-spacing: .06em; }

/* ── search ───────────────────────────────────────────── */
.search { position: relative; margin-top: 20px; max-width: 640px; }
.search input {
  width: 100%; font-family: var(--font); font-weight: 700; font-size: 17px; color: var(--ink);
  padding: 13px 14px 12px 42px; border-radius: 6px; border: 2px solid #fff; background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.search input:focus { outline: 3px solid var(--fresh); outline-offset: 1px; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--mut); pointer-events: none; }
.search ul {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; list-style: none; margin: 0; padding: 4px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  max-height: 340px; overflow: auto; color: var(--ink);
}
.search li { padding: 8px 14px; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 10px; }
.search li .st { color: var(--mut); font-weight: 600; font-size: 13px; }
.search li[aria-selected="true"], .search li:hover { background: var(--sign-sub); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.chips .lbl { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--sign-sub); }
.chip {
  font-family: inherit; font-weight: 700; font-size: 12px; letter-spacing: .02em; cursor: pointer; text-decoration: none;
  color: #fff; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 5px; padding: 5px 11px;
}
.chip:hover { background: #fff; color: var(--sign); }

/* ── section rules ────────────────────────────────────── */
section { padding: 26px 0 6px; }
.rule { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rule .ln { height: 3px; flex: 1; min-width: 24px; background: repeating-linear-gradient(90deg, var(--sign) 0 18px, transparent 18px 34px); }
.rule h2 { margin: 0; color: var(--sign); font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.rule .sub { color: var(--mut); font-size: 11px; font-weight: 700; letter-spacing: .06em; }

/* ── cards, panels, tiles ─────────────────────────────── */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; box-shadow: 0 6px 22px rgba(0, 0, 0, .07); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 6px 22px rgba(0, 0, 0, .07); display: block; text-decoration: none; }
.card .chead { background: var(--sign); color: #fff; padding: 8px 14px; font-size: 10px; font-weight: 800; letter-spacing: .12em; display: flex; justify-content: space-between; gap: 8px; }
.card .chead.soon { background: var(--ink2); }
.card .chead .mi { background: var(--fresh); color: var(--sign-dk); padding: 0 5px; border-radius: 2px; }
.card .cbody { padding: 13px 14px 15px; }
.card h3 { margin: 0 0 5px; font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink2); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .13); }

.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 13px; }
.tile .l { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--mut); text-transform: uppercase; }
.tile .v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; line-height: 1.1; }
.tile .v small { font-size: 15px; font-weight: 700; color: var(--ink2); }
.tile .d { font-size: 12.5px; font-weight: 600; color: var(--ink2); margin-top: 3px; }

/* ── controls ─────────────────────────────────────────── */
.btn {
  cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink2); border-radius: 3px;
  font-family: var(--font); font-weight: 800; font-size: 11.5px; letter-spacing: .04em; padding: 6px 11px; line-height: 1.3;
}
.btn:hover { border-color: var(--sign); color: var(--ink); }
.btn[aria-pressed="true"] { background: var(--sign); color: #fff; border-color: var(--sign-dk); }
.seg { display: inline-flex; }
.seg .btn { border-radius: 0; margin-left: -1px; }
.seg .btn:first-child { border-radius: 3px 0 0 3px; margin-left: 0; }
.seg .btn:last-child { border-radius: 0 3px 3px 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.toolbar .lbl { font-size: 10px; font-weight: 800; letter-spacing: .12em; color: var(--mut); margin-right: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--sign); outline-offset: 2px; }

/* ── pinpoint header ──────────────────────────────────── */
.phead { background: var(--sign); color: #fff; padding: 20px 0 18px; }
.phead h1 { margin: 0; font-size: clamp(26px, 5vw, 42px); font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.phead .meta { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--sign-sub); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.phead .search { margin-top: 14px; max-width: 520px; }
.phead .search input { font-size: 15px; padding: 10px 12px 9px 38px; }

/* ── what the members say ─────────────────────────────── */
.says { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.says li { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--sign); border-radius: 6px; padding: 10px 14px; font-weight: 700; font-size: 15px; }
.says li.agree { border-left-color: var(--green); }
.says li.split { border-left-color: var(--amber); }
.says li .k { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--mut); text-transform: uppercase; margin-bottom: 2px; }

/* ── charts ───────────────────────────────────────────── */
.charts { display: grid; gap: 12px; }
.chart { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px 6px; position: relative; }
.chart h3 { margin: 0 0 2px 4px; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.chart h3 .u { color: var(--mut); font-weight: 700; letter-spacing: .02em; text-transform: none; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ax text, .lanes .ax text { font-family: var(--mono-font); font-size: 10.5px; fill: var(--mut); }
.chart .ax line, .chart .gridl { stroke: var(--grid); stroke-width: 1; }
.chart .daylbl, .lanes .daylbl { font-family: var(--font); font-size: 11px; font-weight: 800; fill: var(--ink2); letter-spacing: .06em; }
.chart .nowlbl, .lanes .nowlbl { font-family: var(--font); font-size: 9px; font-weight: 900; letter-spacing: .08em; fill: var(--sign-dk); }
.chart .endlbl { font-family: var(--font); font-size: 11px; font-weight: 800; fill: var(--ink2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; font-weight: 700; color: var(--ink2); align-items: center; }
.legend .k { display: inline-flex; align-items: center; gap: 6px; }
.legend svg { width: 26px; height: 12px; flex: none; }
.legend .sw { width: 14px; height: 12px; border-radius: 2px; display: inline-block; }

/* the crosshair + tooltip, shared by every chart on the page */
.xhair { stroke: var(--ink); stroke-width: 1; pointer-events: none; }
.tip {
  position: fixed; z-index: 200; pointer-events: none; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: 8px 10px; font-size: 12px; min-width: 170px; max-width: 280px;
}
.tip .t { font-weight: 900; font-size: 12px; margin-bottom: 4px; }
.tip table { border-collapse: collapse; width: 100%; }
.tip td { padding: 1px 0; font-weight: 700; color: var(--ink2); }
.tip td.v { text-align: right; font-family: var(--mono-font); color: var(--ink); padding-left: 10px; }
.tip .key { display: inline-block; width: 10px; height: 3px; vertical-align: middle; margin-right: 6px; border-radius: 1px; }

/* ── member lanes ─────────────────────────────────────── */
.lanes { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 12px 8px; }
.lanes h3 { margin: 0 0 6px 4px; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.lanes svg { display: block; width: 100%; height: auto; }
.lanes .lname { font-family: var(--mono-font); font-size: 10.5px; font-weight: 700; fill: var(--ink2); }
.lanes .lanemark { stroke: #b9b4aa; stroke-width: 1; stroke-dasharray: 6 5; }
.odds .ogrp { font-family: var(--font); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.odds .olab { font-family: var(--font); font-size: 11px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.odds .oval { font-family: var(--mono-font); font-size: 9px; font-weight: 700; }

/* ── runs board ───────────────────────────────────────── */
.board { background: #120a1f; color: #e9e3f5; border-radius: 8px; padding: 14px 16px; box-shadow: 0 6px 22px rgba(0, 0, 0, .15); overflow-x: auto; }
.board .bh { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--sign-sub); margin-bottom: 10px; }
.board table { border-collapse: separate; border-spacing: 0 4px; width: 100%; min-width: 520px; }
.board td { font-family: var(--mono-font); font-size: 12.5px; padding: 0 8px 0 0; white-space: nowrap; }
.board td.m { font-weight: 700; color: #fff; width: 56px; }
.board .cells { display: grid; grid-template-columns: repeat(61, 1fr); gap: 1px; min-width: 300px; }
.board .cells i { height: 12px; background: #2b2140; border-radius: 1px; }
.board .cells i.l { background: #6b5a8c; }
.board .cells i.h { background: var(--fresh); }
.board .n { color: #cbbfe3; text-align: right; }
.board .key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; font-weight: 700; color: #cbbfe3; margin-top: 8px; }
.board .key i { display: inline-block; width: 12px; height: 10px; border-radius: 1px; margin-right: 5px; vertical-align: -1px; }


/* ── maps ─────────────────────────────────────────────── */
.wrap-maps { max-width: 1500px; margin: 0 auto; padding: 14px 16px 0; }
select { background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 3px; padding: 6px 8px; font-family: var(--font); font-weight: 700; font-size: 12.5px; max-width: 260px; }
.mapbar { margin-bottom: 12px; }
.mapbar label { display: inline-flex; align-items: center; }
.maplayout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; align-items: start; }
.fields { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 8px 10px; max-height: calc(100vh - 150px); overflow: auto; position: sticky; top: 50px; }
.fgroup { padding: 4px 0 6px; border-bottom: 1px dashed var(--line2); }
.fgroup:last-child { border-bottom: 0; }
.fg { font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--sign); margin: 4px 4px 4px; }
.fbtn { display: inline-block; margin: 2px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 3px; background: #fff; cursor: pointer; font-family: var(--font); font-weight: 700; font-size: 12px; color: var(--ink2); }
.fbtn:hover { border-color: var(--sign); color: var(--ink); }
.fbtn.on { background: var(--sign); border-color: var(--sign-dk); color: #fff; }
.mapcol { min-width: 0; }
.cap { font-size: 13.5px; font-weight: 600; color: var(--ink2); margin: 0 0 8px; min-height: 20px; }
.cap strong { color: var(--ink); }
.figure { margin: 0; background: var(--figure); border-radius: 8px; padding: 8px; box-shadow: 0 6px 22px rgba(0, 0, 0, .15); display: flex; justify-content: center; }
.figure img { display: block; max-width: 100%; height: auto; max-height: calc(100vh - 230px); width: auto; border-radius: 3px; background: #1b2230; }
.scrub { display: grid; grid-template-columns: repeat(auto-fill, minmax(14px, 1fr)); gap: 2px; margin-top: 8px; }
.scrub button { min-width: 0; height: 22px; padding: 0; border: 0; border-radius: 2px; cursor: pointer; background: #d8d4cb; font-family: var(--mono-font); font-size: 9.5px; font-weight: 700; color: var(--ink2); }
.scrub button.ok { background: var(--sign-sub); }
.scrub button.on { background: var(--sign); color: #fff; }
.scrub button:hover { outline: 2px solid var(--sign); }
.mapnote { margin: 8px 0 0; font-size: 12px; }
@media (max-width: 860px) {
  .maplayout { grid-template-columns: 1fr; }
  .fields { position: static; max-height: 200px; }
  .figure img { max-height: none; }
}


/* ── storm tracker ────────────────────────────────────── */
.stormlayout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.smap { height: min(72vh, 760px); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #dfe3e8; }
.slist { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px; max-height: min(72vh, 760px); overflow: auto; }
.slist .fg { font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--sign); margin: 4px 4px 6px; }
.scard { display: flex; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line2); border-radius: 6px; padding: 8px 10px; margin: 0 0 6px; cursor: pointer; font-family: var(--font); color: var(--ink); }
.scard:hover { border-color: var(--sign); }
.scard.on { border-color: var(--sign); box-shadow: inset 4px 0 0 var(--sign); }
.scard .rk { flex: none; min-width: 26px; height: 26px; border-radius: 13px; background: var(--ink); color: #fff; font-weight: 900; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.scard .sc-main { font-size: 14px; font-weight: 700; line-height: 1.35; }
.scard .sc-meta { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); margin-top: 2px; }
.daytabs { margin: 0 0 10px; }
.phase { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.phead2 { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; font-size: 15px; margin-bottom: 10px; }
.phead2 .mut { display: block; font-size: 12.5px; font-weight: 600; margin-top: 3px; max-width: 90ch; }
.phasegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px; }
.phasegrid svg { display: block; width: 100%; height: auto; }
.cps .ax text { font-family: var(--mono-font); font-size: 11.5px; fill: #5f5b53; }
.cps .gridl { stroke: #ffffff; stroke-opacity: .75; stroke-width: 1; }
.cps .zero { stroke: #6b6760; stroke-width: 1.6; }
.cps .thr { font-family: var(--font); font-size: 11px; font-weight: 800; fill: #5f5b53; letter-spacing: .02em; }
.cps .qlbl { font-family: var(--font); font-size: 13px; font-weight: 900; letter-spacing: .02em; }
.cps .qsub { font-family: var(--font); font-size: 11.5px; font-weight: 600; font-style: italic; fill: #5f5b53; }
.cps .axlbl { font-family: var(--font); font-size: 13px; font-weight: 800; fill: var(--ink); }
.cps .chtitle { font-family: var(--font); font-size: 14px; font-weight: 900; fill: var(--ink); letter-spacing: .02em; }
.cps .az { font-family: var(--font); font-size: 12px; font-weight: 900; fill: #fff; pointer-events: none; }
.cps .daylab, .cps .mlab { font-family: var(--font); font-size: 11.5px; font-weight: 800; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.cps .traj { transition: opacity .12s; }
.cps .traj.dim { opacity: .14; }
.cps-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--ink2); margin: 0 0 12px; }
.cps-legend .k { display: inline-flex; align-items: center; gap: 6px; }
.cps-legend .lbl2 { font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin-right: 2px; }
.cps-legend .pbar { flex-wrap: wrap; }
.cps-legend .pbar .bar { display: inline-flex; height: 12px; border-radius: 2px; overflow: hidden; }
.cps-legend .pbar .bar span { width: 16px; height: 12px; display: block; }
.cps-legend .pbar .ends { display: inline-flex; gap: 8px; font-family: var(--mono-font); font-size: 11px; color: var(--mut); }
.cps-legend .azk { display: inline-flex; width: 18px; height: 18px; border-radius: 9px; background: var(--c-ctl); color: #fff; font-size: 10.5px; font-weight: 900; align-items: center; justify-content: center; }
@media (max-width: 900px) { .stormlayout { grid-template-columns: 1fr; } .slist { max-height: 360px; } .smap { height: 58vh; } }

/* ── status + notes ───────────────────────────────────── */
.note { font-size: 13px; font-weight: 600; color: var(--ink2); }
.err { background: #fff4f2; border: 1px solid #e7b7ae; color: #7a1d0f; border-radius: 6px; padding: 12px 14px; font-weight: 700; }
.loading { color: var(--mut); font-weight: 700; padding: 30px 0; text-align: center; }
table.data { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.data th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); border-bottom: 2px solid var(--line); padding: 5px 8px; position: sticky; top: 0; background: #fff; }
table.data td { border-bottom: 1px solid var(--line2); padding: 4px 8px; font-family: var(--mono-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scrollx { overflow: auto; max-height: 520px; }

/* ── prose pages ──────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; font-weight: 900; letter-spacing: -.01em; margin: 26px 0 8px; }
.prose p, .prose li { font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--ink2); }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--mono-font); font-size: 13.5px; background: #fff; border: 1px solid var(--line2); padding: 0 4px; border-radius: 3px; }

/* ── footer ───────────────────────────────────────────── */
.site-footer { margin-top: 40px; padding: 22px 0 34px; border-top: 3px solid var(--sign); font-size: 13px; font-weight: 600; color: var(--ink2); }
.site-footer a { font-weight: 800; }

@media (max-width: 640px) {
  .sign { padding: 20px 16px 18px; }
  .util .lnks { gap: 12px; }
  .util .lnks .sib { display: none; }
  .tile .v { font-size: 24px; }
}
/* ── run to run (pinpoint) ───────────────────────────── */
.trendtbl caption { caption-side: top; text-align: left; font-size: 12.5px; font-weight: 700; color: var(--ink2); padding: 0 0 8px; }
.trendtbl .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.trendtbl .up { color: var(--shield-red); font-size: 10px; }
.trendtbl .dn { color: var(--blue); font-size: 10px; }

/* ── scores ─────────────────────────────────────────── */
.charts.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.charts.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.charts.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.chart .zerol { stroke: #b9b4aa; stroke-width: 1; }
.chart .axl { font-family: var(--font); font-size: 11px; font-weight: 700; fill: var(--mut); }
.chart .note { margin: 4px 4px 6px; font-size: 12px; }
.scoretiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.stile .v, .stile .v2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.stile .v2 { font-size: 20px; color: var(--ink2); }
.stile .nm { display: inline-block; min-width: 3.4em; font-size: 12px; font-weight: 900; letter-spacing: .08em; color: var(--ink2);
  border-left: 4px solid var(--c); padding-left: 6px; vertical-align: 3px; }
.stile .d b { color: var(--ink); }
.scoremap { height: min(62vh, 620px); }
.tip .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.maplibregl-popup-content .t { font-weight: 900; font-size: 12px; margin-bottom: 4px; }
.maplibregl-popup-content td { padding: 1px 0; font-weight: 700; color: var(--ink2); font-size: 12px; }
.maplibregl-popup-content td.v { text-align: right; font-family: var(--mono-font); color: var(--ink); padding-left: 10px; }

@media print {
  .util, .search, .toolbar, .site-footer { display: none; }
  body { background: #fff; }
}

/* Section rules on phones: the sub-caption drops under the heading instead of pushing the page wide. */
@media (max-width: 640px) {
  .rule { flex-wrap: wrap; row-gap: 6px; }
  .rule .sub { flex-basis: 100%; }
  .toolbar .seg { flex-wrap: wrap; }
}
