/* weather.css — the /weather console + the shared Burning Swell design
   system (bs-sjnh.5).

   Tokens live in tokens.css (Dawn Patrol); this file adds NO :root — the
   mockup's duplicate token blocks were folded into tokens.css.  The
   global base (*, body, links) comes from theme.css and the chrome from
   the shared `.bs-header' shell, so the mockup's bespoke *,body,a,main,
   footer and `.topbar' rules are intentionally NOT landed — /weather
   renders through render-page, not the mockup chrome.

   Two sections: (1) the design-system component styles the /weather
   pages (bs-sjnh.8 status, models, variables) and the /spots cards
   (bs-sjnh.1) build on; (2) the weather console styles folded from the
   former conductor.css (.conductor-* → .weather-*) — they style the .5
   status console and the bs-sjnh.14 cycle inspector, off the --st-*
   palette in tokens.css. */

/* ---- breadcrumb + page head ---- */
.crumb{font-family:var(--font-mono);font-size:.72rem;color:var(--fg-subtle);
  letter-spacing:.04em;margin-bottom:var(--space-4)}
.crumb a{text-decoration:none;color:var(--fg-muted)}
.crumb a:hover{color:var(--accent)}
.crumb span{margin:0 .4rem;opacity:.6}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;
  gap:var(--space-4);margin-bottom:var(--space-6);flex-wrap:wrap}
h1.page{font-family:var(--font-display);font-weight:560;
  font-size:clamp(1.6rem,3.4vw,2.3rem);letter-spacing:-.01em;line-height:1.1}
.page-sub{font-family:var(--font-mono);font-size:.76rem;color:var(--fg-muted);
  letter-spacing:.03em;margin-top:.3rem}

/* Source-pick strip — the per-variable page's inert source tabs
   (bs-sjnh.12; drives the field map in bs-sjnh.13).  Ported from the
   design/weather-variable.html mock's inline <style>, which was the only
   place these rules lived. */
.src-pick{display:flex;gap:4px;flex-wrap:wrap}
.src-pick a{font-family:var(--font-mono);font-size:.7rem;text-decoration:none;
  color:var(--fg-muted);border:1px solid var(--border);border-radius:.4rem;
  padding:.3rem .55rem}
.src-pick a.on{color:var(--accent-fg);background:var(--accent);
  border-color:var(--accent)}
.src-pick a:hover:not(.on){color:var(--fg);border-color:var(--fg-subtle)}

.seclabel{display:flex;align-items:baseline;gap:var(--space-3);
  font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--fg-subtle);margin:var(--space-8) 0 var(--space-3)}
.seclabel::after{content:"";flex:1;height:1px;
  background:linear-gradient(90deg,var(--border),transparent)}
.seclabel .c{color:var(--accent);font-family:var(--font-mono)}

/* ---- LED dots ---- */
.dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--c);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--c) 50%,transparent),0 0 7px var(--c)}
.s-ok{--c:var(--ok)} .s-run{--c:var(--run)} .s-warn{--c:var(--warn)}
.s-bad{--c:var(--bad)} .s-idle{--c:var(--idle)} .s-superseded{--c:var(--superseded)}
.s-run .dot{animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{50%{box-shadow:0 0 0 2px color-mix(in srgb,var(--c) 40%,transparent),0 0 14px var(--c)}}
.pill{display:inline-block;padding:.12rem .55rem;border-radius:1rem;
  font-family:var(--font-mono);font-size:.64rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase}
.pill.ok{background:var(--ok-soft);color:var(--ok)}
.pill.run{background:var(--run-soft);color:var(--run)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.bad{background:var(--bad-soft);color:var(--bad)}
.pill.idle{background:var(--bg-subtle);color:var(--fg-subtle)}

/* ---- hero verdict ---- */
.verdict{display:flex;gap:var(--space-6);align-items:center;
  background:var(--bg-elevated);border:1px solid var(--border);
  border-left:5px solid var(--warn);border-radius:var(--radius);
  padding:var(--space-6) var(--space-8);box-shadow:var(--shadow)}
.verdict.ok{border-left-color:var(--ok)} .verdict.bad{border-left-color:var(--bad)}
.verdict .ring{flex:none;width:60px;height:60px;border-radius:50%;display:grid;
  place-items:center;font-size:1.6rem;background:var(--warn-soft);color:var(--warn);
  box-shadow:0 0 0 6px color-mix(in srgb,var(--warn) 8%,transparent)}
.verdict.ok .ring{background:var(--ok-soft);color:var(--ok)}
.verdict.bad .ring{background:var(--bad-soft);color:var(--bad)}
.verdict h1{font-family:var(--font-display);font-weight:560;
  font-size:clamp(1.4rem,3.2vw,2rem);line-height:1.1}
.verdict h1 b{color:var(--warn);font-weight:560}
.verdict.ok h1 b{color:var(--ok)} .verdict.bad h1 b{color:var(--bad)}
.verdict .sub{color:var(--fg-muted);margin-top:.35rem;max-width:64ch}
.verdict .as-of{font-family:var(--font-mono);font-size:.7rem;color:var(--fg-subtle);
  margin-top:.5rem}
.verdict .as-of i{display:inline-block;width:6px;height:6px;border-radius:50%;
  background:var(--ok);margin-right:.4rem;vertical-align:1px;
  box-shadow:0 0 0 3px var(--ok-soft)}

/* ---- metric tiles ---- */
.metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:var(--space-3);
  margin:var(--space-6) 0}
.metric{background:var(--bg-elevated);border:1px solid var(--border);
  border-radius:var(--radius);padding:var(--space-4)}
.metric .v{font-family:var(--font-mono);font-size:1.4rem;font-weight:700;letter-spacing:-.02em}
.metric .v.ok{color:var(--ok)} .metric .v.warn{color:var(--warn)} .metric .v.bad{color:var(--bad)}
.metric .l{font-size:.66rem;color:var(--fg-subtle);letter-spacing:.04em;
  margin-top:.15rem;text-transform:uppercase}

/* ---- pipeline flow strip ---- */
.flow{display:flex;align-items:stretch;gap:0;background:var(--bg-elevated);
  border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow)}
