/* DobriDo skin — light/dark tokens, layout and components. */

:root {
  --bg: #f6f6f3; --surface: #ffffff; --border: #e4e4df; --hair: #eeeee9; --grid: #b9bdb5;
  --ink: #18191b; --ink2: #3c4046; --muted: #575c63; --faint: #6a7078;
  --cold: #2c5784; --warm: #a55a16; --wet: #08519c; --good: #2f6b3e;
  --accent: #2c5784; --nav-bg: #eaf0f6; --head-bg: #f1f1ed;
  --track: #e4e4df; --track-fill: #c6d6e5; --live: #2f8f4e;
  --band-day: #fbf5e6; --band-civil: #e6ebf2; --band-nautical: #d2dbe8; --band-astro: #bfcbdd; --band-night: #aebcd3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111315; --surface: #1a1d20; --border: #2b2f34; --hair: #24282c; --grid: #4a5057;
    --ink: #e8e9ea; --ink2: #c9cdd1; --muted: #a3a9b0; --faint: #8e959c;
    --cold: #8fb4dc; --warm: #e3a063; --wet: #79aee0; --good: #7cc28f;
    --accent: #8fb4dc; --nav-bg: #1f2c3a; --head-bg: #23272b;
    --track: #2b2f34; --track-fill: #34506e;
    --band-day: #2b2a24; --band-civil: #22272e; --band-nautical: #1c2128; --band-astro: #171b21; --band-night: #121519;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111315; --surface: #1a1d20; --border: #2b2f34; --hair: #24282c; --grid: #4a5057;
  --ink: #e8e9ea; --ink2: #c9cdd1; --muted: #a3a9b0; --faint: #8e959c;
  --cold: #8fb4dc; --warm: #e3a063; --wet: #79aee0; --good: #7cc28f;
  --accent: #8fb4dc; --nav-bg: #1f2c3a; --head-bg: #23272b;
  --track: #2b2f34; --track-fill: #34506e;
  --band-day: #2b2a24; --band-civil: #22272e; --band-nautical: #1c2128; --band-astro: #171b21; --band-night: #121519;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5;
  transition: background-color .2s, color .2s;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.cold { color: var(--cold); } .warm { color: var(--warm); } .wet { color: var(--wet); } .good { color: var(--good); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 600; font-size: 17px; }
.brand-sub { font-size: 13px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 8px; color: var(--ink2); text-decoration: none; }
.nav a:hover { background: var(--hair); }
.nav a[aria-current="page"] { background: var(--nav-bg); color: var(--accent); font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 16px; }
.updated { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--grid); }
.theme-toggle svg { width: 16px; height: 16px; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: inline; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: inline; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* Main */
main.wrap { padding-top: 40px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.link-arrow { font-size: 14px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 28px; }
.hero-now { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.big-temp { display: flex; align-items: flex-start; gap: 4px; font-variant-numeric: tabular-nums; color: var(--ink); }
.big-temp.cold { color: var(--cold); } .big-temp.warm { color: var(--warm); }
.big-temp .v { font-size: 168px; line-height: .86; font-weight: 500; letter-spacing: -.045em; }
.big-temp .u { font-size: 48px; line-height: 1; font-weight: 500; padding-top: 6px; }
.readouts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--border); padding-top: 18px; }
.readouts dt { font-size: 13px; color: var(--muted); }
.readouts dd { margin: 2px 0 0; font-size: 22px; font-weight: 500; }
.range { display: flex; flex-direction: column; gap: 8px; }
.range-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.range-top strong { font-weight: 600; }
.range-bar { position: relative; height: 10px; border-radius: 5px; background: var(--track); }
.range-fill { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--track-fill); }
.range-now { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 2px; background: var(--cold); }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }

.chart-card { flex: 1.35 1 520px; min-width: 0; margin: 0; padding: 20px 20px 12px; display: flex; flex-direction: column; gap: 8px; }
.chart-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chart-card figcaption span:first-child { font-weight: 600; }
.chart-card figcaption span + span { font-size: 13px; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.chart .gl { stroke: var(--hair); } .chart .gl0 { stroke: var(--grid); stroke-dasharray: 3 4; }
.chart .axis { fill: var(--faint); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; }
.chart .area { fill: var(--accent); fill-opacity: .1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .hi-dot { fill: var(--warm); } .chart .hi-lab { fill: var(--warm); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; }
.chart .now-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .now-lab { fill: var(--cold); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; }
.chart-facts { margin: auto 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--hair); padding-top: 12px; }
.chart-facts dt { font-size: 12px; color: var(--muted); }
.chart-facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 500; }
.chart-facts dd.warm { color: var(--warm); } .chart-facts dd.cold { color: var(--cold); }
.chart-narrow { display: none; }

