:root{
    /* Type, spacing and radius scales. Everything that is *text* picks a step from here rather than
       inventing a size; the page had drifted to 23 distinct font-sizes, which is most of why it read
       as assembled rather than designed. Chart and station-plot internals are deliberately NOT on
       this scale — those pixel values are tuned to SVG geometry, not to the text system. */
    /* The bottom two steps used to be 11px and 10px. This page gets read one-handed on a phone in
       daylight, often standing outside deciding whether to go out in the weather it describes, and
       11px of grey metadata is not a size that survives that. The floor is now 12px for anything
       phrased as information; --fs-2xs is reserved for the uppercase tracked micro-labels (WARNING,
       COUNTIES, WHAT), where all-caps buys back the x-height the point size gives up. */
    --fs-display:clamp(56px,7.2vw,76px);--fs-hero:46px;
    --fs-xl:20px;--fs-lead:18px;--fs-section:16px;--fs-lg:15px;--fs-card-title:14px;
    --fs-md:13px;--fs-sm:12px;--fs-xs:12px;--fs-2xs:11px;
    --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;
    --r-sm:8px;--r-md:12px;--r-lg:16px;--r-pill:999px;
    --ls-eyebrow:.08em;
    --bg:#0a0e14;--panel:#131924;--panel-2:#1a2231;--border:#243044;
    /* --muted was #8a97a8 and --accent #4aa3ff. Both cleared 4.5:1 on the page and on a card, and
       both missed on the lightest surface the page actually builds: a --chip pill sitting on an
       --inset row inside a card. That stack lands around rgb(63,63,69), and it is where the
       Radar/Satellite tab label and the alert card's "2 zone groups" live. Both are set from the
       worst case, not the flattering one. */
    --text:#e6edf5;--muted:#a7b4c6;--accent:#6bb4ff;--good:#3ecf8e;--h24night:rgba(120,140,255,.08);
    --warn:#ffb020;--sev:#ff7a2f;--danger:#ff4d4d;
    --ex-green:#3ecf8e;--ex-yellow:#ffd23f;--ex-uv-yellow:#e0b93a;--ex-orange:#ff9f2f;
    --ex-red-orange:#ff6a2f;--ex-purple:#d58aff;--ex-red:#ff6b6b;
    --shadow:0 6px 24px rgba(0,0,0,.4);
    --inset:rgba(255,255,255,.03);--chip:rgba(255,255,255,.12);--glow:rgba(74,163,255,.08);
    --glass1:rgba(19,25,36,.62);--glass2:rgba(26,34,49,.54);--gline:rgba(255,255,255,.09);--gspec:rgba(255,255,255,.11);
    --reading-top:#151c28;--reading-bottom:#17202d;
    --secondary-shadow:0 3px 14px rgba(0,0,0,.22);
    /* Logo mark — dark variant: deeper tile, quieter rings so the bolt carries the contrast */
    --logo-bg1:#1b3f70;--logo-bg2:#122b4e;--logo-ring:#7fb6ff;--logo-bolt:#ffcf3d;
  }
  /* Light palette — data-theme always holds the RESOLVED theme ("light"/"dark"); the "auto"
     preference lives only in localStorage and is resolved by JS (boot script + OS-change listener) */
  :root[data-theme="light"]{
    /* Panels must read as objects sitting ON the page. At .60 alpha over a near-white --bg the
       glass cards washed out to within a few percent of the background and the page lost all
       structure, so light mode runs opaque-ish glass with a real (dark, not white) hairline. */
    --bg:#e4e9f2;--panel:#ffffff;--panel-2:#f6f8fc;--border:#ccd6e6;
    /* These four were picked to read as the dark theme's colours translated to a white page, and
       as fills they do. As TEXT at 11-13px they were landing at 3.3-4.1:1 — a white background is
       far less forgiving of a saturated mid-tone than a near-black one, so the same nominal colour
       needs to be materially darker here. Each is the original hue and saturation with lightness
       walked down until the worst surface it lands on (plain white) clears 4.5:1.
       --accent moved least: it cleared on white and on the page, and only missed (4.4:1) as the
       selected Radar/Satellite tab, which stacks a --chip over an --inset over the glass and is the
       darkest surface any light-theme text sits on. */
    --text:#101725;--muted:#4f5a6e;--accent:#1153b4;--good:#0f6e4b;--h24night:rgba(40,70,160,.07);
    --warn:#88560f;--sev:#a83e13;--danger:#bd1f1f;
    --ex-green:#1c5d40;--ex-yellow:#735f1c;--ex-uv-yellow:#65531a;--ex-orange:#734815;
    --ex-red-orange:#733015;--ex-purple:#571b73;--ex-red:#731b1b;
    --shadow:0 6px 20px rgba(20,32,58,.10),0 1px 3px rgba(20,32,58,.06);
    --inset:rgba(16,23,37,.045);--chip:rgba(16,23,37,.075);--glow:rgba(30,99,201,.10);
    --glass1:rgba(255,255,255,.88);--glass2:rgba(247,250,254,.82);--gline:rgba(16,23,37,.10);--gspec:rgba(255,255,255,.95);
    --reading-top:#ffffff;--reading-bottom:#f8faff;
    --secondary-shadow:0 3px 12px rgba(20,32,58,.07);
    /* Logo mark — brighter tile for light backgrounds; the bolt gold is shared across both */
    --logo-bg1:#2f7ae0;--logo-bg2:#1e63c9;--logo-ring:#dbeeff;--logo-bolt:#ffcf3d;
  }
  /* Logo mark colours follow the --logo-* theme vars above. The bolt is a FILL and nothing else:
     it used to carry a darker gold stroke around a saturated gold fill, which is the single most
     reliable way to make a mark read as clip art. */
  .logo svg .lg-bg1{stop-color:var(--logo-bg1)}
  .logo svg .lg-bg2{stop-color:var(--logo-bg2)}
  .logo svg .lg-sweep-stop{stop-color:var(--logo-ring)}
  .logo svg .lg-rings{stroke:var(--logo-ring)}
  .logo svg .lg-bolt{fill:var(--logo-bolt)}
  *{box-sizing:border-box}
  html,body{margin:0;padding:0}
  body{
    background:radial-gradient(1200px 600px at 80% -10%, var(--glow), transparent),var(--bg);
    color:var(--text);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
    padding-top:max(18px, env(safe-area-inset-top, 0px));
    padding-right:calc(18px + env(safe-area-inset-right, 0px));
    padding-bottom:calc(18px + env(safe-area-inset-bottom, 0px));
    padding-left:calc(18px + env(safe-area-inset-left, 0px));
    min-height:100vh;transition:background .4s;
  }
  /* ===== Page shell: the one decision the desktop layout never made =====
     Every breakpoint in this file is a max-width. The page was drawn for a phone and each rule
     narrows it further from there, which left desktop as the DEFAULT branch — not a design, just
     what is left over when no phone rule matches, growing without limit. Measured at 2560: the grid
     ran 2524px wide, the search box 2256px, and the jump bar spent 84% of its length on empty pill.
     The shell cap is not a desktop-only rule and adds no breakpoint: it is arithmetically inert at
     phone widths, where the column is already narrower than the ceiling, so the value never
     applies. One layout still, no second set of rules to keep in sync, and the tablet range picks
     up the same benefit on its way past. The page simply stops growing.
     #wxbg is deliberately not in this list: it is position:fixed background weather and belongs to
     the viewport, not to the column. */
  :root{--maxw:1400px}   /* ≈ the 1440 viewport the hero pair and the 3-column masonry were tuned against */
  header,main,footer{max-width:var(--maxw);margin-inline:auto}

  a{color:var(--accent);text-decoration:none}
  a:hover{text-decoration:underline}

  /* ===== Codes, explained =====
     KSUS, AFD, QPF, ASOS and the rest stay — the people this page is built for read them faster
     than the words — but they stop being the only thing said. The dotted rule is doing the real
     work: a title nobody can see is a secret, and this is the one convention a reader already
     knows means "there is a definition under here".
     It cannot help on a phone, where there is no hover, so nothing load-bearing is ever left to
     it: every annotated code sits beside text that already says what the card is showing. */
  abbr[title],.has-hint{text-decoration:underline dotted;text-underline-offset:3px;
    text-decoration-thickness:1px;
    text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);cursor:help}
  a[title]{cursor:help}
  /* The station tooltip names the site under its code — "SAR 75°" is a serial number until it is
     Sparta Community-Hunter Field. */
  .leaflet-tooltip.stn-tip .stn-nm{display:block;font-weight:400;color:var(--muted);
    font-size:11px;margin-top:2px;line-height:1.35}
  .leaflet-tooltip.stn-tip .stn-rd{display:block;margin-top:4px}
  /* ...and says WHEN, because "latest" is a promise the API doesn't keep — a wedged ASOS serves
     its last report for hours. This line is what qualifies every number above it. */
  .leaflet-tooltip.stn-tip .stn-when{display:block;font-weight:400;color:var(--muted);
    font-size:11px;margin-top:4px}

  /* ===== Temperature as text =====
     The ramp's HUE is the data; its lightness is only how the data is made readable, and the two
     themes need opposite answers to that. So the markup writes --th (see tvAttr in the script) and
     the lightness comes from here. 72% / 30% are the extremes of what still clears 4.5:1 on every
     surface these numbers land on — including a --chip pill, which is darker than the card and was
     where the old flat 52% failed hardest. Saturation drops from the graphic ramp's 78% because at
     the lightness AA demands, 78% pushes the yellow-green middle of the ramp somewhere no
     temperature should be. */
  :root{--t-s:80%;--t-l:73%}
  :root[data-theme="light"]{--t-s:70%;--t-l:22%}
  /* --tk is the ramp's saturation factor (1 everywhere except the grey 54–57°F hand-off). */
  .tv{color:hsl(var(--th),calc(var(--t-s) * var(--tk,1)),var(--t-l))}
  text.tv{fill:hsl(var(--th),calc(var(--t-s) * var(--tk,1)),var(--t-l))}

  /* ===== Icons =====
     One sprite, drawn as strokes, sized in em and inheriting currentColor. The em sizing is the
     load-bearing part: an icon is a character in its label's line, so a heat mark inside a warning
     comes out at the warning's size AND in the warning's colour with nothing per-site to maintain.
     That is the thing emoji could never do — they carry their own palette and their own metrics. */
  .ic{width:1em;height:1em;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.75;
    stroke-linecap:round;stroke-linejoin:round;vertical-align:-.125em}
  .ic-lg{width:1.35em;height:1.35em}
  .ic-fill{fill:currentColor;stroke:none}
  #sprite{display:none}

  /* ===== Pills =====
     One shape for every chip, tag and small control on the page. Nineteen classes used to define
     this from scratch and drifted to radii between 8px and 22px, six paddings and four gaps — chips
     that sit side by side in the same card did not agree on their own geometry. Each class below
     still exists (JS builds them by name, and restored snapshots carry those names), but now it
     only declares what genuinely differs: colour, weight, size. */
  .a2-chip,.a2-more,.a2-radar,.a2-me,.a2-where,.h24-pill,.hz-chip,
  .dr-pill,.cpc-pill,.rfcat,.qpfchip,.rs-full,.stn-tools button,.dr-none{
    display:inline-flex;align-items:center;gap:6px;border-radius:var(--r-pill);
    font-family:inherit;line-height:1.35;text-align:left}
  /* The uppercase micro-label variant — a tag, not a chip. Shorter radius so it reads as a stamp.
     Reserved for words that ARE labels (WARNING, MAJOR); anything phrased as a sentence stays
     sentence case, because setting a sentence in tracked caps is shouting it. */
  .rfcat{font-size:var(--fs-2xs);font-weight:800;text-transform:uppercase;
    letter-spacing:var(--ls-eyebrow);border-radius:var(--r-sm);padding:3px 8px}
  /* Members that are real controls keep a touch target; the rest are inert labels. */
  .a2-more,.a2-radar,.rs-full,.stn-tools button{cursor:pointer;min-height:0}

  /* ===== Touch targets =====
     The base rule above gives every <button> a 44px min-height, and the line before this one takes
     it away again from the members that are deliberately small OBJECTS — a dashed "+34 more" among
     24px county chips, the Radar/Satellite tabs inside a card heading, the ↗ links in those
     headings. Growing those to 44px would not make them easier to hit so much as make them
     something else, and the heading they sit in would grow with them.
     So the hit area grows and the drawing doesn't: a centred pseudo-element with a 44px floor.
     Pointer-events are inherited, so it counts as part of its own control for hit-testing while
     being invisible to everything else. Where it overhangs, it overhangs county chips and heading
     text — inert things with no target of their own to lose. */
  .card h2 a,.rs-tab,.rs-full,.a2-more,.a2-radar{position:relative}
  .card h2 a::after,.rs-tab::after,.rs-full::after,.a2-more::after,.a2-radar::after{
    content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
    width:100%;height:100%;min-width:44px;min-height:44px}
  /* Everything else that sets an icon beside a word. An .ic is 1em with no margin of its own, so
     the gap has to come from the container — which is also what keeps the two vertically centred. */
  #geoBtn,#themeBtn,#radarPlay,.maplock-toggle,.locbar .locNow,.day .dp,.spc-row .rh,.cx .cxi{
    display:inline-flex;align-items:center;gap:6px;justify-content:center}
  /* Icon-only buttons: the base padding plus a 1em glyph lands at 43px wide — a pixel short of the
     target, and only in the one dimension nobody thinks to check. */
  #geoBtn,#themeBtn{min-width:44px}
  .day .dp,.locbar .locNow{gap:4px}

  /* ===== Skip link =====
     Off-screen rather than display:none, because a hidden element cannot be focused and this one
     exists only to be reached by Tab. It styles itself as a control, not as a link on the page's
     accent: white on --accent is 2.6:1 and this is the first thing a keyboard user ever sees. */
  .skip{position:fixed;left:50%;top:-140px;transform:translateX(-50%);z-index:100;
    display:inline-flex;align-items:center;min-height:44px;
    padding:12px 22px;border-radius:0 0 var(--r-md) var(--r-md);
    background:var(--panel-2);color:var(--text);border:2px solid var(--accent);border-top:0;
    font-size:var(--fs-md);font-weight:700;text-decoration:none;box-shadow:var(--shadow)}
  .skip:focus{top:0;text-decoration:none}
  #main:focus{outline:none}   /* the jump itself is the feedback; a ring round the whole page isn't */

  /* ===== Jump nav =====
     A scroll-snapping pill row, not a menu: on a phone it holds six labels in one swipeable line
     rather than wrapping to two and costing another 40px of a viewport that is already carrying
     the page it navigates. --jump-h is the number the cards' scroll-margin is written against, so
     the bar's height and the landing offset can never drift apart. */
  :root{--jump-h:102px}   /* selected place + 44px section links */
  .jump-wrap{position:sticky;top:0;z-index:40;margin:0 0 16px}
  .jump{display:flex;gap:4px;padding:4px;
    overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;
    background:linear-gradient(180deg,var(--panel),var(--panel-2));
    border:1px solid var(--border);border-radius:var(--r-pill);box-shadow:var(--shadow)}
  .jump::-webkit-scrollbar{display:none}
  .jump a{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:0 15px;
    border-radius:var(--r-pill);font-size:var(--fs-sm);font-weight:700;color:var(--muted);
    white-space:nowrap;text-decoration:none}
  .jump a:hover,.jump a:focus-visible{color:var(--text);background:var(--chip);text-decoration:none}
  .jump a:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
  /* Keep scrolling discoverable without fading a link's text. The buttons overlay only the edge
     whose remaining links are offscreen, and disappear once that edge has been reached. */
  .jump-step{display:none;position:absolute;top:53px;bottom:5px;min-width:44px;min-height:44px;
    align-items:center;border:0;color:var(--text);font-family:inherit;font-size:24px;font-weight:600;
    line-height:1;cursor:pointer}
  .jump-prev{left:1px;justify-content:flex-start;padding:0 0 0 11px;
    border-radius:var(--r-pill) 0 0 var(--r-pill);
    background:linear-gradient(to left,transparent,var(--panel-2) 45%)}
  .jump-next{right:1px;justify-content:flex-end;padding:0 11px 0 0;
    border-radius:0 var(--r-pill) var(--r-pill) 0;
    background:linear-gradient(to right,transparent,var(--panel-2) 45%)}
  .jump.more-left~.jump-prev,.jump.more-right~.jump-next{display:flex}
  .jump-step:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
  /* The Sky card is permanent furniture now, so this entry is an ordinary anchor like the other
     five — it used to come and go with a card the weather had to earn. */
  /* Every jump target clears the bar. On .card generally rather than the six ids, because the
     radar-polygon and "+N more" jumps land on cards too and were already landing a little high. */
  .card,#main{scroll-margin-top:calc(var(--jump-h) + 12px)}
  @media(max-width:480px){.jump a{padding:0 13px}}
  /* Above phone widths the bar hugs its six links instead of ruling off a column it fills a
     quarter of — at 1920 the links used 393px of an 1884px pill, and that empty stretch was the
     loudest thing on the page. It aligns to the shell's LEFT edge rather than centring: the brand
     above it and the grid below it both start there, and a pill centred between two edge-aligned
     blocks reads as an accident. The left margin recomputes the shell's own gutter instead of
     inheriting it, because the sticky wrapper has to stay a direct child of <body> (see the markup
     note); below the shell width that term is 0.
     Held above 680px on purpose. The slack this fixes is only worth fixing when it is vast — at
     480px the bar runs 77px past its links, and a pill inset from cards that are all flush to the
     column would look like a mistake rather than a decision. On a phone the bar stays full-width
     and keeps scrolling exactly as it does today. */
  @media(min-width:681px){
    .jump-wrap{width:max-content;max-width:100%;
      margin-left:max(0px, calc((100% - var(--maxw)) / 2));margin-right:auto}
  }

  header .top{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:16px}
  /* In installed/standalone web-app mode iOS overlays the status bar — guarantee clearance */
  @media (display-mode: standalone), (display-mode: fullscreen){
    body{padding-top:max(28px, calc(env(safe-area-inset-top, 0px) + 10px))}
    header .top{margin-top:6px}
  }
  .brand{display:flex;align-items:center;gap:12px}
  .logo{width:44px;height:44px;border-radius:11px;overflow:hidden;box-shadow:var(--shadow);flex:0 0 44px}
  .logo svg{display:block}
  .logo .lg-sweep{transform-origin:22px 22px;animation:radarSweep 4s linear infinite}
  @keyframes radarSweep{to{transform:rotate(360deg)}}
  @media (prefers-reduced-motion: reduce){.logo .lg-sweep{animation:none}}
  .brand h1{font-size:var(--fs-xl);margin:0;line-height:1.1}
  .brand .sub{font-size:var(--fs-sm);color:var(--muted);margin-top:2px;line-height:1.4}
  .header-right{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .clock{text-align:right;font-variant-numeric:tabular-nums}
  .clock .time{font-size:var(--fs-lg);font-weight:650;letter-spacing:.3px;color:var(--muted)}
  .clock .date{font-size:var(--fs-sm);color:var(--muted)}
  /* :where(:not(.ab-head)) throughout: the banner head is a <button> for semantics, but its face
     IS the banner — the glass background, bevel and radius here painted a frosted strip inside
     it. :where() and not a bare :not() because :not() adds its argument's specificity: a plain
     `button:not(.ab-head)` outweighed every single-class button skin on the page (.a2-more,
     .a2-radar, ...) and reskinned them all as glass buttons. :where() contributes zero. */
  select,button:where(:not(.ab-head)){background:var(--panel-2);color:var(--text);border:1px solid var(--border);
    border-radius:var(--r-md);padding:10px 14px;font-size:var(--fs-md);cursor:pointer;font-family:inherit;min-height:44px}
  select:hover,button:hover{border-color:var(--accent)}
  .refresh-btn{display:flex;align-items:center;gap:7px}
  .dot{width:8px;height:8px;border-radius:50%;background:var(--good);box-shadow:0 0 8px var(--good)}
  .dot[data-state="loading"]{background:var(--muted);box-shadow:none}
  .dot[data-state="partial"]{background:var(--warn);box-shadow:0 0 8px var(--warn)}
  .dot.stale{background:var(--danger);box-shadow:0 0 8px var(--danger)}
  .feed-status{font-size:var(--fs-xs);line-height:1.5;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
  .feed-status[data-state="unavailable"],.feed-status[data-state="stale"],.feed-status[data-state="saved"],.feed-status[data-state="partial"]{color:var(--warn)}
  .disclosure{margin-top:12px;font-size:var(--fs-md);line-height:1.6;overflow-wrap:anywhere}
  .disclosure summary{cursor:pointer;min-height:44px;display:list-item;padding:10px 0;font-weight:650;color:var(--text)}
  .disclosure summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  .disclosure p,.disclosure dl{margin:8px 0}
  .disclosure dt{font-weight:700;margin-top:8px}.disclosure dd{margin:2px 0 10px}
  .brief-author{font-size:var(--fs-xs);line-height:1.5;color:var(--muted);margin-top:10px}
  .brief-section-title{font-size:var(--fs-md);margin:8px 0;color:var(--muted);font-weight:650}
  .brief-planning{margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}
  .brief-planning .bl-headline{font-size:var(--fs-card-title)}
  .sticky-context{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 12px;background:var(--panel);border:1px solid var(--border);border-bottom:0;border-radius:12px 12px 0 0}
  #stickyLocation{min-width:0;flex:1;color:var(--text);font-size:var(--fs-md);font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sticky-kind{font-size:var(--fs-xs);color:var(--muted);flex:none}
  .location-tools{padding:0 4px;margin:0 0 8px}
  .location-tools .loc-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
  .location-tools button,.location-tools select{min-height:44px;max-width:100%}
  #locationLink{width:100%;min-width:0;padding:10px;color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:8px;font:inherit}
  #locFeedback{font-size:var(--fs-md);color:var(--muted);min-height:0;padding:0 4px}
  #locFeedback:empty{display:none}
  .river-row{display:flex;align-items:stretch;gap:6px;min-width:0}.river-row .rlink{flex:1;min-width:0}
  .river-pin{min-width:44px;min-height:44px;align-self:center;font-size:var(--fs-xs)}
  .river-pin[aria-pressed="true"]{color:var(--accent);border-color:var(--accent)}
  .river-group{grid-column:1/-1;font-size:var(--fs-md);margin:10px 0 4px;color:var(--muted)}

  .grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px;align-items:start}
  /* First-paint entrance. Deliberately shallow and short — the point is that the page assembles
     itself rather than snapping into being, not that anyone waits for it. Masonry children are
     left out: they're positioned from measured heights and shouldn't move twice. */
  @media (prefers-reduced-motion: no-preference){
    @keyframes cardIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
    .grid>.card,.grid>.stack,.grid>.railhead,.grid>.masonry{animation:cardIn .45s cubic-bezier(.2,.7,.3,1) both}
    .grid>*:nth-child(2){animation-delay:.04s}
    .grid>*:nth-child(3){animation-delay:.08s}
    .grid>*:nth-child(4){animation-delay:.10s}
    .grid>*:nth-child(5){animation-delay:.13s}
    .grid>*:nth-child(6){animation-delay:.16s}
    .grid>*:nth-child(n+7){animation-delay:.19s}
    /* The entrance animation ends on `transform:none`, but `both` keeps the animation's fill
       applied forever after — and a filled transform still computes to a matrix, not to `none`.
       Any transform makes the element the containing block for `position:fixed` DESCENDANTS, so
       the Sky card's fullscreen (`position:fixed;inset:0`) was resolving against this .stack
       instead of the viewport and opening as a 824x24 sliver. Drop the finished animation while
       fullscreen is up; it has already played, and everything behind the card is covered anyway. */
    body.radar-full .grid>.stack{animation:none;transform:none}
  }
  .card{background:linear-gradient(180deg,var(--panel),var(--panel-2));border:1px solid var(--border);
    border-radius:var(--r-lg);padding:var(--sp-4);box-shadow:var(--shadow);min-width:0}
  /* Section names lead the scan; card names are a smaller, consistent second step. Compact
     uppercase labels remain inside data displays, where they label values rather than regions. */
  .card h2,.rail-t{text-transform:none;letter-spacing:0;color:var(--text)}
  .card h2{margin:0 0 14px;display:flex;align-items:center;justify-content:space-between;gap:8px;
    font-size:var(--fs-card-title);font-weight:700;line-height:1.3}
  .card h2 .link{font-size:var(--fs-sm);text-transform:none;letter-spacing:0;font-weight:400}

  /* ===== Band rails =====
     Twenty-odd cards at identical visual weight read as a data dump. Naming the bands gives the
     scroll a spine — "Right now", "Next 24 hours", "The week ahead" — so a first-time visitor can
     tell what they're looking at without reading every card title. */
  .railhead{display:flex;align-items:baseline;gap:12px;margin:12px 2px 0;flex-wrap:wrap}
  .railhead:first-child{margin-top:0}
  .rail-t{flex:0 0 auto;font-size:var(--fs-section);font-weight:750;line-height:1.25}
  .rail-s{font-size:var(--fs-sm);color:var(--muted);font-weight:400}
  .rail-s:empty{display:none}
  .railhead::after{content:"";flex:1 1 40px;height:1px;background:linear-gradient(90deg,var(--border),transparent)}
  /* Let a long subtitle wrap on its own, but don't force the short ones (a place name) onto a
     second line — on a phone that costs a row of height for nothing. */
  @media(max-width:480px){.railhead{gap:4px 10px}.railhead::after{display:none}}

  /* Hero cards carry the answer; everything else is supporting evidence. A hairline of accent
     along the top edge is enough to say so without a second border treatment. */
  /* Inset rather than clipped to the card edge: overflow:hidden here would add a second clipping
     context around the radar's Leaflet panes and tooltips for no visual gain. */
  .card.hero{position:relative}
  .card.hero::before{content:"";position:absolute;top:0;left:18px;right:18px;height:2px;border-radius:0 0 2px 2px;
    background:linear-gradient(90deg,transparent,var(--accent),transparent);opacity:.6}

  .col-12{grid-column:span 12}.col-8{grid-column:span 8}.col-6{grid-column:span 6}
  .col-4{grid-column:span 4}.col-5{grid-column:span 5}.col-7{grid-column:span 7}.col-3{grid-column:span 3}
  .stack{display:flex;flex-direction:column;gap:16px;min-width:0}
  /* Measured masonry repacks immediately: animating top/left can move a disclosure target
     between touch-down and the synthesized click when another card finishes loading. */
  .masonry{position:relative}
  .masonry>.card{position:absolute;top:0;left:0;margin:0;transition:none}
  .masonry.mready{/* height set inline by JS */}
  /* Fallback before JS runs / if JS disabled: simple vertical flow so nothing overlaps */
  .masonry:not(.mready){display:flex;flex-direction:column;gap:16px}
  .masonry:not(.mready)>.card{position:static}
  @media(max-width:1100px){.col-8,.col-7,.col-5,.col-6{grid-column:span 12}.col-4,.col-3{grid-column:span 6}}
  @media(max-width:680px){.col-4,.col-3{grid-column:span 12}body{padding:12px}}
  /* The hero row is a PAIR of stacks. The generic rules above drop a col-8 to full width while a
     col-4 stays at half, which meant a half-width hero with an empty half-row beside it. Keep the
     two together until the single-column breakpoint takes them both.
     NOTE: the radar deliberately does NOT stretch to match the left column any more. Letting the
     map absorb the leftover height made its size a side effect of how much content the conditions
     card happened to have — which is how it ended up 660px tall on a calm day and PORTRAIT (0.67)
     at 1000px, the worst possible shape for weather that moves west to east. Its height is now its
     own decision: an aspect-locked landscape strip. */
  /* Below 1100px the pair stops being a pair. At ~474px per column the left one still has to carry
     the reading, the metrics grid and the 24-hour chart while the right has only the radar, so they
     came out ~400px apart — and both were cramped: a 438x246 radar and a 440px chart. Stacking them
     costs about the same vertical space the hole did, and both get the full width instead. */
  @media(max-width:1100px){.grid>.stack{grid-column:span 12}}
  /* …and the leftover goes to the READING column, which is the direction that costs nothing.
     The pair is two independently-sized things: the left column's height is content-driven, the
     Sky card's is its width over an aspect ratio. Since the shell cap the Sky card is the taller
     of the two — 103px at a 1400 shell on a calm evening with no AQI card — and that showed as a
     notch under the readings, a card stopping well short of its neighbour with page background in
     the corner between them.
     So the column fills the row and the readings spread into it. The note above still holds and is
     not being walked back: the MAP does not stretch, because letting it absorb leftover height is
     exactly what made it portrait at 1000px. This is that same rule read the other way round — of
     the two cards, the one whose height is nobody's decision is the one that gives.
     space-between rather than growing a block. The tiles are the obvious candidate and the wrong
     one: a taller .cc-item does not fill, it parks its label and value at the top of a bigger box,
     so 103px buys six small holes in place of one big one (measured — 88px tiles against 76px
     expo tiles beneath them, and the proportion goes with it). Spreading the sections already
     there is the one distribution that reads as a card with room rather than a card with a hole.
     No breakpoint, and inert wherever the pair is not a pair: below 1101px both stacks span all 12
     columns and own their rows, so the row height IS the stack height and there is nothing to
     stretch to. If the readings ever run taller than the map — a longer payload, or the AQI card
     earning its slot — free space is zero and space-between distributes nothing. */
  .grid>.stack.col-4{align-self:stretch}
  #currentCard{flex:1;display:flex;flex-direction:column}
  #current{flex:1;display:flex;flex-direction:column;justify-content:space-between}

  /* ===== Phone polish (≤480px): prevent any crowding/overflow ===== */
  /* never let a stray wide element create a horizontal scrollbar */
  .card,.grid,.stack{max-width:100%}
  img,svg{max-width:100%}

  /* Alerts — each one a BANNER: a full tinted-border strip standing on the page background,
     since the section around it no longer draws a card. The border is uniform (the level colour
     ringing the whole strip is what makes it read as a banner rather than a list row), with the
     left edge kept heavier as the severity spine the old card established. */
  #alerts .alert{border-radius:var(--r-lg);padding:12px 15px;margin-bottom:8px;
    border:1px solid var(--muted);border-left-width:5px;background:var(--inset);box-shadow:var(--shadow)}
  #alerts .alert:last-child{margin-bottom:0}
  /* the banner head: the whole strip's face is one <button>, shedding every piece of button chrome */
  .ab-head{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;
    background:none;border:0;padding:0;margin:0;font-family:inherit;color:var(--text);cursor:pointer;min-height:0}
  .ab-head .a2-ico{margin-top:1px}
  .ab-hx{flex:1 1 auto;min-width:0}
  .ab-title{display:block;font-weight:800;font-size:var(--fs-lg);line-height:1.3}
  /* The second line stays --text, not --muted: it sits on the level tint, and dimmed text on a
     tinted surface is a measured contrast failure. */
  .ab-sub{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
    margin-top:3px;font-size:var(--fs-sm);font-weight:400;color:var(--text);line-height:1.45}
  .ab-head .a-chev{color:var(--muted);margin-top:3px;flex:0 0 auto}
  .ab-head .a2-me,.ab-head .a2-where{flex:0 0 auto;margin-top:2px}
  .ab-cd{display:flex;justify-content:flex-end;margin-bottom:3px}
  .alert .ev{font-weight:700;font-size:var(--fs-lg);display:flex;justify-content:space-between;gap:10px;align-items:baseline}
  .alert .area{font-size:var(--fs-sm);color:var(--muted);margin-top:4px;line-height:1.4}
  .alert .exp{font-size:var(--fs-sm);color:var(--muted);margin-top:6px}

  /* ===== Alerts: one severity ramp =====
     Every coloured thing inside an alert reads --lv, which the level class sets once. Before this,
     the tint came from CAP severity and the badges from the event name, so a Flood Advisory carrying
     severity "Severe" arrived tinted orange and tagged blue. Tints are mixed from --lv rather than
     written as rgba() literals, so they follow the light theme instead of staying tuned to the dark
     one. See alertLevel() in the script for why the ramp is ordered the way it is. */
  .alert{--lv:var(--muted)}
  .alert.lv-emergency{--lv:var(--danger)}
  .alert.lv-warning  {--lv:var(--sev)}
  .alert.lv-watch    {--lv:var(--warn)}
  .alert.lv-advisory {--lv:var(--accent)}
  .a2-ico{font-size:var(--fs-xl);line-height:1;flex:0 0 auto;color:var(--lv);display:inline-flex}
  /* "this one is over you" — kept only for the strongest claim (a polygon hit) and, area-wide,
     for the zone match: the location-scoped banner already says it by being there at all. */
  .a2-me{font-size:var(--fs-xs);font-weight:600;padding:3px 9px;background:var(--chip);color:var(--text)}
  .a2-me .ic{color:var(--lv)}
  #alerts .alert.hits-me{border-left-width:7px}   /* must outweigh the base rule's border shorthand */
  .a2-cd{font-size:var(--fs-md);font-weight:700}
  /* elapsed-vs-remaining window */
  .a2-time{margin-top:8px}
  .a2-prog{height:4px;border-radius:2px;background:var(--chip);overflow:hidden}
  /* width:0 is the starting state, not the resting one — the fill is a live value written by
     tickCountdowns (see there for why it isn't in the markup). Without it a block-level <i>
     defaults to auto and every bar would flash full for the instant before the first tick. */
  .a2-prog i{display:block;width:0;height:100%;border-radius:2px;background:var(--lv);opacity:.85}
  .a2-times{display:flex;justify-content:space-between;gap:10px;font-size:var(--fs-xs);color:var(--muted);margin-top:5px;
    font-variant-numeric:tabular-nums}
  /* a window that hasn't opened yet: hatched track, so an empty bar reads as "not started" not "no data" */
  .a2-time.pending .a2-prog{background:repeating-linear-gradient(45deg,var(--chip) 0 5px,transparent 5px 10px)}
  /* Phase list of a folded hazard card — one product per row: its own tier dot, its own window.
     The dots MUST track the .alert.lv-* ramp step for step; a warning-coloured dot on an advisory
     row is the two-signals-disagreeing bug in miniature. (No emergency dot: an emergency never
     folds, so no phase row can carry one.) */
  .a2-phases{margin-top:9px;display:grid;gap:5px}
  .a2-ph{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:var(--fs-sm);line-height:1.4}
  .a2-ph .phd{width:8px;height:8px;border-radius:50%;background:var(--muted);flex:0 0 auto}
  .a2-ph.ph-warning .phd{background:var(--sev)}
  .a2-ph.ph-watch .phd{background:var(--warn)}
  .a2-ph.ph-advisory .phd{background:var(--accent)}
  .a2-ph .phn{font-weight:700}
  .a2-ph .pht{margin-left:auto;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
  /* a phase's own hazard line in the drawer, when the lead's text doesn't already carry it */
  .alert-more p.a2-phwhat{margin-top:9px}

  /* ===== Elsewhere in the office's area =====
     These used to live behind a collapsed disclosure, so the regional picture cost a tap and a
     guess. They are on the page now, one line each, under an eyebrow that carries the scope for
     all of them. The rows are the SAME .alert banner as the local cards — this section only takes
     things away (the subline, some padding, some weight) and the head toggle puts them back — so
     there is never a second card renderer to keep in step with the first.

     What it must not do is out-shout the alerts above it, which are the ones over the reader. The
     separation is structural rather than tonal: no tint behind the row, a thinner rail, smaller
     type. Deliberately NOT opacity — dimmed text on a tinted rail is how the contrast work gets
     undone, and these are still watches and warnings for somebody. */
  .a2-elsehed{display:flex;align-items:center;gap:8px;margin:16px 0 8px;
    font-size:var(--fs-2xs);font-weight:800;text-transform:uppercase;letter-spacing:var(--ls-eyebrow);
    color:var(--muted)}
  .a2-elsehed::after{content:"";flex:1 1 auto;height:1px;background:var(--border)}
  .a2-elsen{order:1;font-size:var(--fs-2xs);font-weight:800;color:var(--muted);
    background:var(--chip);border-radius:var(--r-pill);padding:1px 8px;letter-spacing:0}
  /* Two IDs, and not for decoration: the level ramp near the bottom of this sheet is itself
     ID-scoped (`#alerts .alert`) to beat the base rule, so a one-ID selector here ties it on
     specificity and loses on source order — the rows kept the full 8% tint and the 45% border
     while every other declaration below landed. Measured, not assumed. */
  #alerts #alertsElse .alert{padding:9px 13px;margin-bottom:5px;border-left-width:4px;
    background:transparent;border-color:color-mix(in srgb,var(--lv) 30%,transparent);
    border-left-color:var(--lv);box-shadow:none}
  #alertsElse .alert .ab-title{font-size:var(--fs-md);font-weight:700}
  #alertsElse .alert .a2-ico{font-size:var(--fs-lg)}
  /* The instruction line is the one thing a compact row drops; opening the row is what asks for it. */
  #alertsElse .alert .ab-sub{display:none}
  #alertsElse .alert.open .ab-sub{display:-webkit-box}
  /* The counties this one is actually for — the fact a one-line row is missing, in the slot the
     "Elsewhere in LSX" badge used to spend on restating the heading above it. */
  .a2-where{font-size:var(--fs-xs);font-weight:600;padding:3px 9px;background:var(--chip);
    color:var(--muted);white-space:nowrap;cursor:help}
  /* county chips, with in-place overflow */
  .a2-areas{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;margin-top:10px}
  /* Names a row that was previously just chips — a stranger could not tell whether "Warren" was a
     county, a town or a river gauge, and the answer changes what the row is telling them. */
  .a2-geo{font-size:var(--fs-2xs);font-weight:800;text-transform:uppercase;letter-spacing:var(--ls-eyebrow);
    color:var(--muted);margin-right:2px;flex:0 0 auto}
  .a2-chip{font-size:var(--fs-xs);padding:3px 9px;background:var(--chip);color:var(--text);white-space:nowrap}
  .a2-xtra{display:none}
  .alert.areas-all .a2-xtra{display:inline-flex}
  .alert.areas-all .a2-more{display:none}
  .a2-more{font-size:var(--fs-xs);padding:3px 10px;background:transparent;border:1px dashed var(--border);
    color:var(--accent);font-weight:700}
  .a2-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
  .a2-foot .link{font-size:var(--fs-xs)}
  .a2-radar{font-size:var(--fs-xs);font-weight:700;padding:4px 11px;background:transparent;
    border:1px dashed var(--border);color:var(--accent);margin-left:auto}
  .a2-radar:hover{border-color:var(--accent);border-style:solid}
  /* a polygon tap lands here — make it obvious which card just answered */
  .alert.flash{animation:alertFlash 2.1s ease-out}
  @keyframes alertFlash{
    0%{box-shadow:0 0 0 0 rgba(74,163,255,.55)}
    25%{box-shadow:0 0 0 6px rgba(74,163,255,.26)}
    100%{box-shadow:0 0 0 0 rgba(74,163,255,0)}
  }
  @media (prefers-reduced-motion: reduce){
    .alert.flash{animation:none;outline:2px solid var(--accent);outline-offset:2px}
  }
  /* structured detail */
  .a2-kv{display:grid;grid-template-columns:66px 1fr;gap:7px 11px;font-size:var(--fs-md);line-height:1.55}
  .a2-kv .k{font-size:var(--fs-2xs);font-weight:800;text-transform:uppercase;letter-spacing:var(--ls-eyebrow);
    color:var(--muted);padding-top:3px}
  /* The instruction block borrows the alert's own level colour rather than always being amber —
     "what to do" under an emergency should not look calmer than the card around it. */
  .a2-do{margin-top:11px;padding:10px 12px;border-radius:var(--r-md);
    background:color-mix(in srgb,var(--lv) 9%,transparent);
    border:1px solid color-mix(in srgb,var(--lv) 28%,transparent);font-size:var(--fs-md);line-height:1.55}
  /* The label leans 25% toward --text: pure --lv was fine while the block sat on the old card's
     near-neutral inset, but on the banner's REAL 8% level tint (light theme) it measured
     3.9-4.1:1 at 11px. The blend keeps the level colour dominant and clears 5.5:1 worst-case
     in both themes — computed over every level on its own tint, not eyeballed. */
  .a2-do b{display:block;font-size:var(--fs-2xs);text-transform:uppercase;letter-spacing:var(--ls-eyebrow);
    color:color-mix(in srgb,var(--lv) 75%,var(--text));margin-bottom:5px}
  .a2-do p{margin:0 0 7px}.a2-do p:last-child{margin-bottom:0}
  .a2-seg{font-size:var(--fs-xs);color:var(--muted);margin-top:10px;line-height:1.5}
  .a2-seg b{color:var(--text)}
  @media(max-width:480px){
    .ab-title{font-size:var(--fs-md)}
    .a2-kv{grid-template-columns:1fr;gap:2px 0}
    .a2-kv .k{padding-top:7px}
  }
  /* ID-scoped to actually OUTWEIGH the base #alerts .alert rule: as a bare `.alert{...}` this
     ramp lost the specificity fight to the base's muted border and inset background, and every
     banner rendered gray — the level colour existed only in the badges and icon. (The same bare
     selector sits in main; the tint there rides on other rules.) */
  #alerts .alert{border-color:color-mix(in srgb,var(--lv) 45%,transparent);border-left-color:var(--lv);
    background:color-mix(in srgb,var(--lv) 8%,transparent)}
  #alerts .alert.lv-statement{background:var(--inset)}
  /* Only the top of the ramp pulses. A page where every card breathes has no top of the ramp. */
  .alert.lv-emergency{animation:pulse 1.6s infinite}
  @media (prefers-reduced-motion: reduce){.alert.lv-emergency{animation:none}}
  /* --pulse is an R,G,B triplet supplied by whatever is pulsing, so the halo is the same colour as
     the thing it surrounds instead of always being convective red. */
  @keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(var(--pulse,255,45,85),.5)}
                   50%{box-shadow:0 0 0 6px rgba(var(--pulse,255,45,85),0)}}
  .badge{font-size:var(--fs-sm);font-weight:700;padding:3px 9px;border-radius:var(--r-pill);background:var(--chip);white-space:nowrap}
  .a-hint{color:var(--accent)}
  .a-zcnt{font-size:var(--fs-sm);font-weight:700;color:var(--muted);background:var(--chip);border-radius:var(--r-md);padding:1px 8px;vertical-align:middle}
  .a-more-cnt{color:var(--accent);font-weight:700;white-space:nowrap}
  /* Live expiry countdown. It used to render in --accent, which is also the link colour, so "23h 16m
     left" read as something you could click. It is a reading, so it is typeset as one. */
  .a-cd{font-weight:700;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}
  .a-cd:empty{display:none}
  .a-cd.urgent{color:var(--danger)}
  .a-cd.expired{color:var(--muted);font-weight:600}
  .a-chev{display:inline-block;transition:transform .2s}
  .alert.open .a-chev{transform:rotate(180deg)}
  .alert-more{display:none;margin-top:11px;padding-top:11px;border-top:1px solid var(--border);
    font-size:var(--fs-sm);line-height:1.55;color:var(--text)}
  .alert-more p{margin:0 0 8px}
  .alert-more p:last-child{margin-bottom:0}
  .alert.open .alert-more{display:block}
  .empty{color:var(--muted);font-size:var(--fs-md);padding:6px 2px;line-height:1.5}

  /* Instant-paint notice — shown only while a restored snapshot is on screen */
  .snapbar{display:none;align-items:center;gap:9px;margin-bottom:14px;padding:9px 14px;border-radius:var(--r-md);
    background:var(--inset);border:1px solid var(--border);font-size:var(--fs-sm);color:var(--muted);font-weight:600}
  .snapbar.show{display:flex}
  .snapbar.offline{border-color:var(--warn);color:var(--warn)}
  .snapbar .sb-spin{width:9px;height:9px;border-radius:50%;background:var(--accent);flex:0 0 auto;
    animation:sbPulse 1.1s ease-in-out infinite}
  .snapbar.offline .sb-spin{background:var(--warn);animation:none}
  @keyframes sbPulse{0%,100%{opacity:.35}50%{opacity:1}}
  @media (prefers-reduced-motion: reduce){.snapbar .sb-spin{animation:none}}

  /* Official regional messages stay in source order in one readable column. */
  #callCard{padding:16px 18px;display:block}
  .call-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-bottom:8px}
  #callCard .call-head h2{margin:0}
  .nws-message-meta{font-size:var(--fs-sm);font-weight:650;color:var(--muted);margin:0 0 8px;overflow-wrap:anywhere}
  .nws-message-status{font-size:var(--fs-sm);line-height:1.5;color:var(--muted);margin:8px 0}
  .nws-message-status:not([data-state="ready"]){color:var(--warn)}
  .nws-key-list{padding-left:20px;margin:10px 0 14px}
  .nws-key-list li{padding-left:3px;margin:0 0 10px;line-height:1.55;font-size:var(--fs-lg);overflow-wrap:anywhere}
  .nws-key-list li:last-child{margin-bottom:0}
  .nws-key-list li::marker{color:var(--accent)}
  .nws-local-period{line-height:1.55;overflow-wrap:anywhere}
  .nws-local-link{margin:8px 0}
  #briefEvidence p{line-height:1.5;margin:8px 0;font-size:var(--fs-sm);color:var(--muted)}
  #callCard #briefStatus{margin:0 0 8px}
  #callCard #briefWhy{border-top:1px solid var(--border);margin-top:12px;padding-top:4px}
  #briefWhy > summary{display:flex;align-items:center;gap:8px}
  .nws-source-arrow{display:inline-block;flex:none}
  #briefWhy[open] .nws-source-arrow{transform:rotate(90deg)}
  @media(max-width:480px){#callCard{padding:14px}}

  /* ===== Banner mode: the section sheds its card =====
     The banners ARE the alert section; the wrapper contributes nothing visible. The h2 survives
     for the document outline and the jump-nav target, clipped rather than display:none so it
     stays in the accessibility tree. In the calm state the card chrome comes back — a green
     reassurance line standing bare on the page background read as debris, not calm. */
  #alertsCard>h2{flex-wrap:wrap}
  #alertsCard.bannered:not(.calm){background:none;border:0;box-shadow:none;padding:0}
  #alertsCard.bannered:not(.calm)>h2{position:absolute;width:1px;height:1px;margin:0;padding:0;
    overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  /* the local all-clear line, when alerts exist only elsewhere: a slim card of its own */
  #alertsCard.bannered:not(.calm) .calmrow{background:linear-gradient(180deg,var(--panel),var(--panel-2));
    border:1px solid var(--border);border-radius:var(--r-lg);padding:13px 16px;box-shadow:var(--shadow);margin-bottom:8px}

  /* Slim "all clear" state (Fix 4) */
  #alertsCard.calm{padding:13px 16px}
  #alertsCard.calm h2{display:none}
  .calmrow{display:flex;align-items:center;gap:10px;font-size:var(--fs-md);color:var(--good);font-weight:600;line-height:1.3}
  .calmrow .cdot{width:9px;height:9px;border-radius:50%;background:var(--good);box-shadow:0 0 8px var(--good);flex:0 0 auto}
  .calmrow .cmut{color:var(--muted);font-weight:400}
  /* Same fact, no celebration: the local all-clear when an EMERGENCY is running elsewhere in the
     office's area. --good and its glow are a claim about the situation, not just about this
     address, and the row sits inches above a red rail. --text rather than --muted, because the
     sentence is still the direct answer to the reader's question and demotion is not the point. */
  .calmrow.guarded{color:var(--text)}
  .calmrow.guarded .cdot{background:var(--muted);box-shadow:none}

  /* Current — the hero. This is the number the page exists to show, so it gets the type scale to
     match instead of sitting at card-body size inside a quarter-width box. */
  .cc-main{display:flex;align-items:center;gap:14px;margin-bottom:14px}
  .cc-temp{font-size:var(--fs-display);font-weight:800;line-height:.92;letter-spacing:-.035em;
    font-variant-numeric:tabular-nums}
  .cc-icon{font-size:var(--fs-hero);flex:0 0 auto}
  .cc-desc{font-size:var(--fs-lg);color:var(--text);margin-top:6px;font-weight:600;line-height:1.25}
  .cc-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .cc-item,.cc-uv,.aqi-mini{background:var(--inset);border:1px solid var(--border);border-radius:var(--r-md);padding:9px 11px}
  .cc-item .k,.cc-expo .k{font-size:var(--fs-sm);color:var(--muted);text-transform:uppercase;letter-spacing:.5px}
  .cc-item .v,.cc-expo .v{font-size:var(--fs-lg);font-weight:700;margin-top:2px;font-variant-numeric:tabular-nums}
  /* The unit after a reading. Was an inline style="font-size:11px" written straight into the Wind
     tile, which is how it survived the pass that put a 12px floor under everything informational —
     that pass could only see the stylesheet. */
  .cc-item .cc-unit{font-size:var(--fs-xs);color:var(--muted);font-weight:600}
  /* An empty tile that can say why it's empty. Both variants carry a title; the cursor is the only
     hint a mouse user gets that there is one, and on touch the words have to do the work alone —
     which is why the gust case says "None" instead of leaving a dash to be interpreted. */
  .cc-item .cc-gap{color:var(--muted);cursor:help}
  /* Provenance, not data: who observed what, when, and which station lent the records. It sits
     below everything it describes and is set to be read second. */
  /* No opacity here — see the note on .cs-sep. Same rule everywhere text is quietened. */
  .stn{font-size:var(--fs-xs);color:var(--muted);margin-top:12px;line-height:1.5}
  .stn .nw{white-space:nowrap}   /* break between credits, never inside a station's name */

  /* Today strip — high/low with "now" placed inside the day's range, plus sun times. Answers
     "is it still getting hotter?" and "how much daylight is left?" without a scroll, and gives the
     hero column the height it needs to sit level with the radar instead of stranding a gap. */
  .cc-today{margin:0 0 13px}
  .cc-range{display:flex;align-items:center;gap:10px;font-variant-numeric:tabular-nums}
  .cc-range .cr-lo,.cc-range .cr-hi{font-size:var(--fs-md);font-weight:800;flex:0 0 auto}
  .cc-range .cr-lbl{font-size:var(--fs-2xs);font-weight:800;text-transform:uppercase;letter-spacing:.6px;
    color:var(--muted);flex:0 0 auto}
  .cc-range .cr-nx{font-size:var(--fs-2xs);font-weight:700;text-transform:uppercase;letter-spacing:.4px;
    color:var(--muted);margin-left:3px}
  /* The delta cue, shown only when tomorrow's high lands under tonight's low. Muted rather than
     coloured: the two ends already carry the temperature scale's colour, and a third hue here
     would be spending the page's colour budget to repeat what the words say. */
  .cc-range .cr-drop{font-size:var(--fs-2xs);font-weight:800;text-transform:uppercase;
    letter-spacing:var(--ls-eyebrow);color:var(--muted);white-space:nowrap;flex:0 0 auto}
  .cc-track{position:relative;flex:1 1 auto;height:8px;border-radius:5px;background:var(--chip);min-width:0}
  /* Geometry only. The fill's colour is written inline from tCol(lo)→tCol(hi), the same ramp the
     7-day rows use — do not put a static gradient back here. A fixed ramp painted every day the
     same blue→green→yellow→orange, which contradicted this row's own end labels. */
  .cc-track i{position:absolute;top:0;bottom:0;left:0;right:0;border-radius:5px}
  .cc-track b{position:absolute;top:-4px;width:4px;height:16px;border-radius:3px;background:var(--text);
    box-shadow:0 0 0 2px var(--panel),0 1px 4px rgba(0,0,0,.35);margin-left:-2px}
  .cc-sun{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px;font-size:var(--fs-sm);color:var(--muted)}
  .cc-sun span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
  .cc-sun b{color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}
  /* Was opacity:.45. Dimming TEXT with opacity is the one thing on this page that could not be
     made to pass AA: --muted has to drop below 4.5:1 somewhere between .85 and .90 alpha on every
     surface, which is far too little dimming to be worth having. Quiet is now expressed the way
     the rest of the page expresses it — size, weight and colour — and opacity is left to the
     things it can legitimately fade: bars, tracks, gradients, washes. */
  .cc-sun .cs-sep{color:var(--muted)}
  .cc-today:empty{display:none}

  /* Forecast attribution names the selected town separately from the observation station. */
  #h24Card #h24loc{display:inline}


  /* Daily */
  /* Screen-reader-only text — the same clip pattern the bannered alerts h2 uses, as a class.
     Clipped rather than display:none for the same reason it is there: the words must stay in
     the accessibility tree. First used by the 7-day rows' Low/High labels. */
  .sr{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .daily{display:flex;flex-direction:column;gap:8px}
  .day-item{background:var(--inset);border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden}
  .day{display:grid;grid-template-columns:minmax(52px,72px) 26px 52px minmax(26px,1fr) 66px 12px;align-items:center;gap:6px;
    width:100%;text-align:left;background:transparent;border:0;color:var(--text);
    padding:9px 12px;min-height:56px;cursor:pointer;font-family:inherit}
  .day:hover{background:var(--chip)}
  .day .dn{font-weight:700;font-size:var(--fs-md);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  .day .dcond{display:-webkit-box;font-size:var(--fs-2xs);line-height:1.2;color:var(--muted);
    white-space:normal;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin-top:3px}
  .day .dcond.impact-hot{color:var(--sev);font-weight:800}
  .day .dcond.impact-cold{color:var(--accent);font-weight:800}
  /* The date riding along with the compact day name — and no media query deciding its fate, because the
     viewport is the wrong thing to ask: this card is col-4 at desktop but full-width on a phone,
     so the name column is at its NARROWEST on the largest screens. Whether "Tonight 8/5" fits
     is a fact about the painted column, and fitDayDates() measures exactly that after each paint,
     setting .no-dnd when any row would have to eat its own day name to keep the date. The .sr
     twin is out of flow, so a screen reader keeps the date at every width either way. */
  .day .dn .dnd{font-weight:600;font-size:var(--fs-xs);color:var(--muted);margin-left:6px}
  .daily.no-dnd .dnd{display:none}
  .day .di{font-size:21px;text-align:center;display:flex;align-items:center;justify-content:center}
  /* Keep the existing icon slot dimensions in both themes; artwork sits on the card. */
  :root[data-theme="light"] .day .di{width:30px;height:30px;justify-self:center}
  .day .dp{font-size:var(--fs-xs);color:var(--accent);text-align:center;font-variant-numeric:tabular-nums;min-width:0}
  .tbar{position:relative;height:7px;border-radius:4px;background:var(--chip);min-width:0}
  .tbar .tfill{position:absolute;top:0;bottom:0;border-radius:4px;min-width:8px}
  .day .dt{display:grid;grid-template-columns:1fr 1fr;gap:3px;align-items:center;
    font-weight:700;font-variant-numeric:tabular-nums;font-size:var(--fs-sm);white-space:nowrap;text-align:right}
  .day .dt.only-one{grid-template-columns:1fr;justify-items:end}
  .day .dt span{display:inline-flex;align-items:baseline;justify-content:flex-end;gap:2px}
  .day .dt .lo{font-weight:600}
  .day .dt .tl{font-size:var(--fs-2xs);font-weight:800;color:var(--muted)}
  /* The missing-low dash on a day-only row — only reachable when the feed itself runs short of
     seven whole days (see the pairing loop). Sits in the .lo slot with the .lo spacing so the
     high doesn't shift left and read as the row's only number being a low. Muted + help cursor
     per the ccGap convention: the gap is NWS's, and the title (plus the .sr twin, for readers
     who can't hover) says so. */
  .day .dt .dt-na{font-weight:600;margin-right:5px;color:var(--muted);cursor:help}
  .day .chev{font-size:var(--fs-sm);color:var(--muted);text-align:center;transition:transform .2s}
  .day-item.open .chev{transform:rotate(180deg)}
  .day-detail{display:none;padding:0 12px 12px;border-top:1px solid var(--border)}
  .day-item.open .day-detail{display:block}
  .dd-text{font-size:var(--fs-lg);line-height:1.6;color:var(--text);margin:11px 0}
  .dd-text b{color:var(--muted);font-weight:700;text-transform:uppercase;font-size:var(--fs-xs);letter-spacing:.5px;margin-right:4px}
  .dd-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .dd-item{background:var(--panel-2);border:1px solid var(--border);border-radius:var(--r-sm);padding:7px 10px}
  .dd-item .k{font-size:var(--fs-xs);color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
  .dd-item .v{font-size:var(--fs-md);font-weight:700;margin-top:2px}
  .dd-item.impact-hot{box-shadow:inset 3px 0 var(--sev)}
  .dd-item.impact-hot .v{color:var(--sev)}
  .dd-item.impact-cold{box-shadow:inset 3px 0 var(--accent)}
  .dd-item.impact-cold .v{color:var(--accent)}
  .cc-feels{font-size:var(--fs-md);font-weight:700;color:var(--muted);margin-top:3px}
  .cc-feels.is-hot{color:var(--sev)}
  .cc-feels.is-cold{color:var(--accent)}

  /* Images / iframes */
  .imgwrap{position:relative;border-radius:10px;overflow:hidden;background:#000;border:1px solid var(--border)}
  .imgwrap img{width:100%;display:block}
  .frame{width:100%;border:0;display:block;background:#0b0f16}
  /* No height for #radar here. It had `480px`, and `340px` under 680, and neither ever applied:
     `#radarCard #radar` below is two ids against one and wins at every width, in every mode, so
     the map's height has come from its wrapper's aspect ratio for as long as that rule has
     existed. A dead declaration that looks like the one in charge is worse than none — the next
     person to change the map's height would have edited these. */
  /* Leaflet map + radar overlays */
  #radar.leaflet-container{background:#0b0f16;font-family:inherit}
  /* GeoColor under reflectivity. The imagery is opaque and, by day, near-white — the same luminance
     as the light end of the radar ramp, so echoes, warning outlines and the location pin were all
     fighting the cloud tops for contrast. Darkened, NOT faded: opacity would blend cloud with the
     basemap into mud (see mapStylePart()), while a brightness drop keeps every pixel's shape
     and only takes its glare. The filter rides on the imagery's own pane, so the labels — one pane
     up — stay crisp, and applySkyLayers() only sets the class while reflectivity is stacked on
     top; alone, the satellite IS the picture and shows at full brightness. */
  #radar.sat-dim .leaflet-sat-pane{filter:brightness(.6) saturate(.85)}
  /* "You are here", rebuilt for busy backgrounds. The old mark was 5px of #4aa3ff circleMarker —
     the same hue family as light-rain returns, basemap water and GeoColor's night lights, which
     are precisely the pixels it has to be found against. A white core in a dark ring reads over
     all of them; the pulse ring is what draws the eye on a map where everything else also moves. */
  .me-pin{width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid #14273f;
    box-shadow:0 0 0 2px rgba(255,255,255,.85),0 2px 10px rgba(0,0,0,.55)}
  .me-pin::after{content:"";position:absolute;inset:-3px;border-radius:50%;
    border:2px solid rgba(255,255,255,.7);animation:mePulse 2.4s ease-out infinite}
  @keyframes mePulse{0%{transform:scale(.55);opacity:.9}70%{transform:scale(1.9);opacity:0}100%{transform:scale(1.9);opacity:0}}
  @media (prefers-reduced-motion: reduce){.me-pin::after{display:none}}
  /* A tornado warning is the one shape on this map allowed to move on its own: the stroke breathes
     so the box that matters most cannot be skimmed past among the calmer ones. */
  .warn-tor{animation:torPulse 1.6s ease-in-out infinite}
  @keyframes torPulse{0%,100%{stroke-opacity:1}50%{stroke-opacity:.5}}
  @media (prefers-reduced-motion: reduce){.warn-tor{animation:none}}
  /* Leaflet ships its attribution as #0078A8 on a white pill — 3.4:1, and the one piece of text on
     the page whose colour we had left to a third-party stylesheet. Same words, same white pill
     (it has to stay legible over whatever the basemap is doing underneath), darkened to clear AA. */
  .leaflet-control-attribution{font-size:var(--fs-2xs);color:#1c2534;background:rgba(255,255,255,.86)}
  .leaflet-control-attribution a{color:#0a4f77}
  /* Leaflet's zoom buttons are 30px, which clears the AA floor but not a thumb. Widened only where
     a thumb is what's being used: on a pointer that can hover, 30px is precise enough and 44px
     would spend a quarter of a phone-height map on two controls that pinch-zoom already replaces. */
  @media (pointer:coarse){
    .leaflet-touch .leaflet-control-zoom a,.leaflet-control-zoom a{
      width:44px;height:44px;line-height:44px;font-size:20px}
  }
  /* …and the map lock must not swallow them. `.maplock` sits above Leaflet's controls so its pill
     can't be buried by the attribution (see there), but that one z-index would take the zoom
     buttons with it — and the rule directly above exists to make those a 44px thumb target on
     exactly the devices where the lock appears. Zooming is a discrete tap: it cannot run away with
     the page scroll the way a drag can, which is the only thing the lock is defending. So the
     top-left corner alone is lifted back over it. The corner is `pointer-events:none` and only the
     control inside it is `auto`, so this re-exposes the buttons and not the 10px of margin around
     them — a tap beside them still falls through and unlocks. The attribution corner stays at
     Leaflet's own 1000, i.e. underneath, which was the whole point. */
  #radar .leaflet-top.leaflet-left{z-index:1300}
  .radar-time{margin:0 0 8px;color:var(--text);font-size:var(--fs-sm);line-height:1.5;
    font-weight:650;font-variant-numeric:tabular-nums}
  .radar-time:empty{display:none}
  .radar-time.past{color:var(--muted)}
  .radar-time.down{color:var(--warn)}
  /* ===== Reflectivity key =====
     The map painted a colour ramp and nothing on the page said what it meant. The stops below are
     the SERVER's colours, sampled per-5-dBZ out of this layer's own GetLegendGraphic rather than
     eyeballed, so the key cannot drift from what GeoServer actually draws. The scale runs 15→65
     dBZ: below 15 is clutter and returns nothing anyone needs a key for, above 65 is off the top
     of what falls on Missouri. Shown only while reflectivity is drawing — same rule the caption
     follows, for the same reason. */
  .rs-legend{display:none;align-items:center;gap:11px;margin-top:9px}
  .rs-legend.on{display:flex}
  .radar-key{display:flex;align-items:center;gap:11px;width:100%}
  .station-radar-key{display:grid;gap:5px;width:100%;min-width:0}
  .radar-key[hidden],.station-radar-key[hidden]{display:none}
  .station-radar-key img{display:block;width:100%;height:auto;max-width:500px;background:#444;border-radius:3px}
  .station-radar-key img[hidden]{display:none}
  .radar-legend-retry{justify-self:start;font:inherit;font-size:var(--fs-xs);padding:5px 9px}
  #radarCard:has(#radar [data-retry-maps]) .radar-options,
  #radarCard:has(#radar [data-retry-maps]) .radar-product-note{display:none}
  .rl-t{flex:0 0 auto;font-size:var(--fs-xs);font-weight:700;color:var(--muted);
    text-transform:uppercase;letter-spacing:.5px}
  .rl-scale{position:relative;flex:1 1 auto;min-width:0}
  .rl-bar{display:block;height:9px;border-radius:5px;border:1px solid var(--border);
    background:linear-gradient(90deg,#54b3ab 0%,#30c556 10%,#10a214 20%,#0e6c0f 30%,#7b9509 40%,
      #e1bb19 50%,#e1a519 60%,#c00c0c 70%,#9d0c0c 80%,#ddace9 90%,#dd6de9 100%)}
  .rl-ticks{display:block;position:relative;height:15px;margin-top:3px}
  .rl-ticks span{position:absolute;transform:translateX(-50%);font-size:var(--fs-xs);
    font-weight:600;color:var(--muted);white-space:nowrap}
  /* ===== Hazard key =====
     The reflectivity key says what the colours of the RAIN mean; nothing said what the coloured
     BOXES meant. One chip per hazard type actually drawn right now — syncWarnKey() writes them
     from the same style functions that paint the shapes, so the key cannot name a colour the map
     is not using, and :empty removes the row entirely on a clear day. */
  .rs-wkey{display:flex;flex-wrap:wrap;gap:5px 14px;margin-top:8px}
  .rs-wkey:empty{display:none}
  .rw-chip{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-xs);
    font-weight:600;color:var(--muted)}
  .rw-chip i{width:10px;height:10px;border-radius:3px;flex:0 0 auto;border:1px solid rgba(0,0,0,.3)}
  /* Radar loop scrubber — sits BELOW the map so it never fights the maplock overlay for taps */
  .radar-ctl{display:none;align-items:center;gap:11px;margin:10px 0 6px;padding:3px 9px;
    border:1px solid var(--border);border-radius:var(--r-md);background:var(--inset)}
  .radar-ctl.ready{display:flex}
  .radar-ctl button{min-height:44px;padding:7px 13px;font-size:var(--fs-md);line-height:1;flex:0 0 auto}
  .radar-ctl input[type=range]{flex:1 1 auto;min-width:0;height:44px;margin:0;cursor:pointer;accent-color:var(--accent);background:none;border:0}
  .radar-ctl .rc-t{flex:0 0 auto;font-size:var(--fs-sm);font-weight:700;color:var(--text);font-variant-numeric:tabular-nums;min-width:62px;text-align:right}
  .radar-ctl .rc-load{flex:0 0 auto;font-size:var(--fs-xs);color:var(--muted)}
  @media(max-width:480px){.radar-ctl{gap:8px}.radar-ctl .rc-t{min-width:54px;font-size:var(--fs-xs)}}
  .imgcap{font-size:var(--fs-sm);color:var(--muted);margin-top:8px;display:flex;justify-content:space-between;gap:8px}
  /* Station Plot map + station-model markers */
  .stnmap{width:100%;height:360px;border-radius:12px;overflow:hidden;background:var(--chip)}
  .stn-divicon{background:none;border:none}
  /* The focusable element is the zero-size divIcon anchor, so a default outline has no pixels
     to paint on — the ring goes on the value chip, matching the is-hi treatment but in accent
     so "focused" and "extreme" stay two different statements. */
  .stn-divicon:focus{outline:none}
  .stn-divicon:focus-visible .stn2-v{box-shadow:0 0 0 2px var(--accent),0 1px 5px rgba(0,0,0,.5)}
  /* One metric at a time: a colour-coded value chip with the station's identity under it.
     Three stacked numbers per site was unreadable the moment two stations sat close together. */
  .stn2{display:flex;flex-direction:column;align-items:center;line-height:1;width:54px;margin-left:-27px;margin-top:-14px}
  .stn2-v{font-size:12.5px;font-weight:800;color:#0b0f16;background:var(--c);border-radius:9px;padding:3px 7px;
    box-shadow:0 1px 5px rgba(0,0,0,.5);white-space:nowrap;font-variant-numeric:tabular-nums}
  /* Station-plot internals sit off the type scale by design — this is a label pinned to a map
     coordinate, and it has to stay small enough that fourteen of them don't collide. 10px is the
     most it can carry at the densities the LSX area produces. */
  .stn2-id{font-size:10px;font-weight:800;color:var(--text);margin-top:2px;letter-spacing:.4px;
    text-shadow:0 1px 3px var(--bg),0 0 5px var(--bg),0 0 8px var(--bg)}
  .stn2-w{display:inline-flex;align-items:center;gap:2px}
  .stn2-arrow{display:inline-block;font-weight:900;font-size:12px}
  .stn2.is-hi .stn2-v{box-shadow:0 0 0 2px var(--text),0 1px 5px rgba(0,0,0,.5)}
  /* A stale ob (>2 hr — see loadStationPlot) keeps its place on the map — an old temperature
     still beats a hole — but at less than full standing, and it can't win an extremes chip.
     The tooltip's when-line says how old it actually is. */
  .stn2.is-old{opacity:.45}
  /* metric switcher */
  .stn-tools{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:9px}
  /* These four read as buttons and are the card's primary control, so they take the full 44px
     rather than hiding it behind an overlay — a metric switcher you tap all the time should feel
     like one. Same for the radar transport above. */
  .stn-tools button{min-height:44px;padding:6px 10px;font-size:var(--fs-sm);font-weight:600;flex:1 1 auto;justify-content:center}
  .stn-tools button.on{border-color:var(--accent);color:var(--accent);background:var(--glow)}
  /* regional extremes — the "what's notable" line the old plot never had */
  .stn-ex{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
  /* Was a one-off 11.5px. It is a readable sentence ("Warmest SUS 90°"), not chart geometry, so it
     belongs on the type scale with the rest of the informational text. */
  .stn-ex .sx{font-size:var(--fs-xs);color:var(--muted);background:var(--inset);border:1px solid var(--border);
    border-radius:var(--r-md);padding:4px 10px;white-space:nowrap}
  .stn-ex .sx b{color:var(--text);font-weight:800;margin-right:4px}
  .stn-ex .sx-n{color:var(--muted)}
  /* Leaflet tooltips are nowrap by default, which was fine for one line of readings and is not now
     that a station name sits above them — 336px of tooltip on a 390px phone. */
  .leaflet-tooltip.stn-tip{font-size:12px;font-weight:600;background:var(--panel);color:var(--text);
    border:1px solid var(--border);box-shadow:var(--shadow);border-radius:var(--r-sm);padding:6px 10px;
    white-space:normal;width:max-content;max-width:min(230px,70vw);line-height:1.4}
  .leaflet-tooltip.stn-tip:before{display:none}
  .imgfail{padding:22px;text-align:center;color:var(--muted);font-size:var(--fs-md);line-height:1.6}

  /* The Sky card used to earn its slot the way the AQI card does — shown only for rain, storms,
     snow, a watch/warning or a wet next-few-hours, with a rail button to summon it by hand. That
     whole subsystem (radarWorthy(), body.no-radar, the show/hide toggle and the full-row "calm"
     layout for Current Conditions) is gone: the sky is now permanent, so the hero band is always
     conditions-on-the-left, sky-on-the-right and there is only one layout to reason about. */

  /* ===== Radar sizing: a peek, not the product =====
     Compact by default — enough to answer "is anything heading my way", with fullscreen a click
     away for "where exactly, and when". Height comes from an aspect ratio rather than a pixel
     value so the map is landscape at every width instead of going portrait in narrow columns. */
  #radarCard .imgwrap{aspect-ratio:16/9}
  #radarCard #radar{height:100%}
  /* The ratio fixes the SHAPE but not the SIZE, and height is what costs a reader the fold. The
     shell cap already holds the map near the ~500px this was drawn at, but viewport HEIGHT is a
     second axis a width cap cannot see: at 1366x768 the map still ran past the bottom of the
     screen with the entire dashboard underneath it. The vh term is what does the work; 560px is
     just the ceiling on a tall monitor. Clamping height against an unchanged width only widens the
     ratio, which is the direction this card already wants — the note above is about never going
     PORTRAIT, and a 1.9:1 strip is further from that, not nearer.
     The gate is BOTH axes, and it has to be: 62vh is a height rule, so gating it on width alone
     handed it the one class of device it was never written for. Every current iPhone in landscape
     is wider than 680 — 812 through 932 — with only 375 to 430 of height under it, and the clamp
     read that as a short desktop. Measured at 844x390 it cut the map to 774x242: a 3.2:1 slit,
     which on a square-ish CWA crops the northern and southern counties out of the picture
     entirely. Rotating a phone to landscape IS the request for a bigger map, and a width-only
     gate answered it by halving one.
     600px of height separates the two cases with room to spare on either side — landscape
     handsets top out near 430, landscape tablets start near 744 — and the viewport this rule was
     written for, 1366x768, sits comfortably inside it. Below that height the phone ratios (4/3,
     and 1/1 in a flood) and the everyday 16:9 are all left exactly as they are, which does mean
     the map runs past a landscape fold. So does the portrait one, and scrolling to a map you
     turned the phone sideways to see is the cheaper of the two costs.
     Fullscreen is excluded because there the map is flex-filled with aspect-ratio off (below), and
     a max-height is the single property able to break that. */
  @media(min-width:681px) and (min-height:600px){
    body:not(.radar-full) #radarCard .imgwrap{max-height:min(560px, 62vh)}
  }
  @media(max-width:680px){
    #radarCard .imgwrap{aspect-ratio:4/3}
  }
  .rs-head{display:flex;align-items:center;gap:8px 14px;margin-bottom:14px;min-width:0}
  .rs-head h2{margin:0;flex:0 0 auto}
  .rs-right{display:inline-flex;align-items:center;gap:12px}
  .rs-right .link{font-size:var(--fs-sm);font-weight:400;white-space:nowrap}
  .rs-right a{position:relative}
  .rs-right a::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
    width:100%;height:100%;min-width:44px;min-height:44px}
  .rs-full{padding:5px 11px;font-size:var(--fs-xs);font-weight:700;
    background:var(--inset);border:1px solid var(--border);color:var(--muted);font-family:inherit;
    cursor:pointer;text-transform:none;letter-spacing:0;line-height:1.3;white-space:nowrap}
  .rs-full:hover{color:var(--accent);border-color:var(--accent)}
  .rs-full:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
  /* Expand when inline, close when fullscreen — the class that moves the card picks the mark. */
  body.radar-full #rsFull .ic-show,
  body:not(.radar-full) #rsFull .ic-hide{display:none}
  @media(max-width:600px){
    .rs-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px}
    .rs-head h2{grid-column:1;grid-row:1}
    .rs-head .rs-right{grid-column:2;grid-row:1}
    .rs-full .rsf-t{display:none}.rs-full{padding:5px 9px;font-size:var(--fs-md)}
  }

  /* ===== Radar fullscreen =====
     The card lifts out of the grid and covers the viewport. Nothing about the map changes, so the
     loop, the layer toggles and the warning polygons all keep working — it simply gets the room to
     use them. Body scroll is locked so a wheel gesture over the map can't scroll the page behind it. */
  body.radar-full{overflow:hidden}
  body.radar-full #radarCard{
    position:fixed;inset:0;z-index:400;margin:0;border-radius:0;border:0;
    display:flex;flex-direction:column;max-width:none;
    padding:max(12px, env(safe-area-inset-top,0px)) 14px calc(12px + env(safe-area-inset-bottom,0px));
    background:linear-gradient(180deg,var(--panel),var(--panel-2));
  }
  body.radar-full #radarCard .rs-view{flex:1 1 auto;min-height:0}
  /* aspect-ratio would fight the flex fill — in fullscreen the map takes whatever is left */
  body.radar-full #radarCard .imgwrap{aspect-ratio:auto;flex:1 1 auto;min-height:0}
  body.radar-full #radarCard #radar{height:100%}
  /* the tap-to-interact guard exists to stop mobile scroll-trapping; fullscreen has no page to trap */
  body.radar-full #radarCard .maplock{display:none}

  /* ===== Layer toggles =====
     These were Radar/Satellite TABS — a tablist that swapped one view for the other. Satellite is
     a real tile layer on the same map now, so the two aren't alternatives any more and a tablist
     would be lying about the relationship: they stack. Same chip drawing, different semantics —
     two independent <button aria-pressed>, and both can be on (the default) or off at once.
     The dot is doing the work a tab's selected-background used to do. Colour alone would carry it
     for most people, but "which of these two is on" is exactly the distinction that fails at AA
     for a red-green viewer, so on/off differs in fill AND ring, not just hue. */
  .rs-tabs{display:inline-flex;gap:4px;margin-left:auto;background:var(--inset);border:1px solid var(--border);
    border-radius:var(--r-lg);padding:3px}
  .rs-tab{min-height:0;padding:5px 11px;font-size:var(--fs-xs);font-weight:700;text-transform:uppercase;
    letter-spacing:.7px;border:0;border-radius:13px;background:transparent;color:var(--muted);
    font-family:inherit;cursor:pointer;line-height:1.3;display:inline-flex;align-items:center;gap:6px}
  .rs-tab::before{content:"";width:7px;height:7px;border-radius:50%;flex:0 0 auto;
    background:transparent;box-shadow:inset 0 0 0 1.5px currentColor}
  .rs-tab:hover{color:var(--text);border-color:transparent}
  .rs-tab.on{background:var(--chip);color:var(--accent)}
  .rs-tab.on::before{background:currentColor;box-shadow:none}
  .rs-tab:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
  .radar-options{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-bottom:8px}
  .radar-options .rs-tabs{margin-left:0}
  .radar-options .rs-tab{min-height:36px;text-transform:none;letter-spacing:0}
  .radar-sources .rs-tab::before{display:none}
  .radar-product{display:flex;align-items:center;gap:8px;font-size:var(--fs-xs);color:var(--muted)}
  .radar-product select{min-height:38px;max-width:100%;padding:6px 8px;font:inherit;color:var(--text);
    background:var(--inset);border:1px solid var(--border);border-radius:var(--r-md)}
  .radar-product select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  .radar-product select:disabled{opacity:.6}
  .radar-product-note{margin:0 0 10px;font-size:var(--fs-xs);line-height:1.5;color:var(--muted)}
  /* One view now, but the class stays: the fullscreen rules target it to make the map the flex
     child that grows, and the card is still a flex column. */
  .rs-view{display:flex;flex-direction:column;min-width:0}
  @media(max-width:480px){.rs-tab{padding:5px 9px;font-size:var(--fs-xs);letter-spacing:.4px;gap:5px}}

  /* Tap-to-interact overlay for map iframes (Fix 1 — kills mobile scroll-trap) */
  .maplock-wrap{position:relative}
  /* z-index has to clear LEAFLET's controls, not just the map. `.leaflet-top`/`.leaflet-bottom` sit
     at 1000, and `#radar` sets no z-index of its own, so it never opens a stacking context to trap
     them — the controls competed directly with this overlay and won. At z-index 3 the consequence
     on a phone was specific and bad: the attribution bar wraps to three lines over a 236px-tall
     map, lands exactly where a bottom-centred pill lands, and `elementFromPoint` on the middle of
     "Tap to interact" returned the OpenStreetMap link. The affordance that says the map is
     interactive was a link to openstreetmap.org. Above the controls, locked means locked —
     including the zoom buttons, which used to poke through and work while the map said it was not
     listening. The pill also clears the attribution outright now (26px, not 14px), so the two are
     not merely correctly ordered but not overlapping. */
  .maplock{position:absolute;inset:0;z-index:1200;display:flex;align-items:flex-end;justify-content:center;
    padding-bottom:26px;cursor:pointer;background:linear-gradient(transparent 72%, rgba(10,14,20,.28))}
  .maplock-pill{background:rgba(10,14,20,.85);border:1px solid var(--border);border-radius:var(--r-pill);
    padding:9px 16px;font-size:var(--fs-md);font-weight:600;color:#fff;box-shadow:var(--shadow)}
  .maplock-wrap.unlocked .maplock{display:none}
  .maplock-wrap.map-unavailable .maplock,.maplock-wrap.map-unavailable .maplock-toggle{display:none}
  .maplock-toggle{position:absolute;top:8px;right:8px;z-index:1201;display:none;min-height:0;
    background:rgba(10,14,20,.85);border:1px solid var(--border);border-radius:var(--r-pill);
    padding:7px 13px;font-size:var(--fs-sm);font-weight:600;color:var(--text);cursor:pointer}
  .maplock-wrap.unlocked .maplock-toggle{display:block}

  /* Rivers */
  .river{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));gap:8px}
  .rlink{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;
    background:var(--inset);border:1px solid var(--border);border-left:5px solid var(--muted);
    border-radius:var(--r-md);padding:11px 13px;font-size:var(--fs-md);color:var(--text)}
  .rlink:hover{border-color:var(--accent);text-decoration:none}
  .rlink .rname{font-weight:600}
  .rlink .rval{font-variant-numeric:tabular-nums;font-weight:700;font-size:var(--fs-lg)}
  .rlink .rcat{font-size:var(--fs-sm);padding:2px 9px;border-radius:var(--r-pill);background:var(--chip);white-space:nowrap;margin-left:8px}
  .rlink.c-none{border-left-color:var(--good)}
  .rlink.c-action{border-left-color:#ffd23f}
  .rlink.c-minor{border-left-color:#ff9f2f}
  .rlink.c-moderate{border-left-color:#ff6a2f}
  .rlink.c-major{border-left-color:#ff3b3b}
  .rlink .rmeta{display:flex;align-items:center;gap:2px}

  /* AQI — the card only EARNS its slot when air quality is actually a story (AQI > 100).
     The rest of the year it's a one-line summary inside Current Conditions. */
  #aqiCard{display:none}
  #aqiCard.show{display:block}
  /* UV sits with air quality: both are "how much is this going to cost me to be outside" numbers,
     and neither is observed at the station — they come from Open-Meteo, so they stay OUT of the
     metric grid that the "Observed … KSUS" line below describes. They wear .cc-item's chrome
     instead, because four run-on sentences at 12px was the whole readability problem: the burn
     clock read exactly like a record from 1936. A number the eye can land on, then the detail.
     The value and sub-lines are phrases with <b> inside them and are deliberately NOT flex —
     flex promotes each text run to its own item and opens gaps mid-phrase ("burn ~ 29 min").
     136px is not arbitrary: the hero's left column is a third of the grid, and two tracks plus the
     gap have to fit inside it at the narrowest desktop width or auto-fit silently stacks them. */
  .cc-expo{display:grid;grid-template-columns:repeat(auto-fit,minmax(136px,1fr));gap:10px;margin-top:12px}
  .cc-uv:empty,.aqi-mini:empty{display:none}
  .cc-expo .v{line-height:1.25}
  .cc-expo .ex-cat{font-size:var(--fs-sm);font-weight:700;color:var(--muted);margin-left:3px}
  .cc-expo .ex-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;vertical-align:middle}
  .cc-expo .s{font-size:var(--fs-xs);color:var(--muted);margin-top:4px;line-height:1.45}
  .cc-expo .s:empty{display:none}
  .cc-expo .s b{color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}
  .cc-expo .ex-b{white-space:nowrap}   /* wrap BETWEEN clauses, never inside "sunburn in ~33 min" */
  .cc-expo .ex-hint{cursor:help}       /* carries the assumption behind the burn figure in a title */
  /* No margin: the literal spaces the renderer puts either side of this are the only break
     opportunity in the sub-line, and with nowrap clauses on both sides they have to stay real
     whitespace or the line cannot wrap at all and overflows the tile. */
  .cc-expo .ex-sep{color:var(--muted)}
  /* Text uses explicit theme colors, rather than filtering the entire element
     (including its already-muted children). Decorative dots retain their hue. */
  :root[data-theme="light"] .cc-expo .ex-dot{filter:brightness(.45)}
  .stn a,.empty a{text-decoration:underline;text-underline-offset:2px}
  .aqi-main{display:flex;align-items:center;gap:16px}
  .aqi-num{font-size:var(--fs-hero);font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
  .aqi-cat{font-size:var(--fs-lg);font-weight:700;margin-top:2px}
  .aqi-sub{font-size:var(--fs-sm);color:var(--muted);margin-top:4px;line-height:1.4}
  .aqi-chip{width:14px;height:44px;border-radius:6px}

  /* CPC Hazards Outlook */
  .hz-row{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid var(--border)}
  .hz-row:last-child{border-bottom:0}
  .hz-when{font-size:var(--fs-sm);color:var(--muted);font-weight:700;flex:0 0 72px;padding-top:3px;white-space:nowrap}   /* fits "Days 8–14" — 62px wrapped it */
  .hz-list{display:flex;flex-wrap:wrap;gap:6px}
  .hz-chip{font-size:var(--fs-sm);font-weight:500;padding:4px 10px;background:var(--chip);border:1px solid var(--border)}
  .hz-chip .hz-dates{color:var(--muted);font-weight:600;font-variant-numeric:tabular-nums}
  .hz-fc{flex-basis:100%;font-size:var(--fs-xs);color:var(--muted);line-height:1.4}
  .hz-none{font-size:var(--fs-sm);color:var(--muted);display:inline-flex;align-items:center;gap:6px}
  .hz-clear .hz-none .ic{color:var(--good)}
  /* Drought Monitor line */
  .dr-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0 2px;margin-top:6px;border-top:1px solid var(--border)}
  /* Drought Outlook card — three tiers (now / month / season) */
  .dr-tier{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid var(--border)}
  .dr-tier:first-of-type{border-top:none}
  .dr-when{font-size:var(--fs-md);font-weight:600;color:var(--muted)}
  .dr-sub{font-weight:400;color:var(--muted)}
  .dr-dim{color:var(--muted)}
  .dr-label{font-size:var(--fs-sm);color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.5px}
  .dr-pill{font-size:var(--fs-sm);font-weight:700;padding:5px 12px;white-space:nowrap}
  .dr-none{font-size:var(--fs-md);color:var(--good);font-weight:600}
  /* An outage is not an all-clear, so it must not borrow the green one. Two classes deep because
     .dr-none is declared after .dr-dim and would otherwise win on source order alone. */
  .dr-none.dr-dim{color:var(--muted)}
  .dr-link{font-size:var(--fs-sm)}
  .dr-load{color:var(--muted)}
  /* Climate vs Normal */
  .cn-today{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
  .cn-trow{display:flex;align-items:baseline;gap:8px}
  .cn-k{font-size:var(--fs-sm);color:var(--muted);flex:0 0 100px}
  .cn-v{font-size:var(--fs-lg);font-weight:700}
  .cn-v b{font-variant-numeric:tabular-nums}
  .cn-n{font-size:var(--fs-sm);color:var(--muted);margin-left:auto;font-variant-numeric:tabular-nums}
  .cn-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .cn-cell{display:flex;flex-direction:column;gap:3px;padding:9px 11px;background:var(--inset);border:1px solid var(--border);border-radius:var(--r-md)}
  .cn-lbl{font-size:var(--fs-xs);color:var(--muted);text-transform:uppercase;letter-spacing:.4px;font-weight:700}
  .cn-cell>span:last-child{font-size:var(--fs-lg);font-weight:800;font-variant-numeric:tabular-nums}
  /* warm/cool/wet/dry were raw dark-theme hex (#ff6a3d/#4aa3ff/#3aa0ff/#d98a2b) and stayed that way
     on the light page, where they sat between 2.0 and 2.7:1. The page already owns a theme-aware
     word for each of these directions — see .cc-ctx .rc-hi below, which had made the same move.
     (wet and cool land on the same token because #3aa0ff and #4aa3ff were already the same blue to
     within six values of red; they are told apart by which cell they are in, not by hue.) */
  .cn-warm{color:var(--sev)}.cn-cool{color:var(--accent)}.cn-wet{color:var(--accent)}.cn-dry{color:var(--warn)}.cn-flat{color:var(--muted)}.cn-na{color:var(--muted)}
  /* Provenance / gap note for the departures grid — a dash should never be unexplained */
  .cn-src{font-size:var(--fs-xs);color:var(--muted);line-height:1.45;margin-top:9px}
  .cn-src:empty{display:none}
  .cn-src b{color:var(--text);font-weight:700}
  /* Context lines — records, rankings, streaks (never shown unless verified) */
  .cn-ctx{display:flex;flex-direction:column;gap:7px;margin-top:11px;padding-top:10px;border-top:1px solid var(--border)}
  .cn-ctx:empty{display:none}
  .cx{font-size:var(--fs-sm);line-height:1.45;color:var(--muted);display:flex;gap:7px;align-items:baseline}
  .cx .cxi{flex:0 0 auto;font-size:var(--fs-md)}
  .cx b{color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}
  .cx .cx-rec{color:var(--sev);font-weight:700}
  .cx .cx-cold{color:var(--accent);font-weight:700}
  /* the "how many years, which station" tail on the records line — was an inline opacity:.7 */
  .cx .cx-src{color:var(--muted)}
  .cx .cx-dry{color:var(--warn);font-weight:700}
  .cx .cx-wet{color:var(--accent);font-weight:700}
  /* Rank bar — where today sits in the station's whole record for this date */
  .cx-rank{flex-direction:column;gap:6px;align-items:stretch}
  .cx-rank .cx-row{display:flex;gap:7px;align-items:baseline}
  .cx-bar{position:relative;height:6px;border-radius:3px;background:linear-gradient(90deg,#4aa3ff,#3ecf8e,#ffd23f,#ff6a3d);opacity:.55}
  .cx-bar i{position:absolute;top:-3px;width:3px;height:12px;border-radius:2px;background:var(--text);box-shadow:0 0 0 2px var(--panel)}
  /* Current-conditions climate line — normals and today's records, labeled rather than run
     together, so the numbers carry the line and the words get out of the way. "record high" and
     "low" are gone: the RECORD label plus warm/cool colour says it in no characters at all. */
  .cc-ctx{display:flex;flex-wrap:wrap;gap:5px 20px;font-size:var(--fs-md);color:var(--text);
    margin-top:12px;line-height:1.5;font-variant-numeric:tabular-nums}
  .cc-ctx:empty{display:none}
  .cc-ctx .cx-pair{white-space:nowrap}        /* a phrase, not a flex container */
  .cc-ctx .cx-pair i{font-style:normal;font-size:var(--fs-2xs);font-weight:800;text-transform:uppercase;
    letter-spacing:.6px;color:var(--muted);margin-right:7px}
  .cc-ctx b{font-weight:700}
  /* --sev and --accent are the theme-aware warm/cool pair; the raw #ff6a3d/#4aa3ff the climate
     card uses would drop to ~2.7:1 on the light panel at this size. */
  .cc-ctx .rc-hi{color:var(--sev)}
  .cc-ctx .rc-lo{color:var(--accent)}
  .cc-ctx .rc-y{font-size:var(--fs-xs);font-weight:600;color:var(--muted);margin-left:3px}
  .cc-ctx .rc-sep{display:inline-block;width:11px}   /* groups each record with its year */
  /* River sub-line: distance to flood stage + trend */
  .rlink .rname{display:flex;flex-direction:column;gap:2px;min-width:0}
  /* The gauge icon belongs on the name's line, not stacked above it — .rname is a column. */
  .rlink .rn-top{display:flex;align-items:center;gap:7px;min-width:0}
  .rsub{font-size:var(--fs-xs);color:var(--muted);font-weight:500;font-variant-numeric:tabular-nums}
  .rsub .rup{color:var(--sev)}.rsub .rdn{color:var(--good)}
  /* the category a forecast crest would reach — the part that actually matters during a flood */
  .rfcat{padding:1px 6px;background:var(--chip);color:var(--muted);white-space:nowrap}
  /* Flood category is a four-step ramp, so it keeps four distinct colours rather than collapsing
     onto the three semantic tokens. The tint stays fixed (it reads over both themes); only the
     LABEL needs a per-theme value, because the same yellow that is legible on near-black is 1.9:1
     on the light tint. */
  .rfcat.c-action{background:rgba(255,210,63,.18);color:#ffd23f}
  .rfcat.c-minor{background:rgba(255,159,47,.18);color:#ff9f2f}
  .rfcat.c-moderate{background:rgba(255,106,47,.20);color:#ff6a2f}
  .rfcat.c-major{background:rgba(255,59,59,.22);color:#ff3b3b}
  :root[data-theme="light"] .rfcat.c-action{color:#6d5100}
  :root[data-theme="light"] .rfcat.c-minor{color:#7d4300}
  :root[data-theme="light"] .rfcat.c-moderate{color:#8f2f00}
  :root[data-theme="light"] .rfcat.c-major{color:#a01414}

  /* Risk Outlook matrix (SPC storm + WPC flood) */
  /* label track must FIT "Tomorrow" — at 52px the word overflowed the track and painted
     underneath the first pill (single word, so it can't wrap) */
  .spc-row{display:grid;grid-template-columns:74px 1fr 1fr 1fr;align-items:center;gap:6px;padding:8px 0;border-bottom:1px solid var(--border)}
  .spc-row:last-child{border-bottom:0}
  .risk-quiet{margin:0;font-size:var(--fs-md);line-height:1.5}
  #riskBreakdown{margin-top:0;border-top:0;padding-top:0}
  #riskBreakdown > summary[hidden]{display:none}
  .spc-row.rhead{padding:2px 0 6px;border-bottom:1px solid var(--border)}
  .spc-row .rh{font-size:var(--fs-2xs);color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.5px;text-align:center}
  .spc-day{font-size:13px;color:var(--muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* wrap rather than nowrap: at masonry column widths the three pills overflowed the card and
     gave the whole page a horizontal scrollbar */
  .spc-row>*{min-width:0}
  .spc-pill{font-size:var(--fs-xs);font-weight:600;padding:5px 8px;border-radius:var(--r-pill);text-align:center;
    white-space:normal;line-height:1.25;overflow-wrap:anywhere}
  .spc-threats{margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}
  .spc-threat-title{font-size:var(--fs-md);font-weight:700;margin-bottom:8px}
  .spc-threat-row{display:grid;grid-template-columns:74px repeat(3,minmax(0,1fr));gap:6px;align-items:center;padding:7px 0}
  .spc-threat-row .rh{font-size:var(--fs-2xs);color:var(--muted);text-align:center}
  .spc-threat-value{min-width:0;text-align:center;font-size:var(--fs-md);font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
  .spc-threat-value.elevated{color:var(--sev)}
  .spc-threat-value.quiet{color:var(--muted);font-weight:500}
  .spc-threat-note{font-size:var(--fs-xs);color:var(--muted);line-height:1.5;margin-top:8px}
  .spc-threat-period{font-size:var(--fs-xs);color:var(--muted);line-height:1.45;margin-top:4px}

  /* SPC mesoscale discussion — the "next 1–3 hours" strip, riding the top of the grid directly
     under the alert banners and dressed as their peer: same standing-on-the-page tint, radius and
     shadow, with --warn as its ring the way a banner wears its level colour. Absent almost
     always: #mcd stays empty except while SPC has a discussion out that names LSX or covers the
     reader's point, and display:none takes the empty grid row (and its gap) with it. */
  #mcd:empty{display:none}
  .mcd{background:var(--inset);border:1px solid color-mix(in srgb,var(--warn) 40%,transparent);
    border-left:4px solid var(--warn);border-radius:var(--r-lg);padding:11px 14px;margin-bottom:8px;
    box-shadow:var(--shadow)}
  .mcd:last-child{margin-bottom:0}
  .mcd.hits{border-left-width:7px}   /* the same extra weight the alert banners give "covers you" */
  /* Local vs elsewhere — the alert list's split, at strip scale. The MD over the reader keeps the
     full banner above; one that's out for the CWA but not this point demotes the way the compact
     #alertsElse rows do: fill dropped, edge thinned, pill quieted to a chip. The summary is the
     line the compact row gives up — the Full discussion link is what asks for it. */
  .mcd.away{background:transparent;padding:8px 11px;
    border-color:color-mix(in srgb,var(--warn) 25%,transparent);
    border-left:3px solid color-mix(in srgb,var(--warn) 55%,transparent)}
  .mcd.away .mcd-sum{display:none}
  .mcd.away .mcd-pill,:root[data-theme="light"] .mcd.away .mcd-pill{background:var(--chip);color:var(--text)}
  .mcd.away .mcd-head .ic{color:var(--muted)}
  .mcd.away .mcd-foot .mcd-me{color:var(--muted)}
  .mcd-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .mcd-head .ic{flex:0 0 auto;color:var(--warn)}
  .mcd-t{font-size:var(--fs-md);font-weight:700}
  .mcd-when{font-size:var(--fs-sm);color:var(--muted);font-weight:600;margin-left:auto;white-space:nowrap}
  /* Pill text colour is theme-split by hand: the pill is the one place --warn is a BACKGROUND,
     and the variable swings from bright amber (dark theme) to deep brown (light) — no single
     ink survives both, and textOn() can't read a CSS variable. */
  .mcd-pill{display:inline-block;font-size:var(--fs-xs);font-weight:700;padding:3px 10px;
    border-radius:var(--r-pill);background:var(--warn);color:#141414;margin-top:7px}
  :root[data-theme="light"] .mcd-pill{color:#fff}
  .mcd-sum{font-size:var(--fs-md);line-height:1.5;margin-top:6px}
  .mcd-foot{font-size:var(--fs-sm);color:var(--muted);margin-top:6px}
  .mcd-foot .mcd-me{font-weight:600;color:var(--warn)}

  /* CPC leanings */
  .cpc-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .cpc-item{background:var(--panel-2);border:1px solid var(--border);border-radius:var(--r-md);padding:10px 12px}
  .cpc-item .k{font-size:var(--fs-xs);color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
  .cpc-pill{margin-top:6px;font-size:var(--fs-md);font-weight:600;padding:5px 12px}

  /* QPF chip in rivers header */
  .qpfchip{font-size:var(--fs-xs);text-transform:none;letter-spacing:0;font-weight:500;color:var(--accent);
    background:var(--inset);border:1px solid var(--border);padding:3px 9px;margin-left:6px}
  .qpfchip:empty{display:none}

  /* Next 24 Hours — a full-width band of its own, not the foot of the hero column any more */
  #hourly24 .h24-sum{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
  .h24-pill{background:var(--inset);border:1px solid var(--border);padding:6px 13px;font-size:var(--fs-sm);font-weight:500;color:var(--muted)}
  .h24-pill b{color:var(--text);font-weight:700;margin-left:3px;font-variant-numeric:tabular-nums}
  .h24-pill.h24-now{margin-left:auto;background:var(--chip)}
  /* The chart itself. renderHourly24() emits width/height attributes alongside the viewBox, and
     these two rules are what override them — so a snapshot drawn at one width scales to fit when
     it is restored at another rather than overflowing the card. That matters more since the chart
     moved: the container went from ~456px in the hero column to ~1366px here, so a desktop
     snapshot restored on a phone is now a genuine four-fold mismatch until live data re-renders. */
  .h24-wrap{position:relative;width:100%}
  .h24-svg{display:block;width:100%;height:auto}
  .h24-svg text{font-family:inherit}
  .h24-svg .h24-tl{font-size:12.5px;font-weight:800;font-variant-numeric:tabular-nums}
  .h24-svg .h24-time{font-size:11px;font-weight:700;fill:var(--muted)}
  .h24-svg .h24-time.is-now{fill:var(--accent)}
  .h24-svg .h24-poplbl{font-size:10px;font-weight:700}
  .h24-tip{position:absolute;top:2px;display:none;pointer-events:none;background:var(--bg);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--border);
    border-radius:var(--r-md);padding:7px 11px;font-size:var(--fs-sm);white-space:nowrap;box-shadow:var(--shadow);z-index:5}
  .hourly-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
  .hourly-head h2{margin:0}
  .hourly-options{display:flex;gap:4px}
  .hourly-options button{min-height:44px;padding:7px 12px;font-size:var(--fs-sm)}
  .hourly-options button[aria-pressed="true"]{background:var(--chip);border-color:var(--accent);color:var(--accent)}
  .h24-detail{display:flex;flex-wrap:wrap;gap:5px 18px;font-size:var(--fs-md);line-height:1.5;padding:10px 0 4px;min-height:46px}
  .h24-detail .muted{color:var(--muted)}
  .h24-cursor{width:100%;min-height:32px;accent-color:var(--accent);cursor:pointer}
  .h24-note{font-size:var(--fs-xs);color:var(--muted);line-height:1.5;margin-top:4px}
  .precip-details{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--border)}
  .precip-events:empty{display:none}
  .precip-head{font-size:var(--fs-md);font-weight:700;margin-bottom:8px}
  .precip-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
  .precip-event{padding:10px 12px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--inset)}
  .precip-when{font-size:var(--fs-sm);color:var(--muted);line-height:1.5}
  .precip-total{font-size:var(--fs-lg);font-weight:700;margin:4px 0}
  .precip-note{font-size:var(--fs-xs);color:var(--muted);line-height:1.5;margin-top:7px}

  /* line-height 1.7 → 2.0 is a tap-target change, not a typographic one. The attribution links are
     inline in running prose, which both target-size criteria explicitly exempt — and rightly, since
     a 44px inline link would tear the paragraph apart. But 14px tall is meaner than it needs to be,
     so they take vertical padding to 24px (the AA floor) and the extra leading is what stops the
     enlarged boxes on consecutive lines from overlapping each other. */
  footer{margin-top:20px;text-align:center;color:var(--muted);font-size:var(--fs-sm);line-height:2.0}
  footer a{padding-block:5px}
  .loading{color:var(--muted);font-size:var(--fs-md)}

  /* ===== Dynamic weather background (ambient, accessibility-safe) ===== */
  #wxbg{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
  #wxbg::before,#wxbg::after{content:"";position:absolute;inset:-40px}
  /* condition tints (::before) — all ≤ .15 alpha so contrast is untouched */
  body[data-wx="sun"] #wxbg::before{background:
    radial-gradient(900px 520px at 85% -6%, rgba(255,186,60,0.21), transparent 62%),
    radial-gradient(1100px 640px at 12% 108%, rgba(74,163,255,0.15), transparent 60%)}
  body[data-wx="night"] #wxbg::before{background:
    radial-gradient(1000px 600px at 82% -8%, rgba(96,112,255,0.20), transparent 62%),
    radial-gradient(1.6px 1.6px at 14% 24%, rgba(255,255,255,0.24) 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 33% 12%, rgba(255,255,255,0.24) 50%, transparent 55%),
    radial-gradient(1.8px 1.8px at 56% 30%, rgba(255,255,255,0.24) 50%, transparent 55%),
    radial-gradient(1.3px 1.3px at 72% 16%, rgba(255,255,255,0.24) 50%, transparent 55%),
    radial-gradient(1.6px 1.6px at 88% 26%, rgba(255,255,255,0.24) 50%, transparent 55%)}
  body[data-wx="cloud"] #wxbg::before{background:
    radial-gradient(1000px 560px at 78% -8%, rgba(128,146,170,0.18), transparent 60%),
    radial-gradient(900px 520px at 15% 106%, rgba(128,146,170,0.12), transparent 60%)}
  body[data-wx="rain"] #wxbg::before{background:
    radial-gradient(1000px 580px at 80% -8%, rgba(64,140,220,0.20), transparent 62%),
    radial-gradient(950px 560px at 12% 108%, rgba(50,110,180,0.14), transparent 60%)}
  body[data-wx="storm"] #wxbg::before{background:
    radial-gradient(1000px 580px at 80% -8%, rgba(132,96,255,0.21), transparent 62%),
    radial-gradient(950px 560px at 14% 108%, rgba(70,90,200,0.15), transparent 60%)}
  body[data-wx="snow"] #wxbg::before{background:
    radial-gradient(1000px 580px at 80% -8%, rgba(170,200,240,0.20), transparent 62%),
    radial-gradient(950px 560px at 14% 108%, rgba(150,180,230,0.12), transparent 60%)}
  body[data-wx="fog"] #wxbg::before{background:
    linear-gradient(180deg, rgba(150,160,175,0.15), rgba(150,160,175,0.06) 45%, rgba(150,160,175,0.15)),
    radial-gradient(1100px 620px at 60% -10%, rgba(150,160,175,0.15), transparent 65%)}
  /* particles (::after) — gentle, GPU-cheap, never strobes */
  body[data-wx="rain"] #wxbg::after,
  body[data-wx="storm"] #wxbg::after{
    background:repeating-linear-gradient(75deg, transparent 0 16px, rgba(130,175,255,.09) 16px 17.5px, transparent 17.5px 30px);
    animation:wxRain 1.1s linear infinite}
  body[data-wx="storm"] #wxbg::after{
    background:repeating-linear-gradient(75deg, transparent 0 14px, rgba(160,150,255,.10) 14px 15.5px, transparent 15.5px 26px);
    animation-duration:.85s}
  @keyframes wxRain{to{background-position:34px 128px}}
  body[data-wx="snow"] #wxbg::after{
    background-image:
      radial-gradient(2.6px 2.6px at 22% 18%, rgba(255,255,255,.40) 55%, transparent 60%),
      radial-gradient(2px 2px at 48% 62%, rgba(255,255,255,.32) 55%, transparent 60%),
      radial-gradient(3px 3px at 74% 34%, rgba(255,255,255,.36) 55%, transparent 60%),
      radial-gradient(2.2px 2.2px at 88% 78%, rgba(255,255,255,.30) 55%, transparent 60%),
      radial-gradient(2.4px 2.4px at 10% 84%, rgba(255,255,255,.34) 55%, transparent 60%);
    background-size:260px 260px;
    animation:wxSnow 11s linear infinite}
  @keyframes wxSnow{to{background-position:28px 260px}}
  /* accessibility: reduced motion → static tints only */
  @media (prefers-reduced-motion: reduce){
    #wxbg::after{animation:none !important;background:none !important}
    #wxbg i{animation:none !important}
  }

  /* ===== Ambient motion stops when nobody is looking =====
     Every animation named here runs forever by design — the logo's radar sweep, the two colour
     blobs breathing behind the page, the rain and snow textures, and the pulses that mark a storm
     or an emergency. On a tab left open all day that is a phone quietly warming in a pocket for a
     page nobody is reading. syncTabMotion() in the script sets the class.
     The list is explicit rather than a blanket `*`: the one-shot animations must be free to
     FINISH. A tab hidden mid-load would otherwise freeze cardIn part-way and hand back a page of
     half-transparent cards on return, which is a worse bug than a sweep that kept turning.
     Orthogonal to prefers-reduced-motion, which switches these off outright and stays the stronger
     rule — pausing something already set to `animation:none` is a no-op.
     !important is load-bearing here, not defensive. The blobs get their motion from
     `body[data-wx="sun"] #wxbg i.b1{animation:wxBreathe 12s …}` — and the animation SHORTHAND also
     sets animation-play-state, back to its initial `running`. That rule outranks this one, so
     without !important the two colour blobs (the largest, longest-running thing on the page, and
     the whole reason this exists) kept animating while everything else stopped. Uniform rather
     than only on #wxbg, so the next rule written as a shorthand doesn't quietly reopen the hole. */
  html.tab-hidden .logo .lg-sweep,
  html.tab-hidden .alert.lv-emergency,
  html.tab-hidden .snapbar .sb-spin,
  html.tab-hidden #wxbg::after,
  html.tab-hidden #wxbg i{animation-play-state:paused !important}

  /* ===== Liquid Glass (frosted widgets over the living background) ===== */
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))){
    .card{
      background:linear-gradient(180deg,var(--glass1),var(--glass2));
      -webkit-backdrop-filter:blur(22px) saturate(1.55);
      backdrop-filter:blur(22px) saturate(1.55);
      border:1px solid var(--gline);
      /* Surface only — the geometry stays with .card. This block used to re-declare the radius at
         20px against the base rule's 14px, which is how --radius ended up defined once, used once
         and silently overridden everywhere it mattered. */
      box-shadow:inset 0 1px 0 var(--gspec), inset 0 -1px 0 rgba(0,0,0,.06), var(--shadow);
    }
    select,button:where(:not(.ab-head)),.locsearch #locSearch{
      background:var(--glass1);
      -webkit-backdrop-filter:blur(14px) saturate(1.4);
      backdrop-filter:blur(14px) saturate(1.4);
      border-color:var(--gline);
      box-shadow:inset 0 1px 0 var(--gspec);
    }
    .locsug{
      background:var(--glass1);
      -webkit-backdrop-filter:blur(24px) saturate(1.5);
      backdrop-filter:blur(24px) saturate(1.5);
      border-color:var(--gline);
    }
    .maplock-pill,.maplock-toggle{
      -webkit-backdrop-filter:blur(10px);
      backdrop-filter:blur(10px);
    }
  }
  /* Text-heavy cards need a still surface even while the weather scene moves behind them. */
  .card.hero,#callCard,#afdCard,#h24Card,#alertsCard.calm{
    background:linear-gradient(180deg,var(--reading-top),var(--reading-bottom));
    -webkit-backdrop-filter:none;backdrop-filter:none}
  .masonry>.card{padding-block:18px;box-shadow:var(--secondary-shadow);
    border-color:color-mix(in srgb,var(--border) 78%,transparent)}
  header .header-right button{background:var(--inset);box-shadow:none;border-color:var(--border)}
  header .locsearch #locSearch{background:var(--panel);border-color:var(--border);font-size:var(--fs-card-title)}
  button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  /* users who prefer opacity get solid panels back */
  @media (prefers-reduced-transparency: reduce){
    .card,select,button:where(:not(.ab-head)),.locsearch #locSearch,.locsug{
      background:linear-gradient(180deg,var(--panel),var(--panel-2)) !important;
      -webkit-backdrop-filter:none !important;
      backdrop-filter:none !important;
      border-color:var(--border) !important;
    }
  }

  /* ===== Living scene blobs (soft drifting light, transform/opacity only) ===== */
  #wxbg i{position:absolute;border-radius:50%;filter:blur(70px);opacity:0;transition:opacity 1.6s ease;will-change:transform}
  @keyframes wxDriftA{0%{transform:translate3d(-5%,0,0)}50%{transform:translate3d(5%,3%,0)}100%{transform:translate3d(-5%,0,0)}}
  @keyframes wxDriftB{0%{transform:translate3d(4%,2%,0)}50%{transform:translate3d(-5%,-2%,0)}100%{transform:translate3d(4%,2%,0)}}
  @keyframes wxBreathe{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.07);opacity:1}}
  body[data-wx="sun"] #wxbg i.b1{width:52vw;height:44vh;right:-8%;top:-12%;background:rgba(255,186,60,.20);opacity:1;animation:wxBreathe 12s ease-in-out infinite}
  body[data-wx="sun"] #wxbg i.b2{width:44vw;height:36vh;left:-10%;bottom:-14%;background:rgba(74,163,255,.14);opacity:1;animation:wxDriftA 80s ease-in-out infinite}
  body[data-wx="night"] #wxbg i.b1{width:50vw;height:42vh;right:-6%;top:-10%;background:rgba(96,112,255,.16);opacity:1;animation:wxDriftB 95s ease-in-out infinite}
  body[data-wx="night"] #wxbg i.b2{width:38vw;height:30vh;left:-8%;bottom:-10%;background:rgba(140,90,220,.10);opacity:1;animation:wxDriftA 120s ease-in-out infinite}
  body[data-wx="cloud"] #wxbg i.b1{width:58vw;height:40vh;left:2%;top:-10%;background:rgba(140,158,182,.17);opacity:1;animation:wxDriftA 90s ease-in-out infinite}
  body[data-wx="cloud"] #wxbg i.b2{width:48vw;height:34vh;right:-6%;bottom:-12%;background:rgba(120,138,162,.12);opacity:1;animation:wxDriftB 110s ease-in-out infinite}
  body[data-wx="rain"] #wxbg i.b1{width:56vw;height:40vh;left:0;top:-10%;background:rgba(64,120,190,.18);opacity:1;animation:wxDriftA 85s ease-in-out infinite}
  body[data-wx="rain"] #wxbg i.b2{width:46vw;height:34vh;right:-8%;bottom:-12%;background:rgba(50,100,160,.13);opacity:1;animation:wxDriftB 105s ease-in-out infinite}
  body[data-wx="storm"] #wxbg i.b1{width:58vw;height:42vh;left:-2%;top:-12%;background:rgba(120,90,230,.20);opacity:1;animation:wxDriftA 70s ease-in-out infinite}
  body[data-wx="storm"] #wxbg i.b2{width:48vw;height:36vh;right:-8%;bottom:-12%;background:rgba(70,90,200,.14);opacity:1;animation:wxDriftB 90s ease-in-out infinite}
  body[data-wx="snow"] #wxbg i.b1{width:54vw;height:40vh;right:-6%;top:-10%;background:rgba(180,205,240,.18);opacity:1;animation:wxDriftB 100s ease-in-out infinite}
  body[data-wx="snow"] #wxbg i.b2{width:44vw;height:32vh;left:-8%;bottom:-12%;background:rgba(150,180,225,.12);opacity:1;animation:wxDriftA 120s ease-in-out infinite}
  body[data-wx="fog"] #wxbg i.b1{width:70vw;height:34vh;left:8%;top:20%;border-radius:40%;background:rgba(150,160,175,.15);opacity:1;animation:wxDriftA 100s ease-in-out infinite}
  body[data-wx="fog"] #wxbg i.b2{width:60vw;height:28vh;right:2%;bottom:8%;border-radius:40%;background:rgba(150,160,175,.11);opacity:1;animation:wxDriftB 130s ease-in-out infinite}

  /* Animated weather icons (Meteocons) */
  .wxi{display:inline-block;vertical-align:middle}
  .cc-icon{display:flex;align-items:center}
  .day .di .wxi{display:block;margin:0 auto}
  .h24-pill .wxi{margin:-3px 3px -2px 0}

  /* Location bar */
  .locbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:16px}
  /* Capped: this box takes a town name, not a paragraph, and letting it grow with the shell made a
     2256px input at 2560. The cap sizes it to its longest realistic query rather than to whatever
     room happens to be going. .locNow keeps its margin-left:auto below, so the current location
     still sits at the shell's right edge instead of trailing the box. The cap also bounds .locsug,
     which is absolutely positioned to this element's edges. */
  .locsearch{position:relative;flex:1 1 240px;min-width:170px;max-width:520px;margin:0}
  .locsearch #locSearch{width:100%;background:var(--panel-2);color:var(--text);
    border:1px solid var(--border);border-radius:var(--r-md);padding:10px 14px;font-size:var(--fs-md);min-height:44px;font-family:inherit;box-sizing:border-box}
  .locsearch #locSearch:focus{outline:none;border-color:var(--accent)}
  .locsearch #locSearch:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  .locsug{display:none;position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:50;
    background:var(--panel);border:1px solid var(--border);border-radius:var(--r-md);box-shadow:var(--shadow);
    overflow:hidden;max-height:320px;overflow-y:auto}
  .locsug.show{display:block}
  .locsug .sug{display:flex;align-items:center;justify-content:space-between;gap:10px;
    padding:12px 14px;min-height:44px;cursor:pointer;font-size:var(--fs-md);border-bottom:1px solid var(--border)}
  .locsug .sug:last-child{border-bottom:0}
  .locsug .sug:hover,.locsug .sug.hot{background:var(--chip)}
  /* The county is the thing that tells the three O'Fallons apart, so it keeps its width and a
     long place name gives way instead of pushing it off the row. */
  .locsug .sug .sname{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .locsug .sug .swhere{font-size:var(--fs-sm);color:var(--muted);white-space:nowrap;flex:0 0 auto}
  .locsug .sug-note{padding:12px 14px;font-size:var(--fs-md);color:var(--muted)}
  .locbar .locNow{justify-content:flex-end;flex-wrap:wrap;gap:5px 7px;min-width:0;
    font-size:var(--fs-card-title);color:var(--text);font-weight:600;margin-left:auto;line-height:1.3;white-space:normal}
  .locNow-label{display:inline;color:var(--muted);font-size:var(--fs-sm);font-weight:600}
  .locNow-place{display:inline-flex;align-items:center;gap:5px;min-width:0}
  .locNow-place .ic{color:var(--muted)}
  .locNow-place strong{font-size:var(--fs-section);font-weight:750;overflow-wrap:anywhere}

  /* Forecast Discussion "pulse" */
  #afdCard .afd-body{font-size:var(--fs-lg);line-height:1.65;color:var(--text)}
  #afdCard .afd-body p{margin:0 0 10px}
  #afdCard .afd-body p:last-child{margin-bottom:0}
  #afdCard .afd-more{margin-top:10px}
  .afd-more .afd-show-less,.afd-more[open] .afd-read-more{display:none}
  .afd-more[open] .afd-show-less{display:inline}
  .afd-list{margin:0;padding-left:20px}
  .afd-list li{margin:0 0 10px;line-height:1.6;font-size:var(--fs-lg)}
  .afd-list li:last-child{margin-bottom:0}
  .afd-meta{font-size:var(--fs-sm);color:var(--muted);margin-top:12px;padding-top:10px;border-top:1px solid var(--border)}
  /* ===== Responsive overrides (kept last so they win over base rules) ===== */
  @media(max-width:480px){
    /* Was `html,body`. The <body> half silently disabled position:sticky at exactly the width
       where the jump nav earns its keep: any overflow value other than `visible` makes an element
       a scroll container, and a sticky child then sticks inside a box that isn't the one doing the
       scrolling — so it just rides up and off with the page. On the ROOT element the used value is
       propagated to the viewport instead and the element itself stays `visible`, which is the same
       safety net with none of that. (The one thing that actually extends past the right edge is
       #wxbg's blobs, and #wxbg has clipped its own overflow since it was written.) */
    html{overflow-x:hidden}
    .brand h1{font-size:var(--fs-lead)}
    .header-right{gap:10px}
    .clock .time{font-size:var(--fs-lg)}
    /* A droplet plus the longest compact label ("~90%" / "100%") needs about 50px at the 12px
       type floor. The old 34px track let it paint across the temperature rail on every wet row. */
    .day{grid-template-columns:68px 24px 52px minmax(38px,1fr) 64px 12px;gap:5px;padding:9px 10px}
    /* Risk matrix: stack day label above its 3 pills so nothing collides */
    .spc-row{grid-template-columns:1fr 1fr 1fr;gap:5px 5px;padding:9px 0}
    .spc-row .spc-day{grid-column:1 / -1;font-size:12px;margin-bottom:1px}
    .spc-row.rhead > span:first-child{display:none}
    .spc-row.rhead{grid-template-columns:1fr 1fr 1fr}
    /* Phone: the pills keep the full step and buy the room back from padding instead. "Marginal
       Risk · 1/5" is a phrase you read, and it was the smallest such phrase on the page. */
    .spc-pill{padding:5px 4px;white-space:normal;line-height:1.2}
    .cpc-grid{grid-template-columns:1fr}
    .h24-sum{gap:6px}
    .h24-pill{padding:5px 10px;font-size:var(--fs-sm)}
    .h24-pill.h24-now{margin-left:0}
    /* Keep the search compact, then name the selected place directly beneath it. Alert coverage
       depends on that place, so a visitor should see it before reading the alert banners. */
    .locbar{gap:8px}
    .locbar .locNow{order:3;flex:0 0 100%;margin-left:0;justify-content:flex-start;gap:4px}
    .locbar .locNow .ic{display:none}
    #geoBtn .g-txt{display:none}
    #geoBtn{flex:0 0 auto;padding:10px 13px;font-size:var(--fs-lg);line-height:1}
    .locsearch{flex:1 1 120px;min-width:0}
    header .top{gap:10px;margin-bottom:12px}
    .locbar{margin-bottom:13px}
    .cc-temp{font-size:var(--fs-hero)}
    /* Header controls get their own full-width row, spaced out */
    .header-right{width:100%;justify-content:space-between;gap:8px}
    /* River rows: let long gauge names wrap instead of squeezing the value */
    .rlink{flex-wrap:wrap}
    .rlink .rname{min-width:0;flex:1 1 60%}
    /* Day-detail 2-col grid → single column so wind/humidity never truncate */
    .dd-grid{grid-template-columns:1fr}
  }
  /* On narrow phones the ordinary grid's fixed tracks no longer leave enough room for both the
     widened precipitation label and the temperature rail. Keep every column, but let the name and
     rail share the remaining room and trim the chrome. The tighter icon gap keeps "~90%" inside
     its own 48px track instead of borrowing from the rail's gap. */
  @media(max-width:380px){
    .day{grid-template-columns:minmax(52px,1.15fr) 22px 48px minmax(26px,1fr) 58px 10px;
      gap:4px;padding:9px 8px}
    :root[data-theme="light"] .day .di{width:26px;height:26px}
    .day .dp{gap:2px}
    .day .dt{gap:2px;font-size:var(--fs-xs)}
  }
  footer a{color:inherit;text-decoration:underline;text-underline-offset:2px}

/* Individual disclosures keep context optional and primary weather visible. */
.context-toggle{font:inherit;color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:7px 10px;cursor:pointer}
.context-toggle{margin:0 0 10px}
.context-body[hidden]{display:none}
.nbm-daily-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-bottom:4px;
  color:var(--text);font-size:var(--fs-sm);font-weight:600;cursor:pointer}
.nbm-daily-toggle input{accent-color:var(--accent);width:16px;height:16px;margin:0}
#forecastCard.nbm-ranges-off :is(.nbm-inline,.nbm-unavailable,.nbm-period-detail,#nbmInfo){display:none}
.nbm-inline,.nbm-unavailable{display:flex;flex-wrap:wrap;gap:3px 10px;padding:0 12px 9px;font-size:.76rem;line-height:1.4;color:var(--muted)}
.nbm-label{font-weight:700}.nbm-band{white-space:nowrap}.nbm-window-note{color:var(--muted);font-size:.75rem}
.nbm-period-detail{padding:10px 0;border-top:1px solid var(--border)}
.nbm-period-detail h3,#nbmInfo h3{font-size:.85rem;margin:0 0 8px}
.nbm-range-note,.nbm-period-note{font-size:.78rem;line-height:1.5;color:var(--muted);margin:0 0 7px}
.nbm-timing summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--accent);font-size:.8rem;font-weight:600}
.nbm-timing summary::before{content:'▸';margin-right:6px}.nbm-timing[open] summary::before{content:'▾'}
.nbm-comparison{margin-bottom:12px}.nbm-comparison p{margin:4px 0;font-size:.8rem;line-height:1.45;overflow-wrap:anywhere}
.nbm-official{font-weight:600}
#nbmInfo{border-top:1px solid var(--border);margin-top:10px;padding-top:8px;color:var(--muted);font-size:.78rem;line-height:1.45}
#nbmInfo summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}
#nbmInfo p{margin:8px 0}#nbmInfo li{margin:8px 0;overflow-wrap:anywhere}