.flow-node{flex:1;padding:var(--space-4) var(--space-6);position:relative}
.flow-node + .flow-node{border-left:1px solid var(--border)}
.flow-node .stage{font-family:var(--font-mono);font-size:.6rem;font-weight:700;
  letter-spacing:.18em;text-transform:uppercase;color:var(--fg-subtle)}
.flow-node .big{font-family:var(--font-mono);font-size:1.1rem;font-weight:700;margin:.25rem 0 .15rem}
.flow-node .note{font-size:.74rem;color:var(--fg-muted)}
.flow-node .arrow{position:absolute;right:-9px;top:50%;transform:translateY(-50%);
  z-index:2;width:18px;height:18px;border-radius:50%;background:var(--bg);
  border:1px solid var(--border);display:grid;place-items:center;
  font-size:.7rem;color:var(--fg-subtle)}
.flow-node.warn .big{color:var(--warn)} .flow-node.bad .big{color:var(--bad)}
.flow-node.ok .big{color:var(--ok)} .flow-node.run .big{color:var(--run)}

/* ---- list rows (model / source freshness) ---- */
.rows{background:var(--bg-elevated);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.row{display:grid;grid-template-columns:1.5fr 1.1fr 2.2fr auto;gap:var(--space-4);
  align-items:center;padding:var(--space-4) var(--space-6);
  border-bottom:1px solid var(--border);text-decoration:none;color:inherit}
.row:last-child{border-bottom:0}
.row:hover{background:var(--bg-subtle)}
.r-name{display:flex;align-items:center;gap:.6rem;font-family:var(--font-mono);
  font-weight:700;font-size:.92rem}
.r-prov{color:var(--fg-muted);font-size:.82rem}
.r-prov b{color:var(--fg);font-weight:500}
.r-state{font-family:var(--font-mono);font-size:.78rem}
.r-state .age{color:var(--fg-muted);margin-left:.4rem}
.r-cta{font-family:var(--font-mono);font-size:.72rem;color:var(--fg-subtle);white-space:nowrap}
.row:hover .r-cta{color:var(--accent)}
.spark{display:flex;gap:2px;align-items:flex-end;height:24px;margin-top:.4rem}
.spark i{width:6px;border-radius:1px;background:var(--bg-subtle)}
.spark i.ok{background:var(--ok)} .spark i.warn{background:var(--warn)}
.spark i.bad{background:var(--bad)} .spark i.run{background:var(--run)}

/* ---- model instrument cards (spaced, distinct) ---- */
.cards{display:grid;gap:var(--space-4);
  grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}
.card{position:relative;background:var(--bg-elevated);border:1px solid var(--border);
  border-radius:var(--radius);box-shadow:var(--shadow);
  padding:var(--space-6) var(--space-6) var(--space-4);
  display:flex;flex-direction:column;gap:var(--space-3);text-decoration:none;color:inherit;
  transition:border-color .15s,transform .15s,box-shadow .15s}
.card:hover{border-color:var(--fg-subtle);transform:translateY(-2px)}
.card::after{content:"↗";position:absolute;top:var(--space-6);right:var(--space-6);
  color:var(--fg-subtle);font-size:.8rem;opacity:0;transition:.15s}
.card:hover::after{opacity:1;color:var(--accent)}
/* a thin status spine down the left edge of each card */
.card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  border-radius:var(--radius) 0 0 var(--radius);background:var(--c,var(--border))}
.card.s-ok{--c:var(--ok)} .card.s-run{--c:var(--run)} .card.s-warn{--c:var(--warn)}
.card.s-bad{--c:var(--bad)} .card.s-idle{--c:var(--idle)}
.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--space-3)}
.slug{font-family:var(--font-mono);font-weight:700;font-size:1.05rem;
  letter-spacing:.02em;text-transform:uppercase}
.provider{font-size:.78rem;color:var(--fg-muted);margin-top:1px}
.led{display:inline-flex;align-items:center;gap:.4rem;font-family:var(--font-mono);
  font-size:.64rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap}
.s-ok .led .lab{color:var(--ok)} .s-run .led .lab{color:var(--run)}
.s-warn .led .lab{color:var(--warn)} .s-bad .led .lab{color:var(--bad)}
.s-idle .led .lab{color:var(--fg-subtle)}
.specrow{display:flex;flex-wrap:wrap;gap:var(--space-1) var(--space-4);
  font-family:var(--font-mono);font-size:.72rem;color:var(--fg-muted)}
