:root {
  --bg: #e7edf6;
  --panel: #ffffff;
  --panel-2: #f4f6fb;
  --line: #e4e8f1;
  --line-2: #eef1f7;
  --ink: #1b2438;
  --muted: #6d7791;
  --brand: #2f5f8f;
  --brand-2: #3778b8;
  --sky: #2e93d6;
  --amber: #f0a52b;
  --violet: #7a6cf0;
  --pink: #e2699b;
  --radius: 20px;
  --sidebar-w: 264px;
  --shadow-xs: 0 1px 2px rgba(27, 36, 56, 0.06);
  --shadow: 0 14px 34px rgba(27, 36, 56, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(1000px 560px at 100% -5%, rgba(46, 147, 214, 0.22), transparent 55%),
    radial-gradient(820px 500px at -5% 8%, rgba(122, 108, 240, 0.16), transparent 55%),
    radial-gradient(900px 560px at 60% 108%, rgba(240, 165, 43, 0.14), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand-name { font-family: "Sora", "Inter", sans-serif; letter-spacing: -0.02em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }

.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* Sidebar */
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(46,147,214,0.06), rgba(122,108,240,0.04)), var(--panel);
  border-right: 1px solid var(--line); padding: 22px 18px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 20px; }
.brand-name { font-size: 1.1rem; font-weight: 700; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  object-fit: contain;
  box-shadow: 0 6px 16px rgba(27, 36, 56, 0.35);
}
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); padding: 8px 10px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px;
  color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: .15s;
}
.side-nav a .ic { font-size: 1.05rem; width: 20px; text-align: center; }
.side-nav a:hover { color: var(--ink); background: var(--panel-2); }
.side-nav a.active { color: var(--brand); background: rgba(47, 95, 143,0.1); box-shadow: inset 0 0 0 1px rgba(47, 95, 143,0.25); }

/* Expandable nav group */
.nav-parent {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 11px;
  color: var(--muted); font-size: 0.92rem; font-weight: 500; font-family: inherit;
  background: none; border: none; cursor: pointer; text-align: left; transition: .15s;
}
.nav-parent .ic { font-size: 1.05rem; width: 20px; text-align: center; }
.nav-parent:hover { color: var(--ink); background: var(--panel-2); }
.nav-caret { margin-left: auto; font-size: 1.15rem; line-height: 1; padding: 2px 6px; border-radius: 7px; transition: transform .18s, background .15s; }
.nav-parent:hover .nav-caret { background: rgba(0,0,0,0.06); }
.nav-group.open .nav-caret { transform: rotate(90deg); }
.nav-sub { overflow: hidden; max-height: 0; transition: max-height .22s ease; }
.nav-group.open .nav-sub { max-height: 520px; }
.nav-sub a {
  display: block; padding: 8px 12px 8px 43px; border-radius: 11px;
  color: var(--muted); font-size: 0.88rem; font-weight: 500; transition: .15s;
}
.nav-sub a:hover { color: var(--ink); background: var(--panel-2); }
.side-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.side-now { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--panel-2); border-radius: 12px; margin-bottom: 12px; }
.sn-temp { font-family: "Sora"; font-weight: 700; font-size: 1.5rem; color: var(--amber); }
.sn-desc { font-size: 0.76rem; color: var(--muted); }
.side-copy { font-size: 0.72rem; color: var(--muted); padding: 0 10px; }