/* Daily normals and observed records stay in expanded day details. */
.record-station{color:var(--muted);font-size:12px;line-height:1.5;margin:0 0 8px}
.record-detail,.normal-detail{border-top:1px solid var(--border);padding-top:10px;margin-top:8px;color:var(--muted);font-size:12px;line-height:1.55}
.record-detail h3,.normal-detail h3{color:var(--text);font-size:13px;margin:0 0 8px}.record-detail p,.normal-detail p{margin:7px 0}.record-detail b,.normal-detail b{color:var(--text);font-weight:600}
.record-calendar-note{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 0}
.record-source{font-size:12px;color:var(--muted);line-height:1.6}.record-source summary{color:var(--accent);min-height:44px;display:flex;align-items:center;cursor:pointer}
.record-source summary::before{content:'▸';margin-right:6px}.record-source[open] summary::before{content:'▾'}
.record-source p{margin:8px 0}.record-source li{margin:4px 0}.record-source a{overflow-wrap:anywhere}

.map-diagnostics{max-width:100%;text-align:left;margin-top:12px}
.map-diagnostics pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}

/* Calm, responsive composition. Weather state and control hooks remain unchanged. */
:root{
  --bg:#071522;--panel:#0d2031;--panel-2:#142b3e;--border:#294052;
  --text:#eaf2f8;--muted:#a9bac9;--accent:#70d4ed;
  --glass1:#0d2031;--glass2:#0d2031;--reading-top:#0d2031;--reading-bottom:#0d2031;
  --shadow:none;--secondary-shadow:none;--r-lg:12px;--r-md:8px;--r-pill:8px;
  --fs-display:72px;--fs-section:18px;--fs-card-title:16px;--fs-lg:16px;
  --maxw:1400px;--jump-h:64px;
}
:root[data-theme="light"]{
  --bg:#edf3f7;--panel:#fff;--panel-2:#e5eef4;--border:#b9cbd8;
  --text:#142b3e;--muted:#486175;--accent:#09657d;
  --glass1:#fff;--glass2:#fff;--reading-top:#fff;--reading-bottom:#fff;
  --shadow:none;--secondary-shadow:none;
}
body{background:var(--bg);font-size:16px;padding:16px max(16px,env(safe-area-inset-right)) 24px max(16px,env(safe-area-inset-left))}
#wxbg{opacity:.16}
header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 16px}
header .top{grid-column:1/-1;gap:16px;margin-bottom:10px;flex-wrap:nowrap}
.brand{gap:8px;flex-shrink:0}.brand h1{font-size:24px;letter-spacing:-.04em}
.brand .sub{display:none}.brand-word{font-size:13px;letter-spacing:0;font-weight:500;color:var(--muted)}
.logo{width:32px;height:32px;flex-basis:32px;border-radius:8px}.logo svg{width:32px;height:32px}
.top .locNow{border-left:1px solid var(--border);padding-left:16px;min-width:0;line-height:1.3}
.top .locNow-label{display:block;font-size:12px}.top .locNow-place strong{font-size:16px}
.top .locNow-place .ic{display:none}
.header-right{flex-wrap:nowrap;flex-shrink:0;gap:8px}.clock .time{font-size:14px}.clock .date{font-size:12px}
.locbar{margin:0;gap:8px;flex-wrap:nowrap}.locsearch{max-width:420px;flex-basis:240px}
.location-tools{margin:0;align-self:start;max-width:460px}
.location-tools summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:13px;color:var(--muted)}
.location-tools[open]{grid-column:1/-1;max-width:none;padding:10px 0}
#locFeedback{grid-column:1/-1}#locFeedback:empty{display:none}
.jump-wrap{max-width:var(--maxw);width:100%;margin:12px auto 16px;display:flex;align-items:center;gap:16px;background:var(--bg);border-block:1px solid var(--border);border-radius:0}
.sticky-context{background:none;border:0;padding:8px 0;flex:0 1 260px;min-width:0}
.jump{flex:1;min-width:0;border:0;border-radius:0;background:none;box-shadow:none;padding:0}
.jump a{border-radius:0;min-height:44px;color:var(--muted);border-bottom:2px solid transparent}
.jump a[aria-current="location"]{border-bottom-color:var(--accent);color:var(--text);background:var(--inset)}
.jump-step{top:0;bottom:0}
.redesign-grid{display:flex;flex-direction:column;gap:16px;align-items:stretch}
.redesign-grid>*,.top-band>*,.now-stack>*,.planning-grid>*,.nws-band>*{min-width:0}
.card{background:var(--panel);border:1px solid var(--border);box-shadow:none;padding:20px;border-radius:12px}
.card.hero::before{display:none}.card h2{font-size:20px;align-items:baseline;flex-wrap:wrap}
#alertsCard{padding:0;border:0;background:none}#mcd:empty{display:none}
.now-stack{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--border);border-radius:12px;background:var(--panel)}
.now-stack>.card{border:0;background:none;margin:0;border-radius:0}
.now-stack #current{justify-content:flex-start;gap:0}
.cc-main{margin-bottom:12px;flex-wrap:wrap}.cc-temp{font-size:72px}.cc-desc{font-size:18px}
.cc-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cc-item{border:0;border-radius:0;padding:6px 0;background:none}
.cc-item .k{text-transform:none;letter-spacing:0}.cc-item .v{font-size:16px}
.cc-expo{margin-top:10px}
.call-head{flex-wrap:wrap}.callrow>section{grid-template-columns:1fr;gap:10px}
.bl-headline{font-size:26px;line-height:1.2}.bl-lead{gap:10px;padding-left:10px}
.bl-support{grid-template-columns:1fr}.bl-support li{border-left:0;border-top:1px solid var(--border);padding:8px 0}
.bl-detail,.bl-action{font-size:15px}.bl-sheadline,.bl-sdetail{font-size:14px}
.brief-author{font-size:12px}.disclosure{font-size:14px}
.planning-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;align-items:start}
.hourly-head{flex-wrap:wrap;gap:8px}.hourly-head h2{margin:0;flex:1 1 100%}
.hourly-duration{font-size:13px;color:var(--muted)}.hourly-options{margin-left:auto}
#radarCard .rs-head{flex-wrap:wrap;gap:12px}#radarCard .rs-head h2{font-size:20px}
body:not(.radar-full) #radarCard .imgwrap{aspect-ratio:1/1;max-height:600px}
#radarCard .frame{min-height:0}
#radarCard .map-unavailable #radar{background:var(--panel-2)}
.daily{gap:0}.day-item{border:0;border-bottom:1px solid var(--border);border-radius:0;background:none}
.day-item:last-child{border-bottom:0}.day{padding:10px 0;min-height:58px;grid-template-columns:minmax(90px,1.3fr) 32px 52px minmax(38px,1fr) 78px 12px;gap:10px}
.day .dn{font-size:14px}.day .dcond{font-size:12px}.day .dt{font-size:14px}.day-detail{padding:0 0 12px}
.railhead{margin:8px 0 0}.rail-t{font-size:22px}
.masonry .card h2{font-size:18px}.masonry .card{padding:18px}
.r-now-label{font-size:12px;font-weight:500;color:var(--muted);margin-right:5px}
.r-forecast-label{font-weight:700;color:var(--text)}
@media(max-width:1000px){
  .planning-grid{grid-template-columns:1fr}
  body:not(.radar-full) #radarCard .imgwrap{aspect-ratio:16/10}
  .brand-word{display:none}.clock{display:none}
}
@media(max-width:680px){
  :root{--jump-h:94px}
  header{gap:0 8px}header .top{gap:10px;margin-bottom:8px;flex-wrap:wrap}
  .brand h1{font-size:24px}.logo{display:none}.top .locNow{padding-left:10px;flex:1}
  .top .locNow-label{display:none}.top .locNow-place strong{font-size:14px}
  .header-right{width:auto;margin-left:auto;gap:4px}.header-right button{padding:8px}
  #refreshLabel{font-size:12px}.header-right .dot{width:6px;height:6px}
  .locbar{grid-column:1/-1;margin-bottom:0}.locsearch{max-width:none}#geoBtn .g-txt{display:none}
  .location-tools{grid-column:1/-1}.location-tools summary{min-height:36px}
  .jump-wrap{display:block;margin:4px auto 12px}.sticky-context{padding:4px 0;min-height:28px}
  .jump a{padding:0 13px}.jump{width:100%}.jump-step{top:28px}
  .card{padding:16px}.redesign-grid,.planning-grid,.top-band,.nws-band{gap:12px}
  .now-stack>.card{padding:16px}.cc-temp{font-size:64px}.cc-grid{gap:4px 10px}
  .cc-item .v{font-size:15px}.card h2,#radarCard .rs-head h2{font-size:20px}
  .bl-headline{font-size:24px}.day{grid-template-columns:minmax(65px,1fr) 24px 48px minmax(22px,.7fr) 70px 10px;gap:6px;padding:10px 0}
  .day .dn,.day .dt{font-size:13px}.day .di .wxi{width:26px;height:26px}
  .hourly-options button{padding:8px 10px}.rs-right{flex-wrap:wrap}
  body:not(.radar-full) #radarCard .imgwrap{aspect-ratio:1.2}
}
@media(max-width:360px){
  .top .locNow{flex-basis:150px}.header-right{flex-basis:100%;justify-content:flex-end}
  .cc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .day{grid-template-columns:minmax(50px,1fr) 22px 44px minmax(14px,.5fr) 62px 10px;gap:4px}
  .day .dt{font-size:12px}.hourly-options{margin-left:0}
}
/* Keep complete observations and source ages compact without hiding any values. */
body{transition:none}
.now-stack #currentCard{border-radius:12px 12px 0 0}
.now-stack #glanceCard{border-radius:0 0 12px 12px}
#currentCard .feed-status{font-size:12px;line-height:1.4;margin-top:4px;padding-top:0}
#currentCard .cc-grid{gap:4px 12px}
#currentCard .cc-item{display:flex;align-items:baseline;justify-content:space-between;gap:6px;flex-wrap:wrap}
#currentCard .cc-item .v{margin:0}
#currentCard .cc-expo{margin-top:8px}
/* Enlarged text must stay in its exposure tile; whole nowrap clauses can cross into AQI. */
#currentCard .cc-expo .ex-b{white-space:normal}
#currentCard .stn{margin-top:8px}
#callCard .brief-planning{margin-top:10px;padding-top:8px}
#callCard .brief-section-title{margin:4px 0}
#h24Card .precip-details{margin-bottom:12px;padding-bottom:10px}
#h24Card .feed-status{margin-top:4px}
/* Each hero card owns its height. A horizontal observations strip keeps desktop compact
   without stretching a short regional message list to the height of the observations. */