.specrow b{color:var(--fg);font-weight:500}
.kind{font-family:var(--font-mono);font-size:.58rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--accent);border:1px solid var(--border);
  padding:.05rem .4rem;border-radius:2px;background:var(--accent-soft)}
.runline{display:flex;align-items:center;gap:var(--space-4);font-family:var(--font-mono);
  font-size:.72rem;color:var(--fg-muted);padding-top:var(--space-1);
  border-top:1px dashed var(--border)}
.runline .big{color:var(--fg);font-weight:500}
.cov{display:flex;flex-direction:column;gap:4px}
.cov-track{display:flex;gap:2px;height:12px}
.seg{flex:1;background:var(--bg-subtle);border-radius:1px}
.seg.f{background:var(--accent)} .seg.f.done{background:var(--ok)}
.cov-meta{display:flex;justify-content:space-between;font-family:var(--font-mono);
  font-size:.66rem;color:var(--fg-subtle)}
.cov-meta b{color:var(--fg-muted)}
.vars{display:flex;flex-wrap:wrap;gap:4px}
.vchip{font-family:var(--font-mono);font-size:.62rem;color:var(--fg-muted);
  border:1px solid var(--border);border-radius:2px;padding:.08rem .34rem;background:var(--bg-subtle)}
.vchip.grp{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 40%,var(--border))}

/* ---- matrix table ---- */
.matrix{width:100%;border-collapse:collapse;font-family:var(--font-mono);
  font-size:.72rem;border:1px solid var(--border);background:var(--bg-elevated);
  border-radius:var(--radius);overflow:hidden}
.matrix th,.matrix td{border:1px solid var(--border);padding:.4rem .55rem;text-align:center}
.matrix thead th{font-size:.62rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--fg-subtle);background:var(--bg-subtle)}
.matrix tbody th{text-align:left;color:var(--fg);font-weight:500;white-space:nowrap}
.matrix tbody th small{color:var(--fg-subtle);font-weight:400;margin-left:.5rem}
.matrix tbody tr:hover td,.matrix tbody tr:hover th{background:var(--accent-soft)}
.matrix .y{display:inline-block;width:7px;height:7px;border-radius:50%;
  background:var(--ok);box-shadow:0 0 5px var(--ok)}
.matrix .n{color:var(--superseded)}

/* ---- activity feed ---- */
.feed{background:var(--bg-elevated);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.event{display:grid;grid-template-columns:auto auto 1fr auto;gap:var(--space-4);
  align-items:center;padding:.7rem var(--space-6);border-bottom:1px solid var(--border);font-size:.86rem}
.event:last-child{border-bottom:0}
.event:hover{background:var(--bg-subtle)}
.event .t{font-family:var(--font-mono);font-size:.74rem;color:var(--fg-subtle);white-space:nowrap}
.event .ev-dot{width:7px;height:7px;border-radius:50%;background:var(--c)}
.event.ok{--c:var(--ok)} .event.bad{--c:var(--bad)} .event.run{--c:var(--run)} .event.warn{--c:var(--warn)}
.event .what b{font-family:var(--font-mono);font-weight:700}
.event .what .err{color:var(--bad)}
.event .num{font-family:var(--font-mono);font-size:.74rem;color:var(--fg-muted);white-space:nowrap}

/* ---- detail two-column ---- */
.detail{display:grid;grid-template-columns:1.5fr 1fr;gap:var(--space-6);align-items:start}
@media(max-width:880px){.detail{grid-template-columns:1fr}}
.panel{background:var(--bg-elevated);border:1px solid var(--border);
  border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.panel h3{font-family:var(--font-mono);font-size:.66rem;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:var(--fg-subtle);padding:var(--space-4) var(--space-6) 0}
.kv{display:grid;grid-template-columns:auto 1fr;gap:.4rem var(--space-4);
  padding:var(--space-3) var(--space-6) var(--space-4);font-family:var(--font-mono);font-size:.8rem}
.kv dt{color:var(--fg-subtle)} .kv dd{color:var(--fg);text-align:right}

/* ---- per-model page (bs-sjnh.10) ---- */
/* The field-pick tab strip in the page head (was an inline <style> in
   the mockup).  `.10' renders it inert; bs-sjnh.13 wires it to the map. */
.field-pick{display:flex;gap:4px;flex-wrap:wrap}
.field-pick a{font-family:var(--font-mono);font-size:.7rem;text-decoration:none;
  color:var(--fg-muted);border:1px solid var(--border);border-radius:.4rem;
  padding:.3rem .55rem;cursor:default}
.field-pick a.on{color:var(--accent-fg);background:var(--accent);border-color:var(--accent)}
.field-pick a:hover:not(.on){color:var(--fg);border-color:var(--fg-subtle)}
/* The RIGHT column of `.detail' stacks the spec + latest-cycle panels. */
.weather-model__panels{display:flex;flex-direction:column;gap:var(--space-6)}
/* The loaded-field map lands in bs-sjnh.13; `.10' renders the `.mapwrap'
   poster shell with a centred caption so the LEFT column reads as an
   intentional preview, not a broken/empty map. */
.mapwrap--preview{aspect-ratio:16/9;display:grid;place-items:center}
.mapwrap__note{position:relative;z-index:3;text-align:center;
  font-family:var(--font-mono);font-size:.72rem;color:var(--fg-muted);
  background:color-mix(in srgb,var(--bg) 70%,transparent);backdrop-filter:blur(6px);
  border:1px solid var(--border);border-radius:.5rem;padding:.5rem .8rem}

/* ---- the MAP panel (CSS/SVG only — "loaded data on a map") ---- */
.mapwrap{position:relative;border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow);background:var(--sea)}
.mapwrap svg{display:block;width:100%;height:auto}
.map-sea{fill:var(--sea)} .map-land{fill:var(--land);stroke:var(--border);stroke-width:.5}
/* The energy heatmap blends onto the sea: `multiply' over the pale light
   --sea, `screen' over the near-black dark --sea.  Default is LIGHT
   (bare :root is the light token set in tokens.css), so the base rule is
   the light/multiply case and the DARK override mirrors tokens.css's own
   dark-application guards EXACTLY — explicit [data-theme="dark"] OR a
   dark OS that hasn't been forced light (bs-sjnh.5: the mockup assumed a
   dark-default :root, which tokens.css does not). */
.map-overlay{position:absolute;inset:0;mix-blend-mode:multiply;opacity:.85;
  pointer-events:none;
  background:
    radial-gradient(40% 32% at 22% 60%,var(--energy-400) 0,transparent 70%),
    radial-gradient(34% 26% at 30% 52%,var(--energy-200) 0,transparent 72%),
    radial-gradient(50% 40% at 48% 70%,var(--energy-120) 0,transparent 75%),
    radial-gradient(40% 34% at 70% 40%,var(--energy-80) 0,transparent 78%),
    radial-gradient(30% 24% at 84% 30%,var(--energy-40) 0,transparent 80%)}
:root[data-theme="dark"] .map-overlay{mix-blend-mode:screen;opacity:1}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .map-overlay{mix-blend-mode:screen;opacity:1}}
.map-bar{position:absolute;left:var(--space-4);bottom:var(--space-4);z-index:3;
  display:flex;align-items:center;gap:.5rem;font-family:var(--font-mono);font-size:.62rem;
  color:var(--fg);background:color-mix(in srgb,var(--bg) 70%,transparent);
  backdrop-filter:blur(6px);border:1px solid var(--border);border-radius:.4rem;padding:.3rem .55rem}
