/* sky-theme.css — the NOW BAND on the four live-data pages (conditions, forecast, lake-levels,
   streamflow). Linked ONLY by those pages, after styles.css, with media="screen", so print is
   untouched. Pair: /assets/js/sky-theme.js, which sets --sky-band to one flat colour for the real
   sky right now (time of day + cloud, snow, rain or storm).

   2026-11-25, decision 1 of docs/reviews/conditions-ideas-2026-11-23/00-GUIDE.md and §1 of
   03-ui-system.md: the sky lives in ONE band at the top of the page; everything below it is the
   site's own cream sheet with the site's own tokens, unmodified. That retired:
     - the fixed full-viewport backdrop, its stars, glow, drifting clouds, falling snow, storm
       pulse, meteor and the invented ridgeline (the ridge was hand-placed points, not terrain);
     - the "Pause sky motion" button (nothing moves any more);
     - the dark sheet inside <main> and the ~150-selector generated block that flipped every site
       component to dark. scripts/gen-sky-theme.mjs now writes an empty block, and
       scripts/check-sky-theme.mjs keeps it empty.

   THE RULE IS UNCHANGED: NO TEXT SITS ON THE SKY. The hero's text sits on its scrim panel
   (--sky-panel) and the hub's current reading on its own card (hub.css), both measured as before.
   The band colour only shows around them. */
@supports selector(:where(a)) and selector(:is(a)) {

:root{--sky-band:#27719a;--sky-panel:rgba(8,20,28,.86)}

/* ───────── the band ───────── */
/* The data hero: the sky colour instead of the pine fill and the contour wallpaper. */
main .hero--data{background:var(--sky-band)!important;background-image:none!important}
main .hero--data::before,main .hero--data::after{display:none}
main .hero--data>.wrap{background:var(--sky-panel);width:auto;max-width:none;flex:0 0 auto;border-radius:14px;
  margin:0 max(14px,calc((100% - 1080px)/2));padding:14px clamp(10px,2.5vw,25px) 18px}   /* the same edges as the reading card below it */
main .hero--data :is(.eyebrow,.kicker){color:var(--mint-3)!important;opacity:1}
main .hero--data :is(h1,.hero-title){color:#fff!important}
main .hero--data :is(p,.sub,.hero-sub,.lead){color:rgba(255,255,255,.92)!important;opacity:1}
main .hero--data a{color:var(--mint)!important}

/* /conditions: the current-reading card belongs to the band. A spread shadow in the band colour runs
   full width around it and up to the hero, clipped to the card's own height plus its margins, so
   hero + reading read as one block (clip-path also keeps it from adding a horizontal scrollbar).
   The card stays on its own dark surface, now opaque (the .86 card over the band, flattened): the
   alert slot is never re-skinned for taste. */
/* The band stops partway down the card (2026-11-25 review): the card rises out of the sky onto the cream page, so the
   band's bottom edge never runs through the page buttons below the card (Lake level, Streamflow …). Drawn as a full-width
   strip behind the top of the hub, under the card, so it clips nothing of the card itself. */
main:has(#hub){overflow-x:clip}
main #hub .hb-page{position:relative}
main #hub .hb-page::before{content:"";position:absolute;z-index:0;top:-24px;height:174px;left:calc(50% - 50vw);right:calc(50% - 50vw);background:var(--sky-band);pointer-events:none}
main #hub .hb-now{position:relative;z-index:1;background:#0b1f2b}
@media (max-width:560px){ main #hub .hb-page::before{height:126px} }   /* --bp-sm */

/* ───────── forced colours (Windows High Contrast): system colours, no band ───────── */
@media (forced-colors:active){
  main .hero--data,main .hero--data>.wrap{background:Canvas!important}
  main #hub .hb-page::before{display:none}
}

/* GEN:START — written by scripts/gen-sky-theme.mjs, do not edit by hand */
/* (empty since 2026-11-25: below the band the page is the site's own cream sheet, so nothing needs flipping) */
/* GEN:END */

}   /* end @supports */
