/* indyweather.net - site styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0f1c; --panel: #111a30; --panel-2: #17213a; --line: #1c2540; --line-2: #2a3556;
  --text: #eaf0f7; --text-2: #d6deea; --muted: #a9b6cc; --faint: #8a98b3;
  --warm: #ff8a3d; --warm-2: #ffb070; --cool: #6fc8ff; --rain: #3aa9e8; --gold: #ffd27a; --good: #7be08c;
  --display: 'Space Grotesk', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 18px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; }
a { color: var(--warm-2); text-decoration: none; }
a:hover { color: #ffd0a6; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.03em; }
h2 { font-size: 18px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.warm { color: var(--warm); }
.cool { color: var(--cool); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.bar { max-width: 1360px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--text); }
.logo span { color: var(--warm); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.nav-top { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 999px; color: var(--muted); background: none; border: 0; font: inherit; cursor: pointer; }
.nav-top:hover, .nav-group.open > .nav-top { color: var(--text); }
.nav-top[aria-current="page"], .nav-group.here > .nav-top { background: #1a2340; color: var(--text); }
.nav-top svg { opacity: .7; transition: transform .15s; }
.nav-group.open > .nav-top svg { transform: rotate(180deg); }
.nav a.alerts { color: var(--gold); }
.nav a.alerts.none { color: var(--muted); }
.nav-group { position: relative; }
.nav-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 20; padding-top: 8px; min-width: 350px; }
.nav-menu::before { content: ""; position: absolute; inset: 8px 0 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.nav-menu a { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; margin: 6px; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--panel-2); }
.nav-menu a[aria-current="page"] { background: #1a2340; }
.nav-menu a svg { width: 20px; height: 20px; fill: none; stroke: var(--warm); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.nav-menu small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.nav-group.open > .nav-menu { display: block; }
@media (hover: hover) and (min-width: 901px) { .nav-group:hover > .nav-menu { display: block; } .nav-group:hover > .nav-top { color: var(--text); } }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); cursor: pointer; padding: 0 11px; flex-direction: column; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.crumb { margin: 0 0 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--warm); }
@media (max-width: 900px) {
  .bar .now-mini { display: none; }
  .nav-toggle { display: flex; }
  .nav { display: none; width: 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 6px 0 10px; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav-open .nav { display: flex; }
  .nav > .nav-top { padding: 11px 4px; border-radius: 8px; font-size: 16px; }
  .nav-group > .nav-top { width: 100%; padding: 14px 4px 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--warm); background: none !important; cursor: default; }
  .nav-group > .nav-top svg { display: none; }
  .nav-menu { display: block; position: static; padding: 0; min-width: 0; }
  .nav-menu::before { display: none; }
  .nav-menu a { margin: 0; padding: 9px 6px; }
}
.bar .now-mini { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* layout */
main { max-width: 1360px; margin: 0 auto; padding: 24px 24px 48px; display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; flex-wrap: wrap; gap: 22px; }
.row > * { min-width: 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 220px), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin-bottom: 12px; }
.card-head a { font-size: 14px; }
.note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.page-intro p { margin: 4px 0 0; color: var(--muted); }
.empty { color: var(--muted); font-size: 14px; }

