/* Kyneton Weather - site styles. Colours are tokens; dark mode follows the device unless chosen. */
:root {
  --bg: #f6f8fb; --surface: #ffffff; --surface-2: #eef2f7; --border: #dfe5ee;
  --text: #0f172a; --muted: #5b6678; --accent: #0369a1; --accent-soft: #e0f2fe;
  --c-temp: #e4572e; --c-dew: #0f9d8a; --c-feels: #b45309; --c-hum: #2563eb; --c-press: #7c3aed;
  --c-wind: #16a34a; --c-gust: #65a30d; --c-rain: #0284c7; --c-solar: #d97706; --c-cold: #2563eb; --c-fcst: #7c3aed;
  --warn-bg: #fff7ed; --warn-text: #9a3412;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .05);
  --radius: 14px;
  --moon-lit: #fdf3cf; --moon-dark: #475569; --star: #f59e0b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #131c2e; --surface-2: #1b263b; --border: #26334b;
    --text: #e6ebf3; --muted: #93a0b6; --accent: #38bdf8; --accent-soft: #0c2a40;
    --c-temp: #fb7a55; --c-dew: #2dd4bf; --c-feels: #f5b041; --c-hum: #60a5fa; --c-press: #a78bfa;
    --c-wind: #4ade80; --c-gust: #a3e635; --c-rain: #38bdf8; --c-solar: #fbbf24; --c-cold: #60a5fa; --c-fcst: #a78bfa;
    --warn-bg: #3b1d0b; --warn-text: #fdba74;
    --shadow: none;
    --moon-lit: #f5f0dc; --moon-dark: #1b263b; --star: #fbbf24;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #131c2e; --surface-2: #1b263b; --border: #26334b;
  --text: #e6ebf3; --muted: #93a0b6; --accent: #38bdf8; --accent-soft: #0c2a40;
  --c-temp: #fb7a55; --c-dew: #2dd4bf; --c-feels: #f5b041; --c-hum: #60a5fa; --c-press: #a78bfa;
  --c-wind: #4ade80; --c-gust: #a3e635; --c-rain: #38bdf8; --c-solar: #fbbf24; --c-cold: #60a5fa; --c-fcst: #a78bfa;
  --warn-bg: #3b1d0b; --warn-text: #fdba74;
  --shadow: none;
  --moon-lit: #f5f0dc; --moon-dark: #1b263b; --star: #fbbf24;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: 1.15rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.icon { vertical-align: -3px; flex: none; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 1.15rem; white-space: nowrap; }
.brand .icon { color: var(--accent); }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; white-space: nowrap; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.theme-toggle { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 9px; cursor: pointer; display: flex; gap: 2px; }
.theme-toggle:hover { color: var(--text); }
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 8px; padding-top: 8px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 12px 8px; }
  .theme-toggle { margin-left: auto; }
}

main { padding-top: 24px; padding-bottom: 40px; }
.page-head { margin-bottom: 20px; }
.page-head p { margin: 0; }
.site-footer { border-top: 1px solid var(--border); padding: 20px 0 32px; font-size: .875rem; }
.site-footer p { margin: 4px 0; }