.ramp{display:inline-flex;height:8px;width:120px;border-radius:2px;overflow:hidden}
.ramp i{flex:1}
.ramp i:nth-child(1){background:var(--energy-20)}.ramp i:nth-child(2){background:var(--energy-40)}
.ramp i:nth-child(3){background:var(--energy-80)}.ramp i:nth-child(4){background:var(--energy-120)}
.ramp i:nth-child(5){background:var(--energy-200)}.ramp i:nth-child(6){background:var(--energy-400)}
.ramp i:nth-child(7){background:var(--energy-800)}
.map-tag{position:absolute;left:var(--space-4);top:var(--space-4);z-index:3;
  font-family:var(--font-mono);font-size:.68rem;color:var(--fg);
  background:color-mix(in srgb,var(--bg) 70%,transparent);backdrop-filter:blur(6px);
  border:1px solid var(--border);border-radius:.4rem;padding:.3rem .55rem}
.map-extent{position:absolute;z-index:2;border:1px dashed color-mix(in srgb,var(--accent) 60%,transparent);
  border-radius:3px}

/* ---- cycles table ---- */
.ctable{width:100%;border-collapse:collapse;font-family:var(--font-mono);font-size:.74rem;
  border:1px solid var(--border);background:var(--bg-elevated);border-radius:var(--radius);overflow:hidden}
.ctable th{font-size:.6rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--fg-subtle);background:var(--bg-subtle);padding:.55rem .7rem;text-align:left;
  border-bottom:1px solid var(--border)}
.ctable td{padding:.5rem .7rem;border-bottom:1px solid var(--border);color:var(--fg-muted)}
.ctable td.fg{color:var(--fg)} .ctable tr:last-child td{border-bottom:0}
.ctable tbody tr:hover td{background:var(--accent-soft)}
.ctable .num{text-align:right;font-variant-numeric:tabular-nums}
.ctable .err{color:var(--bad)}

/* ---- coverage heatstrip ---- */
.heatstrip{font-family:var(--font-mono);font-size:.6rem}
.hs-row{display:flex;align-items:center;gap:.5rem;margin:2px 0}
.hs-row .lbl{width:64px;color:var(--fg-subtle);text-align:right}
.hs-cells{display:flex;gap:1px}
.hs-cells i{width:9px;height:11px;background:var(--bg-subtle);border-radius:1px}
.hs-cells i.ok{background:var(--ok);opacity:.9} .hs-cells i.run{background:var(--run)}
.hs-cells i.miss{background:var(--bg-subtle)}

/* ---- timestep scrubber (map detail pages) ---- */
.scrub{display:flex;align-items:center;gap:var(--space-4);flex-wrap:wrap;
  background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:var(--space-3) var(--space-4);margin-top:var(--space-4)}
.scrub__eyebrow{font-family:var(--font-mono);font-size:.6rem;
  color:var(--fg-subtle);letter-spacing:.14em}
.scrub .run-pick{display:flex;gap:2px}
.scrub .run-pick a{font-family:var(--font-mono);font-size:.7rem;text-decoration:none;
  color:var(--fg-muted);border:1px solid var(--border);border-radius:.35rem;padding:.25rem .5rem}
