:root { --bg: #f6f8fb; --card: #fff; --ink: #0f1724; --soft: #5b6678; --line: #e2e8f0; --rain: #2f7bf0; --wet: #e8f1ff; --accent: #2f7bf0; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #0b111b; --card: #121b29; --ink: #e8eef8; --soft: #93a1b8; --line: #223047; --rain: #5aa2ff; --wet: #13253f; --accent: #6aacff; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
main { max-width: 860px; margin: 0 auto; padding: 8px 16px 40px; }
.top { max-width: 860px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
.brand b { color: var(--accent); }
.drop { width: 14px; height: 18px; background: var(--accent); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; clip-path: polygon(50% 0, 100% 62%, 92% 85%, 70% 98%, 30% 98%, 8% 85%, 0 62%); }
.top nav a { margin-left: 14px; color: var(--soft); text-decoration: none; font-size: 14px; font-weight: 600; }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 12px 0 14px; }
h2 { font-size: 19px; margin: 28px 0 8px; }
.lede { font-size: 18px; color: var(--soft); margin: 0 0 18px; }
.crumbs { font-size: 13px; color: var(--soft); margin-top: 8px; }
.ans { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 12px; }
.ans.wet { background: var(--wet); border-color: transparent; }
.ans .big { font-size: 56px; font-weight: 800; line-height: 1; margin: 0 0 6px; letter-spacing: -0.03em; }
.ans .say { font-size: 20px; font-weight: 600; margin: 0; }
.ans .asof { font-weight: 500; color: var(--soft); font-size: 15px; white-space: nowrap; }
.ans .say2 { margin: 2px 0 0; color: var(--soft); }
.ans .when, .when { font-size: 13px; color: var(--soft); margin: 6px 0 8px; }
.map { height: 380px; border-radius: 18px; overflow: hidden; margin-top: 12px; background: var(--card); border: 1px solid var(--line); }
@media (max-width: 600px) { .map { height: 300px; } .ans .big { font-size: 46px; } }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.facts b { display: block; font-size: 20px; }
.facts span { font-size: 13px; color: var(--soft); }
.faq h2 { font-size: 17px; margin: 20px 0 4px; }
.faq p { margin: 0; }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--card); font-size: 14px; font-weight: 600; }
.grid { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.grid a { display: block; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); height: 100%; }
.grid .wet a { background: var(--wet); border-color: var(--rain); }
.grid .soon a { border-color: var(--rain); }
.grid b { display: block; }
.grid span { font-size: 13px; color: var(--soft); }
.hist { width: 100%; border-collapse: collapse; font-size: 14px; }
.hist td, .hist th { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
button.locate { font: 700 16px inherit; font-family: inherit; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; cursor: pointer; }
.hint { font-size: 13px; color: var(--soft); margin: 8px 0 12px; }
footer { max-width: 860px; margin: 0 auto; padding: 20px 16px 40px; color: var(--soft); font-size: 13px; border-top: 1px solid var(--line); }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; font-size: 13px; }
.map { position: relative; container-type: inline-size; container-name: map; }
.layers { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 4px; flex-wrap: wrap; }
.layers button { font: 600 12px/1 inherit; font-family: inherit; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--soft); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.layers button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.gauges small { display: block; color: var(--soft); font-size: 12px; }
.gauges td:nth-child(n+2), .gauges th:nth-child(n+2) { white-space: nowrap; }
.maplibregl-popup-content { background: var(--card); color: var(--ink); font-size: 13px; }
/* Map popups: the map is always dark, so its popups are dark cards like the radar's controls, in either theme
   (more specific than MapLibre's own white, which loads after this sheet). */