/* Instrument tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.tile { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.tile h2 { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tile-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tile-main .v { font-size: 34px; font-weight: 500; line-height: 1.1; }
.tile-main .u { font-size: 15px; color: var(--muted); }
.tile-foot { margin: auto 0 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--hair); padding-top: 12px; }
.tile-foot strong { color: var(--ink); font-weight: 500; }
.tile-foot strong.good, .tile-foot strong.warm { font-weight: 600; }
.tile-foot strong.good { color: var(--good); } .tile-foot strong.warm { color: var(--warm); }
.kv { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.wind-body { display: flex; align-items: center; gap: 18px; }
.compass { width: 104px; height: 104px; flex: none; }
.compass .ring { fill: none; stroke: var(--track); stroke-width: 10; }
.compass .mark { fill: var(--accent); }
.compass text { fill: var(--faint); font-size: 11px; font-family: Inter, system-ui, sans-serif; }
.mini { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.mini figcaption { font-size: 12px; color: var(--faint); }
.mini-chart { width: 100%; height: auto; display: block; overflow: visible; }
.mini-chart .base { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mini-chart .axis { fill: var(--faint); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10px; }
.mini-chart .rbar { fill: var(--wet); }
.mini-chart .wbar { fill: var(--accent); fill-opacity: .55; }
.mini-chart .gust { fill: var(--ink2); }
.mini-chart .arrow { fill: var(--ink2); }
.tile-main .v.dir { margin-left: 6px; color: var(--accent); }
.ribbon { width: 100%; height: auto; display: block; }
.ribbon .cell { fill: var(--accent); }
.ribbon .cell-calm { fill: var(--track); }
.ribbon .arr { fill: var(--ink); }
.ribbon .arr-inv { fill: var(--surface); }
.ribbon .axis { fill: var(--faint); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 9px; }
.spark { width: 100%; height: 56px; display: block; }
.spark path { fill: none; stroke: var(--ink2); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Review strip */
.review { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.review-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.review h2, .climate h2 { margin: 0; font-size: 18px; font-weight: 600; }
.review dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.review dt { font-size: 13px; color: var(--muted); }
.review dd { margin: 0; font-size: 13px; color: var(--muted); }
.review dd.v { margin-top: 2px; font-size: 24px; font-weight: 500; color: var(--ink); }
.review dd.v.warm { color: var(--warm); } .review dd.v.cold { color: var(--cold); } .review dd.v.wet { color: var(--wet); }

/* Statistics table */
.table-box { overflow-x: auto; }
.stats { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 14px; }
.stats thead tr { border-bottom: 1px solid var(--border); text-align: left; }
.stats th, .stats td { padding: 14px 18px; vertical-align: top; }
.stats thead th { padding-top: 16px; padding-bottom: 16px; font-weight: 600; }
.stats thead th:first-child { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; width: 20%; }
.stats thead th span { font-weight: 400; color: var(--muted); }
.stats tbody tr + tr { border-top: 1px solid var(--hair); }
.stats tbody th { text-align: left; font-weight: 500; }
.stats .v { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stats .t { font-size: 12px; color: var(--muted); }

/* Climate table */
.climate { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.climate-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.climate-box { overflow-x: auto; }
.climo { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 2px; font-size: 13px; font-variant-numeric: tabular-nums; }
.climo th { background: var(--head-bg); padding: 8px 10px; font-weight: 500; text-align: left; }
.climo thead th { text-align: center; font-weight: 600; padding: 8px 4px; }
.climo thead th:first-child { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.climo td { padding: 8px 2px; text-align: center; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.climo td.yr { font-weight: 600; }
.climate-note { margin: 0; font-size: 13px; color: var(--muted); max-width: 860px; }

/* Records + generic grids */
.records { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.record { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.record .v { font-size: 34px; font-weight: 500; line-height: 1.15; }
.record .t { font-size: 13px; color: var(--muted); }

/* Reports: almanac index + printed sheet */
.reports { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.report-index { padding: 8px 20px; display: flex; flex-direction: column; }
.ri-year { padding: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.ri-year + .ri-year { border-top: 1px solid var(--hair); }
.ri-y { align-self: flex-start; font-size: 18px; font-weight: 600; text-decoration: none; color: var(--ink); padding: 4px 10px; margin-left: -10px; border-radius: 8px; min-height: 36px; display: inline-flex; align-items: center; }
.ri-months { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.ri-months a, .ri-months span { display: flex; align-items: center; justify-content: center; min-height: 36px; border-radius: 6px; font-size: 13px; }
.ri-months a { color: var(--ink2); text-decoration: none; background: var(--bg); }
.ri-months span { color: var(--faint); opacity: .45; }
.ri-months a:hover, .ri-y:hover { background: var(--hair); }
.report-index [aria-current="true"] { background: var(--nav-bg); color: var(--accent); font-weight: 600; }
.sheet-wrap { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sheet-head h2 { margin: 2px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.sheet-actions { display: flex; gap: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--grid); }
.sheet {
  --paper: #fcfaf3; --paper-ink: #2b2720; --paper-rule: #cfc6b0;
  background: var(--paper); color: var(--paper-ink);
  border: 1px solid var(--border); border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 8px 24px -12px rgba(40,30,10,.18);
  padding: 28px 32px 32px;
}
:root[data-theme="dark"] .sheet { --paper: #1f1d19; --paper-ink: #e6dfcf; --paper-rule: #4a4438; box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sheet { --paper: #1f1d19; --paper-ink: #e6dfcf; --paper-rule: #4a4438; box-shadow: none; } }
.sheet-mast { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; margin-bottom: 18px; border-top: 3px double var(--paper-rule); border-bottom: 1px solid var(--paper-rule); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.sheet pre { margin: 0; overflow-x: auto; font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.45; tab-size: 8; }
.sheet pre[aria-busy="true"] { opacity: .45; }
.sheet pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 900px) { .reports { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .page-head, .report-index, .sheet-actions { display: none !important; }
  body { background: #fff; }
  main.wrap { padding: 0; max-width: none; }
  .reports { display: block; }
  .sheet { --paper: #fff; --paper-ink: #000; border: 0; box-shadow: none; padding: 0; }
  .sheet pre { font-size: 10pt; overflow: visible; white-space: pre; }
}
.section { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.section h2 { margin: 0; font-size: 18px; font-weight: 600; }

/* Sun & moon */
.sm-card { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.sun-stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.sun-stats dt { font-size: 13px; color: var(--muted); }
.sun-stats dd { margin: 0; font-size: 13px; color: var(--muted); }
.sun-stats dd.v { margin-top: 2px; font-size: 30px; font-weight: 500; line-height: 1.15; color: var(--ink); }
.sun-stats dd.cold { color: var(--cold); } .sun-stats dd.warm { color: var(--warm); }
.sun-fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sun-chart, .yr-chart { width: 100%; height: auto; display: block; }
.sun-narrow, .year-narrow { display: none; }
.band-day { fill: var(--band-day); background: var(--band-day); }
.band-civil { fill: var(--band-civil); background: var(--band-civil); }
.band-nautical { fill: var(--band-nautical); background: var(--band-nautical); }
.band-astro { fill: var(--band-astro); background: var(--band-astro); }
.band-night { fill: var(--band-night); background: var(--band-night); }
.sun-chart .sgrid, .yr-chart .sgrid { stroke: var(--grid); stroke-dasharray: 3 5; stroke-width: 1; }
.yr-chart .ygrid { stroke: var(--hair); stroke-width: 1; }
.sun-chart .axis, .yr-chart .axis { fill: var(--faint); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; }
.sun-chart .horizon { stroke: var(--ink2); stroke-width: 1.25; }
.sun-chart .hz-lab { fill: var(--ink2); font-size: 12px; }
.sun-chart .sun-above { fill: none; stroke: var(--warm); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sun-chart .sun-below { fill: none; stroke: var(--faint); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.sun-chart .noon-dot { fill: var(--warm); }
.sun-chart .noon-lab { fill: var(--warm); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; }
.now-line { stroke: var(--accent); stroke-width: 1.5; }
.now-sun { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.now-lab { fill: var(--accent); font-size: 12px; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.tw .sw { vertical-align: -2px; margin-right: 8px; }
.now-key { color: var(--accent); font-weight: 600; }
.sw.now-sw { border-radius: 50%; border: 2.5px solid var(--accent); background: var(--surface); }
.today-key { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.today-key .sw { width: 12px; height: 12px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--border); flex: none; }
.sm-row { display: flex; flex-wrap: wrap; gap: 16px; }
.moon-card { flex: 1.4 1 520px; min-width: 0; }
.tw-card { flex: 1 1 340px; min-width: 0; }
.moon-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.moon-disc { flex: none; }
.moon-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; font-size: 14px; }
.moon-phase { font-size: 30px; font-weight: 500; line-height: 1.15; }
.moon-where { color: var(--ink2); margin-top: 6px; }
.moon-where strong { font-weight: 600; }
.moon-times { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--hair); padding-top: 16px; }
.moon-times dt { font-size: 13px; color: var(--muted); }
.moon-times dd { margin: 2px 0 0; font-size: 22px; font-weight: 500; }
.phases { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.phases li { background: var(--bg); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.phases .mono { font-size: 15px; font-weight: 500; }
.small { font-size: 12px; }
.tw { width: 100%; border-collapse: collapse; font-size: 14px; }
.tw thead th { padding: 0 0 10px; font-weight: 500; color: var(--muted); font-size: 13px; text-align: right; border-bottom: 1px solid var(--border); }
.tw tbody tr + tr { border-top: 1px solid var(--hair); }
.tw tbody th { padding: 12px 0; text-align: left; font-weight: 500; }
.tw td { padding: 12px 0; text-align: right; }
.tw-note { margin: auto 0 0; font-size: 13px; color: var(--muted); }
.year-card { flex-direction: row; flex-wrap: wrap; gap: 24px 32px; }
.year-chart { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.year-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.year-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.year-head .muted { font-size: 13px; }
.yr-chart .yr-area { fill: var(--warm); fill-opacity: .12; }
.yr-chart .yr-line { fill: none; stroke: var(--warm); stroke-width: 2.5; stroke-linejoin: round; }
.seasons { flex: 1 1 260px; margin: 0; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.seasons dt { font-size: 13px; color: var(--muted); }
.seasons dd { margin: 0; font-size: 13px; color: var(--muted); }
.seasons dd.v { margin-top: 2px; font-size: 20px; font-weight: 500; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.station-id { margin: 0; display: grid; grid-template-columns: auto auto; column-gap: 24px; row-gap: 6px; font-size: 14px; }
.station-id dt { color: var(--muted); } .station-id dd { margin: 0; }
.footer-meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); max-width: 420px; }

/* Phone */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header .wrap { gap: 6px 12px; padding-top: 10px; padding-bottom: 6px; }
  .brand { order: 1; }
  .header-tools { order: 2; margin-left: auto; gap: 10px; }
  .nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -6px; }
  .nav a { flex: none; padding: 0 12px; }
  .theme-toggle { width: 44px; padding: 0; justify-content: center; }
  .theme-toggle .label { display: none; }
  .updated .full { display: none; }
  main.wrap { padding-top: 24px; padding-bottom: 32px; gap: 20px; }
  .big-temp .v { font-size: 112px; }
  .big-temp .u { font-size: 32px; padding-top: 4px; }
  .readouts { gap: 12px; padding-top: 14px; }
  .readouts dd { font-size: 19px; }
  .range-top { flex-direction: column; gap: 2px; }
  .chart-card { padding: 14px 12px 8px; }
  .chart-wide { display: none; }
  .chart-facts { gap: 10px; }
  .chart-facts dd { font-size: 16px; }
  .chart-narrow { display: block; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { padding: 14px; gap: 8px; }
  .tile h2 { font-size: 12px; }
  .tile-main .v { font-size: 24px; }
  .wind-body { gap: 10px; }
  .compass { display: none; }
  .tile-foot { font-size: 12px; padding-top: 8px; }
  .spark { height: 36px; }
  .review, .climate, .section { padding: 16px; }
  .records { grid-template-columns: 1fr; }
  .record .v { font-size: 28px; }
  h1 { font-size: 26px; }
  .review dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .review dd.v { font-size: 20px; }
}
@media (max-width: 640px) {
  .sun-wide, .year-wide { display: none; }
  .sun-narrow, .year-narrow { display: block; }
  .sm-card { padding: 16px; }
  .sun-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sun-stats dd.v { font-size: 24px; }
  .moon-card, .tw-card, .year-chart { flex-basis: 100%; }
  .moon-disc { width: 96px; height: 96px; }
  .moon-phase { font-size: 24px; }
}
@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .compass { display: block; width: 80px; height: 80px; }
}