.scrub .run-pick a.on{color:var(--accent-fg);background:var(--accent);border-color:var(--accent)}
.scrub .stepbtn{font-family:var(--font-mono);font-size:.9rem;line-height:1;cursor:pointer;
  color:var(--fg-muted);background:transparent;border:1px solid var(--border);border-radius:.35rem;
  padding:.3rem .55rem}
.scrub .stepbtn:hover{color:var(--fg);border-color:var(--fg-subtle)}
.scrub .track{flex:1;min-width:220px;position:relative;height:30px;display:flex;align-items:center}
.scrub input[type=range]{width:100%;accent-color:var(--accent);cursor:pointer}
.scrub .ticks{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:space-between;
  font-family:var(--font-mono);font-size:.56rem;color:var(--fg-subtle);pointer-events:none}
.scrub .valid{font-family:var(--font-mono);font-size:.74rem;color:var(--fg);white-space:nowrap}
.scrub .valid b{color:var(--accent)}
.scrub .play{font-family:var(--font-mono);font-size:.66rem;cursor:pointer;color:var(--fg-muted);
  background:transparent;border:1px solid var(--border);border-radius:.35rem;padding:.3rem .55rem}
.scrub .play:hover{color:var(--fg);border-color:var(--fg-subtle)}

/* ---- the real map element (MapLibre mounts here; poster shows if no GL) ---- */
.mapwrap.live{aspect-ratio:16/9}
.maplibre{position:absolute;inset:0}
.map-poster{position:absolute;inset:0;background:var(--sea);z-index:0}
.map-poster .map-overlay{opacity:.9}
.maplibregl-ctrl-attrib{font-size:9px !important}

/* ---- variable cards (spaced; /weather/variables) ---- */
.vargrid{display:grid;gap:var(--space-3);
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.vcard{position:relative;background:var(--bg-elevated);border:1px solid var(--border);
  border-radius:var(--radius);box-shadow:var(--shadow);padding:var(--space-4);
  text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:.5rem;
  transition:border-color .15s,transform .15s}
.vcard:hover{border-color:var(--fg-subtle);transform:translateY(-2px)}
.vcard .vc-head{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem}
.vcard .vc-name{font-family:var(--font-mono);font-weight:700;font-size:1.05rem}
.vcard .vc-code{font-family:var(--font-mono);font-size:.62rem;color:var(--accent);
  letter-spacing:.1em;text-transform:uppercase}
.vcard .vc-desc{font-size:.8rem;color:var(--fg-muted);min-height:2.4em}
.vcard .vc-foot{display:flex;align-items:center;justify-content:space-between;
  font-family:var(--font-mono);font-size:.66rem;color:var(--fg-subtle);
  border-top:1px dashed var(--border);padding-top:.5rem}
.vcard .vc-srcs{display:flex;gap:3px}
.vcard .vc-srcs i{width:7px;height:7px;border-radius:50%;background:var(--ok)}
.vcard .vc-srcs i.off{background:var(--superseded)}
.vcard .vc-grp{font-size:.58rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--fg-subtle);border:1px solid var(--border);border-radius:2px;padding:.05rem .35rem}

/* ---- SPOT cards (/spots and /spots/search) ---- */

.spots-grid{display:grid;gap:var(--space-4);
  grid-template-columns:repeat(auto-fill,minmax(290px,1fr))}
.spot{position:relative;background:var(--bg-elevated);border:1px solid var(--border);
  border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;text-decoration:none;color:inherit;
  display:flex;flex-direction:column;transition:border-color .15s,transform .15s}
.spot:hover{border-color:var(--fg-subtle);transform:translateY(-2px)}
.spot-map{height:96px;position:relative;background:var(--sea);overflow:hidden}
.spot-map .map-overlay{opacity:.85}
.spot-map svg{width:100%;height:100%;display:block}
.spot-body{padding:var(--space-4) var(--space-4) var(--space-3);display:flex;flex-direction:column;gap:.5rem}
.spot-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem}
.spot-name{font-family:var(--font-display);font-weight:560;font-size:1.15rem;line-height:1.1}
.spot-region{font-size:.74rem;color:var(--fg-muted);margin-top:1px}
.stars{display:inline-flex;gap:1px;font-size:.8rem;color:var(--rating-off);white-space:nowrap}
.stars b{color:var(--rating-on);font-weight:400}
.stars i{color:var(--rating-faded);font-style:normal}
.spot-now{display:flex;align-items:center;gap:var(--space-3);font-family:var(--font-mono);font-size:.82rem}
.spot-now .hs{font-weight:700;font-size:1.1rem}
.spot-now .met{color:var(--fg-muted);font-size:.74rem}
.windchip{font-family:var(--font-mono);font-size:.62rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;padding:.12rem .45rem;border-radius:1rem;margin-left:auto}
.w-offshore{background:var(--wind-offshore-bg);color:var(--wind-offshore-fg)}
.w-cross{background:var(--wind-cross-bg);color:var(--wind-cross-fg)}
.w-onshore{background:var(--wind-onshore-bg);color:var(--wind-onshore-fg)}
.w-glassy{background:var(--wind-glassy-bg);color:var(--wind-glassy-fg)}
/* 7-day energy strip */
.estrip{display:flex;gap:2px;height:18px;margin-top:.2rem}
.estrip i{flex:1;border-radius:1px;background:var(--energy-20)}
.estrip i[data-e="40"]{background:var(--energy-40)}.estrip i[data-e="80"]{background:var(--energy-80)}
.estrip i[data-e="120"]{background:var(--energy-120)}.estrip i[data-e="200"]{background:var(--energy-200)}
.estrip i[data-e="400"]{background:var(--energy-400)}
.spot-days{display:flex;justify-content:space-between;font-family:var(--font-mono);
  font-size:.56rem;color:var(--fg-subtle);margin-top:2px}