@media(min-width:681px){
  .now-stack #currentCard{display:block}
  .now-stack #current{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:8px 24px;align-items:start}
  #currentCard .cc-main{grid-column:1;grid-row:1/3;margin:0}
  #currentCard .cc-today{grid-column:2;grid-row:1;margin:0}
  #currentCard .cc-grid{grid-column:2;grid-row:2}
  #currentCard .cc-expo{grid-column:1/-1;grid-row:3;margin:0}
  #currentCard .cc-ctx,#currentCard .stn{grid-column:1/-1;margin:0}
  #currentCard > .feed-status:not([hidden]){display:inline-block;margin:4px 16px 0 0}
}
@media(max-width:680px){
  #currentCard .cc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 16px}
  #currentCard .cc-item .k{font-size:12px}#currentCard .cc-item .v{font-size:14px}
  .cc-main{margin-bottom:8px}.cc-today{margin-bottom:8px}
  .cc-uv,.aqi-mini{padding:8px}.cc-expo .s{font-size:12px}
  .bl-lead{grid-template-columns:minmax(0,1fr)}.bl-lead-ico{display:none}
}

/* Hourly precedes seven-day; on desktop they share one row. */
.hourly-title-desktop,.forecast-primary-source{display:none}
#forecastCard .day{min-height:44px;padding-block:6px}
/* Records need an unambiguous visible calendar date. If name + date do not fit on one
   line, keep the date on its own line while the holiday/day name can still truncate. */