/* Main */
.main { padding: 24px 30px 40px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.menu-btn { display: none; background: var(--panel); border: 1px solid var(--line); color: var(--ink); font-size: 1.1rem; width: 42px; height: 42px; border-radius: 11px; cursor: pointer; box-shadow: var(--shadow-xs); }
.topbar-title h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.topbar-title p { color: var(--muted); font-size: 0.9rem; margin-top: 3px; }
.topbar-chip { margin-left: auto; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; box-shadow: var(--shadow-xs); }
.tc-temp { font-family: "Sora"; font-weight: 700; font-size: 1.2rem; color: var(--amber); }
.tc-desc { font-size: 0.84rem; color: var(--muted); }
.market-ticker { display: flex; align-items: center; gap: 14px; padding-right: 14px; margin-right: 4px; border-right: 1px solid var(--line); }
.mkt { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.mkt-name { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.mkt-price { font-family: "Sora"; font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.mkt-chg { font-size: 0.78rem; font-weight: 600; }
.mkt.up .mkt-chg { color: #12a150; }
.mkt.down .mkt-chg { color: #e5484d; }
.mkt.flat .mkt-chg { color: var(--muted); }
.market-ticker-side { display: flex; flex-direction: column; align-items: stretch; gap: 6px; border-right: none; padding-right: 0; margin-right: 0; margin-bottom: 12px; }
.market-ticker-side .mkt { justify-content: space-between; gap: 8px; }
.market-ticker-side .mkt-name { flex: 0 0 auto; }
.market-ticker-side .mkt-price { margin-left: auto; }

/* Bento grid */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden; box-shadow: var(--shadow-xs);
}
.tile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tile-head h2 { font-size: 1.05rem; }
.tile-tag { font-size: 0.72rem; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

/* Now / hero tile — full-width main */
.tile-now {
  grid-column: 1 / -1;
  background:
    radial-gradient(460px 280px at 88% -10%, rgba(240,165,43,0.2), transparent 60%),
    linear-gradient(158deg, rgba(47, 95, 143,0.12), rgba(55, 120, 184,0.04)), var(--panel);
  display: flex; flex-direction: column;
}
.tile-now::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--brand-2), var(--amber), var(--pink));
}
.now-head { display: flex; align-items: center; justify-content: space-between; }
.badge { font-size: 0.74rem; color: var(--brand); background: rgba(47, 95, 143,0.1); border: 1px solid rgba(47, 95, 143,0.28); padding: 5px 12px; border-radius: 999px; }
.now-cond { color: var(--amber); font-weight: 600; font-size: 0.9rem; }
.now-temp { font-family: "Sora"; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.05; margin: 14px 0 6px; }
.now-temp span { font-size: 1.4rem; color: var(--muted); font-weight: 600; }
.now-note { color: var(--muted); font-size: 0.94rem; max-width: 60ch; }
.now-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: auto; padding-top: 22px; }
.now-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow-xs); }
.ns-label { font-size: 0.7rem; color: var(--muted); }
.ns-val { font-family: "Sora"; font-weight: 700; font-size: 1.1rem; }