/* ---- live search ---- */
.searchbar{position:relative;margin-bottom:var(--space-6)}
.searchbar input{width:100%;font-family:var(--font-sans);font-size:1.1rem;color:var(--fg);
  background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius);
  padding:var(--space-4) var(--space-4) var(--space-4) 3rem;box-shadow:var(--shadow)}
.searchbar input:focus{outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-soft)}
.searchbar .ico{position:absolute;left:var(--space-4);top:50%;transform:translateY(-50%);
  color:var(--fg-subtle);font-size:1.1rem}
.searchbar .hint{position:absolute;right:var(--space-4);top:50%;transform:translateY(-50%);
  font-family:var(--font-mono);font-size:.7rem;color:var(--fg-subtle)}
.search-meta{font-family:var(--font-mono);font-size:.72rem;color:var(--fg-subtle);
  margin-bottom:var(--space-3);letter-spacing:.03em}
.search-meta b{color:var(--accent)}
.spot.hidden{display:none}
/* /spots/search match highlight + empty-state (bs-sjnh.4). */
mark{background:var(--accent-soft);color:var(--accent);border-radius:2px;padding:0 1px}
.search-empty{color:var(--fg-muted);font-family:var(--font-mono);font-size:.85rem;
  padding:var(--space-8);text-align:center;border:1px dashed var(--border);
  border-radius:var(--radius)}



/* ==================================================================
   Weather console styles — folded from conductor.css, renamed
   .conductor-* -> .weather-* (bs-sjnh.5).  ========================== */

/* The weather status console (formerly the "Ground Station" instrument
   panel, bs-gyw.2; renamed bs-sjnh.5).  Loaded via render-page :styles
   on the /weather pages.  Status colour comes only from the --st-*
   tokens (tokens.css, all three theme blocks); WAITING is deliberately
   uncoloured and never glows.  Both light and dark inherit from the
   tokens; no theme-forked rule here changes fg toward bg. */

.weather-page {
    max-width: 78rem;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4) var(--space-12);
    font-family: var(--font-sans);
    color: var(--fg);
}

.weather-page__band,
.weather-page__cards,
.weather-page__matrix,
.weather-page__strip,
.weather-page__ledger,
.weather-page__sources,
.weather-page__vars,
.weather-page__coverage,
.weather-page__rasters,
.weather-page__log,
.weather-page__actions {
    margin-bottom: var(--space-6);
}

/* /weather status page (bs-sjnh.8): the verdict ▸ metrics ▸ pipeline ▸
   freshness ▸ activity sections render directly inside the
   #bs-weather-live morph region (not in .weather-page__* wrappers), so
   give them the same vertical rhythm.  The .seclabel margins (space-8 0
   space-3) handle the gaps around the section headers; these collapse
   with the section margin-bottom, so no doubled gap. */
.weather-page--status .verdict,
.weather-page--status .metrics,
.weather-page--status .flow,
.weather-page--status .rows,
.weather-page--status .feed {
    margin-bottom: var(--space-6);
}

/* ---- Status colour resolver -------------------------------------- */
/* One variable, --st, set per state; every component reads it so the
   palette stays in one place.  WAITING resolves to --st-waiting
   (fg-subtle) and the glow rules below explicitly skip it. */
.st-current    { --st: var(--st-current); }
.st-degraded   { --st: var(--st-degraded); }
.st-atrisk     { --st: var(--st-atrisk); }
.st-nottrust   { --st: var(--st-nottrust); }
.st-running    { --st: var(--st-running); }
.st-waiting    { --st: var(--st-waiting); }
.st-superseded { --st: var(--st-superseded); }
/* NOT-CARRIED (bs-xvv.17): a capability fact, not a freshness state —
   muted so it reads as n/a, never an alarm. */
.st-na         { --st: var(--fg-subtle); }

/* ---- Verdict band — the wedge ------------------------------------ */
.weather-band {
    position: relative;
    border: 1px solid var(--border);
    border-left: 4px solid var(--st, var(--border));
    border-radius: var(--radius-md);
    background:
        color-mix(in srgb, var(--st, transparent) 7%, var(--bg-elevated));
    padding: var(--space-4) var(--space-6);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--st, transparent) 22%,
                                    transparent);
}
.weather-band--unknown {
    --st: var(--fg-subtle);
    box-shadow: none;
}
.weather-band__head {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.weather-band__glyph { color: var(--st); font-size: var(--text-xl); }
.weather-band__state {
    font-family: var(--font-mono);
    /* The verdict word is the console's primary alarm and THE
       headline of the band — render it as WCAG large-scale text
       (>= 24px) so the energy-ramp status colour clears AA at the
       3:1 large-text threshold in both themes (it is a fill/LED
       hue, tuned <4.5:1 against page bg as 16px body text). */
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--st);
}
.weather-band__headline { color: var(--fg-muted); }
.weather-band__ensemble {
    margin-top: var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    display: flex;
    gap: var(--space-2);
    align-items: baseline;
}
.weather-band__ens-label {
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--fg-subtle);
}
.weather-band__ensemble--fresh   { color: var(--st-current); }
.weather-band__ensemble--stale   { color: var(--st-degraded); }
.weather-band__ensemble--missing { color: var(--st-nottrust); }
.weather-band__cta { margin-top: var(--space-4); }