.daily.no-dnd .dn{white-space:normal}
.daily.no-dnd .dn>span:first-child{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.daily.no-dnd .dnd{display:block;margin:2px 0 0;font-size:11px}
@media(min-width:1001px){
  .hourly-title-mobile{display:none}.hourly-title-desktop{display:inline}
  .forecast-primary-source{display:inline;font-size:12px;font-weight:400;color:var(--muted)}
  #forecastCard h2{margin-bottom:8px}
  #forecastCard .day{padding-block:7px;grid-template-columns:minmax(90px,1.2fr) 28px 52px minmax(40px,1fr) 78px 12px;gap:8px}
  #forecastCard .nbm-inline,#forecastCard .nbm-unavailable{padding:0 0 5px}
  /* Radar shares the first screen with Now, so its viewport is a fixed height: a forecast or
     feed changing size elsewhere can never resize or blank a working map. */
  body:not(.radar-full) .top-band #radarCard{align-self:start;display:block;min-height:0}
  body:not(.radar-full) .top-band #radarCard .rs-view{flex:0 0 auto;min-height:0}
  body:not(.radar-full) .top-band #radarCard .imgwrap{flex:0 0 auto;aspect-ratio:auto;height:var(--radar-h);min-height:var(--radar-h);max-height:var(--radar-h)}
  body:not(.radar-full) .top-band #radarCard #radar{position:absolute;inset:0;height:100%;width:100%}
  body:not(.radar-full) .top-band #radarCard .rs-head{display:flex;flex-wrap:wrap;gap:8px 12px}
  body:not(.radar-full) .top-band #radarCard .rs-head h2{flex:1 1 auto}
  body:not(.radar-full) .top-band #radarCard .rs-tabs{margin-left:0}
  body:not(.radar-full) .top-band #radarCard .rs-right{margin-left:auto}
  .now-stack #currentCard,#callCard{padding-block:16px}
  #callCard .nws-message-status{margin-bottom:10px}#callCard #briefWhy{margin-top:10px}
  /* A failed map stays a compact retry panel in the same slot. */
  body:not(.radar-full) .top-band #radarCard:has(#radar [data-retry-maps]) .imgwrap{height:auto;min-height:0;max-height:none}
  body:not(.radar-full) .top-band #radarCard #radar:has([data-retry-maps]){position:relative;inset:auto;height:auto}
}
@media(min-width:1001px) and (max-width:1240px){
  #forecastCard .day{grid-template-columns:minmax(86px,1.2fr) 28px 48px minmax(32px,1fr) 74px 12px;gap:7px}
}
/* Keep gauge identity, Now and forecast prose readable even in a narrow desktop context card.
   DOM/source values and the separate pin button remain unchanged. */
.river-row{align-items:flex-start}
.river-row .rlink{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}
.river-row .rname{display:contents}
.river-row .rn-top{grid-row:1;min-width:0;overflow-wrap:anywhere}
.river-row .rmeta{grid-row:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;text-align:left}
.river-row .rval{white-space:nowrap}
.river-row .rsub{grid-row:3;margin:0;min-width:0;line-height:1.5}
.river-row .river-pin{align-self:flex-start;margin-top:8px}

/* Preserve natural fills; the shared SVG contour gives pale artwork a crisp edge. */
:root[data-theme="light"] .wxi,
:root[data-theme="light"] .h24-ic{filter:url(#weatherIconOutline)}

/* Official outlook sources: native links with independent keyboard/touch targets. */
.source-link{gap:4px;color:var(--accent);text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
.source-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
.resource-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px;margin-top:8px;font-size:var(--fs-sm);line-height:1.5}
.resource-links .source-link{max-width:100%;flex-wrap:wrap}
.resource-note{color:var(--muted);font-size:var(--fs-xs)}
.weather-resources{margin-top:0;padding:8px 0 0;border-top:1px solid var(--border)}
.weather-resources .resource-links{margin-top:0}
a.cpc-item{display:block;text-decoration:none;min-width:0}
a.cpc-item .k{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
a.cpc-item:hover{border-color:var(--accent)}
.hz-when:has(.source-link){flex-basis:94px;white-space:normal;padding-top:0}

/* Optional hourly model guidance: visually separate from the primary NWS curve. */
.nbm-hourly-controls{margin:10px 0;font-size:12px;color:var(--muted)}
.nbm-hourly-controls label{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:600;color:var(--text);cursor:pointer}
.nbm-hourly-controls input{accent-color:var(--accent);width:16px;height:16px}
#nbmHourlyStatus{margin:4px 0;line-height:1.5}
.nbm-hourly-band{fill:#7186d8;fill-opacity:.23;stroke:#7186d8;stroke-opacity:.65;stroke-width:1;pointer-events:none}
.nbm-hourly-detail{color:var(--muted);flex-basis:100%}
.nbm-hourly-nws-key{display:block;font-weight:700;color:var(--text)}

.nbm-hourly-controls details{font-size:12px;color:var(--muted);line-height:1.5;margin-top:4px}
.nbm-hourly-controls summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--accent)}
.nbm-hourly-controls details p{margin:8px 0}

/* Put weather first; all original check and source clocks remain inspectable. */
.hourly-forecast-source{font-size:var(--fs-sm);color:var(--muted);line-height:1.5;margin:0 0 12px}
.h24-range-key{font-size:var(--fs-xs);color:var(--muted);margin:0 0 6px;line-height:1.5}
#h24Card .precip-details{margin:12px 0 0;padding:12px 0 0;border-bottom:0;border-top:1px solid var(--border)}
#hourly24 .h24-sum{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:6px}
#hourly24 .h24-pill{padding:6px 8px;line-height:1.4}
#nbmHourlyStatus[data-warning="true"]{color:var(--warn)}
@media(max-width:360px){
  #hourly24 .h24-sum{grid-template-columns:repeat(2,minmax(0,1fr))}
  #hourly24 .h24-pill:last-child{grid-column:1/-1}
}

/* ===== November 2026 "Station Log" identity =====
   A reskin, not a re-layout: every rule below changes surface, colour or type and leaves the
   geometry the layout tests measure (column split, gaps, radar height, row heights) alone.
   Nothing here uses text-transform: the browser suites (and anyone copying text off the page)
   read rendered text, and an uppercased heading is a different string to both.
   Three ideas carry it:
   · The chrome is monochrome. --accent now resolves to the text colour, so links are underlined
     text and a selected control is an inverted block. Saturated colour is left for data only:
     temperature, severity, radar, rain.
   · Rules instead of boxes. The hero and the planning cards lose their panel and sit on the page
     under a 2px rule; the lower context cards stay quiet panels so three packed lanes still read
     as separate objects.
   · Two self-hosted faces (latin subsets, SIL OFL — credited in the README): Barlow Condensed for
     headings and the big temperature, IBM Plex Mono for numerals, clocks and source lines. Body
     copy stays on the system font so first paint never waits on a download. The faces are
     preloaded from index.html and font-display:optional: present at first paint or not used on
     this visit, never swapped in afterwards, because a late swap moves the page under a finger. */
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:500 800;font-display:optional;
  src:url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:optional;
  src:url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500 800;font-display:optional;
  src:url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2")}
:root{
  --fd:"Barlow Condensed","Arial Narrow","Helvetica Neue",Arial,sans-serif;
  --fm:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --bg:#0e0f11;--panel:#17191c;--panel-2:#1f2226;--border:#33373d;
  --text:#eeede9;--muted:#a8aba6;--accent:#eeede9;--rain:#7cc7e8;
  --glass1:#17191c;--glass2:#17191c;--gline:#33373d;--gspec:transparent;
  --reading-top:#17191c;--reading-bottom:#17191c;
  --inset:rgba(255,255,255,.04);--chip:rgba(255,255,255,.10);--glow:rgba(255,255,255,.06);
  --h24night:rgba(138,180,255,.07);
  --r-sm:2px;--r-md:3px;--r-lg:3px;--r-pill:3px;
  --logo-bg1:#eeede9;--logo-bg2:#eeede9;--logo-ring:#0e0f11;--logo-bolt:#0e0f11;
}
:root[data-theme="light"]{
  --bg:#f1f2f3;--panel:#ffffff;--panel-2:#e7e9ec;--border:#c6cad0;
  --text:#121315;--muted:#50555c;--accent:#121315;--rain:#0b6a8f;
  --glass1:#fff;--glass2:#fff;--gline:#c6cad0;--gspec:transparent;
  --reading-top:#fff;--reading-bottom:#fff;
  --inset:rgba(18,19,21,.04);--chip:rgba(18,19,21,.08);--glow:rgba(18,19,21,.05);
  --h24night:rgba(31,85,176,.07);
  --logo-bg1:#121315;--logo-bg2:#121315;--logo-ring:#f1f2f3;--logo-bolt:#ffcf3d;
}
body{background:var(--bg)}
#wxbg{display:none}
/* Links are text-coloured now, so the underline is what says "link". Component links that are
   already whole buttons or rows (jump links, gauge rows, outlook tiles) opt out in their own rules. */
a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
.jump a,.jump a:hover,#stickyLocation,.rlink,a.cpc-item{text-decoration:none}
/* Rain is data, and the hourly chart draws it with --accent. Give it back its blue there only. */
#hourly24,#precipEvents{--accent:var(--rain)}

/* --- Masthead --- */
header{padding-bottom:12px;border-bottom:2px solid var(--text)}
.brand h1{font-family:var(--fd);font-size:30px;font-weight:600;letter-spacing:.02em;line-height:1}
.brand-word{font-family:var(--fm);font-size:11px;letter-spacing:.03em}
.logo{border-radius:3px;box-shadow:none}
.logo .lg-sweep,.logo .lg-rings{display:none}
.top .locNow-label{font-family:var(--fm);font-size:11px;letter-spacing:.03em;color:var(--muted)}
.top .locNow-place strong{font-family:var(--fd);font-size:24px;font-weight:600;line-height:1.05}
.clock{font-family:var(--fm)}
.clock .time{color:var(--text);font-weight:500;letter-spacing:0}
select,button:where(:not(.ab-head)),.locsearch #locSearch,header .header-right button,header .locsearch #locSearch{
  background:transparent;border-color:var(--border);box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none}
select{background:var(--bg)}
select:hover,button:hover{border-color:var(--text)}
header .locsearch #locSearch{background:var(--panel)}
.dot,.dot[data-state="partial"],.dot.stale,.calmrow .cdot{box-shadow:none}
.location-tools summary{color:var(--text);text-decoration:underline;text-underline-offset:3px}

/* --- Section navigation: selected entry inverted --- */
.jump-wrap{border-block:1px solid var(--border)}
.jump{gap:2px}
.jump a{font-family:var(--fd);font-size:19px;font-weight:600;letter-spacing:.02em;
  gap:8px;border-bottom:0;border-radius:3px;color:var(--text)}
.jump a[aria-current="location"]{background:var(--text);color:var(--bg);border-bottom-color:transparent}
.jump-prev{background:linear-gradient(to left,transparent,var(--bg) 45%);border-radius:0}
.jump-next{background:linear-gradient(to right,transparent,var(--bg) 45%);border-radius:0}
#stickyLocation{font-family:var(--fd);font-size:19px;font-weight:600;letter-spacing:.02em}
.sticky-kind{font-family:var(--fm);font-size:11px;letter-spacing:.02em}

/* --- Cards: quiet panels by default, rules-not-boxes for the hero and planning cards --- */
.card,.card.hero,#callCard,#afdCard,#h24Card,#alertsCard.calm{
  background:var(--panel);border:0;border-radius:3px;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none}
.masonry>.card{box-shadow:none}
#alertsCard,#alertsCard.bannered:not(.calm){background:none}
#alertsCard.calm{background:var(--panel)}
#alertsCard.bannered:not(.calm) .calmrow{background:var(--panel);border:0;border-radius:3px;box-shadow:none}
.now-stack,.nws-band{border:0;border-radius:0;background:none}
/* #main lifts these over the ID-level "reading surface" rule that paints #h24Card and #callCard. */
#main .now-stack>.card,#main .planning-grid>.card,#main .nws-band>.card{
  background:none;border-radius:0;padding-inline:0}