/* Mini tiles */
.tile-mini { display: flex; flex-direction: column; gap: 4px; border-top: 3px solid transparent; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tile-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-ic { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.35rem; border-radius: 12px; margin-bottom: 8px; border: 1px solid var(--line); }
.m1 { background: linear-gradient(180deg, rgba(46,147,214,0.09), var(--panel) 70%); border-top-color: var(--sky); }
.m1 .mini-ic { background: rgba(46,147,214,0.16); border-color: rgba(46,147,214,0.3); }
.m2 { background: linear-gradient(180deg, rgba(55, 120, 184,0.1), var(--panel) 70%); border-top-color: var(--brand-2); }
.m2 .mini-ic { background: rgba(55, 120, 184,0.18); border-color: rgba(55, 120, 184,0.3); }
.m3 { background: linear-gradient(180deg, rgba(122,108,240,0.09), var(--panel) 70%); border-top-color: var(--violet); }
.m3 .mini-ic { background: rgba(122,108,240,0.16); border-color: rgba(122,108,240,0.3); }
.m4 { background: linear-gradient(180deg, rgba(226,105,155,0.09), var(--panel) 70%); border-top-color: var(--pink); }
.m4 .mini-ic { background: rgba(226,105,155,0.16); border-color: rgba(226,105,155,0.3); }
.m5 { background: linear-gradient(180deg, rgba(240,165,43,0.11), var(--panel) 70%); border-top-color: var(--amber); }
.m5 .mini-ic { background: rgba(240,165,43,0.18); border-color: rgba(240,165,43,0.32); }
.m6 { background: linear-gradient(180deg, rgba(47, 95, 143,0.09), var(--panel) 70%); border-top-color: var(--brand); }
.m6 .mini-ic { background: rgba(47, 95, 143,0.16); border-color: rgba(47, 95, 143,0.3); }
.tile-mini h3 { font-size: 1rem; }
.tile-mini p { color: var(--muted); font-size: 0.82rem; }

/* Content tile */
.tile-full { grid-column: 1 / -1; }
.bp-lead { color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 70ch; }

/* Bikepacking page */
.bp-route { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.bp-scroll { overflow-x: auto; overflow-y: hidden; border-radius: 12px; border: 1px solid var(--line); }
.bp-scroll .bp-route { width: auto; height: auto; max-width: none; border: 0; border-radius: 0; }
.res-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.res-item {
  display: flex; gap: 16px; align-items: center; padding: 14px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; transition: .15s;
}
.res-item:hover { border-color: var(--brand); box-shadow: var(--shadow-xs); }
.res-qr { flex: 0 0 auto; width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 4px; }
.res-body { min-width: 0; }
.res-body h3 { font-size: 1rem; margin-bottom: 3px; }
.res-body h3 a { color: var(--brand); }
.res-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.res-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.res-links a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; font-weight: 600;
  color: var(--brand); background: var(--panel-2); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 999px; transition: .15s;
}
.res-links a:hover { border-color: var(--brand); background: rgba(47, 95, 143,0.08); box-shadow: var(--shadow-xs); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.photo-grid img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }

/* Hourly tile — full width */
.tile-hourly { grid-column: 1 / -1; border-top: 3px solid var(--sky); }
.tile-hourly .now-head { display: flex; align-items: center; justify-content: space-between; }
.tile-hourly .badge { font-size: 0.74rem; color: var(--brand); background: rgba(47, 95, 143,0.1); border: 1px solid rgba(47, 95, 143,0.28); padding: 5px 12px; border-radius: 999px; }
.tile-hourly .now-cond { color: var(--amber); font-weight: 600; font-size: 0.9rem; }
.tile-hourly .now-temp { font-family: "Sora"; font-weight: 800; font-size: clamp(3rem, 7vw, 4.5rem); line-height: 1; margin: 12px 0 6px; }
.tile-hourly .now-temp span { font-size: 1.6rem; color: var(--muted); font-weight: 600; }
.tile-hourly .now-note { color: var(--muted); font-size: 0.94rem; max-width: 80ch; }
.tile-hourly .now-note + .tile-head { margin-top: 22px; }
.hourly-scroll { display: flex; gap: 10px; overflow-x: auto; padding-top: 6px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.hourly-scroll::-webkit-scrollbar { height: 7px; }
.hourly-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.hour {
  scroll-snap-align: start; flex: 0 0 auto; width: 78px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 13px;
  padding: 14px 8px; display: flex; flex-direction: column; gap: 4px; transition: .15s;
}
.hour:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-xs); }
.h-time { font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.h-emoji { font-size: 1.3rem; min-height: 26px; }
.h-emoji img { width: 26px; height: 26px; border-radius: 6px; vertical-align: middle; }
.h-temp { font-family: "Sora"; font-weight: 700; font-size: 1.15rem; color: #e07b1a; }
.h-wind { font-size: 0.7rem; color: var(--sky); }

/* Forecast tile — full width, under hourly */
.tile-forecast { grid-column: 1 / -1; display: flex; flex-direction: column; container-type: inline-size; border-top: 3px solid var(--violet); }
.tile-forecast .tile-tag { color: var(--violet); background: rgba(122,108,240,0.12); border-color: rgba(122,108,240,0.3); }
.fc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.fc-list li { display: grid; grid-template-columns: 1.3fr auto 2fr auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; transition: background .15s; }
.fc-list li:hover { background: var(--panel-2); }
.fl-day { font-weight: 600; font-size: 0.9rem; }
.fl-emoji { font-size: 1.2rem; }
.fl-emoji img { border-radius: 6px; vertical-align: middle; }
.fl-desc { font-size: 0.84rem; color: var(--muted); }
.fl-temp { font-family: "Sora"; font-weight: 700; font-size: 1.05rem; text-align: right; color: #e07b1a; }
.fl-temp small { font-weight: 600; font-size: 0.85rem; color: var(--sky); margin-left: 8px; }

@container (max-width: 420px) {
  .fc-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .fl-emoji { order: 0; }
  .fl-day { order: 1; flex: 1 1 auto; }
  .fl-temp { order: 2; margin-left: auto; }
  .fl-desc { order: 3; flex-basis: 100%; }
}

/* Weather map tile — full width */
.tile-map { grid-column: 1 / -1; border-top: 3px solid var(--amber); }
.tile-map a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.tile-map a + a { margin-top: 28px; }
.map-img { display: block; width: 100%; height: auto; }

/* Hurricanes page */
.basin-outlook { color: var(--muted); font-size: 0.94rem; line-height: 1.6; overflow-wrap: anywhere; }
.basin-outlook p { margin-bottom: 10px; }
.basin-outlook strong { color: var(--ink); }
.basin-outlook img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); margin: 6px 0; }
.storm-date { font-size: 0.78rem; color: var(--muted); margin: -6px 0 10px; }

/* Earthquakes page */
.quake-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.quake {
  display: flex; align-items: center; gap: 16px; padding: 12px 14px;
  background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--muted);
  border-radius: 12px; transition: .15s;
}
.quake:hover { box-shadow: var(--shadow-xs); }
.q-mag {
  flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center;
  font-family: "Sora"; font-weight: 800; font-size: 1.25rem; color: #fff;
  border-radius: 12px; background: var(--muted);
}
.q-body { min-width: 0; }
.q-body h3 { font-size: 0.98rem; margin-bottom: 2px; }
.q-body h3 a { color: var(--ink); }
.q-body h3 a:hover { color: var(--brand); }
.q-meta { color: var(--muted); font-size: 0.82rem; }