/* cards and grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.stack > * + * { margin-top: 16px; }
section + section { margin-top: 24px; }

/* current conditions */
.now { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 860px) { .now { grid-template-columns: 1fr; } }
.hero { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.hero .temp { font-size: clamp(3.5rem, 9vw, 5.5rem); font-weight: 650; letter-spacing: -.03em; line-height: 1; color: var(--c-temp); }
.hero .temp sup { font-size: .4em; font-weight: 500; vertical-align: .9em; margin-left: 2px; }
.hero .sub { color: var(--muted); }
.hero .range { display: flex; gap: 16px; font-weight: 600; }
.hero .range .hi { color: var(--c-temp); } .hero .range .lo { color: var(--c-cold); }
.updated { font-size: .875rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stale { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.tile .label { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 6px; }
.tile .value { font-size: 1.5rem; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .value small { font-size: .55em; font-weight: 500; color: var(--muted); margin-left: 2px; }
.tile .extra { font-size: .82rem; color: var(--muted); }
.trend { font-weight: 700; margin-left: 4px; }
.trend.up { color: var(--c-temp); } .trend.down { color: var(--c-cold); } .trend.steady { color: var(--muted); }
.compass { width: 54px; height: 54px; float: right; margin: -4px -4px 0 6px; }
.compass circle { fill: none; stroke: var(--border); stroke-width: 2; }
.compass text { fill: var(--muted); font-size: 9px; text-anchor: middle; }
.compass .needle { fill: var(--c-wind); }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
th, td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--muted); font-weight: 600; font-size: .82rem; position: sticky; top: 0; background: var(--surface); }
tbody tr:hover { background: var(--surface-2); }
td.hi { color: var(--c-temp); } td.lo { color: var(--c-cold); }
td .when { display: block; font-size: .75rem; color: var(--muted); }
tr.partial td { color: var(--muted); font-style: italic; }
tfoot td { font-weight: 650; border-top: 2px solid var(--border); }

/* forecast */
.forecast { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.fday { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; text-align: center; }
.fday .dname { font-weight: 650; }
.fday .icon { color: var(--accent); margin: 6px auto; display: block; }
.fday .temps { font-weight: 650; } .fday .temps .lo { color: var(--c-cold); } .fday .temps .hi { color: var(--c-temp); }
.fday .text { font-size: .82rem; color: var(--muted); min-height: 2.4em; }
.fday .rain { font-size: .82rem; color: var(--c-rain); }

/* charts */
.chart { width: 100%; height: 260px; }
.chart.tall { height: 380px; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }

/* controls */
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; text-decoration: none; }
.seg button[aria-pressed="true"], .seg a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
select, input[type="date"] { font: inherit; font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.checks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* records */
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.record { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.record .label { color: var(--muted); font-size: .85rem; }
.record .value { font-size: 1.45rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.record .date { font-size: .85rem; }
.note { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; font-size: .9rem; color: var(--muted); }

/* astronomy */
.moon-disc { width: 120px; height: 120px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--text); }
@media (max-width: 600px) {
  .forecast { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 0 18px 4px; }
  .fday { flex: 0 0 40%; scroll-snap-align: start; }
}

/* rain radar */
.radar { position: relative; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.radar img { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }
.radar-empty[hidden] { display: none; }
.radar-bar { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 10px auto 0; }
.radar-bar input[type="range"] { flex: 1; accent-color: var(--accent); }
.radar-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: .8rem; flex: none; }
.radar-btn:hover { background: var(--surface-2); }
#r-time { min-width: 7.5em; text-align: right; color: var(--muted); }

/* rainfall, fire danger, frost, on this day */
.warm { color: var(--c-temp); } .cool { color: var(--c-cold); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px 12px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.mini-grid .label { display: block; color: var(--muted); font-size: .8rem; }
.mini-grid b { font-size: 1.25rem; }
.vs-normal { margin-top: 10px; }
.vs-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bar { position: relative; height: 10px; background: var(--surface-2); border-radius: 999px; margin: 6px 0 4px; overflow: visible; }
.bar span { position: absolute; inset: 0 auto 0 0; background: var(--c-rain); border-radius: 999px; }
.bar i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .6; }
/* official Australian Fire Danger Rating colours */
.fdr { display: inline-block; padding: 6px 14px; border-radius: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .9rem; border: 1px solid transparent; }
.fdr-none { background: #ffffff; color: #333; border-color: #c8c8c8; }
.fdr-moderate { background: #64bf30; color: #0b2a00; }
.fdr-high { background: #ffe300; color: #2b2600; }
.fdr-extreme { background: #ff6f1f; color: #2a1000; }
.fdr-catastrophic { background: #ad0909; color: #ffffff; }
.fdr-today { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fdr-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.fdr-days > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.small-fdr { padding: 3px 8px; font-size: .72rem; }
.frost-now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.frost-badge { padding: 6px 12px; border-radius: 8px; font-weight: 650; }
.frost-hi { background: #1d4ed8; color: #fff; } .frost-mid { background: #60a5fa; color: #0b1a33; }
.frost-low { background: var(--accent-soft); color: var(--accent); } .frost-none, .frost-muted { background: var(--surface-2); color: var(--muted); }
.fire-sign { display: block; color: var(--text); flex: none; }
.fdr-today { align-items: center; }
.fire-banner { border-bottom: 1px solid rgba(0, 0, 0, .15); }
.fire-banner-row { display: flex; align-items: center; gap: 14px; padding-top: 6px; padding-bottom: 6px; }
.fire-banner a { color: inherit; font-weight: 600; }
.fire-banner .fire-sign { color: inherit; }
.fire-banner .fire-sign { background: #fff; color: #111; border-radius: 8px; padding: 3px 4px; box-sizing: content-box; }
.fire-quiet { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); }
.fire-quiet a { color: var(--accent); font-weight: 500; }
.fire-banner-row { font-size: .92rem; line-height: 1.35; }
.fire-br { display: none; }
@media (max-width: 600px) { .fire-br { display: inline; } .fire-where { display: none; } }
@media (max-width: 600px) { .fire-sep { display: none; } }

/* fire danger sign, top right of the menu bar */
.header-fire { display: flex; align-items: center; margin-left: auto; padding: 3px 6px; border-radius: 10px; background: #fff; border: 1px solid var(--border); flex: none; text-decoration: none; }
.header-fire .fire-sign { color: #111; }
.header-fire:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.header-fire-alert { border-width: 3px; }
.header-fire-alert.fdr-high { border-color: #ffe300; } .header-fire-alert.fdr-extreme { border-color: #ff6f1f; } .header-fire-alert.fdr-catastrophic { border-color: #ad0909; }
.header-fire-alert { background: #fff; }
.header-row .theme-toggle { margin-left: 0; }
@media (max-width: 760px) {
  .header-fire { order: 2; margin-left: auto; }
  .header-row .theme-toggle { order: 2; }
}
@media (max-width: 1060px) {
  .header-row { flex-wrap: wrap; gap: 8px; padding-top: 8px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 12px 8px; }
  .header-fire { order: 2; margin-left: auto; }
  .header-row .theme-toggle { order: 2; }
}

/* words, nearby, air quality, maps, data, alerts */
.words p { margin: 0 0 6px; } .words p:last-child { margin: 0; }
.aq { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.aq-badge { color: #fff; font-weight: 700; padding: 6px 12px; border-radius: 8px; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
.sat { position: relative; width: 100%; max-width: 588px; margin: 0 auto; aspect-ratio: 588 / 485; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.sat img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lightning { display: block; width: 100%; max-width: 760px; margin: 0 auto; border-radius: 10px; }
.btn { font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 10px; padding: 8px 16px; cursor: pointer; }
:root[data-theme="dark"] .btn, .btn { color: #fff; }
.alert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.alert-item { border-left: 5px solid var(--accent); background: var(--surface-2); padding: 10px 14px; border-radius: 8px; }
.alert-fire { border-color: #ff6f1f; } .alert-warning { border-color: #da3633; } .alert-frost { border-color: #1d4ed8; } .alert-rain { border-color: var(--c-rain); } .alert-wind { border-color: var(--c-wind); }
.warn-banner { background: #b91c1c; color: #fff; }
.warn-banner a { color: #fff; font-weight: 600; }
.warn-banner .wrap { padding-top: 8px; padding-bottom: 8px; font-size: .92rem; }
.warn-banner .warn-item { margin: 0; line-height: 1.4; }
.warn-banner .warn-item + .warn-item { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.25); }
.warn-banner .warn-meta { display: block; font-size: .85rem; opacity: .92; }
.warn-banner .warn-meta a { font-weight: 400; text-decoration: underline; }

/* fishing */
.fish-form { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.fish-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fish-loc { flex: 1 1 260px; max-width: 420px; }
.fish-loc select { width: 100%; }
.fish-date { display: flex; align-items: center; gap: 8px; }
.fish-step { display: inline-grid; place-items: center; text-decoration: none; font-size: 1.2rem; line-height: 1; }
.fish-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .fish-hero { grid-template-columns: 1fr; } }
.fish-summary { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; align-content: center; }
.fish-place { flex: 1 1 100%; }
.fish-place h2 { margin-bottom: 2px; font-size: 1.35rem; }
.fish-place p { margin: 0; }
.fish-when { margin-top: 6px !important; font-weight: 600; }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 9px; font-size: .78rem; font-weight: 600; vertical-align: 1px; }
.fish-rating { display: flex; flex-direction: column; gap: 4px; }
.fish-moon { display: flex; align-items: center; gap: 12px; }
.moon-svg { display: block; flex: none; }
.stars { letter-spacing: 1px; color: var(--border); white-space: nowrap; }
.stars .on { color: var(--star); }
.stars.big { font-size: 2.1rem; line-height: 1; letter-spacing: 2px; }
.periods { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.period { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid; }
.period-major { border-color: #10b981; } .period-minor { border-color: #f59e0b; }
.ptag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; grid-row: span 2; min-width: 3.6em; }
.period-major .ptag { color: #059669; } .period-minor .ptag { color: #d97706; }
:root[data-theme="dark"] .period-major .ptag { color: #34d399; } :root[data-theme="dark"] .period-minor .ptag { color: #fbbf24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .period-major .ptag { color: #34d399; } :root:not([data-theme="light"]) .period-minor .ptag { color: #fbbf24; } }
.ptime { font-weight: 650; font-size: 1.05rem; }
.fish-chart { height: 300px; }
.fish-key { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
.fish-key span { display: inline-flex; align-items: center; gap: 5px; }
.k { display: inline-block; width: 12px; height: 10px; border-radius: 3px; }
.k-major { background: rgba(16,185,129,.45); } .k-minor { background: rgba(245,158,11,.4); } .k-act { background: var(--accent); height: 3px; }
.k-tide { height: 0; border-top: 2px dashed var(--c-press); border-radius: 0; } .k-sun { background: var(--c-solar); border-radius: 50%; width: 10px; } .k-moon { background: #94a3b8; border-radius: 50%; width: 10px; }
.tide-table td { padding: 6px 8px; }
.tide-high td:first-child { color: var(--c-rain); font-weight: 600; } .tide-low td:first-child { color: var(--muted); font-weight: 600; }
.fish-week .fday { text-decoration: none; color: var(--text); border: 2px solid transparent; }
.fish-week .fday:hover { border-color: var(--border); }
.fish-week .fday.sel { border-color: var(--accent); }
.fish-week .moon-svg { margin: 6px auto; }
.fish-week .stars { font-size: .9rem; }
@media (max-width: 600px) { .fish-week .fday { flex-basis: 30%; } .fish-chart { height: 280px; } .stars.big { font-size: 1.8rem; } }
.fish-store { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.tank { width: 26px; height: 44px; border: 2px solid var(--c-rain); border-radius: 5px 5px 7px 7px; position: relative; overflow: hidden; flex: none; background: var(--surface-2); }
.tank i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--c-rain); opacity: .8; }
.store-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.store-bar { height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.store-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-rain), var(--accent)); border-radius: 999px; }
.store-text { display: flex; flex-direction: column; }
.flow-form { margin-bottom: 10px; }
.flow-form select { width: 100%; max-width: 100%; }
.flow-now { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.flow-val { font-size: 2rem; font-weight: 650; color: var(--c-rain); line-height: 1; }
.wind-chart { height: 220px; }
.flow-chart { height: 150px; }
.wk-wind { font-size: .78rem; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.flow-span { margin: 10px 0 2px; }
.flow-trend { font-weight: 600; }
.flow-trend.up { color: var(--c-temp); } .flow-trend.down { color: var(--c-cold); } .flow-trend.steady { color: var(--muted); }
.loc-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.loc-tools[hidden] { display: none; }
.loc-search { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; }
.loc-search input[type="search"] { flex: 1; min-width: 0; font: inherit; font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; }
.loc-near { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; white-space: nowrap; cursor: pointer; }
#loc-count { font-weight: 400; }
@media (max-width: 600px) { .loc-tools .seg { width: 100%; justify-content: space-between; } .loc-tools .seg button { padding: 6px 9px; font-size: .85rem; } }
.loc-from { flex-basis: 100%; margin: -4px 0 0; }
.loc-from[hidden] { display: none; }
.wx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 8px; }
.wx-main { display: flex; align-items: center; gap: 12px; }
.wx-main .icon { color: var(--accent); }
.wx-words { font-size: 1.05rem; }
.wx-temps { font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.wx-temps .hi, .wk-wx .hi { color: var(--c-temp); } .wx-temps .lo { color: var(--c-cold); }
.wx-grid { flex: 1 1 320px; margin-bottom: 0; }
.wx-chart { height: 220px; }
.wk-wx { font-size: .82rem; margin-top: 2px; white-space: nowrap; font-weight: 600; }
.wk-wx .icon { color: var(--accent); vertical-align: -3px; }
.wk-wx .rain { color: var(--c-rain); font-weight: 500; }
.spot-note { margin: 6px 0 0 !important; padding: 6px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-text); }