/* ---- Action controls (live from bs-gyw.3) ------------------------ */
.weather-btn {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    color: var(--fg);
    cursor: pointer;
}
.weather-btn:hover { border-color: var(--accent); }
.weather-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
/* Supersede is a destructive state bump — visually distinct. */
.weather-btn--warn { border-color: var(--st-atrisk); }
.weather-btn--warn:hover { border-color: var(--st-nottrust); }
/* The `:open' CTA is a plain read-only deep-link, not a mutation. */
.weather-btn--link { text-decoration: none; }
.weather-btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}
.weather-btn--disabled:hover { border-color: var(--border); }

/* In-place action feedback — handlers never navigate away. */
.weather-band__status,
.weather-actions__status {
    margin-top: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--fg-muted);
    min-height: 1.2em;
}
.weather-band__status:empty,
.weather-actions__status:empty { display: none; }

/* ---- Source LED cards -------------------------------------------- */
.weather-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-3);
}
@media (max-width: 60rem) {
    .weather-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 36rem) {
    .weather-cards { grid-template-columns: repeat(2, 1fr); }
}
.weather-card {
    position: relative;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    overflow: hidden;
    animation: weather-card-in 0.32s ease both;
}
/* Corner-bracket frame — the Ground-Station texture. */
.weather-card::before,
.weather-card::after {
    content: "";
    position: absolute;
    width: 9px; height: 9px;
    border-color: color-mix(in srgb, var(--st, var(--border)) 60%,
                            var(--border));
    border-style: solid;
}
.weather-card::before {
    top: 4px; left: 4px;
    border-width: 1px 0 0 1px;
}
.weather-card::after {
    bottom: 4px; right: 4px;
    border-width: 0 1px 1px 0;
}
.weather-card:nth-child(1) { animation-delay: 0.00s; }
.weather-card:nth-child(2) { animation-delay: 0.04s; }
.weather-card:nth-child(3) { animation-delay: 0.08s; }
.weather-card:nth-child(4) { animation-delay: 0.12s; }
.weather-card:nth-child(5) { animation-delay: 0.16s; }
.weather-card:nth-child(6) { animation-delay: 0.20s; }
@keyframes weather-card-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}
.weather-card__slug {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: var(--text-sm);
}
.weather-card__tier {
    font-size: var(--text-xs);
    color: var(--fg-subtle);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.weather-card__led {
    color: var(--st);
    font-size: var(--text-lg);
}
.weather-card__line {
    font-size: var(--text-xs);
    color: var(--fg-muted);
    font-family: var(--font-mono);
}

/* ---- Dataset matrix — the hero ----------------------------------- */
.weather-matrix__title,
.weather-ledger__title,
.weather-rasters__title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    color: var(--fg-subtle);
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}
.weather-matrix-wrap { overflow: auto; }
.weather-matrix {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}
.weather-matrix th,
.weather-matrix td {
    border: 1px solid var(--border);
    padding: 2px 6px;
    text-align: left;
    white-space: nowrap;
}
.weather-matrix thead th {
    position: sticky;
    top: 0;
    background: var(--bg-subtle);
    z-index: 2;
}
.weather-matrix__rowhead,
.weather-matrix__corner {
    position: sticky;
    left: 0;
    background: var(--bg-subtle);
    z-index: 1;
}
.weather-matrix__corner { z-index: 3; }
.weather-cell {
    background:
        color-mix(in srgb, var(--st, transparent) 10%, var(--bg-elevated));
}
.weather-cell__link {
    display: flex;
    gap: 4px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}
.weather-cell__led { color: var(--st); }
.weather-cell__n { color: var(--fg); }
.weather-cell__age { color: var(--fg-subtle); margin-left: auto; }
.weather-cell__bar {
    flex: 1;
    height: 3px;
    min-width: 18px;
    background: var(--bg-subtle);
    background-image:
        linear-gradient(to right,
            var(--st) calc(var(--fill, 0) * 100%),
            transparent calc(var(--fill, 0) * 100%));
}
/* WAITING cell is calm/greyed — explicitly no glow, no colour push. */
.weather-cell.st-waiting {
    background: var(--bg-elevated);
    color: var(--fg-subtle);
}
/* NOT-CARRIED cell (bs-xvv.17): this source does not publish this field,
   so the cell is n/a — deliberately distinct from the calm WAITING lamp
   (a source that COULD ingest but hasn't) and from a failing cell.  A faint
   diagonal hatch + the "n/a" text read as "not applicable" without colour
   (a11y), and there is no micro-bar to imply a got-vs-asked fraction. */
.weather-cell.st-na {
    color: var(--fg-subtle);
    background:
        repeating-linear-gradient(
            -45deg,
            var(--bg-subtle),
            var(--bg-subtle) 4px,
            var(--bg-elevated) 4px,
            var(--bg-elevated) 8px);
}
a.weather-cell__link:hover { text-decoration: underline; }

/* ---- Status strip ------------------------------------------------ */
.weather-strip {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-muted);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
}
.weather-strip__line { white-space: nowrap; }