/* alert banner */
.alert-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 18px; border-radius: 12px; background: #2b2410; border: 1px solid #6e5a1e; color: #ffe3a3; }
.alert-banner.severe { background: #321216; border-color: #8a2a33; color: #ffd1d6; }
.alert-banner .tag { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--gold); color: #2b2410; font-weight: 500; text-transform: uppercase; }
.alert-banner.severe .tag { background: #ff6b7a; color: #321216; }
.alert-banner .go { margin-left: auto; color: var(--gold); }

/* hero */
.now-art { width: 120px; height: 120px; align-self: center; }
.wx-art { width: 100%; height: 100%; display: block; overflow: visible; }
.wx-spin { animation: wx-spin 60s linear infinite; }
.wx-drop { animation: wx-drop 1.1s linear infinite; }
.wx-flash { animation: wx-flash 4s ease-in-out infinite; }
@keyframes wx-spin { to { transform: rotate(360deg); } }
@keyframes wx-drop { 0% { transform: translateY(-3px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }
@keyframes wx-flash { 0%, 86%, 100% { opacity: 1; } 90% { opacity: 0.2; } 94% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wx-spin, .wx-drop, .wx-flash { animation: none; } }
.hero-now { flex: 1.3 1 520px; padding: 20px 24px; display: flex; flex-direction: column; }
.glance { margin-top: auto; padding-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.glance div { background: var(--panel-2); border-radius: 12px; padding: 10px 12px; }
.glance span { display: block; font-size: 12px; color: var(--faint); }
.glance b { font-family: var(--display); font-size: 18px; font-weight: 700; }
@media (max-width: 700px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.big-temp-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.big-temp { font-family: var(--display); font-weight: 700; font-size: clamp(68px, 7.5vw, 108px); line-height: 0.85; letter-spacing: -0.05em; }
.cond { font-size: 22px; font-weight: 500; }
.hilo { font-family: var(--mono); font-size: 14px; margin-top: 4px; }
.summary { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; color: var(--text-2); max-width: 640px; margin: 20px 0 0; }
.next6 { flex: 1 1 380px; }
.bars6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; height: 150px; margin-top: 14px; }
.bars6 > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars6 .b { width: 100%; border-radius: 6px; background: var(--rain); min-height: 4px; }
.bars6 .v { font-family: var(--mono); font-size: 12px; color: var(--cool); }
.bars6-x { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 8px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.next6 .verdict { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }

/* instruments */
.inst { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.inst .lbl { font-size: 13px; color: var(--faint); }
.inst .val { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.2; }
.inst .val small { font-size: 14px; font-weight: 500; }
.inst .sub { font-size: 13px; color: var(--muted); }

/* hourly strip */
.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.hour { flex: 1 0 84px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; }
.hour .t { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hour svg { margin: 6px auto; display: block; }
.hour .temp { font-family: var(--display); font-size: 20px; font-weight: 700; }
.hour .p { font-family: var(--mono); font-size: 11px; color: #6c7a96; }
.hour .p.wet { color: var(--cool); }

/* week range bars */
.week { display: flex; flex-direction: column; font-size: 14px; }
.wk { display: grid; grid-template-columns: 70px minmax(90px, 150px) 40px minmax(0, 1fr) 40px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.wk:last-child { border-bottom: none; }
.wk .lo { font-family: var(--mono); color: var(--cool); text-align: right; }
.wk .hi { font-family: var(--mono); color: var(--warm); }
.track { height: 8px; border-radius: 4px; background: var(--panel-2); position: relative; }
.track i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.wk .pop { font-size: 12px; color: var(--cool); font-family: var(--mono); }

/* lists */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .v { font-family: var(--mono); }
.pill { font-family: var(--mono); font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); color: #c8d2e4; white-space: nowrap; }
.pill.good { background: #17332a; color: var(--good); }
.pill.warn { background: #3a3010; color: var(--gold); }
.pill.bad { background: #3a1a1e; color: #ff8f9b; }
.stat3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; font-size: 13px; }
.stat3 > div { background: var(--panel-2); border-radius: 10px; padding: 10px 6px; }
.stat3 b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 500; }
.meter { height: 8px; border-radius: 4px; background: var(--panel-2); position: relative; margin-top: 6px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--rain); }
.meter .flood { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--gold); }
.spc { display: flex; gap: 6px; }
.spc > div { flex: 1; border-radius: 8px; padding: 10px; background: var(--panel-2); text-align: center; }
.spc small { display: block; font-size: 12px; color: var(--faint); }
.tips { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tips div { display: flex; gap: 12px; align-items: baseline; }
.tag2 { font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #3a2412; color: var(--warm-2); white-space: nowrap; text-transform: uppercase; }

/* forecast */
.daycards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.daycard { padding: 14px 14px; text-align: center; }
.daycard svg { margin: 8px auto 2px; display: block; }
.daycard .temps { font-size: 28px !important; }
.daycard .temps span { font-size: 18px !important; }
.tips-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.tips-row > div { background: var(--panel-2); border-radius: 12px; padding: 12px 14px; flex-direction: column; gap: 6px; }
.detail-list.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 900px) { .detail-list.detail-grid { grid-template-columns: 1fr; } }
.daycard h3 { font-size: 18px; display: flex; justify-content: space-between; align-items: baseline; }
.daycard h3 span { font-family: var(--mono); font-size: 12px; color: var(--cool); font-weight: 400; }
.daycard .temps { font-family: var(--display); font-size: 34px; font-weight: 700; margin-top: 6px; }
.daycard .temps span { font-size: 22px; color: var(--cool); }
.daycard p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }
.chart-wrap { overflow-x: auto; }
.chart-wrap svg { width: 100%; min-width: 720px; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.detail-list { display: flex; flex-direction: column; }
.detail-list div { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.detail-list b { color: var(--text); font-weight: 600; margin-right: 6px; }

/* radar */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: 13px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.seg a.segbtn { font-size: 13px; min-height: 36px; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.seg a.segbtn[aria-current="page"] { border-color: var(--warm); background: #2a1a10; color: var(--warm-2); }
.seg button[aria-pressed="true"] { border-color: var(--warm); background: #2a1a10; color: var(--warm-2); }
.mapbox { margin-top: 12px; border-radius: 12px; background: #0b1426; border: 1px solid var(--line); overflow: hidden; flex: 1 1 auto; min-height: 440px; position: relative; }
.mapbox img { position: absolute; inset: 0; }
@media (max-width: 700px) { .mapbox { min-height: 0; aspect-ratio: 1 / 1; } }
.mapbox img { width: 100%; height: 100%; object-fit: contain; }
.links a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; color: var(--text); }
.links a:hover { border-color: var(--line-2); }
.links b { font-weight: 600; display: block; }
.links span { font-size: 13px; color: var(--muted); }

/* alerts page */
.alert-full h2 { font-size: 22px; }
.alert-full .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 6px 0 12px; }
.alert-full pre { white-space: pre-wrap; font: 14px/1.55 Inter, system-ui, sans-serif; color: var(--text-2); margin: 0; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: #7f8ca6; }
.stale { color: var(--gold); }

@media (max-width: 700px) {
  .bar { padding: 10px 14px; gap: 8px 16px; }
  main { padding: 16px 14px 32px; gap: 16px; }
  .card { padding: 14px 16px; }
  .wk { grid-template-columns: 52px 34px minmax(0, 1fr) 34px; }
  .wk .desc { display: none; }
  .hero-now, .next6 { flex-basis: 100%; }
  .now-art { width: 96px; height: 96px; }
  .inst-g { width: 64px; height: 64px; }
  .near { grid-template-columns: 90px 22px minmax(0, 1fr) 44px; }
  #inst { --min: 150px !important; gap: 10px; }
  .inst { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .inst svg { width: 44px; height: 44px; }
  .inst .val { font-size: 22px; }
}

/* section header icons */
.hico { width: 18px; height: 18px; fill: none; stroke: var(--warm-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 8px; }

/* instrument graphics */
.inst { gap: 16px; }
.inst-g { width: 92px; height: 92px; flex: 0 0 auto; }
.wx-wave { animation: wx-wave 3s linear infinite; }
@keyframes wx-wave { to { transform: translateX(-40px); } }
@media (prefers-reduced-motion: reduce) { .wx-wave { animation: none; } }

/* daylight strip */
.daybar { position: relative; height: 14px; border-radius: 7px; background: #141d33; overflow: hidden; margin-top: 4px; }
.daybar i { position: absolute; top: 0; bottom: 0; }
.daybar b { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1px; background: #eaf0f7; border-radius: 2px; }
.daybar-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 4px; }
.sunrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.sunrow div { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; }
.sunrow span { display: block; font-size: 12px; }
.sunrow b { font-family: var(--display); font-size: 18px; }

/* nearby stations */
.near { display: grid; grid-template-columns: 110px 22px minmax(0, 1fr) 48px; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.near svg { display: block; }
.chip { font-family: var(--mono); font-size: 13px; color: #0a0f1c; font-weight: 500; text-align: center; border-radius: 999px; padding: 1px 0; }

/* record / normal range */
.crange-bar { position: relative; height: 16px; border-radius: 8px; background: var(--panel-2); }
.crange-bar i { position: absolute; top: 0; bottom: 0; border-radius: 8px; }
.crange-bar i.rec, .lg.rec { background: #2a3556; }
.crange-bar i.nor, .lg.nor { background: #5a6b85; top: 3px; bottom: 3px; }
.crange-bar i.obs, .lg.obs { background: var(--warm); top: 5px; bottom: 5px; }
.crange-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; margin-top: 4px; }
.crange-x small { color: var(--faint); font-size: 11px; }
.lg { display: inline-block; width: 14px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; position: static !important; }

/* radar sidebar */
.r12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; height: 84px; }
.r12 div { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; height: 100%; }
.r12 i { width: 100%; border-radius: 3px; display: block; }
.r12 span { font-family: var(--mono); font-size: 10px; color: var(--cool); }
.r12x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 4px; }

/* space weather Kp bar */
.kpbar { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 3px; margin-top: 10px; }
.kpbar i { height: 12px; border-radius: 3px; display: block; }
.kpx { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 4px; font-family: var(--mono); }

/* radio */
.player { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.playbtn { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--warm); color: #0a0f1c; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
.playbtn:hover { background: var(--warm-2); }
.eq { display: flex; gap: 4px; align-items: flex-end; height: 26px; margin-top: 10px; }
.eq i { width: 6px; height: 6px; border-radius: 2px; background: var(--line-2); }
.eq.on i { background: var(--warm); animation: eq 0.9s ease-in-out infinite alternate; }
.eq.on i:nth-child(2n) { animation-duration: 0.6s; } .eq.on i:nth-child(3n) { animation-duration: 1.2s; }
@keyframes eq { from { height: 4px; } to { height: 26px; } }
@media (prefers-reduced-motion: reduce) { .eq.on i { animation: none; height: 16px; } }
.ctys { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cty { background: var(--panel-2); border-radius: 10px; padding: 8px 10px; display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.cty .mono { color: var(--faint); font-size: 12px; }

/* uv */
.uvh { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; height: 200px; }
.uvh div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.uvh i { width: 100%; border-radius: 5px; display: block; }
.uvh small { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.uvs { display: flex; gap: 10px; align-items: flex-start; }
.uvs > i { width: 14px; height: 40px; border-radius: 4px; flex: 0 0 auto; }

/* fire */
.fg { background: var(--panel-2); border-radius: 12px; padding: 12px 14px; }
.fg span { display: block; font-size: 12px; color: var(--faint); }
.fg b { font-family: var(--display); font-size: 26px; }
.fg small { font-size: 14px; color: var(--muted); }

/* pollen */
.pdays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pday { background: var(--panel-2); border-radius: 12px; padding: 10px; text-align: center; }
.pday span { display: block; font-size: 12px; color: var(--faint); }
.pday b { display: block; font-family: var(--display); font-size: 28px; }
.pday small { font-size: 12px; color: var(--muted); }
.pext { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; height: 170px; }
.pext div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.pext i { width: 100%; border-radius: 5px; display: block; }
.pext small { font-size: 12px; color: var(--faint); }

/* delays */
.dl { display: grid; grid-template-columns: 10px 44px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dl:last-child { border-bottom: none; }
.dl > i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.pulse { animation: pulse 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { opacity: 0.15; transform: scale(0.7); } 50% { opacity: 0.45; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); column-gap: 28px; }
.dl-grid .dl:last-child { border-bottom: 1px solid var(--line); }
.dl-grid .empty { grid-column: 1 / -1; }
/* air quality page */
.aqdays { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.aqday { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--panel-2); border-top: 4px solid; }
.aqday b { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.aqday .pill { align-self: flex-start; }
.aqp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.aqp .meter { grid-column: 1 / -1; }
.aqdisc { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-2); }
.aqdisc h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.aqdisc p { margin: 0 0 12px; line-height: 1.6; }
.aqdisc p:last-child { margin-bottom: 0; }
.aqdisc b { color: var(--text); }
/* pollen seasons: --a/--b are start/end months (0 = Jan 1, 12 = Dec 31) */
.pseason div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; }
.pseason div::after { content: ""; grid-column: 1 / -1; height: 10px; border-radius: 5px; margin-top: 4px;
  background: linear-gradient(90deg, transparent calc(var(--a) / 12 * 100%), var(--c) calc(var(--a) / 12 * 100%), var(--c) calc(var(--b) / 12 * 100%), transparent calc(var(--b) / 12 * 100%)), var(--panel-2); }
.pseason span { color: var(--text-2); font-size: 14px; }
.pmonths { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
@media (max-width: 700px) { .pseason div { grid-template-columns: 1fr; } .pmonths span:nth-child(even) { visibility: hidden; } }
/* drought page */
.dmbar { display: flex; width: 100%; border-radius: 6px; overflow: hidden; background: #2a3556; }
.dmbar i { display: block; height: 100%; }
.drbig { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-family: var(--display); font-size: 26px; font-weight: 700; flex: 0 0 auto; }
.drstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.drstats div { background: var(--panel-2); border-radius: 12px; padding: 10px 12px; }
.drstats b { display: block; font-family: var(--display); font-size: 28px; line-height: 1.1; }
.drstats span { font-size: 13px; color: var(--muted); }
.drc { display: grid; grid-template-columns: 110px minmax(120px, 1fr) 210px 160px; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drc:last-child { border-bottom: 0; }
.drc svg { width: 160px; height: 36px; }
.drcty:hover { fill: rgba(255, 255, 255, 0.12); }
@media (max-width: 760px) { .drc { grid-template-columns: 1fr auto; gap: 6px 12px; } .drc .dmbar { grid-column: 1 / -1; order: 3; } .drc svg { display: none; } }
/* rivers page */
.river .rstage { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; }
.river .rstage small { font-size: 15px; color: var(--muted); font-weight: 500; }
.rtrend { font-size: 12.5px; color: var(--muted); }
.rtrend.up { color: #ffb070; }
.rtrend.down { color: #7cc4f0; }
.rmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--text-2); margin: 4px 0 6px; }
.rchart { width: 100%; height: auto; display: block; margin-top: 6px; touch-action: pan-y; }
.rchart .rhit { cursor: crosshair; }
.apt { cursor: pointer; outline: none; }
.apt:hover .ring, .apt:focus-visible .ring { opacity: .5; }
.apt.sel .ring { opacity: 1; }
.dl[data-code] { cursor: pointer; border-radius: 10px; transition: background .25s, box-shadow .25s; }
.dl[data-code]:hover { background: var(--panel-2); }
.dl.sel { background: #23305a; box-shadow: inset 3px 0 0 var(--gold); }
.dl[data-code] { padding: 9px 8px; }
@media (max-width: 1180px) { .bar .now-mini { display: none; } }
/* tip lists, burn-time rows, current month */
.tips { margin: 0; padding: 0; list-style: none; }
.tips li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.tips li:last-child { border-bottom: 0; }
.tips li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); }
.tips b { color: var(--text); }
.burn div { display: grid; grid-template-columns: 70px minmax(0, 1fr) 110px; grid-template-areas: "a b c" "d d d"; gap: 2px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.burn div:last-child { border-bottom: 0; }
.burn b { grid-area: a; } .burn .faint { grid-area: b; font-size: 13px; } .burn .mono { grid-area: c; text-align: right; font-size: 13px; }
.burn i { grid-area: d; height: 6px; border-radius: 3px; display: block; }
.uvh div.cur small { color: var(--gold); font-weight: 600; }
.uvh div.cur i { box-shadow: 0 0 0 2px var(--gold); }
/* current-condition cards: four across, larger */
#inst { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 16px; }
.inst { padding: 22px 24px; gap: 20px; }
.inst .inst-g { width: 124px; height: 124px; }
.inst .lbl { font-size: 14px; }
.inst .val { font-size: 34px; }
.inst .val small { font-size: 16px; }
.inst .sub { font-size: 14px; }
@media (max-width: 1240px) { .inst { flex-direction: column; align-items: flex-start; gap: 12px; } .inst .inst-g { width: 104px; height: 104px; } }
@media (max-width: 700px) { #inst { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; } .inst { padding: 14px; } .inst .inst-g { width: 72px; height: 72px; } .inst .val { font-size: 24px; } }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo b { font-weight: 700; }
.logo-in { width: 19px; height: 30px; flex: 0 0 auto; filter: drop-shadow(0 1px 6px rgba(255, 120, 60, .35)); }
/* footer site map */
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 24px; padding: 26px 0 8px; border-top: 1px solid var(--line); font-size: 14px; }
.sitemap b { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--warm); }
.sitemap a { display: block; padding: 3px 0; color: var(--text-2); }
.sitemap a:hover { color: var(--text); }
.sitemap + .site-footer { border-top: 0; padding-top: 6px; }
#aq-disc-card .aqdisc { margin: 0; padding: 0; border: 0; columns: 3 300px; column-gap: 36px; }
#aq-disc-card .aqdisc p { break-inside: avoid; }
.aqscale .uvs { padding: 9px 0; border-bottom: 1px solid var(--line); }
.aqscale .uvs:last-child { border-bottom: 0; }
.aqguide { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.aqguide h3 { margin: 0 0 4px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* short-fuse warning panel (tornado, severe thunderstorm, flash flood) */
.warn-hero { --wa: #ff8a3d; --wb: #3a1a08; --wc: #5c2a0c; display: flex; flex-wrap: wrap; gap: 20px; padding: 22px 24px; border-radius: 18px; border: 2px solid var(--wa); color: #fff;
  background: linear-gradient(135deg, var(--wc), var(--wb) 70%); box-shadow: 0 0 0 0 var(--wa); animation: whpulse 2.4s ease-out infinite; }
.warn-hero.tornado { --wa: #ff3b4e; --wb: #2e0710; --wc: #6e0f1c; }
.warn-hero.ffw { --wa: #3fd17a; --wb: #062618; --wc: #0d4a2c; }
.warn-hero.extreme { --wa: #ff4fd8; --wb: #2a0626; --wc: #6a0f5c; }
@keyframes whpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wa) 55%, transparent); } 70% { box-shadow: 0 0 0 14px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .warn-hero { animation: none; } }
.wh-main { flex: 1.4 1 420px; min-width: 0; }
.wh-top { display: flex; align-items: center; gap: 14px; }
.wh-ico { width: 54px; height: 54px; flex: 0 0 auto; fill: none; stroke: var(--wa); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wh-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--wa); }
.warn-hero h2 { margin: 2px 0 0; font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -0.01em; }
.wh-act { display: inline-block; margin: 16px 0 6px; padding: 6px 14px; border-radius: 10px; background: var(--wa); color: #14060a; font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.wh-do { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: #fff; max-width: 70ch; }
.wh-loc { margin: 12px 0 0; color: rgba(255,255,255,.88); }
.wh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.wh-facts div { background: rgba(0,0,0,.28); border-radius: 10px; padding: 9px 12px; }
.wh-facts span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--wa); }
.wh-facts b { font-weight: 600; font-size: 14.5px; }
.wh-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.85); }
.wh-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wh-btns a { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 14px; font-weight: 600; }
.wh-btns a:first-child { background: #fff; color: #14060a; }
.wh-radar { flex: 1 1 300px; position: relative; display: block; border-radius: 14px; overflow: hidden; min-height: 240px; background: #000; }
.wh-radar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wh-radar span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.65); font-size: 12px; font-family: var(--mono); }
.nav a.alerts.urgent { background: #b3121f; color: #fff; }
/* sun position chart (Sky page) */
.sunpos { width: 100%; height: auto; display: block; }
.spread { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 4px; }
.spread div { background: var(--panel-2); border-radius: 12px; padding: 9px 12px; }
.spread span { display: block; font-size: 12px; color: var(--muted); }
.spread b { display: block; font-family: var(--display); font-size: 19px; }
.spread small { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
@media (max-width: 700px) { .spread { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.splegend { margin-top: 4px; font-size: 12.5px; }
@media (max-width: 520px) { .sunrow { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* current-conditions quick-look tiles */
.glance > div { display: flex; align-items: center; gap: 10px; }
.gl-ico { width: 30px; height: 36px; flex: 0 0 auto; }
.gl-t { min-width: 0; flex: 1; }
.gl-bar { display: block; height: 5px; border-radius: 3px; background: #0f1830; margin-top: 6px; overflow: hidden; }
.gl-bar > i { display: block; height: 100%; border-radius: 3px; }
.gl-scale { display: block; position: relative; height: 5px; border-radius: 3px; margin-top: 6px; background: linear-gradient(90deg, #3aa9e8, #7fb04a 45%, #c9a227 65%, #e0782c 82%, #d23c4a); }
.gl-scale > i { position: absolute; top: -3px; width: 3px; height: 11px; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px #0a0f1c; }
.gl-sub { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
/* 404 / 403 pages */
.errpage { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; padding: 40px 0 30px; min-height: 52vh; }
.err-art { flex: 1 1 280px; max-width: 420px; }
.err-art svg { width: 100%; height: auto; display: block; }
.err-text { flex: 1.3 1 360px; }
.err-text h1 { font-family: var(--display); font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -.02em; }
.err-lead { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 56ch; margin: 0; }
.err-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.err-btns a { padding: 10px 18px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); font-weight: 600; }
.err-btns a:hover { border-color: var(--warm); }
.err-btns a.primary { background: var(--warm); border-color: var(--warm); color: #1a0d05; }
.err-cloud { animation: drift 6s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-8px); } to { transform: translateX(10px); } }
@media (prefers-reduced-motion: reduce) { .err-cloud { animation: none; } }
.glance > div { gap: 8px; padding: 10px 10px; }
.gl-ico { width: 24px; height: 30px; }
.glance b, .gl-sub { white-space: nowrap; }
.glance .gl-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* moon card extras */
.mphases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.mphases div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; background: var(--panel-2); border-radius: 12px; padding: 10px 4px; }
.mphases b { font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.mphases small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mphases small.warm { color: var(--warm); font-family: inherit; }
.mstrip { display: flex; justify-content: space-between; margin-top: 16px; padding: 6px 4px; border-radius: 10px; background: #0b1222; }
.mstrip span { display: flex; border-radius: 50%; }
.mstrip span.cur { box-shadow: 0 0 0 2px var(--gold); }
.mstrip-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--faint); margin-top: 4px; padding: 0 2px; }
.mstrip { gap: 2px; }
.mstrip span { flex: 1 1 0; min-width: 0; justify-content: center; }
.mstrip span svg { width: 100%; max-width: 14px; height: auto; }
@media (max-width: 520px) { .mphases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.glance b { display: block; overflow: hidden; text-overflow: ellipsis; }
/* footer: last update and data-source status */
#updated { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; flex: 1 1 100%; }
.upd { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot.good { background: #3fbf6a; box-shadow: 0 0 0 3px rgba(63, 191, 106, .18); }
.dot.warn { background: var(--gold); box-shadow: 0 0 0 3px rgba(255, 210, 122, .18); }
.dot.bad { background: #e0485a; box-shadow: 0 0 0 3px rgba(224, 72, 90, .2); }
.dstat { flex: 1 1 100%; }
.dstat summary { cursor: pointer; color: var(--warm-2, #ffb070); width: max-content; }
.dstat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 18px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.dstat-grid div { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; font-size: 12.5px; }
.dstat-grid i { width: 7px; height: 7px; border-radius: 50%; background: #3fbf6a; }
.dstat-grid .bad i { background: #e0485a; }
.dstat-grid b { font-weight: 500; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dstat-grid span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.dstat-grid small { grid-column: 2 / -1; color: #ff9aa6; font-size: 11.5px; }
.kick-upd { color: var(--muted); }
.dayline { width: 100%; height: auto; display: block; margin: 14px 0 0; overflow: visible; }
/* moon card: tonight */
.msec { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.msec h3 { margin: 0 0 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mtn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 13px; }
.msub { margin: 8px 0 0; font-size: 13.5px; color: var(--text-2); }
.rnear { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #e0782c26; border: 1px solid #e0782c; color: #ffb070; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; vertical-align: 1px; white-space: nowrap; }
