/* home3.css — FloodRadar homepage v3 "Radar" + /map. Self-contained: v3 pages do NOT load styles.css.
   Tokens on :root (light) and :root[data-theme="dark"]; warning reds/ambers identical in both themes.
   Spec: docs/superpowers/specs/2026-09-05-homepage-v3-radar-design.md §8 */

:root { color-scheme: light;
  --bg:#f3f6fb; --panel:#ffffff; --panel-2:#f7f9fd; --ink:#0c2747; --muted:#5b6478; --faint:#7a8699;
  --line:rgba(12,39,71,.12); --line-2:rgba(12,39,71,.22);
  --accent:#0b7bd6; --on-accent:#ffffff; --accent-soft:rgba(11,123,214,.12);
  /* One level ladder, shared with homepage v4 and with getLevelColor() in app.js, so the maps, the
     station pages and every list agree: green typical, amber around its high, orange above it, red
     well above it. Motion is never a colour — a rising gauge pulses in its own level. */
  --typical:#2e8f5f; --elevated:#cf8f00; --rising:#1d6fb8; --above:#e2670c; --danger:#c81e2a; --below:#bfcee0; --stale:#9aa6b8; --unknown:#c3ccd9;
  --alert:#d97706; --alert-fill:rgba(245,184,61,.22); --alert-ink:#7a4b00;
  --warning:#dc2626; --warning-fill:rgba(220,38,38,.28); --severe:#b91c1c; --severe-fill:rgba(185,28,28,.42);
  --rain:#2873d8; --overflow:#6b4423; --live:#15a35f; --predict:#0891b2;
  --rain-3:#2f74d0; --rain-4:#1d55a8; --rain-5:#123a7d; --rain-6:#3a1d6e;
  --overflow-5:#4a2a12;
  --shadow:0 10px 30px rgba(12,39,71,.12); --shadow-sm:0 2px 8px rgba(12,39,71,.08);
  --radius:14px; --radius-sm:10px;
  --font:Manrope,"Avenir Next","Segoe UI",system-ui,sans-serif; --mono:"JetBrains Mono","SF Mono",Menlo,monospace;
  --tabbar-h:56px; --safe-b:env(safe-area-inset-bottom,0px); --hd-h:68px;
  --map-glass:rgba(255,255,255,.82); --map-glass-ink:#0c2747;
  --h3-rail:360px; --h3-rail-x:28px;   /* the desktop right-hand card rail; the zoom stack clears it */
}
:root[data-theme="dark"] { color-scheme: dark;
  --bg:#0a1730; --panel:#10254a; --panel-2:#0e2042; --ink:#e6eef9; --muted:#9fb3d1; --faint:#7f93b3;
  --line:rgba(148,180,220,.16); --line-2:rgba(148,180,220,.3);
  --accent:#38bdf8; --on-accent:#06203a; --accent-soft:rgba(56,189,248,.16);
  --typical:#4cc38a; --elevated:#ffcc3d; --rising:#bfe9ff; --above:#ff9142; --danger:#ff5b63; --below:#3e638f; --stale:#55688a; --unknown:#3d5279;
  --alert:#f5b83d; --alert-fill:rgba(245,184,61,.18); --alert-ink:#ffd479;
  --warning:#dc2626; --warning-fill:rgba(220,38,38,.34); --severe:#b91c1c; --severe-fill:rgba(185,28,28,.5);
  --rain:#3c86ff; --overflow:#cf8b52; --live:#34d399; --predict:#67e8f9;
  --rain-3:#5b9dff; --rain-4:#8fc0ff; --rain-5:#cfe4ff; --rain-6:#f0e4ff;
  --overflow-5:#f0c79b;
  --shadow:0 10px 30px rgba(0,0,0,.35); --shadow-sm:0 2px 8px rgba(0,0,0,.3);
  --map-glass:rgba(10,23,48,.78); --map-glass-ink:#e6eef9;
}