.quake.mag-minor { border-left-color: var(--sky); }
.quake.mag-minor .q-mag { background: var(--sky); }
.quake.mag-light { border-left-color: var(--brand-2); }
.quake.mag-light .q-mag { background: var(--brand-2); }
.quake.mag-moderate { border-left-color: var(--amber); }
.quake.mag-moderate .q-mag { background: var(--amber); }
.quake.mag-strong { border-left-color: #e07b1a; }
.quake.mag-strong .q-mag { background: #e07b1a; }
.quake.mag-major { border-left-color: var(--pink); }
.quake.mag-major .q-mag { background: var(--pink); }
.basin-outlook pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem; line-height: 1.5; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; margin-top: 8px; max-height: 340px; overflow: auto; white-space: pre-wrap;
}
.storm { background: var(--panel-2); border: 1px solid var(--line); border-left: 4px solid var(--pink); border-radius: 14px; padding: 16px; margin: 14px 0; }
.storm-name { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.storm-name a { color: var(--brand); }
.storm-name .tag { font-size: 0.7rem; font-weight: 600; color: #fff; background: var(--pink); padding: 3px 9px; border-radius: 999px; }
.sat-link { display: block; margin-bottom: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0b1020; }
.sat-img { display: block; width: 100%; height: auto; }
.sat-cap { display: block; padding: 8px 12px; font-size: 0.78rem; color: var(--muted); background: var(--panel-2); border-top: 1px solid var(--line); }

/* Scrim for mobile drawer */
.scrim { position: fixed; inset: 0; background: rgba(27,36,56,0.35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.scrim.show { opacity: 1; pointer-events: auto; }

/* Responsive */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%);
    transition: transform .24s ease; box-shadow: var(--shadow);
  }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .main { padding: 20px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .now-stats { grid-template-columns: repeat(2, 1fr); }
  .topbar-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; transition: none !important; }
}

/* ── Weather alerts ─────────────────────────────────────────── */
.alerts { display: grid; gap: 12px; margin-bottom: 18px; }
.alert {
  border-radius: var(--radius); padding: 16px 18px;
  border: 1px solid var(--line); background: var(--panel);
  box-shadow: var(--shadow-xs); border-left-width: 6px;
}
.alert-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alert-icon { font-size: 1.1rem; line-height: 1; }
.alert-event { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.alert-badge {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 700; padding: 3px 9px; border-radius: 999px;
  background: rgba(0,0,0,0.06); color: var(--ink);
}
.alert-expires { margin-left: auto; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.alert-headline { margin-top: 8px; color: var(--ink); font-size: 0.94rem; line-height: 1.5; }
.alert-area { margin-top: 4px; color: var(--muted); font-size: 0.82rem; }
.alert-more { margin-top: 8px; }
.alert-more summary { cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--brand); }
.alert-more p { margin-top: 6px; color: var(--muted); font-size: 0.86rem; line-height: 1.55; white-space: pre-line; }

.alert-extreme  { border-left-color: #b3123a; background: linear-gradient(90deg, rgba(179,18,58,0.09), var(--panel) 40%); }
.alert-extreme  .alert-badge { background: rgba(179,18,58,0.14); color: #b3123a; }
.alert-severe   { border-left-color: #d84315; background: linear-gradient(90deg, rgba(216,67,21,0.08), var(--panel) 40%); }
.alert-severe   .alert-badge { background: rgba(216,67,21,0.14); color: #d84315; }
.alert-moderate { border-left-color: var(--amber); background: linear-gradient(90deg, rgba(240,165,43,0.10), var(--panel) 40%); }
.alert-moderate .alert-badge { background: rgba(240,165,43,0.18); color: #a56a00; }
.alert-minor    { border-left-color: var(--brand-2); }

/* ── Daily rainfall ─────────────────────────────────────────── */
.rain-list { display: flex; flex-direction: column; gap: 8px; }
.rain-row { display: grid; grid-template-columns: 84px 1fr 64px; align-items: center; gap: 14px; padding: 6px 0; }
.rain-day { display: flex; flex-direction: column; font-weight: 700; color: var(--ink); font-size: 0.92rem; line-height: 1.1; }
.rain-day small { font-weight: 500; color: var(--muted); font-size: 0.72rem; }
.rain-bar { position: relative; height: 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.rain-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; min-width: 2px; background: linear-gradient(90deg, var(--brand-2), var(--sky)); }
.rain-amt { text-align: right; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.rain-dry .rain-bar { border-style: dashed; }
.rain-dry .rain-amt { color: var(--muted); font-weight: 600; }

/* rainfall stat tiles */
.rain-stat h3 { font-size: 0.9rem; color: var(--ink); font-weight: 700; }
.rain-stat-val { font-size: 2.1rem; font-weight: 800; color: var(--brand); line-height: 1.1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.rain-stat-val span { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.rain-dep { font-size: 0.8rem; font-weight: 600; }
.rain-dep.dep-up { color: #2e7d32; }
.rain-dep.dep-down { color: #c0603a; }


/* loading indicator */
.loading-panel { display: flex; align-items: center; gap: 18px; padding: 22px 6px; }
.loading-title { font-size: 1.05rem; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.spinner { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand-2); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