#main .now-stack #currentCard,#main .planning-grid>.card,#main .nws-band>.card{
  border-top:2px solid var(--text)}
#main .planning-grid>.card{padding-block:14px 0}
.card h2,.masonry .card h2,#radarCard .rs-head h2{
  font-family:var(--fd);font-size:25px;font-weight:600;letter-spacing:.015em;line-height:1.15}
.masonry .card h2{font-size:22px}
.card h2 .link,.card h2 .forecast-primary-source,.call-head .link,.rs-right .link,.hourly-duration{
  font-family:var(--fm);font-size:12px;font-weight:400;letter-spacing:.02em}
.card h2 abbr[title]{text-decoration:none}
.railhead{align-items:center}
.rail-t{font-family:var(--fd);font-size:27px;font-weight:600;letter-spacing:.015em}
.railhead::after{background:var(--border)}
#currentCard>h2,#h24Card h2,#radarCard h2,#forecastCard>h2,#keyMessagesTitle,#riversCard>h2,#climateCard>h2{justify-content:flex-start}
#keyMessagesTitle{display:flex;align-items:baseline}
#currentCard>h2>.link,#forecastCard>h2>.forecast-primary-source,#riversCard>h2>.link,#climateCard>h2>.link{margin-left:auto}

/* --- Now: the reading is the headline --- */
.cc-temp{font-family:var(--fd);font-size:120px;font-weight:600;line-height:.82;letter-spacing:-.01em}
.cc-desc{font-family:var(--fd);font-size:26px;font-weight:600;line-height:1.05}
.cc-item,.cc-uv,.aqi-mini{border-radius:3px}
#currentCard .cc-item{border-bottom:1px solid var(--border);padding:6px 0}
.cc-item .k,.cc-expo .k{font-family:var(--fm);font-size:11px;letter-spacing:.03em}
#currentCard .cc-item .k{font-size:11px}
.cc-item .v,.cc-expo .v{font-family:var(--fm);font-weight:500}
.cc-uv,.aqi-mini{background:var(--panel);border:0}
@media(max-width:680px){.cc-temp{font-size:96px}.cc-desc{font-size:22px}}