/* ── base ─────────────────────────────────────────────────────────────── */
html,body{margin:0;background:var(--bg);color:var(--ink);font:400 15px/1.45 var(--font);-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
*,*::before,*::after{box-sizing:border-box}
a{color:var(--accent);text-decoration:none} a:hover{text-decoration:underline}
h1,h2,h3,p{margin:0}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}
.i{width:1.25em;height:1.25em;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:-.28em}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
input,select{font:inherit;color:inherit}
[hidden]{display:none!important}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.h3-kicker{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.h3-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:var(--radius-sm);font-weight:800;font-size:15px;letter-spacing:.01em;white-space:nowrap;border:1px solid transparent}
.h3-btn:hover{text-decoration:none}
.h3-btn--accent{background:var(--accent);color:var(--on-accent)}
.h3-btn--ghost{color:var(--ink);border-color:var(--line-2);background:var(--panel)}
.h3-btn--sm{height:36px;padding:0 12px;font-size:13px}
.h3-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--warning);color:#fff;font-size:11px;font-weight:800;line-height:1}
.h3-badge--amber{background:var(--alert);color:#1a1200}

/* ── header ───────────────────────────────────────────────────────────── */
.h3-hd{position:sticky;top:0;z-index:1150;display:flex;align-items:center;gap:16px;height:var(--hd-h);padding:0 24px;background:var(--bg);border-bottom:1px solid var(--line);min-width:0}
.h3-brand{display:flex;align-items:center;gap:10px;flex:none;color:var(--ink);font-size:20px;font-weight:800;letter-spacing:-.01em}
.h3-brand:hover{text-decoration:none}
.h3-brand img{width:36px;height:36px;border-radius:50%;display:block}
.h3-searchwrap{position:relative;flex:1 1 380px;max-width:520px;min-width:300px;display:flex;gap:8px}
.h3-searchwrap .h3-search{flex:1;min-width:0}
.h3-search{display:flex;align-items:center;height:46px;border-radius:12px;background:var(--panel);border:1px solid var(--line-2);overflow:hidden}
.h3-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.h3-search .i{margin-left:14px;color:var(--faint)}
.h3-search input{flex:1;min-width:0;height:100%;border:0;background:transparent;padding:0 10px;font-size:15px;outline:none}
.h3-search input::placeholder{color:var(--faint)}
.h3-search button{height:100%;padding:0 12px;color:var(--muted);border-left:1px solid var(--line)}
.h3-locate{width:46px;height:46px;border-radius:12px;background:var(--panel);border:1px solid var(--line-2);display:inline-flex;align-items:center;justify-content:center;color:var(--accent);flex:none}
.h3-search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:1300;background:var(--panel);border:1px solid var(--line-2);border-radius:12px;box-shadow:var(--shadow);overflow:hidden;max-height:min(60vh,480px);overflow-y:auto}
.h3-sr-h{padding:8px 14px 4px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
.h3-sr{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 14px;min-height:44px;border-top:1px solid var(--line);color:var(--ink)}
.h3-sr:hover,.h3-sr.is-active{background:var(--accent-soft)}
.h3-sr .t{flex:1;min-width:0} .h3-sr .t b{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .h3-sr .t small{color:var(--muted);font-size:12px}
.h3-sr .v{font-family:var(--mono);font-size:13px;color:var(--muted);white-space:nowrap}
.h3-dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--typical)}
.h3-sr-empty{padding:14px;color:var(--muted);font-size:14px}
.h3-nav{display:flex;align-items:center;gap:16px;margin-left:auto;font-size:15px;font-weight:600;flex:none}
.h3-nav a{color:var(--muted);white-space:nowrap;display:inline-flex;align-items:center;gap:6px} .h3-nav a:hover{color:var(--ink);text-decoration:none}
.h3-nav a .i{display:none}
.h3-hd-right{display:flex;align-items:center;gap:10px;flex:none}
@media (max-width:1500px){ .h3-hd-right .h3-btn--accent{display:none} }
@media (max-width:1300px){ .h3-nav a.h3-nav--opt{display:none} .h3-nav{gap:12px;font-size:14px} }
.h3-pill{display:inline-flex;align-items:center;padding:3px;border-radius:999px;background:var(--panel);border:1px solid var(--line-2);gap:2px}
.h3-pill button{display:inline-flex;align-items:center;justify-content:center;height:28px;min-width:32px;padding:0 8px;border-radius:999px;color:var(--muted);font-size:12px;font-weight:700}
.h3-pill button.on{background:var(--accent);color:var(--on-accent)}
.h3-login{font-weight:600;color:var(--ink)}
.h3-user{position:relative}
.h3-user > button{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border-radius:10px;border:1px solid var(--line-2);font-weight:700}
.h3-user-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:200px;background:var(--panel);border:1px solid var(--line-2);border-radius:12px;box-shadow:var(--shadow);padding:6px;z-index:1300}
.h3-user-menu a{display:block;padding:9px 12px;border-radius:8px;color:var(--ink)} .h3-user-menu a:hover{background:var(--accent-soft);text-decoration:none}

