/* Savannah Weather: deep green, warm cream, coastal blue. Theme follows the saved appearance setting. */
:root {
  color-scheme: light;
  --bg: #f6f1e6;
  --paper: #fffdf8;
  --ink: #1b2420;
  --muted: #5a6962;
  --line: #e6dfcf;
  --header: #1f4d3a;
  --green: #1f4d3a;
  --green-2: #2e6a50;
  --green-soft: #e4efe8;
  --blue: #36698c;
  --blue-soft: #e2ecf2;
  --amber: #8f5b00;
  --amber-soft: #fbf0d6;
  --orange: #a8520f;
  --orange-soft: #fdebd8;
  --red: #b3261e;
  --red-soft: #fbe9e6;
  --night-bg: #f1eee6;
  --good: #3c9a68;
  --fair: #e3ad35;
  --poor: #d1583f;
  --good-text: var(--green);
  --poor-text: var(--red);
  --na: #ebe6da;
  --temp: #d9822b;
  --i-sun: #e3a008;
  --i-sun-fill: #fde9a8;
  --i-moon: #6f7f99;
  --i-moon-fill: #e4e9f2;
  --i-cloud: #7b8a94;
  --i-rain: #3d84c0;
  --icf: var(--paper);
  --sky: var(--paper);
  --radius: 16px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d1512;
    --paper: #14201b;
    --ink: #e6eee9;
    --muted: #9cb0a5;
    --line: #253630;
    --header: #10302a;
    --green: #8fd0ad;
    --green-2: #6fbf95;
    --green-soft: #1b3229;
    --blue: #8dbbe0;
    --blue-soft: #182a36;
    --amber: #f0c264;
    --amber-soft: #2d2513;
    --orange: #f5a35c;
    --orange-soft: #36230f;
    --red: #ff8f80;
    --red-soft: #3a1c18;
    --night-bg: #101a16;
    --good: #3f9e6c;
    --fair: #c9952a;
    --poor: #c25540;
    --na: #1f2c27;
    --temp: #f0a050;
    --i-sun: #f2b829;
    --i-sun-fill: #5c4710;
    --i-moon: #b8c4dc;
    --i-moon-fill: #2a3346;
    --i-cloud: #a7b4bd;
    --i-rain: #6fb0e6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
a { color: var(--blue); text-underline-offset: 2px; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h2 { font: 700 1.3rem/1.25 var(--font-display); color: var(--green); margin: 0 0 .7rem; letter-spacing: -.2px; }
h3 { font-size: 1rem; margin: 1.3rem 0 .5rem; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.note { color: var(--muted); font-size: .85rem; margin: .5rem 0 0; }
.muted { color: var(--muted); }
.error { color: var(--red); }
.ic { width: 24px; height: 24px; flex: none; }
.detail { min-height: 1.5em; margin: 8px 0 0; font-size: .9rem; }

/* ---------- header ---------- */
/* When installed on iPhone the status bar overlays the page, so the header pads under it. */
.top { position: sticky; top: 0; z-index: 1100; background: var(--header); color: #fff; padding-top: env(safe-area-inset-top); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 700 1.2rem/1 var(--font-display); white-space: nowrap; }
.brand-block { flex: none; display: grid; gap: 4px; }
.brand-credit { margin: 0; padding-left: 44px; color: #c9dcd6; font-size: .7rem; line-height: 1.3; white-space: nowrap; }
.brand-credit a { color: inherit; text-underline-offset: 2px; }
.brand-credit a:hover { color: #fff; }
.brand:focus-visible, .loc select:focus-visible, .brand-credit a:focus-visible { outline-color: #f6f1e6; }
.brand img { flex: none; }
.brand em { font-style: normal; font-weight: 600; opacity: .8; }
.loc { margin-left: auto; min-width: 0; }
.loc select {
  appearance: none; -webkit-appearance: none;
  font-size: .95rem; color: #1b2420; max-width: 100%; width: 220px; min-height: 44px; text-overflow: ellipsis;
  padding: 7px 30px 7px 12px; border: 0; border-radius: 999px;
  background: #f6f1e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b2420' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 11px center / 11px;
}
.settings-link { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: #fff; }
.settings-link:hover { background: rgba(255, 255, 255, .12); }
.settings-link[aria-current="page"] { background: #f6f1e6; color: #1f4d3a; }
.settings-link:focus-visible { outline-color: #f6f1e6; }
.app-nav { display: flex; gap: 8px; padding-top: 8px; padding-bottom: 12px; }
.app-nav a { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; min-width: 110px; padding: 8px 16px; color: #fff; text-decoration: none; border-radius: 12px; font-size: .9rem; font-weight: 600; }
.app-nav a:hover { background: rgba(255, 255, 255, .12); }
.app-nav a[aria-current="page"] { color: #1f4d3a; background: #f6f1e6; }
.app-nav a:focus-visible { outline-color: #f6f1e6; }
.nav-icon { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: .68rem; font-weight: 750; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 1300; padding: 12px 18px; border-radius: 10px; background: var(--paper); color: var(--green); }
.skip-link:focus { top: 12px; }

/* ---------- alerts ---------- */
.alerts { display: grid; gap: 8px; }
.alerts:not(:empty) { margin-top: 12px; }
.alert { border-radius: 12px; padding: 10px 14px; border-left: 5px solid; background: var(--blue-soft); border-color: var(--blue); }
.alert.warning { background: var(--red-soft); border-color: var(--red); }
.alert.watch { background: var(--orange-soft); border-color: var(--orange); }
.alert.advisory { background: var(--amber-soft); border-color: var(--fair); }
.alert summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; list-style: none; }
.alert summary::-webkit-details-marker { display: none; }
.alert .ev { font-weight: 700; }
.alert.warning .ev { color: var(--red); }
.alert.watch .ev { color: var(--orange); }
.alert .until { font-size: .88rem; color: var(--muted); }
.alert .more { margin-left: auto; font-size: .8rem; color: var(--blue); }
.alert[open] .more { visibility: hidden; }
.alert-body p { margin: .5rem 0; font-size: .9rem; white-space: pre-line; }

/* ---------- layout ---------- */
.app-main { min-height: calc(100dvh - 230px); padding-top: 22px; padding-bottom: 24px; }
.app-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.app-view:focus { outline: none; }
.view-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; padding: 0 2px 2px; }
.eyebrow { margin: 0 0 3px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.view-head h1 { margin: 0; color: var(--green); font: 700 clamp(1.8rem, 4vw, 2.3rem)/1.15 var(--font-display); letter-spacing: -.6px; }
.view-intro { margin: 0 0 3px; color: var(--muted); font-size: .9rem; }
.view-head > button { min-height: 40px; margin-bottom: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; justify-self: start; min-height: 36px; font-size: .88rem; text-decoration: none; font-weight: 600; }
.back-link:hover, .text-link:hover { text-decoration: underline; }
.view-jumps { display: flex; gap: 6px; }
.view-jumps a { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; text-decoration: none; background: var(--paper); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: .7rem; }
.card-head h2, .card-head .note { margin: 0; }
@media (min-width: 760px) { .card { padding: 20px 22px; } }

/* ---------- today overview and detail shortcuts ---------- */
.text-link { font-size: .82rem; font-weight: 600; text-decoration: none; }
.next-hours { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.next-hours > .note { grid-column: 1 / -1; }
.next-hour { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; --icf: var(--paper); text-align: center; }
.next-hour + .next-hour { border-left: 1px solid var(--line); }
.next-hour-time { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.next-hour .ic { width: 32px; height: 32px; }
.next-hour-value { color: var(--ink); font-size: 1.6rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.next-hour-detail, .next-hour-direction { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.next-hour-direction { margin-top: -4px; }
.hour-peek-modes { display: inline-flex; max-width: 100%; padding: 3px; border: 1px solid var(--line); border-radius: 10px; gap: 2px; }
.hour-peek-modes button { min-height: 44px; padding: 8px 16px; background: transparent; border: 0; border-radius: 7px; color: var(--ink); font: inherit; font-size: .9rem; cursor: pointer; }
.hour-peek-modes button:hover { background: var(--green-soft); }
.hour-peek-modes button[aria-pressed="true"] { color: var(--paper); background: var(--ink); font-weight: 650; }
.hour-peek-note { margin: 12px 0 4px; }
.hour-peek-freshness { border-top: 1px solid var(--line); padding-top: 10px; margin: 10px 0 0; }
.hour-peek-freshness:empty { display: none; }
.hour-peek-visual, .hour-peek-rain { display: block; height: 32px; width: 24px; }
.hour-peek-rain { display: flex; align-items: flex-end; background: var(--blue-soft); border-bottom: 1px solid var(--blue); }
.hour-peek-rain i { display: block; width: 100%; background: var(--blue); }
.conditions-help { grid-column: 1 / -1; margin-top: 12px; font-size: .88rem; }
.conditions-help summary { cursor: pointer; color: var(--blue); padding: 5px 0; }
.conditions-help p { max-width: 72ch; margin: 10px 0 0; }
.today-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.today-links a { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 36px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; }
.today-links a:hover { border-color: var(--green-2); background: var(--green-soft); }
.shortcut-label { color: var(--green); font-size: .95rem; font-weight: 700; line-height: 1.3; }
.shortcut-detail { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.shortcut-arrow { position: absolute; right: 14px; top: 14px; color: var(--green-2); }
.alert-summary-wrap:has([hidden]) { display: none; }
.alert-summary { --summary-color: var(--blue); --summary-bg: var(--blue-soft); display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--summary-color) 25%, var(--summary-bg)); border-left: 4px solid var(--summary-color); border-radius: 12px; background: var(--summary-bg); color: var(--summary-color); font-size: .9rem; font-weight: 600; text-decoration: none; }
.alert-summary.warning { --summary-color: var(--red); --summary-bg: var(--red-soft); }
.alert-summary.watch { --summary-color: var(--orange); --summary-bg: var(--orange-soft); }
.alert-summary.advisory { --summary-color: var(--amber); --summary-bg: var(--amber-soft); }
.alert-summary .ic { --orange: var(--summary-color); }
.summary-arrow { margin-left: auto; font-size: 1.25rem; }
.alerts-status { margin-top: 0; }

/* ---------- favorites and settings ---------- */
.favorite-locations { display: flex; flex-wrap: wrap; gap: 7px; }
.favorite-locations button { min-height: 40px; max-width: 100%; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .85rem; cursor: pointer; overflow-wrap: anywhere; }
.favorite-locations button:hover { border-color: var(--green-2); }
.favorite-locations button[aria-pressed="true"], .favorite-locations button[aria-current="true"] { border-color: var(--green-2); background: var(--green-soft); color: var(--green); }
.favorite-toggle[aria-pressed="true"] { border-color: var(--green-2); background: var(--green-soft); color: var(--green); }
.favorite-settings { margin-top: 10px; }
.favorite-settings .check { min-height: 44px; align-items: center; }
.favorite-settings .check input { margin-top: 0; }
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-fields label { display: grid; gap: 5px; min-width: 0; font-size: .85rem; font-weight: 600; }
.settings-fields select, .share-fallback input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--paper); color: var(--ink); font-size: 1rem; }
.settings-shortcut { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--green); text-decoration: none; }
.settings-shortcut:hover { border-color: var(--green-2); }
.settings-shortcut .note { display: block; margin-top: 2px; }
.settings-shortcut > span:last-child { margin-left: auto; }
.settings-local-note { margin-top: 0; max-width: 70ch; }
#settings-status:empty, #plan-actions-status:empty { display: none; }
.share-fallback { display: grid; gap: 5px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--na); }
.share-fallback label { font-size: .85rem; font-weight: 600; }
.share-fallback .note { margin-top: 0; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.plan-actions button { min-height: 40px; }
@media (max-width: 480px) { .settings-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* ---------- hero ---------- */
.hero { background: linear-gradient(165deg, var(--sky) 0%, var(--paper) 60%); --icf: var(--sky); }
.sky-sun { --sky: #fcefcb; }
.sky-partly { --sky: #e6eff3; }
.sky-cloud { --sky: #e6e9e7; }
.sky-fog { --sky: #e9e8e2; }
.sky-rain { --sky: #d8e6f0; }
.sky-storm { --sky: #d5dae6; }
.sky-night { --sky: #dce2ee; }
[data-theme="dark"] .sky-sun { --sky: #3a321b; }
[data-theme="dark"] .sky-partly { --sky: #1d2e36; }
[data-theme="dark"] .sky-cloud, [data-theme="dark"] .sky-fog { --sky: #232b28; }
[data-theme="dark"] .sky-rain { --sky: #172b3a; }
[data-theme="dark"] .sky-storm { --sky: #222440; }
[data-theme="dark"] .sky-night { --sky: #161d33; }
.place { margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.now-main { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.now-main > div { min-width: 0; }
.now-ic { width: 64px; height: 64px; }
.temp { margin: 0; font: 700 4rem/1 var(--font-display); color: var(--green); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.cond { margin: 0; font-weight: 650; font-size: 1.05rem; line-height: 1.3; }
.hilo { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.src { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin: 16px 0 0; }
.facts dt { font-size: .76rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; font-size: 1rem; }
.brief { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--blue-soft); }
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brief h2 { margin: 0; }
.brief-text { margin: 6px 0 0; font-size: 1.06rem; line-height: 1.55; }
.ai-briefing { margin: 16px 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); max-width: 72ch; }
.ai-briefing h3 { margin: 0 0 4px; font-family: inherit; font-size: 1rem; }
.ai-briefing-time { margin: 0; }
.ai-briefing-summary { margin: 12px 0; line-height: 1.65; }
.ai-briefing-alerts { margin: 12px 0; padding-left: 1.2em; color: var(--ink); }
.ai-briefing-alerts li + li { margin-top: 8px; }
.ai-briefing-alerts a { display: inline-block; padding: 6px 0; }
.ai-briefing-facts { margin: 10px 0; padding-left: 1.2em; }
.ai-briefing-facts li + li, .ai-briefing-sources li + li { margin-top: 8px; }
.ai-briefing-sources { padding-left: 1.2em; overflow-wrap: anywhere; }
.ai-briefing-sources .note { display: block; }
.nws { margin-top: .6rem; font-size: .9rem; }
.nws summary { cursor: pointer; color: var(--blue); }
.nws p { white-space: pre-line; margin: .5rem 0 0; }
.fresh { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.ghost { background: transparent; border: 1px solid var(--blue); color: var(--blue); border-radius: 999px; padding: 3px 12px; font-size: .82rem; cursor: pointer; }
.link { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font-size: inherit; }
@media (min-width: 760px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 28px; }
  .facts { align-self: center; margin: 0; }
  .brief, .fresh { grid-column: 1 / -1; }
}

/* ---------- hourly chart ---------- */
.hourly-scroll { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 10px; scrollbar-width: thin; }
.hourly-scroll svg { display: block; }
.hn { fill: var(--night-bg); }
.nightic { --icf: var(--night-bg); }
.hd { stroke: var(--line); stroke-width: 1.5; }
.hl { font-size: 11px; fill: var(--muted); text-anchor: middle; }
.hl.b { font-weight: 700; fill: var(--ink); }
.ht { font-size: 12.5px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.tline { fill: none; stroke: var(--temp); stroke-width: 2.2; stroke-linecap: round; }
.tg0 { stop-color: var(--temp); stop-opacity: .22; }
.tg1 { stop-color: var(--temp); stop-opacity: 0; }
.hp { fill: var(--i-rain); opacity: .5; }
.hp.hi { opacity: .9; }
.hpl { font-size: 10.5px; font-weight: 600; fill: var(--blue); text-anchor: middle; }
.hw { fill: var(--muted); }
.hwl { font-size: 10.5px; fill: var(--muted); text-anchor: middle; }
.hg { font-size: 9px; }
.hsel { fill: var(--blue); opacity: .1; }
.hit { fill: transparent; cursor: pointer; }

/* ---------- plan your day ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: .88rem; cursor: pointer; }
.chip:hover { border-color: var(--green-2); }
@media (max-width: 480px) { .chip { padding: 5px 10px; font-size: .84rem; } }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--paper); }
.plan-blurb { margin: 10px 0 4px; font-size: .9rem; color: var(--muted); }
.plan-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.prow { min-width: 0; }
.prow-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: .88rem; margin-bottom: 5px; }
.pday { font-weight: 700; min-width: 5.2em; }
.pcap { color: var(--muted); }
.pcap b { color: var(--ink); }
.pcap.ok b { color: var(--good-text); }
.pcap.poor b { color: var(--poor-text); }
.plan-hours { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 4px; margin: 0 -4px; }
.plan-hours .pbar, .plan-hours .paxis { min-width: calc(var(--n) * 50px - 6px); }
.pbar, .paxis { display: grid; grid-template-columns: repeat(var(--n), minmax(44px, 1fr)); gap: 6px; }
.pbar > *, .paxis > * { grid-row: 1; }
.pc { display: block; height: 44px; border: 0; border-radius: 4px; padding: 0; background: var(--na); }
button.pc { cursor: pointer; }
.pc.c0 { background: var(--good); }
.pc.c1 { background: var(--fair); }
.pc.c2 { background: repeating-linear-gradient(135deg, var(--poor) 0 4px, color-mix(in srgb, var(--poor) 70%, var(--paper)) 4px 7px); }
.pbest { border: 2.5px solid var(--ink); border-radius: 6px; margin: -3px -2px; pointer-events: none; }
.paxis { margin-top: 5px; font-size: .75rem; color: var(--muted); text-align: center; }
.paxis span { white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.legend .pc { display: inline-block; width: 14px; height: 12px; margin-right: 5px; vertical-align: -1px; }
.pbest-key { display: inline-block; width: 18px; height: 12px; border: 2px solid var(--ink); border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.rip { font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.rip.low { background: var(--green-soft); color: var(--green); }
.rip.moderate { background: var(--amber-soft); color: var(--amber); }
.rip.high { background: var(--red-soft); color: var(--red); }

/* planner tabs */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: var(--na); }
.seg button { border: 0; border-radius: 9px; padding: 8px 6px; font-size: .88rem; font-weight: 600; line-height: 1.2; color: var(--muted); background: transparent; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.plan-step { margin: 0 0 6px; font-size: .8rem; font-weight: 650; color: var(--muted); }

/* a specific date */
#plan-date > .note:first-child { margin-top: 0; }
.chk { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; }
.chk label { flex: 1 1 130px; display: grid; gap: 3px; font-size: .76rem; color: var(--muted); min-width: 0; }
.chk label.wide { flex-basis: 210px; }
.chk input, .chk select { width: 100%; font-size: .95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.btn { align-self: end; border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 650; color: #fff; background: var(--header); cursor: pointer; }
.btn.small, .ghost.small { padding: 4px 12px; font-size: .82rem; }
.result { margin-top: 12px; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.result.v0 { background: var(--green-soft); border-color: transparent; }
.result.v1 { background: var(--amber-soft); border-color: transparent; }
.result.v2 { background: var(--red-soft); border-color: transparent; }
.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.result h4 { margin: 0; font-size: 1rem; }
.result .when { margin: 0; font-size: .85rem; color: var(--muted); }
.verdict { margin: 8px 0 6px; font-weight: 700; }
.v0 .verdict { color: var(--good-text); }
.v1 .verdict { color: var(--amber); }
.v2 .verdict { color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px 12px; margin: 0; }
.stats dt { font-size: .74rem; color: var(--muted); }
.stats dd { margin: 0; font-weight: 650; }

/* A saved plan is a single decision, with its weather and change history together. */
.next-plan-card { background: var(--paper); }
.next-plan-card .card-head { align-items: center; gap: 6px 16px; }
.next-plan-open, .next-plan-retry { min-height: 44px; text-align: left; }
.next-plan-name { margin: 12px 0 2px; font-size: 1.15rem; overflow-wrap: anywhere; }
.next-plan-when { margin: 0; color: var(--muted); font-size: .86rem; }
.next-plan-verdict { margin: 16px 0 10px; font-weight: 700; }
.plan-explanation { margin: 0 0 16px; max-width: 72ch; line-height: 1.65; }
.plan-level-0 { color: var(--green); }
.plan-level-1 { color: var(--amber); }
.plan-level-2 { color: var(--red); }
.next-plan-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; font-variant-numeric: tabular-nums; }
.next-plan-stats dd { font-size: .95rem; }
.next-plan-change { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; }
.next-plan-alternative { margin: 12px 0 0; color: var(--green); font-size: .9rem; max-width: 72ch; }
.next-plan-card > .note { max-width: 75ch; }
/* Supplemental forecasts preserve source periods instead of manufacturing hourly totals. */
.weather-details-card { min-width: 0; }
.weather-detail-columns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.weather-detail-columns h3 { margin: 10px 0 12px; }
.weather-detail-columns section { min-width: 0; }
.precip-periods { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.precip-periods th, .precip-periods td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); }
.precip-periods thead th { font-size: .74rem; color: var(--muted); font-weight: 500; }
.precip-periods tbody th { font-weight: 400; padding-right: 12px; }
.precip-periods td, .precip-periods thead th:last-child { text-align: right; white-space: nowrap; }
.precip-periods td { font-weight: 650; }
.heat-days { margin: 0; display: grid; gap: 16px; }
.heat-days dt { color: var(--muted); font-size: .8rem; margin-bottom: 3px; }
.heat-days dd { margin: 0; font-size: .9rem; }
.heat-days dd > span { display: block; margin-top: 4px; }
.details-source { padding-top: 14px; }
.details-retry { min-height: 44px; }
.observed-rain { margin-top: 14px; border-top: 1px solid var(--line); }
.observed-rain summary { min-height: 44px; padding: 12px 0 0; cursor: pointer; color: var(--blue); font-size: .9rem; }
.observed-rain > p { margin: 10px 0 0; }
.wave-details { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.wave-details .card-head h3 { margin: 0; }
.wave-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.wave-values dt { color: var(--muted); font-size: .8rem; }
.wave-values dd { margin: 3px 0 0; font-weight: 650; }
@media (max-width: 640px) {
  .weather-detail-columns { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .weather-detail-columns section + section { padding-top: 12px; border-top: 1px solid var(--line); }
  .wave-values { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 540px) {
  .next-plan-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-plan-card .card-head { align-items: baseline; }
}
.hchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.hchip { font-size: .74rem; padding: 2px 7px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--good); }
.hchip.c1 { border-left-color: var(--fair); }
.hchip.c2 { border-left-color: var(--poor); }
.change { font-size: .85rem; margin: 10px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--paper); border-left: 3px solid var(--blue); }
.change.quiet { border-left-color: var(--line); color: var(--muted); }
.saved-h { font-size: .9rem; margin: 18px 0 0; }
.saved-list { display: grid; gap: 8px; }
.result p { font-size: .92rem; margin: .5rem 0; }
.tier { display: inline-block; margin-bottom: 4px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .02em; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.tier-forecast { color: var(--green); border-color: currentColor; }
.tier-daily { color: var(--blue); border-color: currentColor; }
.tier-outlook { color: var(--amber); border-color: currentColor; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 10px 0 0; padding: 0; }
.timeline li { position: relative; padding: 8px 0 0; font-size: .74rem; color: var(--muted); border-top: 3px solid var(--line); }
.timeline li.done { border-top-color: var(--green-2); color: var(--ink); }
.timeline b, .timeline span { display: block; }
.timeline b { font-size: .78rem; }

/* best time of year */
.year-best { margin: 0 0 10px; font-size: .95rem; }
.year-grid { display: grid; gap: 12px; }
.ym { display: grid; grid-template-columns: 2.4rem minmax(244px, 280px) minmax(0, 1fr); align-items: center; gap: 10px; font-size: .82rem; line-height: 1.25; }
.ym-name { font-weight: 700; }
.ym-cells { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); gap: 6px; }
.ym-cells .pc { height: 44px; cursor: pointer; }
@media (max-width: 540px) {
  .ym { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .ym-sum { grid-column: 2; grid-row: 1; text-align: right; }
  .ym-sum b { display: inline; margin-right: 5px; }
  .ym-cells { grid-column: 1 / -1; overflow-x: auto; padding: 4px; margin: 0 -4px; scrollbar-width: thin; }
}
.ym-cells .pc.now { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.ym-sum { color: var(--muted); min-width: 0; }
.ym-sum b { display: block; color: var(--ink); font-variant-numeric: tabular-nums; }

/* at a glance (in the hero) */
.glance { margin-top: 16px; }
.day-briefing .brief { margin-top: 0; }
.glance-h { margin: 0 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.glance-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .glance { grid-column: 1 / -1; } .glance-items { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gi { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.gi .ic { width: 28px; height: 28px; margin-top: 2px; --icf: var(--paper); }
.gi .gl { display: block; font-size: .72rem; color: var(--muted); }
.gi b { display: block; font-size: .92rem; line-height: 1.3; }
.gi small { display: block; margin-top: 2px; font-size: .76rem; color: var(--muted); }

/* ---------- 7-day ---------- */
.weekend { margin: 0 0 .7rem; font-size: .95rem; }
.weekend:empty, .week2:empty { display: none; }
.week2 { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); font-size: .9rem; }
.drow { border-top: 1px solid var(--line); }
.drow summary {
  display: grid; grid-template-columns: 4.6rem 30px 2.8rem minmax(0, 1fr);
  grid-template-areas: "d i p r" ". s s s";
  align-items: center; column-gap: 10px; padding: 9px 6px; cursor: pointer; list-style: none; border-radius: 8px;
}
.drow summary::-webkit-details-marker { display: none; }
.drow summary:hover { background: color-mix(in srgb, var(--na) 50%, transparent); }
.dn { grid-area: d; font-weight: 700; line-height: 1.15; }
.dn small { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.drow .ic { grid-area: i; width: 30px; height: 30px; }
.dp { grid-area: p; color: var(--blue); font-weight: 650; font-size: .85rem; }
.drow .range { grid-area: r; }
.ds { grid-area: s; font-size: .82rem; color: var(--muted); }
.drow.wk summary { background: linear-gradient(90deg, var(--amber-soft), transparent 85%); }
.wk-tag { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--amber); }
.dmore { padding: 0 6px 10px calc(4.6rem + 16px); font-size: .9rem; }
.dmore p { margin: .3rem 0; }
@media (max-width: 480px) { .dmore { padding-left: 6px; } }
.range { display: grid; grid-template-columns: 2.2em minmax(0, 1fr) 2.2em; align-items: center; gap: 6px; font-weight: 650; font-variant-numeric: tabular-nums; }
.range .lo { color: var(--muted); text-align: right; }
.track { position: relative; height: 6px; border-radius: 3px; background: var(--na); }
.track i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #6fa8d6, #e8a33d); }
.track i.dot { width: 8px; }

/* ---------- tropics ---------- */
.tropics { border-left: 5px solid var(--orange); }
.trop-active { margin: 0 0 .4rem; }
.trop-list { margin: .3rem 0; padding-left: 1.1rem; }

/* ---------- radar ---------- */
.radar-map { height: 380px; border-radius: 12px; overflow: hidden; background: var(--na); }
.radar-map img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 760px) { .radar-map { height: 480px; } }
#radar-map.leaflet-container { font: inherit; font-size: .8rem; background: var(--na); }
.basemap { filter: grayscale(.85) contrast(.95) brightness(1.04); }
[data-theme="dark"] .basemap { filter: grayscale(1) invert(1) brightness(.8) contrast(.9); }
.maplabel { background: var(--paper); color: var(--ink); border: 1px solid var(--line); font-weight: 650; box-shadow: none; padding: 1px 6px; }
.maplabel::before { display: none; }
.radar-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.radar-bar input { flex: 1; min-width: 0; accent-color: var(--green-2); }
.play { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--header); color: #fff; cursor: pointer; font-size: .85rem; }
.radar-legend { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
.radar-legend i { width: 60px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #04e9e7, #019ff4, #02fd02, #01c501, #fdf802, #fd9500, #fd0000, #bc0000, #f800fd); }

/* ---------- coast ---------- */
.calert { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; font-size: .9rem; background: var(--blue-soft); }
.calert.warning { background: var(--red-soft); }
.calert.watch { background: var(--orange-soft); }
.calert.advisory { background: var(--amber-soft); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.tile.wide { grid-column: span 2; }
.tile .k { display: block; font-size: .74rem; color: var(--muted); }
.tile b { display: block; font-size: 1.3rem; line-height: 1.3; }
.tile small { display: block; font-size: .78rem; color: var(--muted); }
.tile.rip-low { background: var(--green-soft); border-color: transparent; }
.tile.rip-moderate { background: var(--amber-soft); border-color: transparent; }
.tile.rip-high { background: var(--red-soft); border-color: transparent; }
.tile.rip-high b { color: var(--red); }
.tile.rip-moderate b { color: var(--amber); }
.tile.rip-low b { color: var(--green); }
.tide-chart { min-height: 214px; margin-top: 4px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.tide-chart svg { display: block; }
.tc-grid { stroke: var(--line); }
.tc-axis { font-size: 10.5px; fill: var(--muted); }
.tc-day { font-size: 10.5px; font-weight: 700; fill: var(--muted); }
.tc-area { fill: var(--blue); opacity: .08; }
.tc-pred { fill: none; stroke: var(--blue); stroke-width: 2; }
.tc-obs { fill: none; stroke: var(--green-2); stroke-width: 3; stroke-linecap: round; }
.tc-flood { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 5 4; }
.tc-flood-l { font-size: 10.5px; font-weight: 650; fill: var(--red); }
.tc-now { stroke: var(--ink); stroke-dasharray: 2 3; }
.tc-now-l { font-size: 10.5px; font-weight: 700; fill: var(--ink); }
.tc-hl { font-size: 11px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.tc-ht { font-size: 9.5px; fill: var(--muted); text-anchor: middle; }
.tc-key { display: flex; gap: 14px; font-size: .76rem; color: var(--muted); margin-top: 2px; }
.tc-key i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.tide-now { font-size: .92rem; margin: 8px 0; }
.tides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tides li { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: .85rem; }
.tides li b { display: block; font-size: .95rem; }
.tides .hi b { color: var(--blue); }
.tides .flag { border-color: var(--red); }
.tides .flag small { color: var(--red); font-weight: 650; }
.tybee-fc p { margin: .3rem 0; font-size: .92rem; }
.links, .flood { padding-left: 1.1rem; font-size: .92rem; margin: 0; }
.links li, .flood li { margin-bottom: .35rem; }

/* ---------- severe weather alerts ---------- */
.notify { border-left: 5px solid var(--orange); }
.notify-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.notify-ic { width: 30px; height: 30px; }
.notify-text { flex: 1 1 220px; min-width: 0; }
.notify-text h2 { margin: 0; font-size: 1.1rem; }
.notify-text .note { margin-top: 2px; }
.notify-on { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.notify-form { margin-top: 12px; display: grid; gap: 12px; }
.notify-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 0; min-width: 0; }
.notify-form legend { font-size: .8rem; font-weight: 650; color: var(--muted); padding: 0 4px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; }
.check { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: .92rem; cursor: pointer; }
.check input { margin: 3px 0 0; accent-color: var(--green-2); flex: none; }
.notify-actions { display: flex; align-items: center; gap: 14px; }
#notify-msg:empty { display: none; }

/* ---------- app: offline notice and install card ---------- */
.offline { margin: 12px 0 0; padding: 8px 14px; border-radius: 12px; font-size: .88rem; background: var(--na); border-left: 5px solid var(--muted); }
.network-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.network-state p { margin: 0; }
.network-state button { flex: none; min-height: 40px; }
#offline[data-state="offline"] .offline, #offline[data-state="stale"] .offline,
#offline[data-state="partial"] .offline { background: var(--amber-soft); border-color: var(--amber); }
#offline[data-state="error"] .offline { background: var(--red-soft); border-color: var(--red); }
.stale-text { color: var(--amber); }
.data-state { margin-bottom: 12px; }
.data-state:empty { display: none; }
.loading-state { padding: 16px 0; }
button:disabled { cursor: wait; opacity: .65; }
#radar-status { margin: 12px 0; padding: 12px; background: var(--amber-soft); border-radius: 10px; }
@media (max-width: 540px) { .network-state { align-items: flex-start; flex-direction: column; } }
.install { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.install img { border-radius: 12px; flex: none; }
.install-text { flex: 1 1 200px; min-width: 0; }
.install-text .note { margin-top: 2px; }
.install-actions { display: flex; align-items: center; gap: 14px; }
@media (display-mode: standalone) { .install { display: none !important; } }

/* ---------- sponsor, footer, toast ---------- */
.sponsor { border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 16px; font-size: .9rem; color: var(--muted); }
.sponsor .tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.sponsor p { margin: .2rem 0 0; }
.foot { font-size: .8rem; color: var(--muted); padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
.foot p { margin: .4rem 0; }
.footer-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; }
.footer-links > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.release-log { padding-top: 0; padding-bottom: 0; }
.release-entry { padding: 24px 0 28px; }
.release-entry + .release-entry { border-top: 1px solid var(--line); }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 10px; color: var(--muted); font-size: .82rem; }
.release-latest { color: var(--green); font-weight: 700; }
.release-entry h2 { margin-bottom: 12px; }
.release-entry p, .release-entry ul { max-width: 70ch; margin: 0 0 12px; }
.release-entry ul { padding-left: 22px; }
.release-entry li + li { margin-top: 10px; }
.release-entry > :last-child { margin-bottom: 0; }
.release-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* SPC uses its own forecast periods; show the exact window beside each category. */
.severe-intro { margin-top: 0; }
.severe-periods { list-style: none; padding: 0; margin: 18px 0; }
.severe-periods > li { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 2fr); gap: 12px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.severe-periods h3 { margin: 0; font-size: .94rem; }
.severe-period-risk > p { margin: 0 0 6px; max-width: 65ch; }
.severe-period-risk .severe-level { font-weight: 700; font-size: 1.08rem; }
.severe-period-risk .severe-source { margin-top: 10px; }
.severe-period-risk > a { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; font-size: .85rem; }
.severe-stale, .risk-unknown, .risk-0 { color: var(--muted); }
.risk-1 { color: var(--green); }
.risk-2 { color: var(--amber); }
.risk-3 { color: var(--orange); }
.risk-4, .risk-5 { color: var(--red); }
.severe-help { border-top: 1px solid var(--line); padding-top: 12px; }
[data-severe-retry][aria-disabled="true"] { cursor: wait; }
@media (max-width: 640px) {
  .severe-periods > li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
.sources { padding-top: 12px; border-top: 1px solid var(--line); margin-bottom: 12px; }
.sources summary { cursor: pointer; padding: 4px 0; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1200; max-width: calc(100% - 32px); padding: 9px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: .9rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }

/* ---------- phone app shell ---------- */
@media (max-width: 640px) {
  html { scroll-padding-top: calc(82px + env(safe-area-inset-top)); }
  .top-row { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
  .brand { gap: 6px; min-height: 44px; font-size: 1rem; line-height: 1.1; }
  .brand img { width: 32px; height: 32px; }
  .brand em { display: block; }
  .brand-credit { padding-left: 38px; }
  .loc { flex: 0 1 136px; }
  .loc select { width: 100%; font-size: 1rem; padding-left: 10px; padding-right: 26px; background-position: right 9px center; }
  .app-nav { position: fixed; top: auto; bottom: 0; left: 0; right: 0; max-width: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 7px max(12px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0, 0, 0, .05); }
  .app-nav a { flex-direction: column; gap: 2px; min-width: 0; min-height: 51px; padding: 5px 4px; color: var(--muted); border-radius: 12px; font-size: .7rem; }
  .app-nav a:hover { background: var(--na); }
  .app-nav a[aria-current="page"] { color: var(--green); background: var(--green-soft); }
  .app-nav a:focus-visible { outline-color: var(--green); }
  .nav-count { position: absolute; top: 1px; left: calc(50% + 5px); border: 2px solid var(--paper); box-sizing: content-box; }
  .app-main { padding-top: 18px; padding-bottom: 20px; min-height: calc(100dvh - 260px); }
  .app-view { gap: 14px; }
  .view-head { align-items: center; }
  .view-intro { font-size: .8rem; }
  .view-head h1 { font-size: 1.85rem; }
  .next-hours { grid-template-columns: repeat(6, minmax(72px, 1fr)); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 4px; }
  .next-hour { padding-top: 10px; padding-bottom: 10px; }
  .next-hour-time { font-size: .75rem; }
  .hour-peek-modes button { padding-left: 12px; padding-right: 12px; }
  .next-hours-card .card-head { gap: 5px 12px; }
  .today-links { gap: 8px; }
  .today-links a { padding: 14px 10px; }
  .shortcut-label { font-size: .82rem; }
  .shortcut-detail { font-size: .7rem; }
  .shortcut-arrow { position: static; font-size: 1rem; margin-top: auto; }
  .alert-summary { padding: 10px 12px; font-size: .83rem; }
  .foot { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .top-row { gap: 8px; }
  .now-main { gap: 10px; }
  .now-ic { width: 48px; height: 48px; }
  .temp { font-size: 3.5rem; }
  .cond { font-size: .98rem; overflow-wrap: anywhere; }
}

/* ---------- Fort Pulaski coastal flood outlook ---------- */
.flood-card { min-width: 0; }
.flood-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.flood-head .eyebrow { margin: 0 0 4px; font-size: .72rem; }
.flood-head h2 { margin: 0; }
.flood-head button { min-height: 44px; flex: none; }
.flood-outlook { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; padding: 14px 16px; background: var(--blue-soft); }
.flood-outlook.flood-action { border-left-color: var(--amber); background: var(--amber-soft); }
.flood-outlook.flood-minor { border-left-color: var(--orange); background: var(--orange-soft); }
.flood-outlook.flood-moderate, .flood-outlook.flood-major { border-left-color: var(--red); background: var(--red-soft); }
.flood-outlook.flood-unverified { border-left-color: var(--muted); background: var(--na); }
.flood-category { font-weight: 750; font-size: 1.08rem; margin: 0; }
.flood-reason { font-size: .9rem; margin: 7px 0 0; }
.flood-peak { margin-top: 10px; }
.flood-peak p { margin: 0; }
.flood-peak strong { font: 700 1.7rem/1.2 var(--font-display); }
.flood-peak span { font-size: .83rem; color: var(--muted); }
.flood-peak .note { margin-top: 3px; }
.flood-label { font-size: .78rem; font-weight: 650; color: var(--muted); margin: 0 0 5px; }
.flood-last .flood-label { margin-bottom: 7px; }
.flood-last strong { font-size: 1.35rem; }
.flood-timing { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.flood-timing ul { margin: 0; padding-left: 1.15rem; font-size: .88rem; }
.flood-timing li + li { margin-top: 6px; }
.flood-alert { margin: 0 0 12px; padding: 10px 12px; border-left: 4px solid var(--red); border-radius: 8px; background: var(--red-soft); font-size: .88rem; }
.flood-alert-note { margin: 0 0 10px; font-size: .8rem; color: var(--muted); }
.flood-source { font-size: .79rem; color: var(--muted); margin: 12px 0 0; }
.flood-stamp { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: .76rem; color: var(--muted); margin: 5px 0 0; }
.flood-explainer { margin-top: 16px; font-size: .88rem; }
.flood-explainer h3 { margin: 0 0 9px; }
.flood-explainer p { margin: 9px 0 0; }
.flood-thresholds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.flood-thresholds div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; }
.flood-thresholds dt { font-size: .76rem; color: var(--muted); }
.flood-thresholds dd { margin: 2px 0 0; font-weight: 700; }
.flood-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 13px; font-size: .85rem; }
.flood-links a { min-height: 32px; display: inline-flex; align-items: center; }
.flood-safety { margin: 5px 0 0; font-size: .83rem; }
@media (max-width: 540px) {
  .flood-head { align-items: flex-start; flex-wrap: wrap; }
  .flood-head button { margin-left: auto; }
  .flood-outlook { padding: 12px; }
  .flood-thresholds { grid-template-columns: 1fr; gap: 5px; }
  .flood-thresholds div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .flood-thresholds dd { margin: 0; }
}

/* ---------- plain-English NWS alerts ---------- */
.alert-explainer { --alert-color: var(--blue); --alert-soft: var(--blue-soft); min-width: 0; padding: 16px; border: 1px solid var(--line); border-left: 5px solid var(--alert-color); border-radius: 12px; background: var(--paper); overflow-wrap: anywhere; }
.alert-explainer.warning { --alert-color: var(--red); --alert-soft: var(--red-soft); }
.alert-explainer.watch { --alert-color: var(--orange); --alert-soft: var(--orange-soft); }
.alert-explainer.advisory { --alert-color: var(--amber); --alert-soft: var(--amber-soft); }
.alert-explainer.alert-unverified { --alert-color: var(--muted); --alert-soft: var(--na); }
.alert-explainer-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 14px; }
.alert-explainer-head h3 { margin: 0; color: var(--alert-color); font-size: 1.12rem; line-height: 1.35; }
.alert-status { padding: 3px 8px; border-radius: 6px; color: var(--alert-color); background: var(--alert-soft); font-size: .76rem; font-weight: 700; }
.alert-explainer h4 { margin: 0 0 4px; font-size: .77rem; font-weight: 750; color: var(--muted); }
.alert-explainer p { margin: 0; }
.alert-saved-notice { padding: 10px 12px; margin-bottom: 14px !important; background: var(--amber-soft); border-radius: 8px; font-size: .85rem; }
.alert-explanation, .alert-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert-explanation > section, .alert-scope > section { min-width: 0; }
.alert-explanation p { font-size: .94rem; }
.alert-action { border-left: 2px solid var(--alert-color); padding-left: 12px; }
.alert-action h4 { color: var(--alert-color); }
.alert-guidance { margin-top: 12px !important; font-size: .75rem; color: var(--muted); }
.alert-guidance a { display: inline-block; }
.alert-specific { margin-top: 13px; padding: 12px; border-radius: 8px; background: var(--alert-soft); font-size: .85rem; }
.alert-specific h4 { color: var(--alert-color); }
.alert-scope { padding-top: 13px; margin-top: 13px; border-top: 1px solid var(--line); font-size: .85rem; }
.alert-place { margin-bottom: 5px !important; font-weight: 650; }
.alert-scope-note { margin-top: 5px !important; font-size: .77rem; color: var(--muted); }
.alert-scope-note + p { margin-top: 7px; }
.alert-area { margin-top: 5px; }
.alert-area summary { cursor: pointer; padding: 10px 0; min-height: 44px; color: var(--blue); font-size: .8rem; font-weight: 650; }
.alert-area p { font-size: .8rem; white-space: pre-wrap; }
.alert-times { margin: 0; display: grid; gap: 4px; }
.alert-times div { display: grid; grid-template-columns: auto 1fr; gap: 5px 8px; }
.alert-times dt { color: var(--muted); }
.alert-times dd { margin: 0; }
.alert-provenance { margin-top: 13px !important; color: var(--muted); font-size: .74rem; }
.alert-provenance span { display: block; margin-top: 2px; }
.alert-original { margin-top: 12px; border-top: 1px solid var(--line); }
.alert-original summary { cursor: pointer; padding: 12px 0 0; min-height: 44px; color: var(--blue); font-size: .88rem; font-weight: 650; }
.alert-original[open] summary { padding-bottom: 12px; }
.alert-original-body { padding: 12px; border-radius: 8px; background: var(--night-bg); font-size: .83rem; }
.alert-original-headline { font-weight: 700; margin-bottom: 12px !important; }
.alert-original-text { white-space: pre-wrap; }
.alert-original-text + h4 { margin-top: 15px; }
.alert-original-source { margin-top: 15px !important; color: var(--muted); font-size: .74rem; }
.alert-source-link { margin-top: 6px !important; }
.alert-source-link a { display: inline-flex; align-items: center; min-height: 40px; }
@media (max-width: 640px) {
  .alert-explainer { padding: 13px; }
  .alert-explanation, .alert-scope { grid-template-columns: 1fr; gap: 13px; }
  .alert-explainer-head h3 { font-size: 1.03rem; }
  .alert-action { padding: 10px 12px; border-radius: 0 8px 8px 0; background: var(--alert-soft); }
  .alert-original-body { padding: 10px; }
}

/* ---------- rain and thunder timing ---------- */
.storm-card { min-width: 0; overflow-wrap: anywhere; }
.storm-card .storm-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 13px; }
.storm-card .storm-head .eyebrow { margin: 0 0 4px; font-size: .72rem; }
.storm-card .storm-head h2 { margin: 0; }
.storm-card .storm-coverage { margin: 0; color: var(--muted); font-size: .78rem; }
.storm-card .storm-notice { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--muted); border-radius: 8px; background: var(--na); font-size: .85rem; }
.storm-card .storm-notice-stale, .storm-card .storm-notice-partial { border-left-color: var(--amber); background: var(--amber-soft); }
.storm-card .storm-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.storm-card .storm-lane { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; }
.storm-card .storm-lane-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 7px; }
.storm-card .storm-lane h3 { margin: 0; color: var(--blue); font-size: .98rem; }
.storm-card .storm-thunder h3 { color: var(--amber); }
.storm-card .storm-lane-stale h3, .storm-card .storm-lane-unavailable h3 { color: var(--muted); }
.storm-card .storm-status { padding: 2px 7px; border-radius: 6px; background: var(--na); color: var(--muted); font-size: .71rem; font-weight: 650; }
.storm-card .storm-lane-stale .storm-status, .storm-card .storm-lane-partial .storm-status { background: var(--amber-soft); color: var(--amber); }
.storm-card .storm-summary { margin: 0; font-size: .91rem; line-height: 1.5; }
.storm-card .storm-peak-note { margin: 6px 0 0; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.storm-card .storm-windows { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.storm-card .storm-windows li { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 12px; padding: 8px 10px; border-radius: 7px; background: var(--blue-soft); font-size: .81rem; }
.storm-card .storm-thunder .storm-windows li { background: var(--amber-soft); }
.storm-card .storm-lane-stale .storm-windows li { background: var(--na); }
.storm-card .storm-window-time { font-weight: 650; font-variant-numeric: tabular-nums; }
.storm-card .storm-window-peak { color: var(--muted); }
.storm-card .storm-coverage-note, .storm-card .storm-row-stamp { margin: 8px 0 0; color: var(--muted); font-size: .74rem; }
.storm-card .storm-more { margin-top: 5px; }
.storm-card .storm-more summary { min-height: 44px; padding: 11px 0; color: var(--blue); cursor: pointer; font-size: .8rem; font-weight: 650; }
.storm-card .storm-more .storm-windows { margin-top: 0; }
.storm-card .storm-stamp { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 10px 0 0; color: var(--muted); font-size: .73rem; }
.storm-card .storm-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 18px; margin-top: 12px; }
.storm-card .storm-footer > p { flex: 1 1 260px; margin: 0; color: var(--muted); font-size: .76rem; }
.storm-card .storm-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; font-size: .83rem; }
.storm-card .storm-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 640px) {
  .storm-card .storm-lanes { grid-template-columns: 1fr; gap: 9px; }
  .storm-card .storm-lane { padding: 12px; }
  .storm-card .storm-head { align-items: flex-start; }
  .storm-card .storm-footer { gap: 4px; }
}