/* --- Numerals, clocks and source lines are set in mono --- */
.feed-status,.imgcap,.radar-time,.radar-ctl .rc-t,.nws-message-meta,.hourly-forecast-source,
.day .dt,.day .dnd,.rlink .rval,.h24-pill b,.resource-note,.brief-author,.stn{
  font-family:var(--fm);font-variant-numeric:normal}
.feed-status,.imgcap,.nws-message-meta,.hourly-forecast-source,.resource-note,.brief-author{letter-spacing:-.01em}
.day .dn{font-family:var(--fd);font-size:20px;font-weight:600;letter-spacing:.015em;line-height:1.1}
.day .dnd,.daily.no-dnd .dnd{font-family:var(--fm);font-weight:400;letter-spacing:0;text-transform:none}
.day .dt{font-weight:500;letter-spacing:-.02em}
.rlink .rval{font-weight:500}
@media(max-width:680px){.day .dn{font-size:17px}}

/* --- Controls: a pressed control is an inverted block, not a tint --- */
.hourly-options button[aria-pressed="true"],.rs-tab.on,.stn-tools button.on,.river-pin[aria-pressed="true"]{
  background:var(--text);color:var(--bg);border-color:var(--text)}
.hourly-options button,.rs-tab,#radarPlay,.rs-full,.stn-tools button,.river-pin{
  font-family:var(--fm);font-size:12px;font-weight:500;letter-spacing:.02em}