.map .maplibregl-popup-content { background: #172238; color: #eef3fb; border-radius: 12px; padding: 10px 28px 10px 12px; line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0,0,0,.35), inset 0 0 0 0.5px rgba(255,255,255,.12); }
.map .maplibregl-popup-content b { color: #fff; font-size: 14px; }
.map .maplibregl-popup-content .pk { color: #a7b4ca; }
.map .maplibregl-popup-content a { color: #7cc4ff; }
.map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .map .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .map .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: #172238; }
.map .maplibregl-popup-anchor-top .maplibregl-popup-tip, .map .maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .map .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: #172238; }
.map .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #172238; }
.map .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #172238; }
@media (max-width: 600px) { .top { flex-wrap: wrap; } .top nav a { margin: 0 12px 0 0; } }
.nh { margin: 12px 0 4px; }
.nh svg { display: block; width: 100%; height: 44px; }
.nh-base { stroke: currentColor; stroke-opacity: 0.18; stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.nh-now { stroke: currentColor; stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.nh figcaption { display: flex; justify-content: space-between; font-size: 11px; color: var(--soft); font-variant-numeric: tabular-nums; margin-top: 2px; }
.hero h1 { margin-bottom: 10px; }
.bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.bar button { font: 700 14px/1 inherit; font-family: inherit; border-radius: 999px; padding: 10px 16px; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.bar button.locate { background: var(--accent); border-color: var(--accent); color: #fff; }
.bar .hint, .share-msg { font-size: 13px; color: var(--soft); margin: 0; }
ul.now { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
ul.now a { display: block; padding: 9px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
ul.now .wet a { background: var(--wet); border-color: var(--rain); }
ul.now b { margin-right: 6px; }
.about { font-size: 14px; color: var(--soft); margin-top: 14px; }
.pk { color: var(--soft); font-size: 12px; }
.maplibregl-popup-close-button { font-size: 18px; padding: 0 6px; color: var(--soft); }
.map .maplibregl-popup-close-button { color: #a7b4ca; top: 4px; right: 4px; border-radius: 6px; } .map .maplibregl-popup-close-button:hover { background: rgba(255,255,255,.08); color: #fff; }
/* Narrow phones: the nav scrolls on its own line, wide tables scroll inside their box, never the page. */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 560px) { .top { flex-wrap: wrap; } .top nav { width: 100%; overflow-x: auto; white-space: nowrap; scrollbar-width: none; } .top nav a:first-child { margin-left: 0; } }
/* The radar player (radar.js): a glass bar along the bottom, the intensity legend (a control) on the right, motion and
   the rain switch top right, and the lens chip that follows the pointer. */
.rr { position: absolute; inset: 0; pointer-events: none; z-index: 2; --glass: rgba(255,255,255,.94); --glass-ink: #0f1724; --glass-soft: #5b6678; --glow: #2f7bf0; }
@media (prefers-color-scheme: dark) { .rr { --glass: rgba(16,24,38,.94); --glass-ink: #e8eef8; --glass-soft: #93a1b8; --glow: #7cc4ff; } }
.map-dark .rr { --glass: rgba(20,28,45,.94); --glass-ink: #eef3fb; --glass-soft: #a3b1c8; --glow: #7cc4ff; }
.rr > * { pointer-events: auto; }
.rr-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px;
  background: var(--glass); color: var(--glass-ink); border-radius: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 3px rgba(0,0,0,.28), inset 0 0 0 0.5px rgba(255,255,255,.14); }
.rr-play { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #5fb0ff, #2f7bf0); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.rr-play svg { width: 20px; height: 20px; }
.rr-read { flex: none; width: 124px; display: flex; flex-direction: column; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rr-time { font-size: 16px; letter-spacing: -0.01em; }
.rr-rel { font-size: 11.5px; color: var(--glass-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-rel.cast { color: var(--glow); }
.rr-track { position: relative; flex: 1; height: 40px; cursor: pointer; touch-action: none; outline: none; }
.rr-track:focus-visible .rr-knob { box-shadow: 0 0 0 3px var(--glow); }
.rr-strip { position: absolute; left: 0; right: 0; top: 2px; width: 100%; height: 12px; pointer-events: none; }
.rr-past, .rr-future, .rr-fill { position: absolute; top: 16px; height: 4px; border-radius: 2px; }
.rr-past { left: 0; width: 50%; background: color-mix(in srgb, var(--glass-ink) 22%, transparent); }
.rr-future { left: 50%; width: 50%; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--glow) 60%, transparent) 0 4px, transparent 4px 7px); }
/* Crisp, solid fills (no translucency stacked on translucency, no fades): the hour gone in ink, the forecast in blue. */
.rr-fill { left: 0; background: var(--glass-ink); }
.rr-fill.cast { background: linear-gradient(90deg, var(--glass-ink) 0 calc(50% / var(--f, 1)), var(--glow) calc(50% / var(--f, 1))); }
.rr-nowtick { position: absolute; left: 50%; top: 11px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--glass-ink); opacity: .6; }
.rr-knob { position: absolute; left: -10px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 0 0 0.5px rgba(0,0,0,.25); cursor: grab; touch-action: none; }
.rr-knob:active { cursor: grabbing; }
.rr-track small { position: absolute; top: 26px; font-size: 10px; color: var(--glass-soft); transform: translateX(-50%); pointer-events: none; }
.rr-l0 { left: 0; transform: none !important; } .rr-l1 { left: 50%; } .rr-l2 { right: 0; left: auto; transform: none !important; }
.rr-now { flex: none; font: 700 12px/1 inherit; font-family: inherit; padding: 9px 12px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--glass-ink) 10%, transparent); color: var(--glass-ink); cursor: pointer; }
.rr-top { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; align-items: center; }
.rr-motion, .rr-rain, .rr-ptype { display: flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 0;
  background: var(--glass); color: var(--glass-ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 1px 3px rgba(0,0,0,.28); }
.rr-rain { padding: 7px; cursor: pointer; color: var(--glass-soft); transition: color .3s, background .3s; }
.rr-rain svg { width: 18px; height: 18px; }
.rr-rain[aria-pressed="true"] { color: #fff; background: color-mix(in srgb, var(--glow) 55%, var(--glass)); }
.rr-arrow { width: 12px; height: 12px; fill: var(--glow); }
.rr-ptype { color: #dfe6ff; } .rr-flake { width: 13px; height: 13px; color: #c9c2ff; }
.rr-ptype[hidden], .rr-motion[hidden] { display: none; }
.rr-legend { position: absolute; right: 10px; top: 52px; bottom: 84px; width: 74px; pointer-events: none; }
.rr-rail { position: absolute; right: 0; top: 0; bottom: 0; width: 10px; display: flex; flex-direction: column; gap: 1.5px; pointer-events: auto; cursor: pointer;
  padding: 2px; margin: -2px; border-radius: 7px; }
.rr-rail i { flex: 1; border-radius: 3px; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.18); transform-origin: 100% 50%; }
.rr-legend > span { position: absolute; right: 16px; transform: translateY(50%); font-size: 10px; font-weight: 700; color: var(--glass-ink); text-shadow: 0 0 3px var(--glass), 0 0 7px var(--glass); }
.rr-dot { position: absolute; right: -3px; width: 16px; height: 16px; margin-bottom: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--glow); box-shadow: 0 1px 6px rgba(0,0,0,.4); bottom: 0; pointer-events: none; }
.rr-focus { position: absolute; right: 20px; transform: translateY(50%); white-space: nowrap; padding: 6px 9px; border-radius: 10px; font-size: 11px; line-height: 1.3;
  background: var(--glass); color: var(--glass-ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 1px 3px rgba(0,0,0,.3), inset 0 0 0 0.5px rgba(255,255,255,.12); opacity: 0; visibility: hidden; pointer-events: none; }
.rr-focus span { color: var(--glass-soft); }
.rr-probe { position: absolute; left: 0; top: 0; width: 196px; padding: 10px 12px 9px; border-radius: 16px; color: var(--glass-ink); pointer-events: none;
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 12px 32px rgba(0,0,0,.3), inset 0 0 0 0.5px rgba(255,255,255,.18); }
.rr-probe.pinned { pointer-events: auto; }
.rr-ph { display: flex; align-items: center; gap: 7px; }
.rr-ph b { font-size: 14px; flex: 1; }
.rr-sw { width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 0.5px rgba(255,255,255,.3); }
.rr-x { display: none; border: 0; background: none; color: var(--glass-soft); font-size: 18px; line-height: 1; padding: 0 2px; cursor: pointer; }
.rr-probe.pinned .rr-x { display: block; }
.rr-pd { display: block; font-size: 11px; color: var(--glass-soft); font-variant-numeric: tabular-nums; margin-top: 1px; }
.rr-spark { display: block; width: 100%; height: 36px; margin: 7px 0 4px; overflow: visible; }
.rr-area { opacity: .55; }
.rr-line { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.rr-snow { stroke: var(--glass-ink); stroke-opacity: .35; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.rr-shead { stroke: var(--glass-ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.rr-pn { margin: 0; font-size: 12px; font-weight: 600; }
@media (max-width: 600px) {
  .rr-read { width: 92px; } .rr-time { font-size: 14px; } .rr-now { display: none; } .rr-bar { gap: 8px; }
  .rr-legend { bottom: 76px; top: 50px; width: 62px; } .rr-motion, .rr-ptype { font-size: 11px; } .rr-probe { width: 172px; }
}
/* /radar: the map is the page. */
body:has(.map.full) main { max-width: none; padding: 0; }
body:has(.map.full) footer { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.map.full { height: calc(100dvh - 62px); margin: 0; border-radius: 0; border: 0; }
/* The logo: the app icon in small (pages.py LOGO), animated by app.js. */
.brand .logo { width: 30px; height: 30px; flex: none; border-radius: 7px; box-shadow: 0 1px 4px rgba(15,23,36,.25); overflow: hidden; }
.brand .logo-drop, .brand .logo-glow { transform-box: fill-box; transform-origin: 50% 100%; }
/* Motion: hidden for the moment before GSAP brings the page in (pages.py ANIM_HEAD lifts it after 1.2 s regardless). */
.anim .top, .anim main, .anim footer { opacity: 0; }
main h1 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
main h1 .mi, .ans .big .mi { display: inline-block; }
.ans .big { overflow: hidden; padding-bottom: .06em; margin-bottom: 0; }
/* Rain behind the page while it rains here; the cards turn to frosted glass so it shows through softly. */
#rainfx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; visibility: hidden; }
.raining .ans, .raining ul.now a, .raining .links a, .raining .grid a, .raining .facts div { background: color-mix(in srgb, var(--card) 78%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.raining .ans.wet, .raining ul.now .wet a, .raining .grid .wet a { background: color-mix(in srgb, var(--wet) 80%, transparent); }
/* Home: one screen on a desktop, no page scroll. The answer and lists on the left (scrolling inside only if a short
   window can't hold them), the radar filling the right, the footer a single line. Phones keep one column, the map
   straight after the answer. */
.home { display: flex; flex-direction: column; }
.home .side { display: contents; }
.home .hero { order: 0; } .home > .map { order: 1; } .home .nowlist { order: 2; } .home .cities { order: 3; }
@media (min-width: 900px) and (min-height: 600px) {
  body:has(.home) { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  body:has(.home) .top { max-width: 1440px; width: 100%; padding: 10px 24px; }
  body:has(.home) main { max-width: 1440px; width: 100%; flex: 1; min-height: 0; padding: 0 24px 12px; }
  .home { display: grid; grid-template-columns: minmax(360px, 440px) 1fr; gap: 24px; height: 100%; }
  .home .side { display: block; min-height: 0; overflow: hidden; }   /* never scrolls: app.js fitHome() drops the least important items to fit */
  .home > .map { height: 100%; margin-top: 0; min-height: 0; }
  .home h1 { font-size: clamp(28px, 3vw, 40px); margin: 2px 0 10px; }
  .home h2 { font-size: 15px; margin: 18px 0 6px; }
  .home .ans .big { font-size: 48px; }
  .home .links { gap: 6px; } .home .links a { padding: 4px 10px; font-size: 13px; }
  .home ul.now a { padding: 7px 10px; font-size: 13px; }
  .home .about { font-size: 13px; margin-top: 12px; }
  body:has(.home) footer { flex: none; max-width: 1440px; width: 100%; padding: 8px 24px 10px; font-size: 12px; }
  body:has(.home) footer p:first-child { display: none; }
  body:has(.home) footer p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* Map credits: a small dark button bottom left, lifted above the radar's bar; opens to a dark strip. */
.map .maplibregl-ctrl-bottom-left { z-index: 3; }
.map:has(.rr-bar) .maplibregl-ctrl-bottom-left { bottom: 68px; }
.map .maplibregl-ctrl-attrib.maplibregl-compact { background: #172238; color: #c9d4e6; border-radius: 12px; min-height: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.3), inset 0 0 0 0.5px rgba(255,255,255,.12); }
.map .maplibregl-ctrl-attrib.maplibregl-compact a { color: #9fd0ff; }
.map .maplibregl-ctrl-attrib-button { background-color: transparent; filter: invert(1) brightness(1.4); opacity: .8; }
/* A narrow map (a phone): the layer buttons keep the top row; the radar's chips drop to a row of their own beneath
   them, and the legend starts below both, so nothing overlaps. */
.rr-motion em { font-style: normal; }
/* A map inside a page: one "Layers" chip (to /radar) instead of the overlay switches, so the controls fit one row. */
.layers-link { position: absolute; top: 10px; left: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px;
  font: 600 12px/1 inherit; font-family: inherit; text-decoration: none; color: #eef3fb; background: rgba(20,28,45,.94); box-shadow: 0 1px 3px rgba(0,0,0,.28), inset 0 0 0 0.5px rgba(255,255,255,.14); }
.layers-link svg { width: 15px; height: 15px; color: #7cc4ff; }
.layers-link:hover { color: #fff; }
/* A narrow map: everything on one row; "Moving" and the snow-level words drop. The /radar and gauges maps (with the
   overlay switches) put the radar chips on a second row instead. */
@container map (max-width: 620px) {
  .rr-motion, .rr-ptype { padding: 6px 9px; font-size: 11px; }
  .rr-motion em, .rr-ptype span { display: none; } .rr-ptype { padding: 6px; }
  .map:has(.layers) .rr-top { top: 48px; left: 10px; right: 10px; justify-content: flex-end; flex-wrap: wrap; }
  .map:has(.layers) .rr-legend { top: 92px; }
}
/* The rain leaderboard (/rainiest): the board on the left, the map of the top five beside it (sticky), the gauges,
   records and almanac below. One column on a phone, the map after the leaderboard. */
body:has(.board) .top, body:has(.board) main, body:has(.board) footer { max-width: 1240px; }
.board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); grid-template-areas: "head map" "main map" "more map"; column-gap: 28px; align-items: start; }
.lb-head { grid-area: head; } .lb-main { grid-area: main; } .lb-more { grid-area: more; }
.lb-map { grid-area: map; position: sticky; top: 16px; align-self: start; }
.lb-map .map { height: min(640px, calc(100vh - 32px)); margin-top: 14px; }
@media (max-width: 900px) {
  .board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "main" "map" "more"; }
  .lb-map { position: static; } .lb-map .map { height: 340px; }
}
.tabs { position: relative; display: inline-flex; gap: 2px; padding: 4px; margin: 6px 0 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; z-index: 1; font: 600 14px/1 inherit; font-family: inherit; border: 0; background: transparent; color: var(--soft); padding: 9px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .25s; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--accent); }
.podium { list-style: none; padding: 0; margin: 14px 0 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pod { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 12px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; cursor: pointer; overflow: hidden; transition: border-color .2s; }
.pod .rk { grid-row: 1 / span 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #0f1724; }
.pod.p1 .rk { background: #f5c542; } .pod.p2 .rk { background: #cfd8e3; } .pod.p3 .rk { background: #d99a5e; }
.pod a { color: var(--ink); text-decoration: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .amt { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pod .amt::after { content: " in"; font-size: 14px; font-weight: 600; color: var(--soft); }
.pod small { color: var(--soft); font-size: 12px; }
.pod.hl, .lb tr.hl { border-color: var(--accent); }
table.lb { width: 100%; border-collapse: collapse; font-size: 14px; }
.lb td, .lb th { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.lb th { font-size: 12px; color: var(--soft); font-weight: 600; }
.lb .rk { width: 30px; font-weight: 800; color: var(--soft); font-variant-numeric: tabular-nums; }
.lb .pl a { font-weight: 700; color: var(--ink); text-decoration: none; } .lb .pl a:hover { color: var(--accent); }
.lb .pl small { display: block; font-size: 12px; color: var(--soft); }
.lb td.bx { width: 34%; } .lb td.bx i { display: block; height: 8px; width: var(--w); min-width: 2px; border-radius: 4px; background: linear-gradient(90deg, #6cc3ff, #2f7bf0); }
.lb .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .lb .num b { font-size: 15px; }
.lb .hr { text-align: right; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb tbody tr { cursor: pointer; transition: background .2s; } .lb tbody tr.hl { background: var(--wet); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 10px 0; }
.rc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rc.wide { grid-column: span 2; }
.rt { font-size: 12px; color: var(--soft); font-weight: 600; }
.rv { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.rs { font-size: 13px; color: var(--soft); }
.meter { position: relative; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 12%, transparent); margin-top: 10px; }
.meter .so { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 4px; background: var(--accent); }
.meter .nm { position: absolute; top: -4px; bottom: -4px; left: var(--x); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.recs .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.board .faq h3 { font-size: 16px; margin: 16px 0 4px; }
@media (max-width: 560px) { .podium { grid-template-columns: minmax(0, 1fr); } .rc.wide { grid-column: auto; } .lb td.bx { width: 22%; } .lb .hr { display: none; } }
/* Map pins: the top five numbered (gold, silver, bronze, then blue), each with its name; the top gauges as small teal
   diamonds with their total. */
.bm { cursor: pointer; }
.bm b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 800 13px/1 system-ui, sans-serif; color: #0f1724; background: #6cc3ff; border: 2px solid #0f1724; box-shadow: 0 1px 3px rgba(0,0,0,.45); }
.bm.r1 b { background: #f5c542; } .bm.r2 b { background: #cfd8e3; } .bm.r3 b { background: #d99a5e; }
.bm .lbl { position: absolute; left: 34px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 12px/1 system-ui, sans-serif; color: #eef3fb; background: #172238; padding: 5px 8px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.35); pointer-events: none; }
.bm:not(.r1):not(.hl) .lbl { opacity: 0; transition: opacity .2s; } .bm.hl .lbl { opacity: 1; }
.gm { display: flex; align-items: center; gap: 5px; text-decoration: none; }
.gm i { width: 11px; height: 11px; background: #22c3a6; border: 2px solid #0f1724; transform: rotate(45deg); border-radius: 2px; }
.gm span { font: 700 11px/1 system-ui, sans-serif; color: #c9fff3; text-shadow: 0 1px 2px #0f1724, 0 0 3px #0f1724; }
/* The share chip on the radar's controls, and the share-video studio (share.js). */
.rr-sharebtn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; pointer-events: auto;
  color: var(--glass-ink); background: var(--glass); box-shadow: 0 1px 3px rgba(0,0,0,.28), inset 0 0 0 0.5px rgba(255,255,255,.14); }
.rr-sharebtn svg { width: 17px; height: 17px; }
.rr-sharebtn:hover { color: #fff; background: color-mix(in srgb, var(--glow) 55%, var(--glass)); }
dialog.rs { padding: 0; border: 0; background: transparent; color: #eef3fb; max-width: min(920px, calc(100vw - 32px)); width: 100%; }
dialog.rs::backdrop { background: rgba(4,8,15,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rs-card { position: relative; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; border-radius: 24px;
  background: #121b2b; box-shadow: 0 2px 10px rgba(0,0,0,.4), inset 0 0 0 0.5px rgba(255,255,255,.12); }
.rs-stage { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #0b111b; }
.rs-stage canvas, .rs-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }
.rs-side h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.01em; }
.rs-status { margin: 0 0 14px; color: #a7b4ca; }
.rs-prog { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 18px; }
.rs-prog i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #6cc3ff, #2f7bf0); }
.rs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-actions[hidden] { display: none; }
.rs-actions button, .rs-actions a { font: 700 15px/1 inherit; font-family: inherit; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #eef3fb; text-decoration: none; cursor: pointer; }
.rs-actions .rs-share { background: #2f7bf0; border-color: #2f7bf0; color: #fff; }
.rs-actions [hidden] { display: none; }
.rs-note { margin: 16px 0 0; font-size: 12px; color: #7f8ca3; }
.rs-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #eef3fb; font-size: 22px; line-height: 1; cursor: pointer; z-index: 1; }
@media (max-width: 640px) { .rs-card { grid-template-columns: minmax(0, 1fr); padding: 16px; } .rs-stage { max-height: 56vh; justify-self: center; width: min(100%, calc(56vh * 0.8)); } }
/* Icons (Iconoir sprite): sized to the text beside them, drawn in its colour. */
svg.ic { width: 1.15em; height: 1.15em; flex: none; color: inherit; vertical-align: -0.2em; }
button:has(> svg.ic), a:has(> svg.ic) { display: inline-flex; align-items: center; justify-content: center; gap: 0.45em; }
.rr-play svg.ic, .rr-rain svg.ic, .rr-sharebtn svg.ic { vertical-align: 0; }
.rs-x svg.ic { width: 18px; height: 18px; }
.layers button svg.ic { width: 14px; height: 14px; }