/* Telemetry chip: the POLLER's own liveness proof.  It is updated by
   the poller every tick; if the poller dies it FREEZES while the
   app.js header clock keeps ticking beside it (a silent-poller tell).
   --stale ambers it for one tick after a long inter-tick gap. */
.weather-telemetry {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--st-current);
    white-space: nowrap;
    letter-spacing: 0.04em;
}
.weather-telemetry--stale {
    color: var(--st-degraded);
}
@media (prefers-reduced-motion: reduce) {
    .weather-telemetry { letter-spacing: normal; }
}

/* ---- Button-less ledger ------------------------------------------ */
.weather-row {
    display: flex;
    gap: var(--space-3);
    align-items: baseline;
    padding: var(--space-2) var(--space-3);
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}
.weather-row--pinned {
    border-left-color: var(--st-nottrust);
    background:
        color-mix(in srgb, var(--st-nottrust) 6%, transparent);
}
.weather-row__led { color: var(--st); }
.weather-row__slug { font-weight: 600; min-width: 9rem; }
.weather-row__run { color: var(--fg-muted); }
.weather-row__state { color: var(--fg-subtle); }
.weather-row__badge {
    font-size: var(--text-xs);
    color: var(--st-degraded);
    border: 1px solid var(--st-degraded);
    border-radius: var(--radius-sm);
    padding: 0 4px;
}
.weather-row__meta { color: var(--fg-subtle); margin-left: auto; }
.weather-row__error {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--st-nottrust);
    padding: 2px var(--space-3) var(--space-2) var(--space-8);
    border-left: 3px solid var(--st-nottrust);
}
.weather-ledger__superseded summary {
    cursor: pointer;
    color: var(--fg-subtle);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
}

/* ---- /models static reference ------------------------------------ */
.weather-page__note {
    font-size: var(--text-sm);
    color: var(--fg-subtle);
    margin-bottom: var(--space-4);
}
.weather-ref-table {
    border-collapse: collapse;
    width: 100%;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}
.weather-ref-table th,
.weather-ref-table td {
    border: 1px solid var(--border);
    padding: var(--space-2) var(--space-3);
    text-align: left;
}
.weather-ref-table thead th {
    background: var(--bg-subtle);
    color: var(--fg-subtle);
}
.weather-ref-table__yes { color: var(--st-current); text-align: center; }
.weather-ref-table__no { color: var(--fg-subtle); text-align: center; }

/* ---- Cycle inspector --------------------------------------------- */
.weather-cyclehead__title {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}
.weather-coverage__ok { color: var(--st-current); }
.weather-coverage__head { color: var(--st-nottrust); font-weight: 600; }
.weather-coverage__list,
.weather-rasters__list {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    columns: 3;
    color: var(--fg-muted);
}
/* ---- Coverage heatstrip (bs-gyw.9) — opt-in dense companion ------
   The deviation list stays the headline; this is a collapsed
   <details>.  Glyph shape (▓ vs ░) carries presence — colour is only
   a redundant tint, so it reads under prefers-reduced / colour-blind
   and never manufactures the false confidence that got it cut. */
.weather-heatstrip {
    margin-top: var(--space-4);
    border-top: 1px solid var(--border-subtle, var(--fg-subtle));
    padding-top: var(--space-3);
}
.weather-heatstrip__summary {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-muted);
    cursor: pointer;
}
.weather-heatstrip__axis {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-subtle);
    margin: var(--space-2) 0;
}
.weather-heatstrip__rows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-x: auto;
}
.weather-heatstrip__row {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    white-space: nowrap;
}
.weather-heatstrip__label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-muted);
    flex: 0 0 6.5em;
    text-align: right;
}
.weather-heatstrip__strip {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 1;
    letter-spacing: 0;
    color: var(--st-current);
}
.weather-heatstrip__count {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-subtle);
}
.weather-log__err {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--st-nottrust);
    white-space: pre-wrap;
}
.weather-log__ok { color: var(--fg-subtle); }
.weather-actions { display: flex; gap: var(--space-3); align-items: center; }
.weather-actions__back { color: var(--accent); }

/* ---- Header --weather modifier (reuses .bs-header) ------------- */
.bs-header--weather .bs-header__brand {
    font-family: var(--font-mono);
    letter-spacing: 0.14em;
    font-weight: 640;
}
.bs-header__eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    color: var(--fg-subtle);
    margin-left: var(--space-2);
}
.bs-header__clock {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--fg-muted);
    margin-left: auto;
}
/* `--accent-strong' (not `--accent') so the active nav label clears WCAG AA
   as text in BOTH themes: the bright sodium amber is only 2.5:1 on the light
   warm-sand header (bs-a38).  The font-weight:600 keeps the active state
   distinguishable by more than colour alone (WCAG 1.4.1). */
.bs-header__link--active { color: var(--accent-strong); font-weight: 600; }

/* ---- Accessibility ----------------------------------------------- */
.weather-page :focus-visible,
.bs-header--weather :focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
    border-radius: var(--radius-sm);
}
@media (prefers-reduced-motion: reduce) {
    .weather-card {
        animation: none;
    }
    /* A failed lamp must still read as the highest-contrast,
       statically-lit element (no reliance on motion). */
    .weather-band.st-nottrust { box-shadow: 0 0 0 2px var(--st-nottrust); }
}