.h24-pill{background:none;border-color:var(--border)}
.h24-pill.h24-now{background:var(--panel)}
.nbm-daily-toggle input,.nbm-hourly-controls input{accent-color:var(--text)}
.source-link,.nbm-timing summary,.record-source summary,.nbm-hourly-controls summary{color:var(--text)}
.skip{border-radius:0 0 3px 3px;box-shadow:none}

/* --- Footer --- */
footer{border-top:2px solid var(--text);padding-top:12px;font-family:var(--fm);font-size:12px;line-height:1.9}
/* The masthead's 2px rule already closes the header; the navigation only needs its lower line. */
.jump-wrap{border-top:0}
/* At 320px with text doubled, "Visibility" in tracked mono ran 3px past its tile. Labels in the
   observation grid get no tracking and may break rather than cross into the neighbouring value. */
#currentCard .cc-item .k{letter-spacing:0;min-width:0;overflow-wrap:anywhere}
/* The same test at 681px: a mono "29.92"" is 10px wider than its cell once text is doubled.
   Mono cannot be the face for values in a three-up grid, so the readings use the condensed face,
   which is narrower than the system font these cells were originally sized for. */
.cc-item .v,.cc-expo .v{font-family:var(--fd);font-weight:600;letter-spacing:.01em}
#currentCard .cc-item .v{font-size:19px}
@media(max-width:680px){#currentCard .cc-item .v{font-size:17px}}
/* Fullscreen radar covers a page that is inert but still painted. The rules-not-boxes selectors
   above out-rank the original fullscreen rule, so restate its opaque surface, edges and padding
   at a specificity they cannot beat (the doubled ID is deliberate). */
body.radar-full #radarCard#radarCard{background:var(--bg);border:0;
  padding:max(12px, env(safe-area-inset-top,0px)) 14px calc(12px + env(safe-area-inset-bottom,0px))}