/* ── warnings strip ───────────────────────────────────────────────────── */
.h3-strip{display:flex;align-items:center;gap:14px;min-height:44px;padding:8px 28px;font-size:14px;color:inherit}
.h3-strip:hover{text-decoration:none}
.h3-strip b{font-weight:800}
.h3-strip .h3-strip-r{margin-left:auto;display:flex;align-items:center;gap:16px;font-weight:600;white-space:nowrap}
.h3-strip .h3-strip-r a{color:inherit;text-decoration:underline}
.h3-strip-sw{width:12px;height:12px;border-radius:3px;flex:none}
.h3-strip--yellow{background:var(--alert-fill);color:var(--alert-ink);border-bottom:1px solid rgba(245,184,61,.35)}
.h3-strip--amber{background:var(--alert-fill);color:var(--alert-ink);border-bottom:1px solid rgba(245,184,61,.45)}
.h3-strip--red{background:var(--warning);color:#fff;min-height:52px}
.h3-strip--severe{background:var(--severe);color:#fff;min-height:56px;flex-wrap:wrap}
.h3-strip--severe .h3-strip-mo{flex-basis:100%;font-size:13px;opacity:.92;display:flex;gap:8px;align-items:center}
.h3-strip .h3-btn--white{background:#fff;color:#b91c1c;height:34px;padding:0 14px;font-size:13px}
.h3-strip-src{font-size:12px;opacity:.8}
.h3-stormchip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px 0 8px;border-radius:999px;background:rgba(255,255,255,.16);font-weight:800;font-size:13px;white-space:nowrap}
.h3-tone-amber .h3-stormchip,.h3-headline-storm{background:var(--accent-soft);color:var(--ink)}

/* ── incoming-storm bar (v0 #homeStormBanner parity; forecast = amber, active = red) ───────── */
.h3-stormbar{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 28px;font-size:14px;color:#fff;background:linear-gradient(135deg,#b45309,#92400e)}
.h3-stormbar--active{background:linear-gradient(135deg,#c0392b,#922b1f)}
.h3-stormbar b{font-weight:800}
.h3-stormbar .i{width:1.4em;height:1.4em}
.h3-stormbar-cat{display:inline-block;margin-left:4px;padding:1px 8px;border-radius:999px;background:rgba(255,255,255,.18);font-size:12px;font-weight:700;vertical-align:1px}
.h3-stormbar-dates,.h3-stormbar-facts{opacity:.9}
.h3-stormbar--local .h3-stormbar-where{font-weight:800}
.h3-stormbar .h3-strip-r{margin-left:auto;display:flex;align-items:center;gap:14px;font-weight:600;white-space:nowrap}
.h3-stormbar .h3-btn--white{background:#fff;color:#92400e;height:34px;padding:0 14px;font-size:13px}
.h3-stormbar--active .h3-btn--white{color:#922b1f}
@media (max-width:760px){.h3-stormbar{padding:10px 16px;font-size:13px;flex-wrap:wrap;gap:8px}.h3-stormbar .h3-strip-r{margin-left:0;flex-basis:100%;font-size:12px}}

/* ── stage / map ──────────────────────────────────────────────────────── */
.h3-main{display:block}
.h3-stage{position:relative;height:clamp(620px,76vh,900px);overflow:hidden;background:var(--panel-2)}
.h3-map{position:absolute;inset:0;background:var(--panel-2)}
.leaflet-container{font:inherit;background:var(--panel-2)}
/* The dark theme has always filtered its tiles; the light theme never did, though
   docs/map-tile-providers.md §3 says the light basemap is "OSM with a CSS grey filter". Raw OSM
   Carto is heavily green — woodland #ADD19E and grass #CDEBB0 — and the green gauge dots were
   getting lost in it (CIE76 ΔE of 33 between a typical dot and OSM woodland, the tightest pair on
   the map). saturate(.55) cuts the green excess by 43% and lifts that floor to 40, while labels,
   roads and water stay identifiable. The tile pane only: markers, warning areas and the GB mask
   live in other panes and are untouched. */
.h3-map[data-theme="light"] .leaflet-tile-pane{filter:saturate(.55) brightness(1.03)}
.h3-map[data-theme="dark"] .leaflet-tile-pane{filter:brightness(.78) saturate(.6) sepia(.45) hue-rotate(178deg)}
.h3-map[data-theme="dark"] .leaflet-h3labels-pane{filter:none;opacity:.9}
.leaflet-container .leaflet-control-attribution{background:var(--map-glass);color:var(--muted);font:11px/1.4 var(--font);padding:2px 8px;border-radius:8px 0 0 0}
.leaflet-container .leaflet-control-attribution a{color:var(--muted)}
.h3-engage{position:absolute;inset:0;z-index:520;display:flex;align-items:flex-end;justify-content:center;padding-bottom:70px;background:transparent}
.h3-engage .h3-btn{background:var(--map-glass);color:var(--map-glass-ink);border-color:var(--line-2);box-shadow:var(--shadow-sm);pointer-events:none}
.h3-done{position:absolute;top:10px;right:10px;z-index:530}
.h3-left{position:absolute;left:28px;top:20px;width:356px;z-index:510;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.h3-left > *{pointer-events:auto}
.h3-live{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.h3-live b{color:var(--ink);font-weight:600}
.h3-live-dot{width:8px;height:8px;border-radius:50%;background:var(--live);box-shadow:0 0 0 4px rgba(52,211,153,.2)}
.h3-headline{font-size:26px;line-height:1.12;font-weight:800;letter-spacing:-.02em;color:var(--ink);text-shadow:0 1px 0 var(--bg)}
.h3-headline-link{display:inline-block;margin-top:4px;font-weight:700;font-size:14px}
.h3-tone-red .h3-headline{color:var(--above)} .h3-tone-amber .h3-headline{color:var(--alert)}
.h3-chips{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.h3-chip{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:10px 14px;border-radius:12px;background:var(--map-glass);border:1px solid var(--line);color:var(--ink);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.h3-chip .sw{width:12px;height:12px;border-radius:50%;flex:none}
.h3-chip .n{font-family:var(--mono);font-size:22px;font-weight:500;line-height:1;min-width:44px}
.h3-chip .t{font-size:14px;line-height:1.25;color:var(--muted);min-width:0}
.h3-chip .t b{color:var(--ink);font-weight:600;display:block}
.h3-chip .tog{margin-left:auto;width:34px;height:20px;border-radius:10px;background:var(--accent);position:relative;flex:none;transition:background .15s}
.h3-chip .tog i{position:absolute;top:3px;left:17px;width:14px;height:14px;border-radius:50%;background:var(--on-accent);transition:left .15s}
.h3-chip[aria-checked="false"] .tog{background:var(--line-2)} .h3-chip[aria-checked="false"] .tog i{left:3px;background:var(--panel)}
.h3-chip--na .n{font-size:13px;color:var(--faint);font-weight:600}
.h3-legend{display:flex;flex-wrap:wrap;gap:6px 14px;padding:6px 4px 0;font-size:12px;color:var(--muted)}
.h3-legend span{display:inline-flex;align-items:center;gap:6px} .h3-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}
.h3-legend i.ring{width:10px;height:10px;background:none;border:1.5px dashed var(--alert)}
.h3-legend i.pulse{width:10px;height:10px;background:none;border:1.5px solid var(--faint);animation:h3legend 2.4s ease-out infinite}
@keyframes h3legend{0%{transform:scale(.6);opacity:.6}60%{transform:scale(1);opacity:1}100%{transform:scale(1.25);opacity:0}}
.h3-right{position:absolute;right:var(--h3-rail-x);top:20px;width:var(--h3-rail);max-height:calc(100% - 150px);z-index:510;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overscroll-behavior:contain}
/* The rail scrolls as one column; a card that clipped its own contents used to cut the postcode
   field in half whenever both the local panel and the signup card were in the rail together. */
.h3-right .h3-card{flex:0 0 auto;overflow:visible}
.h3-card{padding:18px 20px;border-radius:16px;background:var(--panel);border:1px solid var(--line-2);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:10px}
.h3-card h3{font-size:20px;line-height:1.15;font-weight:800;letter-spacing:-.02em}
.h3-card p{font-size:13.5px;line-height:1.45;color:var(--muted)}
.h3-account form{display:flex;flex-direction:column;gap:10px}
.h3-card .h3-close{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}
.h3-card{position:relative}
.h3-field{display:flex;flex-direction:column;gap:6px}
.h3-field label{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.h3-field label span{text-transform:none;letter-spacing:0;font-weight:400}
.h3-field input{height:42px;border-radius:10px;border:1px solid var(--line-2);background:var(--bg);color:var(--ink);padding:0 14px;font-weight:500;font-size:15px}
.h3-field input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.h3-fine{font-size:12px;color:var(--muted);line-height:1.45}
.h3-places{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.h3-places li{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:6px 0;border-top:1px solid var(--line)}
.h3-places b{font-weight:700} .h3-places small{display:block;font-size:12px;color:var(--muted)}
.h3-around .h3-ar-sub{font-size:13px;color:var(--muted);margin-top:-6px}
.h3-ar-row{display:flex;align-items:center;gap:12px;min-height:44px;padding:6px 0;border-top:1px solid var(--line);color:var(--ink);text-align:left;width:100%}
.h3-ar-row .n{font-weight:800;font-size:18px;min-width:28px;font-family:var(--mono)} .h3-ar-row .t{flex:1;min-width:0}
.h3-ar-row .t b{display:block}
.h3-ar-row .t small{display:block;font-size:12.5px;line-height:1.35;color:var(--muted)} .h3-ar-row .i.chev{color:var(--faint)}
.h3-ar-row.is-warn .i:not(.chev){color:var(--alert)} .h3-ar-row.is-sev .i:not(.chev){color:var(--warning)}
.h3-ar-links{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:14px;font-weight:700;padding-top:4px}
.h3-ar-alarm{border-top:0}
.h3-tabs{display:flex;gap:6px;padding:8px 0 2px}
.h3-tabs button{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:0 10px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--panel-2);color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h3-tabs button[aria-selected="true"]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.h3-tabs button span{font-family:var(--mono);font-size:12px;font-weight:700;padding:1px 6px;border-radius:999px;background:var(--line);color:inherit}
.h3-lookup{display:flex;gap:8px;padding-top:10px}
.h3-lookup input{flex:1 1 auto;min-width:0;width:auto;min-height:44px;padding:0 12px;border:1px solid var(--line-2);border-radius:var(--radius-sm);background:var(--panel-2);color:var(--ink);font:inherit}
.h3-lookup input:focus{outline:2px solid var(--accent);outline-offset:-1px}
.h3-lookup .h3-btn{flex:none;width:auto;padding:0 16px;min-height:44px}
/* /map is the detail map; the switch says so and offers the way back to the homepage views. */
.h3-where{position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:520;display:flex;align-items:center;gap:2px;padding:3px;border-radius:999px;background:var(--map-glass);border:1px solid var(--line);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);font-size:13px;font-weight:700}
.h3-where a,.h3-where span{padding:6px 14px;border-radius:999px;color:var(--muted);text-decoration:none;white-space:nowrap}
.h3-where a:hover{color:var(--ink);text-decoration:none}
.h3-where [aria-current="page"]{background:var(--panel);color:var(--ink);box-shadow:var(--shadow-sm)}
@media (max-width:760px){.h3-where{top:8px;font-size:12px;left:auto;right:12px;transform:none}.h3-where a,.h3-where span{padding:5px 11px}}
.h3-alerts-card{display:flex;align-items:center;gap:14px}
.h3-alerts-card .i{width:34px;height:34px;color:var(--accent)} .h3-alerts-card .t{flex:1} .h3-alerts-card .t b{display:block;font-size:17px;font-weight:800} .h3-alerts-card .t span{font-size:14px;color:var(--muted)}
.h3-mapctl{position:absolute;z-index:510;display:flex;gap:8px}
.h3-mapctl--bl{left:28px;bottom:44px}
.h3-mapctl--br{right:28px;bottom:44px;flex-direction:column;gap:6px}
@media(min-width:1024px){.h3-page-home .h3-mapctl--br{right:calc(var(--h3-rail-x) + var(--h3-rail) + 14px)}}
.h3-mapbtn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:10px;background:var(--map-glass);color:var(--map-glass-ink);border:1px solid var(--line-2);font-weight:700;font-size:14px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);white-space:nowrap}
.h3-mapbtn:hover{text-decoration:none;border-color:var(--accent)}
.h3-mapbtn--sq{width:40px;padding:0;justify-content:center}
.h3-mapbtn.on{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
.h3-layers{position:absolute;left:28px;bottom:92px;z-index:515;width:300px;padding:14px 16px;border-radius:14px;background:var(--panel);border:1px solid var(--line-2);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:2px}
.h3-layers h4{margin:0 0 6px;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
.h3-layers label{display:flex;align-items:center;gap:10px;min-height:38px;font-size:14px;cursor:pointer}
.h3-layers label .sw{width:12px;height:12px;border-radius:50%;flex:none} .h3-layers label small{margin-left:auto;font-size:11px;color:var(--faint)}
.h3-layers input{accent-color:var(--accent);width:16px;height:16px}
.h3-ticker{position:absolute;left:0;right:0;bottom:0;z-index:505;display:flex;align-items:center;gap:18px;height:34px;padding:0 28px;background:var(--map-glass);border-top:1px solid var(--line);font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden}
.h3-ticker b{color:var(--ink);font-weight:700;flex:none} .h3-ticker span{flex:none} .h3-ticker .r{margin-left:auto}
.h3-ticker:empty{display:none}

/* map marker DOM (bubbles, pulses, tips, selection) */
.h3-bubble{display:flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font:800 13px/1 var(--font);border:2px solid rgba(255,255,255,.85);box-shadow:0 4px 14px rgba(0,0,0,.35);cursor:pointer;background:var(--alert)}
.h3-bubble--1{background:var(--severe)} .h3-bubble--2{background:var(--warning)} .h3-bubble--3{background:var(--alert);color:#1a1200}
/* Every map ring animates an INNER <i>, never the marker itself: Leaflet positions a divIcon with an
   inline transform, and an animated transform outranks an inline one — animating the marker threw its
   position away and piled every ring in the corner of the map. */
.h3-pulse,.h3-rainring,.h3-sewring{pointer-events:none}
.h3-pulse>i,.h3-rainring>i,.h3-sewring>i{display:block;width:100%;height:100%;border-radius:50%;box-sizing:border-box}
.h3-pulse>i{border:1.6px solid var(--severe);animation:h3pulse 1.8s ease-out infinite}
/* A gauge ring means one thing — the reading is still going up — and wears the gauge's own level
   colour, so a rising-but-typical gauge never reads as an emergency. */
.h3-pulse--gauge>i{border-width:1.2px;animation:h3gauge 3.5s ease-out infinite}
.h3-pulse--danger>i{border-color:var(--danger)}
.h3-pulse--above>i{border-color:var(--above)}
.h3-pulse--elevated>i{border-color:var(--elevated)}
.h3-pulse--typical>i{border-color:var(--typical)}
.h3-pulse--low>i{border-color:var(--below)}
.h3-rainring>i{border:1px solid var(--rain);opacity:.3;animation:h3rain 4.5s ease-out infinite}
.h3-sewring>i{border:1.5px solid var(--overflow);opacity:.55;animation:h3sew 3.4s ease-in-out infinite}
.h3-d0>i{animation-delay:0s}.h3-d1>i{animation-delay:-.45s}.h3-d2>i{animation-delay:-.9s}.h3-d3>i{animation-delay:-1.35s}
.h3-d4>i{animation-delay:-1.8s}.h3-d5>i{animation-delay:-2.25s}.h3-d6>i{animation-delay:-2.7s}.h3-d7>i{animation-delay:-3.15s}
@keyframes h3pulse{0%{transform:scale(.6);opacity:.9}100%{transform:scale(2.4);opacity:0}}
/* v4's gauge ring, exactly: a short, soft expansion rather than v3's wide sweep. */
@keyframes h3gauge{0%{transform:scale(.55);opacity:.65}80%,100%{transform:scale(1.65);opacity:0}}
@keyframes h3rain{0%{transform:scale(.6);opacity:.45}100%{transform:scale(1.25);opacity:0}}
@keyframes h3sew{0%,100%{transform:scale(.62);opacity:.08}50%{transform:scale(1.5);opacity:.5}}
.leaflet-tooltip.h3-tip{background:var(--panel);color:var(--ink);border:1px solid var(--line-2);border-radius:10px;box-shadow:var(--shadow-sm);padding:8px 10px;font:500 13px/1.35 var(--font);white-space:nowrap}
.leaflet-tooltip.h3-tip::before{border-top-color:var(--panel)}
.leaflet-tooltip.h3-tip b{display:block;font-weight:800}
.h3-hint{position:absolute;left:50%;top:14px;transform:translateX(-50%);z-index:530;padding:8px 14px;border-radius:999px;background:var(--panel);color:var(--ink);border:1px solid var(--line-2);box-shadow:var(--shadow-sm);font-size:13px;font-weight:600;opacity:0;transition:opacity .2s;pointer-events:none}
.h3-hint.show{opacity:1}
.h3-pin{width:14px;height:14px;border-radius:50%;background:var(--accent);border:3px solid #fff;box-shadow:0 0 0 2px var(--accent),0 4px 12px rgba(0,0,0,.35)}
.h3-you{width:16px;height:16px;border-radius:50%;background:#4285F4;border:3px solid #fff;box-shadow:0 0 0 6px rgba(66,133,244,.25)}

/* ── station sheet ────────────────────────────────────────────────────── */
.h3-sheet{position:absolute;z-index:540;width:320px;max-width:calc(100% - 56px);padding:14px 16px 16px;border-radius:14px;background:var(--panel);color:var(--ink);border:1px solid var(--line-2);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:8px}
.h3-sheet-handle{display:none}
.h3-sheet-head{display:flex;align-items:flex-start;gap:8px}
.h3-sheet-head .t{flex:1;min-width:0} .h3-sheet-head .t small{display:block;font-size:12px;font-weight:600;color:var(--muted)} .h3-sheet-head .t b{display:block;font-size:17px;font-weight:800;line-height:1.2}
.h3-star{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)} .h3-star.on{color:#f5b83d}
.h3-sheet .h3-close{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}
.h3-level{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.h3-level .v{font-family:var(--mono);font-size:32px;font-weight:500;line-height:1} .h3-level .u{font-size:15px;color:var(--muted)}
.h3-level .band{font-size:14px;font-weight:800}
.h3-band-danger{color:var(--danger)} .h3-band-above{color:var(--above)} .h3-band-around{color:var(--elevated)} .h3-band-normal{color:var(--live)} .h3-band-low{color:var(--faint)}   /* --below is a map fill; as text on white it is barely there */ .h3-band-unknown,.h3-band-stale{color:var(--faint)}
.h3-dir{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:14px} .h3-dir .i{width:18px;height:18px}
.h3-dir--r{color:var(--above)} .h3-dir--c{color:var(--alert)} .h3-dir--f{color:var(--rising)} .h3-dir--s,.h3-dir--u{color:var(--muted)}
.h3-spark{width:100%;height:84px;display:block;border-radius:8px;background:var(--panel-2)}
.h3-spark--empty{display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--faint)}
.h3-sheet-meta{font-size:12px;color:var(--muted);line-height:1.45}
.h3-flags{display:flex;flex-wrap:wrap;gap:6px} .h3-flag{font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;background:var(--accent-soft);color:var(--ink)}
.h3-flag--warn{background:var(--alert-fill);color:var(--alert-ink)}
.h3-sheet-actions{display:flex;gap:8px;padding-top:4px} .h3-sheet-actions .h3-btn{flex:1;height:40px;font-size:14px}
/* ── the gauge card ────────────────────────────────────────────────────
   Built to the same design as homepage v4's, so a tapped gauge answers the same on both. One
   severity is set on the sheet and the rail, the state dot, the range marker and the trend pill all
   inherit it — the card can never disagree with the dot that opened it. */
.h3-sheet{--gc-sev:var(--typical);--gc-soft:rgba(46,143,95,.12)}
.h3-sheet[data-sev="elevated"]{--gc-sev:var(--elevated);--gc-soft:rgba(207,143,0,.14)}
.h3-sheet[data-sev="above"]{--gc-sev:var(--above);--gc-soft:rgba(226,103,12,.14)}
.h3-sheet[data-sev="danger"]{--gc-sev:var(--danger);--gc-soft:rgba(200,30,42,.14)}
.h3-sheet[data-sev="low"]{--gc-sev:#4e6e86;--gc-soft:rgba(78,110,134,.12)}
.h3-sheet[data-sev="unknown"]{--gc-sev:var(--stale);--gc-soft:rgba(154,166,184,.16)}
.h3-gc-rail{height:3px;border-radius:3px 3px 0 0;background:var(--gc-sev);margin:-14px -16px 4px}
.h3-gc-warn{display:flex;gap:9px;align-items:flex-start;background:var(--gc-soft);border:1px solid var(--gc-sev);border-radius:10px;padding:9px 11px;text-decoration:none;color:var(--ink)}
.h3-gc-warn:hover{text-decoration:none}
.h3-gc-warn .i{width:16px;height:16px;flex:none;color:var(--gc-sev);margin-top:1px}
.h3-gc-warn b{display:block;font-size:12px;font-weight:800;color:var(--gc-sev)}
.h3-gc-warn span span{display:block;font-size:12px;color:var(--muted);line-height:1.35}
.h3-gc-warn[data-severity="1"],.h3-gc-warn[data-severity="2"]{--gc-sev:var(--warning);--gc-soft:rgba(220,38,38,.12)}
.h3-gc-status{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.h3-gc-state{display:inline-flex;align-items:center;gap:7px;font-weight:800;color:var(--gc-sev)}
.h3-gc-dot{width:9px;height:9px;border-radius:50%;background:var(--gc-sev);flex:none}
.h3-gc-sep{color:var(--faint)}
.h3-gc-reading{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.h3-gc-value{font-family:var(--mono);font-size:34px;font-weight:500;line-height:1}
.h3-gc-unit{font-size:15px;color:var(--muted)}
.h3-gc-unit small{display:block;font-size:11px;color:var(--faint)}
.h3-gc-trend{margin-left:auto;display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:800;padding:5px 10px;border-radius:999px;background:var(--panel-2);color:var(--muted);white-space:nowrap}
.h3-gc-trend .i{width:15px;height:15px}
.h3-gc-trend[data-dir="r"]{background:var(--gc-soft);color:var(--gc-sev)}
.h3-gc-trend[data-dir="f"]{color:var(--rising)}
.h3-gc-trend[data-dir="c"]{color:var(--alert)}
.h3-gc-range{padding-top:2px}
.h3-gc-bar{position:relative;height:9px;border-radius:5px;background:var(--panel-2);overflow:visible}
.h3-gc-seg{position:absolute;top:0;bottom:0}
.h3-gc-seg.ok{background:var(--typical);opacity:.28}
.h3-gc-seg.amber{background:var(--elevated);opacity:.3}
.h3-gc-seg.above{background:var(--above);opacity:.32}
.h3-gc-seg.danger{background:var(--danger);opacity:.34;border-radius:0 5px 5px 0}
.h3-gc-marker{position:absolute;top:-4px;width:3px;height:17px;border-radius:2px;background:var(--gc-sev);box-shadow:0 0 0 2px var(--panel)}
.h3-gc-scale{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--faint);padding-top:5px;font-family:var(--mono)}
.h3-gc-scale b{color:var(--muted);font-weight:700}
.h3-gc-chart-head{display:flex;justify-content:space-between;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--faint);padding-bottom:4px}
.h3-gc-chart-range{font-family:var(--mono);text-transform:none;letter-spacing:0;font-weight:500}
.h3-gc-rain{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--muted);background:var(--panel-2);border-radius:10px;padding:8px 11px}
.h3-gc-rain .i{width:16px;height:16px;flex:none;color:var(--rain)}
.h3-gc-rain[data-state="dry"] .i,.h3-gc-rain[data-state="none"] .i,.h3-gc-rain[data-state="unavailable"] .i{color:var(--faint)}
.h3-gc-qty{margin-left:auto;white-space:nowrap;color:var(--ink);font-weight:600}
.h3-gc-meta{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11px;color:var(--faint);border-top:1px solid var(--line);padding-top:8px}
.h3-gc-meta .warn{color:var(--alert)}
.h3-sheet-area .sev{font-weight:800} .h3-sheet-area .sev--1{color:var(--severe)} .h3-sheet-area .sev--2{color:var(--warning)} .h3-sheet-area .sev--3{color:var(--alert)}

/* ── doors ────────────────────────────────────────────────────────────── */
.h3-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px 28px 0}
.h3-tile{display:flex;flex-direction:column;gap:10px;padding:20px 22px;border-radius:14px;background:var(--panel);border:1px solid var(--line);min-width:0}
.h3-tile h3{font-size:17px;font-weight:800;display:flex;align-items:center;justify-content:space-between;gap:8px} .h3-tile h3 .i{color:var(--accent)}
.h3-tile p{color:var(--muted);font-size:14px;line-height:1.4}
.h3-tile .row{display:flex;align-items:center;gap:10px;justify-content:space-between;font-size:14px} .h3-tile .row span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.h3-tile .row .mono{font-weight:600}
.h3-tile .muted{color:var(--muted)}
.h3-bar{height:8px;border-radius:4px;background:var(--line);overflow:hidden;flex:1} .h3-bar i{display:block;height:100%;background:var(--accent)}
.h3-tile--report{background:var(--accent-soft)}
.h3-dataline{padding:18px 28px 22px;font-size:12px;color:var(--faint)}

/* shared footer (markup from includes/footer.php; styles.css is not loaded on v3) */
.site-footer{background:var(--panel-2);border-top:1px solid var(--line);color:var(--muted);padding:32px 28px 24px}
.site-footer .footer-content{max-width:1200px;margin:0 auto}
.site-footer .footer-columns{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.site-footer h3{font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);margin:0 0 10px}
.site-footer ul{list-style:none;margin:0;padding:0} .site-footer li{margin:0 0 6px;font-size:14px} .site-footer a{color:var(--muted)} .site-footer a:hover{color:var(--ink)}
.site-footer .footer-bottom{margin-top:24px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center}
.site-footer .fr-x-follow{display:inline-flex;align-items:center;gap:6px;color:var(--ink);font-weight:700} .site-footer .fr-x-follow svg{width:14px;height:14px;fill:currentColor}

/* ── tab bar + More sheet (phones) ────────────────────────────────────── */
.h3-tabbar{display:none}
.h3-more-backdrop{display:none}
.h3-more{display:none}

/* ── /map page ────────────────────────────────────────────────────────── */
.h3-page-map .h3-mapwrap{position:relative;display:grid;grid-template-columns:1fr 400px;height:calc(100vh - var(--hd-h));min-height:520px}
.h3-page-map .h3-stage{position:relative;height:auto;min-height:0}
.h3-panel{display:flex;flex-direction:column;background:var(--panel);border-left:1px solid var(--line);min-height:0}
/* The briefing is the panel's FIRST TAB, so its body fills the panel and scrolls
   exactly like the gauge list it replaces (Marc, 2026-09-07). */
.h3-rail-brief{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.h3-around--rail{border:0;border-radius:0;box-shadow:none;margin:0}
.h3-panel-tabs{display:flex;gap:4px;padding:10px 12px 0;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none} .h3-panel-tabs::-webkit-scrollbar{display:none}
.h3-panel-tabs button{display:inline-flex;align-items:center;gap:5px;padding:10px 8px;border-bottom:2px solid transparent;font-weight:700;font-size:14px;color:var(--muted);white-space:nowrap}
.h3-panel-tabs button.on{color:var(--accent);border-bottom-color:var(--accent)}
.h3-panel-tools{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line)}
.h3-panel-tools input{flex:1;min-width:0;height:36px;border-radius:9px;border:1px solid var(--line-2);background:var(--bg);padding:0 10px}
.h3-sort{display:inline-flex;border:1px solid var(--line-2);border-radius:9px;overflow:hidden} .h3-sort button{padding:0 12px;height:34px;font-size:13px;font-weight:700;color:var(--muted)} .h3-sort button.on{background:var(--accent);color:var(--on-accent)}
.h3-list{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1;min-height:0}
.h3-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:10px;align-items:center;width:100%;text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);color:var(--ink);min-height:56px}
.h3-row:hover,.h3-row.is-selected{background:var(--accent-soft)}
.h3-row .t{min-width:0} .h3-row .t b{display:block;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis} .h3-row .t small{display:block;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h3-row .v{text-align:right} .h3-row .v .mono{font-weight:600;display:block} .h3-row .v .h3-dir{font-size:12px}
.h3-row svg.h3-rowspark{width:64px;height:22px;display:block}
.h3-empty{padding:24px 16px;color:var(--muted);font-size:14px;text-align:center}
.h3-view-toggle{display:none}

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width:1023px){
  .h3-hd{padding:0 16px;gap:12px}
  .h3-nav{display:none}
  .h3-right{display:none}
  .h3-left{left:16px;width:min(340px,calc(100% - 32px))}
  .h3-mapctl--bl{left:16px} .h3-mapctl--br{right:16px} .h3-layers{left:16px}
  .h3-tiles{grid-template-columns:1fr 1fr;padding:16px 16px 0}
  .h3-strip,.h3-ticker,.h3-dataline{padding-left:16px;padding-right:16px}
  .site-footer .footer-columns{grid-template-columns:1fr 1fr}
  .h3-page-map .h3-mapwrap{grid-template-columns:1fr 340px}
}
@media (max-width:760px){
  :root{--hd-h:56px}
  body{padding-bottom:calc(var(--tabbar-h) + var(--safe-b))}
  .h3-hd{flex-wrap:wrap;height:auto;padding:8px 12px 8px 16px;gap:8px}
  .h3-hd .h3-brand{order:1} .h3-hd .h3-hd-right{order:2;margin-left:auto} .h3-hd .h3-searchwrap{order:3;min-width:0}
  .leaflet-container .leaflet-control-attribution{max-width:58%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;margin-left:110px}
  .leaflet-container .leaflet-control-attribution:hover,.leaflet-container .leaflet-control-attribution:focus-within{white-space:normal;max-width:calc(100% - 20px);margin-left:0}
  .h3-mapctl--bl{bottom:30px} .h3-mapctl--br{bottom:30px}
  .h3-brand{font-size:18px} .h3-brand img{width:32px;height:32px}
  .h3-hd-right{margin-left:auto} .h3-hd-right .h3-btn--accent{display:none} .h3-pill{display:none}
  .h3-searchwrap{flex-basis:100%;max-width:none;display:flex;gap:8px}
  .h3-searchwrap .h3-search{flex:1}
  .h3-search-results{left:0;right:0}
  .h3-strip{padding:10px 16px;font-size:13px;flex-wrap:wrap;gap:8px}
  .h3-strip .h3-strip-r{margin-left:0;flex-basis:100%;font-size:12px}
  .h3-stage{height:56vh;min-height:380px;max-height:620px}
  .h3-left{position:static;width:auto;padding:12px 16px 0;pointer-events:auto}
  .h3-left-wrap{background:var(--bg)}
  .h3-headline{font-size:20px}
  .h3-chips{flex-direction:row;overflow-x:auto;gap:8px;padding:2px 0 6px;scrollbar-width:none;position:absolute;left:0;right:0;top:10px;z-index:512;padding-left:16px;padding-right:16px}
  .h3-chips::-webkit-scrollbar{display:none}
  .h3-chip{flex:none;padding:8px 10px;gap:8px;width:auto} .h3-chip .n{font-size:16px;min-width:0} .h3-chip .t b{display:inline;font-size:13px} .h3-chip .t{font-size:0} .h3-chip .t b{font-size:13px} .h3-chip .tog{display:none}
  .h3-chip[aria-checked="true"]{border-color:var(--accent)} .h3-chip[aria-checked="false"]{opacity:.62}
  .h3-legend{display:none}
  .h3-mapctl--bl{left:12px;bottom:12px} .h3-mapctl--br{right:12px;bottom:12px}
  .h3-mapbtn span{display:none} .h3-mapbtn{width:44px;height:44px;padding:0;justify-content:center}
  .h3-layers{left:12px;right:12px;bottom:64px;width:auto}
  .h3-ticker{display:none}
  .h3-around-slot{padding:0 16px}
  .h3-around-slot .h3-left{position:static;width:auto;padding:12px 0 4px;pointer-events:auto}
  .h3-around-slot .h3-card{margin-top:10px}
  .h3-around-slot .h3-legend{display:flex}
  .h3-sheet{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-width:none;border-radius:20px 20px 0 0;padding:8px 16px calc(16px + var(--safe-b));max-height:72vh;overflow-y:auto;box-shadow:0 -10px 34px rgba(0,0,0,.3);transform:translateY(0);transition:transform .22s ease-out;z-index:1250}
  .h3-sheet.is-hiding{transform:translateY(100%)}
  .h3-sheet-handle{display:block;width:40px;height:4px;border-radius:2px;background:var(--line-2);margin:0 auto 8px}
  .h3-gc-rail{margin:-8px -16px 6px;border-radius:0}   /* the bottom sheet has its own top padding */
  .h3-tiles{grid-template-columns:1fr;padding:16px 16px 0;gap:12px}
  .h3-dataline{padding:16px}
  .site-footer{padding:24px 16px 20px} .site-footer .footer-columns{grid-template-columns:1fr;gap:16px}
  /* tab bar */
  .h3-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:1200;display:flex;justify-content:space-around;align-items:flex-start;height:calc(var(--tabbar-h) + var(--safe-b));padding:6px 4px var(--safe-b);background:var(--panel);border-top:1px solid var(--line-2)}
  .h3-tab{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;width:64px;min-height:44px;color:var(--muted);font-size:11px;font-weight:600}
  .h3-tab .i{width:24px;height:24px} .h3-tab.on{color:var(--accent);font-weight:800}
  .h3-tab.on::after{content:"";position:absolute;bottom:-6px;width:36px;height:3px;border-radius:2px;background:var(--accent)}
  .h3-tab .h3-badge{position:absolute;top:-4px;left:38px}
  .h3-tab:hover{text-decoration:none}
  .h3-more-backdrop{display:block;position:fixed;inset:0;z-index:1240;background:rgba(3,10,25,.5);opacity:0;pointer-events:none;transition:opacity .2s}
  .h3-more-backdrop.show{opacity:1;pointer-events:auto}
  .h3-more{display:block;position:fixed;left:0;right:0;bottom:calc(var(--tabbar-h) + var(--safe-b));z-index:1250;max-height:72vh;overflow-y:auto;background:var(--panel);border-radius:16px 16px 0 0;box-shadow:0 -10px 34px rgba(0,0,0,.3);transform:translateY(110%);transition:transform .22s ease-out;padding:10px 12px 16px}
  .h3-more.open{transform:translateY(0)}
  .h3-more-h{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);padding:10px 8px 4px}
  .h3-more a{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 8px;border-radius:10px;color:var(--ink);font-weight:600} .h3-more a:hover{background:var(--accent-soft);text-decoration:none}
  .h3-more .i{color:var(--accent)}
  .h3-more .h3-pill{display:inline-flex;margin:8px}
  /* /map on phones: Map / List toggle */
  .h3-page-map .h3-mapwrap{display:block;height:calc(100vh - var(--hd-h) - var(--tabbar-h) - var(--safe-b))}
  .h3-page-map .h3-stage{position:absolute;inset:0;height:auto}
  .h3-panel{position:absolute;inset:0;z-index:520;display:none}
  .h3-page-map.is-list .h3-panel{display:flex} .h3-page-map.is-list .h3-stage{visibility:hidden}
  .h3-view-toggle{display:inline-flex;position:absolute;top:10px;left:12px;z-index:530;border:1px solid var(--line-2);border-radius:10px;overflow:hidden;background:var(--map-glass)}
  .h3-view-toggle button{height:38px;padding:0 16px;font-weight:700;color:var(--muted)} .h3-view-toggle button.on{background:var(--accent);color:var(--on-accent)}
  .h3-page-map .h3-left,.h3-page-map .h3-ticker{display:none}
}
@media (max-width:360px){ .h3-tab{width:56px} .h3-headline{font-size:18px} }