/* --- Your Day (#glanceCard): the answer before the evidence ---
   Sits on the page under the same 2px rule as the hero, so it reads as part of the log rather
   than as another panel. Colour appears only as the severity tone on the lead's left rule and
   icons, the one place this card is saying something about danger. */
#main #glanceCard{background:none;border:0;border-top:2px solid var(--text);border-radius:0;
  padding:14px 0 4px;margin:0}
.glance-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.glance-scope{font-family:var(--fm);font-size:12px;letter-spacing:.02em;color:var(--muted)}
#glance{margin-top:10px}
.glance-lead{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start;
  padding:4px 0 4px 14px;border-left:4px solid var(--border)}
.glance-lead.tone-danger{border-left-color:var(--danger)}
.glance-lead.tone-warning{border-left-color:var(--warn)}
.glance-lead.tone-good{border-left-color:var(--good)}
.glance-lead-ico .ic{width:40px;height:40px;color:var(--text)}
.glance-lead.tone-danger .glance-lead-ico .ic{color:var(--danger)}
.glance-lead.tone-warning .glance-lead-ico .ic{color:var(--warn)}
.glance-lead.tone-good .glance-lead-ico .ic{color:var(--good)}
.glance-label{font-family:var(--fm);font-size:12px;letter-spacing:.02em;color:var(--muted);margin:0}
.glance-headline{font-family:var(--fd);font-size:32px;font-weight:600;line-height:1.1;margin:2px 0 4px;
  overflow-wrap:anywhere}
.glance-detail{font-family:var(--fm);font-size:14px;margin:0 0 4px;overflow-wrap:anywhere}
.glance-action{font-size:16px;line-height:1.45;margin:0}
.glance-list{list-style:none;margin:14px 0 0;padding:0;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 20px}
.glance-list li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:2px 10px;align-items:start;
  padding:10px 0;border-top:1px solid var(--border);font-size:15px;line-height:1.45}
.glance-list .ic{width:20px;height:20px;margin-top:1px;color:var(--muted)}
.glance-list li.tone-danger .ic{color:var(--danger)}
.glance-list li.tone-warning .ic{color:var(--warn)}
.glance-list li.tone-good .ic{color:var(--good)}
.glance-row-label{font-family:var(--fm);font-size:12px;letter-spacing:.02em;color:var(--muted);line-height:22px}
.glance-row-text{grid-column:2;overflow-wrap:anywhere}
.glance-row-text span{color:var(--muted)}
.glance-empty{font-size:15px;line-height:1.5;margin:0}
#glanceWhy{margin-top:4px}
/* Wide screens: answer on the left, the supporting rows stacked beside it, so the card costs
   one short band of height instead of pushing Now below the fold. */
@media (min-width:681px) and (max-width:1000px){
  #glance{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 32px;align-items:start}
  #glance>.loading,#glance>.glance-empty{grid-column:1 / -1}
  .glance-list{margin-top:0;grid-template-columns:1fr}
  .glance-list li:first-child{border-top:0;padding-top:4px}
}
.glance-more{display:none}
@media (max-width:640px){
  /* Phones: lead + one row; the others wait behind a full-width 44px button. */
  #glance:not(.glance-open) .glance-list li:not(.glance-keep){display:none}
  #glance:not(.glance-open) .glance-list li.glance-keep{border-top:1px solid var(--border)}
  .glance-more{display:block;width:100%;min-height:44px;margin-top:2px;padding:10px 0;text-align:left;
    border:0;border-top:1px solid var(--border);border-radius:0;font-family:var(--fm);font-size:13px;
    color:var(--text);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
  .glance-list li{padding:8px 0}
  .glance-headline{font-size:27px}
  .glance-lead{gap:10px;padding-left:10px}
  .glance-lead-ico .ic{width:30px;height:30px}
}

/* --- Layout bands (see the comment above .top-band in index.html) --- */
:root{--radar-h:442px}   /* wrapper; the map inside is 2px less, 440px */
@media(min-width:1001px) and (max-width:1240px){:root{--radar-h:402px}}
.top-band,.nws-band{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
@media(min-width:1001px){
  /* Now + Your day on the left, radar on the right: the first screen answers "what is it,
     what does it mean for me, and what is coming" without scrolling. */
  .top-band{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
  /* Key Messages and the forecaster's discussion are one source; read them side by side. */
  .nws-band{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:32px}
}
#main .nws-band>.card{padding-block:14px 16px}

/* Worth a look today: context cards that stopped being calm (setAttention in dashboard.js). */
.attention-band[hidden]{display:none}
.attention-band{display:flex;flex-direction:column;gap:10px}
.attention-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;border-top:2px solid var(--text);padding-top:10px}
.attention-head h2{font-family:var(--fd);font-size:27px;font-weight:600;letter-spacing:.015em;margin:0}
.attention-sub{font-family:var(--fm);font-size:12px;color:var(--muted)}
.attention-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(420px,100%),1fr));gap:16px;align-items:start}
.attention-cards>.card{position:static;margin:0}

/* Rivers, calm: one verified line instead of six identical "No Flooding" rows. */
.river-calm-line{display:flex;align-items:center;gap:10px;margin:0;font-weight:600;color:var(--good)}
.river-calm-dot{width:9px;height:9px;border-radius:50%;background:var(--good);flex:0 0 auto}
#riversCard.rivers-calm #rivers{display:block}
.river-calm-gap{margin:6px 0 0 19px;font-family:var(--fm);font-size:12px;color:var(--muted)}
.river-all{margin-top:10px}
.river-all-rows{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:10px}

/* Now sizes itself by its own column, not the viewport: beside radar it is ~470–630px wide, where
   the temperature beside a three-across metrics grid leaves enlarged text no room. Stack it. */
.now-stack{container:nowstack / inline-size}
@container nowstack (max-width:600px){
  .now-stack #current{grid-template-columns:minmax(0,1fr)}
  #currentCard .cc-main,#currentCard .cc-today,#currentCard .cc-grid,#currentCard .cc-expo{grid-column:1;grid-row:auto}
}

/* Outlook row: one cell per horizon. Hairline grid lines come from the 1px gap over the border
   colour, so the lines stay right however many columns the width allows. Green only for a
   verified calm cell, severity colour only for an elevated one; everything else stays text. */
.outlook-card h2{justify-content:flex-start;align-items:baseline;gap:12px}
.outlook-sub{font-family:var(--fm);font-size:var(--fs-2xs);font-weight:400;color:var(--muted);letter-spacing:var(--ls-eyebrow);text-transform:uppercase}
.ol-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden}
.ol-cell{font:inherit;text-align:left;color:var(--text);background:var(--panel);border:0;margin:0;padding:10px 12px;
  display:flex;flex-direction:column;gap:3px;min-height:44px;min-width:0;cursor:pointer}
.ol-cell:hover{background:var(--panel-2)}
.ol-cell:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.ol-t{font-family:var(--fm);font-size:var(--fs-2xs);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;color:var(--muted)}
.ol-v{font-weight:600;font-size:var(--fs-md);line-height:1.3;overflow-wrap:anywhere}
.ol-s{font-size:var(--fs-2xs);color:var(--muted);line-height:1.35}
.ol-cell[data-state="calm"] .ol-v{color:var(--good)}
.ol-cell[data-state="calm"] .ol-v::before{content:"\2713\00a0"}
.ol-cell[data-state="elevated"]{background:color-mix(in srgb,var(--sev) 9%,var(--panel))}
.ol-cell[data-state="elevated"] .ol-v{color:var(--sev)}
.ol-cell:is([data-state="loading"],[data-state="partial"],[data-state="unavailable"]) .ol-v{color:var(--muted);font-weight:500}
.ol-cell[aria-expanded="false"] .ol-s::after{content:"Show card";display:block;margin-top:2px;color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.ol-note{margin:8px 0 0;font-size:var(--fs-2xs);color:var(--muted)}
.ol-note:empty{display:none}
.masonry>.card[hidden]{display:none}
@media(max-width:760px){
  .ol-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ol-cell:last-child{grid-column:1/-1}
}

/* The page's one freshness line. Left-aligned and set apart from the credits below it. */
.source-panel{text-align:left;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.source-panel>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;list-style:none}
.source-panel>summary::-webkit-details-marker{display:none}
.source-panel>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sp-dot{width:8px;height:8px;border-radius:50%;background:var(--muted);flex:none}
.sp-dot[data-state="ready"]{background:var(--good)}
.sp-dot[data-state="partial"]{background:var(--warn)}
.sp-dot[data-state="unavailable"]{background:var(--danger)}
.sp-more{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.source-panel[open] .sp-more::after{content:" \25B4"}
.sp-list{display:grid;gap:2px;padding:6px 0 4px 18px;line-height:1.6}
.sp-list .feed-status,.sp-list .stn{margin:0}

/* ---- Storm layout (html.lsx-active, applied by applyActiveMode) ----
   Radar spans the band ahead of Now and gets a taller fixed viewport; Now, storm reports and Your
   day share the row beneath it. Below 1001px the band is already one column, so the DOM move
   alone puts radar first. The 7-day, outlook row and context pack fold to #activeFold. */
.active-bar[hidden],.active-fold[hidden]{display:none}
.active-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:10px 14px;border:1px solid var(--danger);
  border-radius:var(--r-md);background:color-mix(in srgb,var(--danger) 8%,var(--panel));font-size:var(--fs-md);font-weight:600}
.active-dot{width:9px;height:9px;border-radius:50%;background:var(--danger);flex:none}
#activeBarText{flex:1 1 260px;min-width:0}
.active-toggle{font:inherit;font-weight:600;font-size:var(--fs-sm);color:var(--text);background:var(--panel);border:1px solid var(--border);
  border-radius:8px;padding:8px 12px;min-height:44px;cursor:pointer}
.active-toggle:focus-visible,.fold-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(min-width:1001px){
  :root.lsx-active{--radar-h:562px}
  .lsx-active .top-band{grid-template-columns:minmax(0,1fr)}
  .lsx-active .now-stack{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
}
@media(min-width:681px) and (max-width:1000px){
  .lsx-active .now-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
  .lsx-active .now-stack #glanceCard{grid-column:1/-1}
}
/* In three columns Now is one of them, so it sizes by its own card, not the whole stack. */
.lsx-active #currentCard{container:nowcard / inline-size}
@container nowcard (max-width:600px){
  .lsx-active #current{grid-template-columns:minmax(0,1fr)}
  .lsx-active #currentCard .cc-main,.lsx-active #currentCard .cc-today,.lsx-active #currentCard .cc-grid,.lsx-active #currentCard .cc-expo{grid-column:1;grid-row:auto}
}
.lsx-active:not(.show-forecast) #forecastCard,
.lsx-active:not(.show-outlook) #outlookCard,
.lsx-active:not(.show-context) .railhead,
.lsx-active:not(.show-context) #contextPack,
.lsx-active:not(.show-context) #moreWeatherResources{display:none}
.lsx-active:not(.show-forecast) .planning-grid{grid-template-columns:minmax(0,1fr)}
.active-fold{display:flex;flex-direction:column;gap:10px;border-top:2px solid var(--text);padding-top:10px}
.active-fold h2{font-family:var(--fd);font-size:22px;font-weight:600;letter-spacing:.015em;margin:0}
.active-fold-chips{display:flex;flex-wrap:wrap;gap:8px}
.fold-chip{font:inherit;font-size:var(--fs-sm);color:var(--text);background:var(--panel);border:1px solid var(--border);border-radius:8px;
  padding:8px 12px;min-height:44px;cursor:pointer;text-align:left}
.fold-chip span{color:var(--muted)}
.fold-chip[aria-expanded="true"]{display:none}

/* Storm reports */
.reports-sub{font-family:var(--fm);font-size:var(--fs-2xs);font-weight:400;color:var(--muted);letter-spacing:var(--ls-eyebrow);text-transform:uppercase;margin-right:auto}
#reportsCard h2{justify-content:flex-start;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.lsr-list{list-style:none;margin:0;padding:0;display:grid}
.lsr-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;align-items:start;padding:8px 0;border-top:1px solid var(--border);font-size:var(--fs-md)}
.lsr-row:first-child{border-top:0;padding-top:0}
.lsr-k{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--lsr);color:#fff;font:700 11px var(--fm)}
.lsr-body{min-width:0;overflow-wrap:anywhere}
.lsr-near{color:var(--text);font-weight:600;white-space:nowrap}
.lsr-src{display:block;font-size:var(--fs-2xs);color:var(--muted);margin-top:2px}
.lsr-t{font-family:var(--fm);font-size:var(--fs-2xs);color:var(--muted);white-space:nowrap}
.reports-none{margin:0;color:var(--muted)}
.reports-cap{margin:8px 0 0;font-size:var(--fs-2xs);color:var(--muted)}
.reports-note{margin:10px 0 0;font-size:var(--fs-2xs);color:var(--muted)}

/* --- One place name, and it opens search (PR: cleanup and wording) ---
   The sticky label is the only copy of the selected place on screen. A search glyph says it is
   the way to change it. On phones the search row and saved-location tools stay folded until it
   is tapped (header.loc-open), so the first screen is one row of controls, then weather. */
#stickyLocation{display:inline-flex;align-items:center;gap:6px;min-height:44px}
#stickyLocation .ic{flex:0 0 auto;width:15px;height:15px;color:var(--muted)}
#stickyPlace{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:680px){
  header:not(.loc-open) .locbar,header:not(.loc-open) .location-tools{display:none}
  header .top{margin-bottom:4px}
  .sticky-context{min-height:44px;padding:0}
  .jump a{font-size:15px;letter-spacing:0;padding:0 5px}
  .jump{gap:0}
}
/* Air quality is CAMS model output, never a monitor reading: the word rides with every value. */
.aqi-modeled{font-family:var(--fm);font-size:11px;font-weight:400;letter-spacing:.02em;color:var(--muted)}
.aqi-measured{overflow-wrap:anywhere}
.aqi-model-note{margin-top:4px}

/* --- Now and Your day, joined (PR: layout) ---
   Your day's lead sits in .cc-main beside the temperature, so the answer and the reading share the
   first screen. It wraps under the reading when the row is too narrow. The Your day card below
   keeps the supporting rows. */
.cc-take{flex:1 1 240px;min-width:0}
.cc-take:empty{display:none}
.cc-take .glance-lead{padding-block:2px}
.cc-take .glance-headline{font-size:24px}
.cc-take .glance-lead-ico .ic{width:28px;height:28px}
.cc-take .glance-detail{font-size:13px}
.cc-take .glance-action{font-size:15px}
@media(max-width:680px){.cc-take{flex-basis:100%}.cc-take .glance-headline{font-size:22px}}
/* With a takeaway and room for it, the reading row spans the card so the takeaway sits beside the
   temperature; today's range and the metrics move under it. The test is the Now card's own width,
   not the viewport: in the storm layout's two- and three-column rows Now can be ~300px wide on a
   wide screen, and there the takeaway wraps under the reading as it does on a phone. */
#currentCard{container:nowcard / inline-size}
@media(min-width:681px){
  @container nowcard (min-width:560px){
    #currentCard #current:has(.cc-take:not(:empty)) .cc-main{grid-column:1/-1;grid-row:1;flex-wrap:nowrap;align-items:center;gap:24px}
    #currentCard #current:has(.cc-take:not(:empty)) .cc-today{grid-column:1/-1;grid-row:2}
    #currentCard #current:has(.cc-take:not(:empty)) .cc-grid{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr))}
    #currentCard #current:has(.cc-take:not(:empty)) .cc-expo{grid-row:4}
  }
}
/* Calm-day radar (syncRadarCalm in dashboard-context.js). Only where the radar stacks under Now:
   above 1000px it sits beside the taller Now column, so a smaller map would save no height. The
   storm layout and fullscreen always win. */
@media(max-width:1000px){
  :root.radar-calm:not(.lsx-active) body:not(.radar-full) #radarCard .imgwrap{aspect-ratio:2/1}
}
@media(max-width:680px){
  :root.radar-calm:not(.lsx-active) body:not(.radar-full) #radarCard .imgwrap{aspect-ratio:16/9}
}

/* --- New sources: Weather Story, observed rainfall, winter guidance, road links (PR: data sources) --- */
.story-item{margin:0 0 12px}
.story-item img{display:block;width:100%;height:auto;border-radius:3px;background:var(--chip)}
.story-item figcaption{margin-top:8px;font-size:var(--fs-sm);line-height:1.45}
.story-valid{display:block;margin-top:4px;font-family:var(--fm);font-size:12px;color:var(--muted)}
.story-none{margin:0;color:var(--muted)}
.rain-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rain-item .k{font-family:var(--fm);font-size:11px;letter-spacing:.03em;color:var(--muted)}
.rain-item .v{font-family:var(--fm);font-weight:500;font-size:20px}
.rain-item .s{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.winter-rows{display:grid;gap:6px}
.winter-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2px 12px;align-items:baseline;font-size:var(--fs-sm);
  padding-bottom:6px;border-bottom:1px solid var(--border)}
.winter-day{grid-column:1/-1;font-family:var(--fm);font-size:12px;color:var(--muted)}
@media(max-width:480px){.winter-row{grid-template-columns:minmax(0,1fr)}}
.ol-story{margin:8px 0 0;font-size:var(--fs-sm)}
.road-links{margin:0;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.road-links[hidden]{display:none}
