:root {
  --bg: #06111b;
  --bg-2: #091923;
  --surface: #0d202d;
  --surface-2: #102633;
  --surface-soft: rgba(255,255,255,.035);
  --line: rgba(174, 210, 232, .13);
  --line-strong: rgba(174, 210, 232, .22);
  --text: #f3f8fb;
  --muted: #9fb3c1;
  --muted-2: #78909f;
  --accent: #7bd7ef;
  --accent-soft: rgba(123, 215, 239, .12);
  --green: #65d19a;
  --amber: #f2bf67;
  --red: #f17f7f;
  --shadow: 0 24px 70px rgba(0,0,0,.26);
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 11px;
}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#skyRetryButton[hidden]{display:none!important}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(47, 117, 150, .18), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(44, 91, 114, .15), transparent 28%),
    linear-gradient(180deg, #07131f 0%, #06111b 46%, #08141e 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input { font: inherit; }

.shell {
  width: min(1460px, calc(100% - 36px));
  margin: 18px auto;
  background: rgba(6, 17, 27, .72);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.topbar {
  min-height: 88px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 27, .82);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.brand-copy { min-width: 0; }
.brand h1,
.brand .brand-title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.28rem);
  letter-spacing: .11em;
  font-weight: 720;
}
.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: #b9c9d3;
  font-size: .9rem;
  padding: 9px 12px;
  border-radius: 9px;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(123, 215, 239, .09);
}

main { padding: 30px; }


.hero-main-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 46px);
  background:
    radial-gradient(circle at 82% 16%, rgba(123, 215, 239, .10), transparent 26%),
    linear-gradient(135deg, rgba(16, 38, 51, .96), rgba(9, 25, 35, .96));
}
.hero-main-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  bottom: -150px;
  border-radius: 50%;
  border: 1px solid rgba(123,215,239,.08);
}
.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 700;
}
.location-label { text-transform: none; letter-spacing: .02em; font-weight: 500; }
.hero-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
  gap: 34px;
  align-items: center;
}
.hero-condition {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}
.weather-orb {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 3.25rem;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.14), rgba(123,215,239,.035));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 35px rgba(123,215,239,.06);
}
.temp-row {
  display: flex;
  align-items: flex-start;
  line-height: .9;
}
.temp {
  font-size: clamp(4.4rem, 9vw, 8.2rem);
  font-weight: 250;
  letter-spacing: -.07em;
}
.temp-unit {
  padding: 8px 0 0 10px;
  color: #cfe3ec;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 350;
}
.condition-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #dce9ef;
  font-size: 1rem;
}
.condition-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #dff8ff;
  background: var(--accent-soft);
  border: 1px solid rgba(123,215,239,.18);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .025em;
}
.summary-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
  color: var(--muted);
  font-size: .92rem;
}
.summary-line strong { color: #eef7fa; font-weight: 650; }
.hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(4, 15, 24, .26);
}
.hero-stat {
  min-height: 100px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-stat:nth-child(odd) { border-right: 1px solid var(--line); }
.hero-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.hero-stat span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-stat strong { margin-top: 8px; font-size: 1.05rem; font-weight: 660; }
.hero-stat small { margin-top: 4px; color: var(--muted); font-size: .78rem; }

.station-bar {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 1fr .8fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
  overflow: hidden;
}
.station-status {
  min-height: 70px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}
.station-status + .station-status { border-left: 1px solid var(--line); }
.station-status strong { font-size: .9rem; font-weight: 650; }
.status-label { color: var(--muted-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.live-pill { position: relative; padding-left: 42px; }
.live-dot {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(101,209,154,.10);
}
.live-pill.delayed .live-dot { background: var(--amber); box-shadow: 0 0 0 5px rgba(242,191,103,.10); }
.live-pill.offline .live-dot { background: var(--red); box-shadow: 0 0 0 5px rgba(241,127,127,.10); }
.ok { color: var(--green) !important; }
.warn { color: var(--amber) !important; }
.bad { color: var(--red) !important; }

.today-section,
.metrics-section,
.forecast-section,
.climate-section,
.trends-section,
.records-section,
.page-section { margin-top: 44px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 18px;
}
.compact-heading { margin-bottom: 14px; }
.section-heading h2,
.page-hero h2,
.page-hero h1 {
  margin: 3px 0 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -.025em;
}
.section-heading p,
.page-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
.section-eyebrow {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.text-link {
  color: #cdeef7;
  text-decoration: none;
  font-size: .88rem;
  white-space: nowrap;
}
.text-link:hover { color: #fff; }

.today-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.today-item { padding: 19px 22px; }
.today-item + .today-item { border-left: 1px solid var(--line); }
.today-item span { color: var(--muted); font-size: .8rem; }
.today-item strong { display: block; margin-top: 5px; color: #fff; font-size: 1.15rem; font-weight: 650; }
.today-item strong span { color: inherit; font-size: inherit; }

.astronomy-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.sky-cycle-card {
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
  border: 1px solid var(--line);
}
.sky-cycle-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sky-cycle-heading h3 { margin: 3px 0 0; font-size: 1.18rem; }
.sky-cycle-heading p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.phase-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sun-phase-icon g,
.moon-phase-icon g { display: none; }
.sun-phase-icon[data-phase="night"] .sun-night,
.sun-phase-icon[data-phase="dawn"] .sun-dawn,
.sun-phase-icon[data-phase="morning"] .sun-morning,
.sun-phase-icon[data-phase="afternoon"] .sun-afternoon,
.sun-phase-icon[data-phase="dusk"] .sun-dusk,
.sun-phase-icon[data-phase="unavailable"] .sun-unavailable,
.moon-phase-icon[data-phase="new"] .moon-new,
.moon-phase-icon[data-phase="waxing-crescent"] .moon-waxing-crescent,
.moon-phase-icon[data-phase="first-quarter"] .moon-first-quarter,
.moon-phase-icon[data-phase="waxing-gibbous"] .moon-waxing-gibbous,
.moon-phase-icon[data-phase="full"] .moon-full,
.moon-phase-icon[data-phase="waning-gibbous"] .moon-waning-gibbous,
.moon-phase-icon[data-phase="last-quarter"] .moon-last-quarter,
.moon-phase-icon[data-phase="waning-crescent"] .moon-waning-crescent { display: block; }
.moon-phase-icon { stroke: #b7dceb; }
.moon-phase-icon .moon-disc { fill: rgba(183,220,235,.04); }
.moon-phase-icon g { fill: #d9eff7; stroke: none; }
.moon-phase-icon .moon-new,
.moon-phase-icon .moon-shadow { fill: #102532; }
.sky-cycle-facts {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}
.sky-cycle-facts > div { padding: 12px; background: #0a1b26; }
.sky-cycle-facts span,
.cycle-progress-copy span { display: block; color: var(--muted); font-size: .7rem; }
.sky-cycle-facts strong { display: block; margin-top: 4px; font-size: .9rem; }
.cycle-progress-copy { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cycle-progress-copy strong { color: var(--muted); font-size: .72rem; font-weight: 600; }
.cycle-progress { height: 7px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.cycle-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#f2bf67,var(--accent)); transition: width .45s ease; }
.moon-next { margin: 14px 0 0; color: #d8e8ef; font-size: .78rem; }
.sun-phase-track,.moon-phase-track,.season-markers { list-style:none; margin:14px 0 0; padding:0; display:grid; gap:6px; }
.sun-phase-track { grid-template-columns:repeat(5,minmax(0,1fr)); }
.sun-phase-track li,.moon-phase-track li { text-align:center; color:var(--muted); font-size:.62rem; line-height:1.3; }
.sun-phase-track li:before { content:""; display:block; height:5px; margin-bottom:7px; border-radius:99px; background:rgba(255,255,255,.12); }
.sun-phase-track li[aria-current="step"] { color:#fff; font-weight:700; }
.sun-phase-track li[aria-current="step"]:before { background:linear-gradient(90deg,#f2bf67,var(--accent)); box-shadow:0 0 10px rgba(123,215,239,.3); }
.moon-phase-track { grid-template-columns:repeat(8,minmax(0,1fr)); gap:3px; }
.moon-phase-track li { padding:5px 1px; border-radius:8px; }
.moon-phase-track li[aria-current="step"] { background:rgba(123,215,239,.12); color:#fff; outline:1px solid rgba(123,215,239,.45); }
.moon-phase-symbol { display:block; margin-bottom:3px; color:#d9eff7; font-size:1.15rem; line-height:1; }
.season-card { grid-column:1/-1; }
.season-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.season-heading h3 { margin:3px 0 0; font-size:1.05rem; }
.season-heading p { margin:0; color:var(--muted); font-size:.76rem; text-align:right; }
.season-markers { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.season-markers li { padding:12px 10px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.018); }
.season-markers strong,.season-markers span { display:block; }
.season-markers strong { font-size:.78rem; }
.season-markers span { margin-top:4px; color:var(--muted); font-size:.7rem; }
.season-next { margin:11px 0 0; color:#d8e8ef; font-size:.78rem; }
@media(max-width:420px) {
  .moon-phase-track li { font-size:.53rem; }
  .moon-phase-symbol { font-size:1rem; }
  .season-markers { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .season-heading { align-items:flex-start; flex-direction:column; }
  .season-heading p { text-align:left; }
}
.astronomy-note { display: block; margin-top: 5px; color: var(--muted-2); font-size: .67rem; }
.astro-item svg,
.metric-head svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.trend-summary { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; }
.trend-summary strong { color: #eef7fa; margin-left: 4px; }
.trend-up { color: var(--red) !important; }
.trend-down { color: var(--accent) !important; }
.trend-flat { color: #c7d4db !important; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric-panel {
  min-height: 186px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(14,34,46,.96), rgba(10,27,38,.96));
}
.metric-head { display: flex; align-items: center; gap: 10px; color: #d9e6ec; font-size: .84rem; font-weight: 650; }
.metric-head svg { width: 20px; height: 20px; }
.metric-value { display: flex; align-items: baseline; gap: 7px; margin-top: 25px; }
.metric-value .v { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 300; letter-spacing: -.04em; }
.metric-value .u { color: var(--muted); font-size: .9rem; }
.metric-sub { margin-top: 16px; color: var(--muted); line-height: 1.65; font-size: .82rem; }
.metric-sub strong { color: #e8f2f6; font-weight: 600; }
.rain-evidence-disclosure {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.rain-evidence-disclosure summary {
  cursor: pointer;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.45;
}
.rain-evidence-disclosure #rainEvidence {
  margin-top: 10px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.55;
}
.rain-evidence-disclosure #rainEvidence > strong:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: .88rem;
  line-height: 1.4;
}

.forecast-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.018);
}
.forecast-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.forecast-grid article { padding: 22px; background: #0a1b26; }
.forecast-grid span { color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; }
.forecast-grid p { margin: 9px 0 0; color: #d8e5eb; line-height: 1.65; font-size: .9rem; }
.source-note { margin-top: 12px; color: var(--muted-2); font-size: .72rem; }

.climate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.climate-card {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.018);
}
.climate-card span,
.climate-card small { display: block; color: var(--muted); font-size: .76rem; }
.climate-card strong { display: block; margin: 9px 0 5px; font-size: 1.3rem; font-weight: 650; }

.trends-section { padding-top: 4px; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.chart-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 28, 39, .72);
}
.chart-title { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.chart-title h3 { margin: 0; font-size: 1rem; font-weight: 650; }
.chart-title p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.chart-title > span { color: var(--muted); font-size: .72rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.chart-wrap { position: relative; height: 285px; margin-top: 18px; }
.solar-chart-stack { margin-top: 18px; display: grid; gap: 14px; }
.solar-chart-panel { position: relative; padding: 12px 12px 8px; border: 1px solid rgba(163,209,255,.10); border-radius: 12px; background: rgba(4,18,29,.28); }
.solar-chart-panel > strong { color: var(--text); font-size: .82rem; font-weight: 650; }
.solar-chart-panel > span { float: right; color: var(--muted); font-size: .7rem; }
.solar-chart-panel .solar-chart-wrap { height: 150px; margin-top: 8px; }
.wind-card { min-height: 360px; }
.wind-grid { margin-top: 16px; display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: center; }
.compass { position: relative; width: 230px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-strong); background: radial-gradient(circle, rgba(123,215,239,.035), transparent 65%); margin: auto; }
.compass::before,
.compass::after { content: ""; position: absolute; background: var(--line); }
.compass::before { width: 1px; height: 76%; left: 50%; top: 12%; }
.compass::after { height: 1px; width: 76%; top: 50%; left: 12%; }
.dir { position: absolute; color: var(--muted); font-size: .7rem; font-weight: 750; z-index: 2; }
.dir.n { top: 8px; left: 50%; transform: translateX(-50%); }
.dir.s { bottom: 8px; left: 50%; transform: translateX(-50%); }
.dir.e { right: 10px; top: 50%; transform: translateY(-50%); }
.dir.w { left: 10px; top: 50%; transform: translateY(-50%); }
.needle { position: absolute; z-index: 3; width: 2px; height: 76px; left: calc(50% - 1px); top: calc(50% - 76px); transform-origin: 50% 100%; background: linear-gradient(to top, rgba(123,215,239,.2), var(--accent)); }
.needle::before { content: ""; position: absolute; top: -5px; left: -4px; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(-45deg); }
.centre { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 94px; height: 94px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: #0a1b26; border: 1px solid var(--line); color: var(--muted); font-size: .68rem; }
.centre strong { display: block; color: #fff; font-size: 1.05rem; }
.wind-readout { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wind-readout > div { padding: 17px; background: #0a1b26; }
.wind-readout span { display: block; color: var(--muted); font-size: .73rem; }
.wind-readout strong { display: block; margin-top: 5px; font-size: .95rem; }

.records-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.records-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.016); }
.records-title { padding: 19px 21px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line); }
.records-title h3 { margin: 0; font-size: 1rem; }
.records-title span { color: var(--muted); font-size: .72rem; }
.record-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.record-list > div { min-height: 106px; padding: 19px 21px; }
.record-list > div:nth-child(odd) { border-right: 1px solid var(--line); }
.record-list > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.record-list span,
.record-list small { display: block; color: var(--muted); font-size: .74rem; }
.record-list strong { display: block; margin: 8px 0 4px; font-size: 1.12rem; font-weight: 650; }

.install-strip {
  margin-top: 44px;
  padding: 24px 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.install-strip h2 { margin: 3px 0 0; font-size: 1.15rem; }
.install-strip p { margin: 7px 0 0; color: var(--muted); font-size: .82rem; }
.install-strip button,
.range-controls button {
  border: 1px solid rgba(123,215,239,.25);
  background: rgba(123,215,239,.08);
  color: #e8fbff;
  border-radius: 10px;
  padding: 10px 15px;
  cursor: pointer;
}
.install-strip button:hover,
.range-controls button:hover,
.range-controls button.active { background: rgba(123,215,239,.17); border-color: rgba(123,215,239,.45); }

footer {
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: .78rem;
}


/* Finishing release: status freshness + professional condition icon */
.observation-status strong {
  display: block;
}

.observation-status small {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: .7rem;
  font-weight: 500;
}

.weather-orb {
  font-size: 0;
  color: var(--accent);
}

.weather-orb::before {
  content: "";
  width: 42px;
  height: 42px;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Neutral / cloudy */
.weather-orb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237bd7ef' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z'/%3E%3C/svg%3E");
}

/* Bright */
body.weather-bright .weather-orb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1d47a' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
}

/* Rain */
body.weather-rain .weather-orb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237bd7ef' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.5 17H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z'/%3E%3Cpath d='M8 19l-1 2M13 19l-1 2M18 19l-1 2'/%3E%3C/svg%3E");
}

/* Wind */
body.weather-windy .weather-orb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237bd7ef' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 8h11a3 3 0 1 0-3-3M3 12h16a3 3 0 1 1-3 3M3 16h8'/%3E%3C/svg%3E");
}

/* Night */
body.is-night .weather-orb::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9c8ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 14.5A8.5 8.5 0 0 1 9.5 3.5a8.5 8.5 0 1 0 11 11Z'/%3E%3C/svg%3E");
}

.station-health-bar {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.station-health-item {
  min-height: 92px;
  padding: 18px 20px;
  background: #0a1b26;
}

.station-health-item span,
.station-health-item small {
  display: block;
  color: var(--muted);
  font-size: .73rem;
}

.station-health-item strong {
  display: block;
  margin-top: 7px;
  font-size: .98rem;
  font-weight: 650;
}

.station-health-item small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: .69rem;
}

.station-health-item .ok {
  color: #9ee6bd;
}


/* Shared secondary pages */
.page-hero {
  padding: 12px 0 4px;
  max-width: 860px;
}
.page-hero .section-eyebrow { display: inline-block; margin-bottom: 2px; }
.station-page-hero { max-width: 980px; }
.page-hero p { font-size: .95rem; }
.station-story {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.018);
}
.station-story h2 { margin: 0 0 10px; font-size: 1.25rem; }
.station-story > p { color: var(--muted); line-height: 1.72; max-width: 980px; }
.station-specs {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.station-spec { min-height: 94px; padding: 18px; background: #0a1b26; }
.station-spec span { display: block; color: var(--muted); font-size: .73rem; }
.station-spec strong { display: block; margin-top: 7px; font-size: .96rem; font-weight: 630; }
.bottom-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.info-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.018); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; margin-top: 14px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.info-item { min-height: 86px; padding: 17px; background: #0a1b26; }
.info-item span,
.info-item small { display: block; color: var(--muted); font-size: .73rem; }
.info-item strong { display: block; margin-top: 6px; font-size: .9rem; font-weight: 620; }
.info-note { color: var(--muted); line-height: 1.7; margin: 0; }
.range-controls { display: flex; flex-wrap: wrap; gap: 7px; }
.range-controls button { padding: 8px 12px; font-size: .78rem; }
.records-grid-page { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }

/* Legacy class safety */
.glass { background: rgba(255,255,255,.018); border: 1px solid var(--line); }
.tag, .link-tag { color: var(--muted); }
.page-hero.glass { border: 0; background: transparent; }

@media (max-width: 1080px) {
  .station-health-bar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .nav { justify-content: flex-start; }
  .hero-layout { grid-template-columns: 1fr; }
  .station-bar { grid-template-columns: repeat(2, 1fr); }
  .station-status:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .station-status:nth-child(4) { border-top: 1px solid var(--line); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .forecast-grid { grid-template-columns: 1fr; }
  .climate-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .station-specs { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 780px) {
  .station-health-bar { grid-template-columns: 1fr; }
  .shell { width: 100%; margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
  .topbar { padding: 17px 18px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand p { font-size: .74rem; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; -webkit-overflow-scrolling: touch; }
  .nav a { flex: 0 0 auto; padding: 8px 10px; }
  main { padding: 22px 16px 28px; }
  .hero-main-card { padding: 25px 20px; }
  .hero-kicker { align-items: flex-start; flex-direction: column; gap: 6px; }
  .hero-condition { align-items: flex-start; gap: 15px; }
  .weather-orb { width: 72px; height: 72px; flex-basis: 72px; font-size: 2.2rem; }
  .temp { font-size: clamp(4rem, 18vw, 6.4rem); }
  .temp-unit { font-size: 1.45rem; }
  .summary-line { line-height: 1.55; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .hero-stat { min-height: 85px; padding: 15px; }
  .station-bar { grid-template-columns: 1fr; }
  .station-status + .station-status,
  .station-status:nth-child(3),
  .station-status:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .today-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .today-item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .today-item:nth-child(4) { border-top: 1px solid var(--line); }
  .astronomy-strip { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .trend-summary { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-panel { min-height: 160px; }
  .climate-grid { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-wrap { height: 255px; }
  .solar-chart-panel .solar-chart-wrap { height: 145px; }
  .wind-grid { grid-template-columns: 1fr; }
  .records-columns { grid-template-columns: 1fr; }
  .install-strip { align-items: flex-start; flex-direction: column; }
  .bottom-grid { grid-template-columns: 1fr; }
  .station-specs { grid-template-columns: 1fr; }
  .records-grid-page { grid-template-columns: 1fr 1fr; }
  footer {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    gap: 0;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
  }
  footer > span { display: inline-flex; align-items: center; white-space: nowrap; }
  footer > span + span::before { content: " · "; margin: 0 .4em; }
}

@media (max-width: 480px) {
  .brand h1,
.brand .brand-title { font-size: .95rem; letter-spacing: .075em; }
  .brand p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 245px; }
  .hero-condition { display: block; }
  .weather-orb { margin-bottom: 12px; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .today-grid { grid-template-columns: 1fr 1fr; }
  .climate-grid { grid-template-columns: 1fr; }
  .record-list { grid-template-columns: 1fr; }
  .record-list > div:nth-child(odd) { border-right: 0; }
  .record-list > div + div { border-top: 1px solid var(--line); }
  .records-grid-page { grid-template-columns: 1fr; }
}


/* Parknacross Weather v2 */
.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border-radius:10px;border:1px solid var(--line-strong);cursor:pointer;text-decoration:none;font-weight:700}
.primary-button{background:var(--accent);color:#06111b;border-color:var(--accent)}.secondary-button{background:rgba(255,255,255,.04);color:var(--text)}.primary-button:disabled{opacity:.55}
.station-log-link{flex-shrink:0;white-space:nowrap}
.signature-section{padding-top:34px;padding-bottom:34px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.context-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.context-card{min-height:150px;padding:22px;background:#0a1c28}.context-card span,.context-card small{display:block;color:var(--muted)}.context-card span{font-size:.73rem;text-transform:uppercase;letter-spacing:.08em;font-weight:750}.context-card strong{display:block;margin:13px 0 8px;font-size:clamp(1.25rem,2.5vw,1.8rem)}
.feature-links{margin-top:18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.feature-links a{padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.025);text-decoration:none}.feature-links a:hover{border-color:var(--line-strong);background:var(--accent-soft)}.feature-links strong,.feature-links span{display:block}.feature-links span{margin-top:5px;color:var(--muted);font-size:.78rem}
.radar-shell{padding:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface)}.radar-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:16px 18px;border-bottom:1px solid var(--line)}.radar-toolbar strong,.radar-toolbar span{display:block}.radar-toolbar span{color:var(--muted);font-size:.78rem}.radar-controls{display:flex;align-items:center;gap:12px}.radar-controls input{width:min(330px,35vw)}.radar-map{height:min(68vh,720px);min-height:480px}.source-note{padding:13px 16px;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:.76rem;line-height:1.5}.radar-shell .source-note{border-radius:0;border-width:1px 0 0;margin:0}
.two-column-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mini-data-grid{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line);margin-top:20px}.mini-data-grid div{padding:18px 10px 5px 0}.mini-data-grid span{display:block;color:var(--muted);font-size:.75rem}.mini-data-grid strong{display:block;margin-top:6px;font-size:1.25rem}
.rain-hero-grid,.climate-context-grid{display:grid;grid-template-columns:1.35fr repeat(3,minmax(0,.75fr));gap:12px}.rain-primary,.climate-focus{padding:28px;border-radius:var(--radius);border:1px solid var(--line-strong);background:linear-gradient(135deg,rgba(16,38,51,.96),rgba(8,24,34,.98))}.rain-primary>strong,.climate-focus>strong{display:block;margin:12px 0 6px;font-size:clamp(2.4rem,5vw,4.4rem);font-weight:300}.rain-primary p,.climate-focus p{color:var(--muted);line-height:1.5}
.rain-stat-grid,.quality-grid,.coastal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tall-chart{min-height:390px}
.frost-tracker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.frost-tracker-grid .context-card{min-width:0;min-height:150px}.frost-tracker-grid .context-card strong{font-size:clamp(1.15rem,1.9vw,1.8rem);line-height:1.25;overflow-wrap:anywhere}
.event-timeline{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.event-item{display:grid;grid-template-columns:130px 1fr;gap:22px;padding:18px 20px;background:#0a1b26;border-bottom:1px solid var(--line)}.event-item:last-child{border-bottom:0}.event-item time,.event-item p{color:var(--muted);font-size:.8rem}.event-item p{margin:5px 0 0}.empty-state{padding:24px;color:var(--muted);background:#0a1b26}
.tide-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.tide-item{padding:17px;border:1px solid var(--line);border-radius:12px;background:#0a1b26}.tide-item span,.tide-item strong,.tide-item time,.tide-item b{display:block}.tide-item span,.tide-item time{color:var(--muted);font-size:.75rem}.tide-item strong{margin:8px 0 4px}.tide-item b{margin-top:7px;color:var(--accent)}
.camera-placeholder{min-height:420px;display:grid;align-content:center;justify-items:center;padding:40px;border:1px dashed var(--line-strong);border-radius:var(--radius);background:rgba(255,255,255,.02);text-align:center}.camera-placeholder strong{font-size:1.5rem}.camera-placeholder p{max-width:650px;color:var(--muted);line-height:1.6}.camera-placeholder code{color:var(--accent)}.sky-image{display:block;width:100%;max-height:720px;object-fit:cover;border-radius:var(--radius)}.sky-panel .primary-button{margin-top:16px}.history-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1180px){.context-grid,.feature-links{grid-template-columns:repeat(2,1fr)}.rain-hero-grid,.climate-context-grid{grid-template-columns:repeat(2,1fr)}.rain-stat-grid,.quality-grid,.coastal-grid,.tide-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.context-grid,.feature-links,.rain-hero-grid,.climate-context-grid,.frost-tracker-grid,.rain-stat-grid,.quality-grid,.coastal-grid,.tide-list,.two-column-cards{grid-template-columns:1fr}.radar-toolbar{align-items:flex-start;flex-direction:column}.radar-controls{width:100%}.radar-controls input{width:100%;flex:1}.radar-map{min-height:420px;height:60vh}.event-item{grid-template-columns:1fr;gap:6px}.history-actions{justify-content:flex-start}}


/* ============================================================
   v2.1 MOBILE / RESPONSIVE SAFETY
   These rules intentionally come LAST in the stylesheet.
   ============================================================ */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
canvas,
video,
iframe {
  max-width: 100%;
}

canvas {
  display: block;
}

.brand-badge {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.chart-card,
.info-card,
.context-card,
.climate-card,
.rain-primary,
.climate-focus,
.station-story,
.records-panel,
.metric-panel,
.forecast-card {
  min-width: 0;
}

.chart-wrap,
.chart-wrap canvas {
  width: 100% !important;
  max-width: 100% !important;
}

.section-heading > *,
.chart-title > *,
.hero-layout > *,
.hero-condition > *,
.topbar > * {
  min-width: 0;
}

.source-note,
.info-note,
.page-hero p,
.section-heading p,
.context-card small,
.feature-links span,
.station-story p {
  overflow-wrap: anywhere;
}

.nav {
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

/* Tablets */
@media (max-width: 900px) {
  .shell {
    width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .topbar {
    padding: 16px 18px 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    width: 100%;
  }

  .brand-copy,
  .brand > div {
    min-width: 0;
  }

  .brand h1,
.brand .brand-title {
    font-size: 1rem;
    letter-spacing: .085em;
  }

  .brand p {
    max-width: 100%;
    font-size: .72rem;
    line-height: 1.35;
  }

  .nav {
    width: calc(100% + 36px);
    margin: 0 -18px;
    padding: 2px 18px 7px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 10px;
    font-size: .82rem;
  }

  main {
    padding: 20px 16px 30px;
  }

  .today-section,
  .metrics-section,
  .forecast-section,
  .climate-section,
  .trends-section,
  .records-section,
  .page-section {
    margin-top: 34px;
  }

  .page-hero {
    max-width: 100%;
    padding-top: 4px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .context-grid,
  .feature-links,
  .rain-hero-grid,
  .climate-context-grid,
  .rain-stat-grid,
  .quality-grid,
  .coastal-grid,
  .two-column-cards {
    grid-template-columns: 1fr 1fr;
  }

  .tide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .station-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radar-map {
    min-height: 420px;
    height: 58vh;
  }
}

/* Phones */
@media (max-width: 600px) {
  .topbar {
    padding: 14px 14px 10px;
  }

  .brand-mark,
  .brand-badge {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand h1,
.brand .brand-title {
    font-size: .9rem;
    letter-spacing: .07em;
  }

  .brand p {
    margin-top: 3px;
    font-size: .66rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .nav {
    width: calc(100% + 28px);
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav a {
    font-size: .78rem;
    padding: 7px 9px;
  }

  main {
    padding: 16px 12px 26px;
  }


  .hero-main-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .hero-kicker {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: .7rem;
  }

  .hero-layout {
    margin-top: 18px;
  }

  .hero-condition {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .weather-orb {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    margin: 5px 0 0;
  }

  .weather-orb::before {
    width: 32px;
    height: 32px;
  }

  .temp {
    font-size: clamp(3.7rem, 19vw, 5.4rem);
    letter-spacing: -.06em;
  }

  .temp-unit {
    padding-left: 6px;
    padding-top: 5px;
    font-size: 1.22rem;
  }

  .condition-line {
    gap: 7px;
    margin-top: 8px;
    font-size: .9rem;
  }

  .summary-line {
    gap: 5px 7px;
    margin-top: 10px;
    font-size: .82rem;
    line-height: 1.5;
  }

  .hero-side {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat {
    min-height: 78px;
    padding: 12px;
  }

  .hero-stat span {
    font-size: .66rem;
  }

  .hero-stat strong {
    margin-top: 5px;
    font-size: .92rem;
  }

  .station-bar,
  .station-health-bar {
    grid-template-columns: 1fr;
  }

  .station-status {
    min-height: 60px;
    padding: 12px 14px;
  }

  .station-status + .station-status,
  .station-status:nth-child(3),
  .station-status:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .today-grid {
    grid-template-columns: 1fr 1fr;
  }

  .today-item {
    padding: 14px;
  }

  .today-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .today-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .astronomy-strip,
  .metric-grid,
  .forecast-grid,
  .climate-grid,
  .chart-grid,
  .wind-grid,
  .records-columns,
  .bottom-grid,
  .station-specs,
  .records-grid-page,
  .context-grid,
  .feature-links,
  .rain-hero-grid,
  .climate-context-grid,
  .rain-stat-grid,
  .quality-grid,
  .coastal-grid,
  .two-column-cards,
  .tide-list {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .chart-title,
  .radar-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .section-heading h2,
  .page-hero h2,
  .page-hero h1 {
    font-size: 1.42rem;
  }

  .section-heading p,
  .page-hero p {
    font-size: .86rem;
    line-height: 1.55;
  }

  .text-link {
    white-space: normal;
  }

  .metric-panel,
  .context-card,
  .climate-card {
    min-height: 0;
  }

  .metric-panel,
  .info-card,
  .station-story,
  .records-panel {
    padding: 18px 16px;
  }

  .context-card {
    padding: 17px 16px;
  }

  .context-card strong {
    font-size: 1.35rem;
  }

  .feature-links a {
    padding: 14px 15px;
  }

  .rain-primary,
  .climate-focus {
    padding: 21px 17px;
  }

  .rain-primary > strong,
  .climate-focus > strong {
    font-size: 2.8rem;
  }

  .chart-card {
    padding: 16px 12px;
    overflow: hidden;
  }

  .chart-wrap {
    height: 235px;
    min-width: 0;
  }
  .solar-chart-panel .solar-chart-wrap { height: 140px; }

  .tall-chart {
    min-height: 280px;
    height: 280px;
  }

  .range-controls {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .range-controls::-webkit-scrollbar {
    display: none;
  }

  .range-controls button {
    flex: 0 0 auto;
  }

  .history-actions {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }

  .history-actions .secondary-button {
    width: 100%;
  }

  .radar-controls {
    width: 100%;
    gap: 9px;
  }

  .radar-controls input {
    min-width: 0;
    width: 100%;
    flex: 1;
  }

  .radar-map {
    min-height: 360px;
    height: 55vh;
  }

  .event-item {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 15px;
  }

  .camera-placeholder {
    min-height: 300px;
    padding: 28px 18px;
  }

  .camera-placeholder strong {
    font-size: 1.25rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-item {
    min-height: 0;
  }

  footer {
    padding: 14px 8px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: .68rem;
    white-space: nowrap;
    overflow: hidden;
  }

  /* Compact mobile wording keeps the footer readable on one line. */
  footer > span:nth-child(2) { font-size: 0; }
  footer > span:nth-child(2)::before { font-size: .68rem; }
  footer > span:nth-child(2)::after { content: "Ardamine, Co. Wexford"; font-size: .68rem; }
  footer > span:nth-child(3) a { font-size: 0; }
  footer > span:nth-child(3) a::after { content: "Email"; font-size: .68rem; }
}

/* Narrow phones */
@media (max-width: 390px) {
  footer { padding-left: 6px; padding-right: 6px; font-size: .62rem; }
  footer > span:nth-child(2)::before { font-size: .62rem; }
  footer > span:nth-child(2)::after { content: "Ardamine"; font-size: .62rem; }
  footer > span:nth-child(3) a::after { font-size: .62rem; }
  main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand h1,
.brand .brand-title {
    font-size: .84rem;
  }

  .brand p {
    font-size: .62rem;
  }

  .hero-main-card {
    padding-left: 13px;
    padding-right: 13px;
  }

  .hero-condition {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 9px;
  }

  .weather-orb {
    width: 50px;
    height: 50px;
  }

  .weather-orb::before {
    width: 28px;
    height: 28px;
  }

  .temp {
    font-size: 3.6rem;
  }

  .hero-side,
  .today-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat:nth-child(odd),
  .today-item + .today-item {
    border-left: 0;
  }

  .hero-stat + .hero-stat,
  .today-item + .today-item {
    border-top: 1px solid var(--line);
  }

  .chart-wrap {
    height: 215px;
  }
  .solar-chart-panel .solar-chart-wrap { height: 135px; }

  .station-spec,
  .station-health-item {
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* ============================================================
   MET ÉIREANN WARNING BANNER — v2.2
   Final authoritative rules; intentionally last in stylesheet.
   ============================================================ */
.warning-banner {
  --warning-bg: #f3c84b;
  --warning-fg: #1b2430;
  --warning-soft: rgba(27, 36, 48, .10);
  --warning-line: rgba(27, 36, 48, .24);

  position: relative;
  z-index: 50;
  width: 100%;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--warning-bg);
  color: var(--warning-fg);
  border-bottom: 1px solid var(--warning-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.warning-banner.level-yellow {
  --warning-bg: #f3c84b;
  --warning-fg: #1b2430;
  --warning-soft: rgba(27, 36, 48, .10);
  --warning-line: rgba(27, 36, 48, .24);
}

.warning-banner.level-orange {
  --warning-bg: #ee8b32;
  --warning-fg: #24170c;
  --warning-soft: rgba(36, 23, 12, .10);
  --warning-line: rgba(36, 23, 12, .24);
}

.warning-banner.level-red {
  --warning-bg: #b4232d;
  --warning-fg: #ffffff;
  --warning-soft: rgba(255, 255, 255, .12);
  --warning-line: rgba(255, 255, 255, .28);
}

.warning-inner {
  width: min(1400px, calc(100% - 36px));
  min-height: 76px;
  margin: 0 auto;
  padding: 13px 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.warning-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  align-self: start;
  margin-top: 1px;
  border: 1px solid var(--warning-line);
  border-radius: 11px;
  background: var(--warning-soft);
  color: currentColor;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.warning-copy {
  min-width: 0;
}

.warning-heading-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 9px;
  margin-bottom: 4px;
}

.warning-level-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 3px 8px;
  border: 1px solid var(--warning-line);
  border-radius: 999px;
  background: var(--warning-soft);
  color: currentColor;
  font-size: .66rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.warning-source {
  font-size: .70rem;
  font-weight: 750;
  opacity: .70;
  letter-spacing: .02em;
}

.warning-copy strong {
  display: block;
  color: currentColor;
  font-size: .98rem;
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -.01em;
}

.warning-timing,
.warning-description {
  max-width: 1000px;
  margin: 0;
  color: currentColor;
  overflow-wrap: anywhere;
}

.warning-timing {
  margin-top: 4px;
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.35;
  opacity: .80;
}

.warning-description {
  margin-top: 3px;
  font-size: .82rem;
  font-weight: 550;
  line-height: 1.42;
  opacity: .92;
}

.warning-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--warning-line);
  border-radius: 10px;
  background: var(--warning-soft);
  color: currentColor;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background .16s ease,
    transform .16s ease;
}

.warning-link:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.warning-banner.level-yellow .warning-link:hover,
.warning-banner.level-orange .warning-link:hover {
  background: rgba(27, 36, 48, .16);
}


/* A marine banner can sit immediately below a county weather warning.
   Only the first visible banner should consume the device safe-area inset. */
.marine-warning-banner.stacked-warning {
  padding-top: 0;
  box-shadow: none;
  border-top: 1px solid var(--warning-line);
}

@media (max-width: 700px) {
  .warning-inner {
    width: 100%;
    padding: 12px 14px 13px;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 10px 11px;
  }

  .warning-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .warning-heading-row {
    gap: 6px 8px;
    margin-bottom: 5px;
  }

  .warning-copy strong {
    font-size: .92rem;
  }

  .warning-timing {
    font-size: .73rem;
  }

  .warning-description {
    font-size: .79rem;
    line-height: 1.45;
  }

  .warning-link {
    grid-column: 2;
    justify-self: start;
    min-height: 34px;
    margin-top: 1px;
    padding: 7px 10px;
    font-size: .73rem;
    white-space: normal;
  }
}

@media (max-width: 390px) {
  .warning-inner {
    padding-left: 11px;
    padding-right: 11px;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 9px;
  }

  .warning-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    font-size: .95rem;
  }

  .warning-level-badge {
    font-size: .61rem;
  }

  .warning-source {
    font-size: .65rem;
  }

  .warning-copy strong {
    font-size: .88rem;
  }

  .warning-description {
    font-size: .76rem;
  }
}


/* ============================================================
   MOBILE LIVE STATUS DOT FIX
   Keep the status dot in its own reserved space on phones.
   ============================================================ */
@media (max-width: 600px) {
  .station-status.live-pill {
    position: relative;
    padding-left: 42px;
  }

  .station-status.live-pill .live-dot {
    left: 15px;
    top: 50%;
    margin-top: -4.5px;
  }

  .station-status.live-pill #liveText {
    display: block;
    min-width: 0;
    line-height: 1.25;
  }
}

@media (max-width: 390px) {
  .station-status.live-pill {
    padding-left: 40px;
  }

  .station-status.live-pill .live-dot {
    left: 14px;
  }
}


/* ============================================================
   MOBILE CURRENT-WEATHER ICON FIX
   Clean alignment beside the large temperature on phones.
   Desktop styling remains unchanged.
   ============================================================ */
@media (max-width: 600px) {
  .hero-condition {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    column-gap: 10px;
  }

  .weather-orb {
    width: 46px;
    height: 54px;
    min-width: 46px;
    margin: 3px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .weather-orb::before {
    width: 36px;
    height: 36px;
    margin-top: 3px;
    flex: 0 0 36px;
  }

  .temp-row {
    min-width: 0;
    align-items: flex-start;
  }

  .temp {
    line-height: .9;
  }

  .temp-unit {
    flex: 0 0 auto;
  }
}

@media (max-width: 390px) {
  .hero-condition {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 8px;
  }

  .weather-orb {
    width: 40px;
    min-width: 40px;
    height: 48px;
    margin-top: 2px;
  }

  .weather-orb::before {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    margin-top: 2px;
  }
}


/* ============================================================
   SINGLE WEATHER ICON — desktop and mobile
   The icon is drawn only by .weather-orb::before.
   Prevent any emoji/text fallback from becoming visible.
   ============================================================ */
.weather-orb {
  font-size: 0 !important;
  line-height: 0;
}

@media (max-width: 600px) {
  .weather-orb {
    font-size: 0 !important;
    line-height: 0;
  }
}

@media (max-width: 390px) {
  .weather-orb {
    font-size: 0 !important;
    line-height: 0;
  }
}



/* ============================================================
   DASHBOARD COASTAL THUMBNAIL
   ============================================================ */
.hero-top-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: 28px;
}

.hero-top-row .hero-kicker {
  min-width: 0;
}

.dashboard-thumb {
  position: relative;
  width: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #0a1b26;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}

.dashboard-thumb img {
  display: block;
  width: 100%;
  height: 94px;
  object-fit: cover;
}

.dashboard-thumb figcaption {
  position: absolute;
  right: 8px;
  bottom: 7px;
  max-width: calc(100% - 16px);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(4, 15, 23, .76);
  color: rgba(255,255,255,.94);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .01em;
  backdrop-filter: blur(6px);
}

@media (max-width: 900px) {
  .hero-top-row {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
  }

  .dashboard-thumb {
    width: 220px;
  }

  .dashboard-thumb img {
    height: 86px;
  }
}

@media (max-width: 700px) {
  .hero-top-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dashboard-thumb {
    width: 100%;
    max-width: none;
  }

  .dashboard-thumb img {
    width: 100%;
    height: 128px;
  }

  .dashboard-thumb figcaption {
    font-size: .68rem;
  }

  .hero-layout {
    margin-top: 18px;
  }
}

@media (max-width: 390px) {
  .dashboard-thumb img {
    height: 112px;
  }
}


/* v34: dormant lightning detector panel; JS only reveals it after real sensor data arrives. */
.lightning-panel {
  margin-top: 16px;
  padding: 15px 18px;
  border: 1px solid rgba(118,201,238,.22);
  border-radius: var(--radius);
  background: rgba(118,201,238,.035);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.lightning-panel[hidden] { display: none !important; }
.lightning-panel > div:first-child { min-width: 190px; }
.lightning-panel strong { display: block; margin-top: 3px; }
.lightning-panel small { display: block; margin-top: 3px; color: var(--muted); }
.lightning-stats { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.lightning-stats span { color: var(--muted); font-size: .78rem; }
.lightning-stats span strong { display: inline; margin: 0 0 0 5px; color: var(--text); font-size: .88rem; }
.since-visit-panel{display:grid;grid-template-columns:minmax(190px,.35fr) 1fr;gap:22px;align-items:center;margin:18px 0;padding:18px 22px;border:1px solid rgba(116,221,255,.24);border-radius:var(--radius);background:linear-gradient(110deg,rgba(116,221,255,.08),rgba(110,241,203,.035))}.since-visit-panel[hidden]{display:none!important}.since-visit-panel h2{margin:3px 0 0;font-size:1.1rem}.since-visit-panel p{margin:0;color:var(--muted);line-height:1.65}.soil-event{margin:.55rem 0 0;color:var(--accent);font-weight:650}.weather-card-action{display:grid;justify-items:end;gap:5px;min-width:0}.weather-card-action small{display:block;max-width:260px;color:var(--muted);font-size:.72rem;line-height:1.4;text-align:right;overflow-wrap:anywhere}
@media(max-width:680px){.since-visit-panel{grid-template-columns:1fr;gap:8px}.weather-card-action{justify-items:stretch}.weather-card-action small{text-align:left}}
@media(max-width:780px){
  .lightning-panel { align-items: flex-start; flex-direction: column; }
  .lightning-stats { justify-content: flex-start; gap: 12px 20px; }
}

/* Garden-soil summary: hidden until a genuine sensor value is received. */
.soil-panel{margin-top:16px;padding:22px;border:1px solid rgba(101,209,154,.25);border-radius:var(--radius);background:linear-gradient(135deg,rgba(101,209,154,.07),rgba(123,215,239,.025))}
.soil-panel[hidden]{display:none!important}.soil-panel-copy h2{margin:5px 0 4px}.soil-panel-copy p,.soil-note{color:var(--muted);line-height:1.55}.soil-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.soil-stats>div{padding:15px;border:1px solid var(--line);border-radius:var(--radius-sm);background:rgba(7,19,31,.42)}.soil-stats span,.soil-stats small{display:block;color:var(--muted);font-size:.74rem}.soil-stats strong{display:block;margin:7px 0 4px;font-size:1.12rem}.soil-note{margin:14px 0 0;font-size:.75rem}
.soil-heading-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.soil-heading-row h2{margin-right:auto}.soil-baseline-note{margin:.35rem 0 0;font-size:.78rem}.soil-baseline-note[hidden],#soilBaselineBadge[hidden]{display:none!important}
@media(max-width:700px){.soil-stats{grid-template-columns:1fr}.soil-panel{padding:18px}}

/* v34 History calendar + event diary */
.archive-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.archive-calendar-toolbar button{border:1px solid var(--line);background:rgba(255,255,255,.025);color:var(--text);border-radius:10px;padding:8px 12px;cursor:pointer}
.archive-calendar-title{font-weight:700}
.archive-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;overflow:hidden}
.archive-calendar .cal-head{padding:8px 4px;text-align:center;color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;background:rgba(255,255,255,.02)}
.archive-day{min-height:76px;border:0;border-top:1px solid var(--line);border-right:1px solid var(--line);background:rgba(255,255,255,.012);color:var(--text);padding:8px;text-align:left;cursor:pointer}
.archive-day:nth-child(7n){border-right:0}.archive-day.empty{cursor:default;background:transparent}.archive-day.has-data:hover,.archive-day.active{background:rgba(118,201,238,.075)}
.archive-day .day-num{font-weight:750}.archive-day small{display:block;color:var(--muted);margin-top:7px;line-height:1.35}.archive-day.no-data{opacity:.38;cursor:default}
.day-detail-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0}
.day-detail-stat{border:1px solid var(--line);border-radius:12px;padding:12px;background:rgba(255,255,255,.016)}
.day-detail-stat span,.day-detail-stat small{display:block;color:var(--muted);font-size:.72rem}.day-detail-stat strong{display:block;margin-top:5px;font-size:1rem}
.day-detail-chart{height:230px}
.weather-diary{display:grid;gap:9px}
.weather-event{display:grid;grid-template-columns:110px 1fr auto;gap:14px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.014)}
.weather-event time{color:var(--muted);font-size:.76rem}.weather-event strong{display:block}.weather-event small{color:var(--muted)}.event-type{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--accent)}
@media(max-width:900px){.day-detail-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.archive-day{min-height:58px;padding:6px}.archive-day small{font-size:.62rem}.day-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weather-event{grid-template-columns:1fr}.event-type{justify-self:start}}


/* v36 reliability, accessibility, alerts and archive polish */
.skip-link{
  position:fixed;left:12px;top:12px;z-index:100000;
  transform:translateY(-180%);
  padding:10px 14px;border-radius:10px;
  background:#ffffff;color:#07131f;font-weight:800;text-decoration:none;
}
.skip-link:focus{transform:translateY(0)}
:where(a,button,input,select,textarea):focus-visible{
  outline:3px solid #7bd7ef;
  outline-offset:3px;
}
.offline-banner{
  position:sticky;top:0;z-index:9999;
  margin:0 auto;
  padding:9px 14px;
  text-align:center;
  background:#563d16;
  color:#fff3d6;
  border-bottom:1px solid rgba(255,255,255,.18);
  font-size:.82rem;
  font-weight:700;
}
.offline-banner[hidden]{display:none!important}
html.is-offline .live-pill{opacity:.78}

.today-item small{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.35;
}

.alert-settings-panel{overflow:visible}
.alert-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.alert-options label{
  display:flex;
  align-items:flex-start;
  gap:11px;
  min-width:0;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.015);
  cursor:pointer;
}
.alert-options label span{min-width:0}
.alert-options label strong,
.alert-options label small{display:block}
.alert-options label small{
  margin-top:4px;
  color:var(--muted);
  line-height:1.4;
  font-size:.76rem;
}
.alert-options input{margin-top:3px;accent-color:#7bd7ef}
.alert-lightning-option{justify-content:space-between;align-items:center!important;cursor:default!important}
.alert-lightning-option select{
  max-width:155px;
  border:1px solid var(--line);
  border-radius:9px;
  padding:8px 9px;
  background:var(--surface-2);
  color:var(--text);
}
.maintenance-log{display:grid;gap:10px}
.maintenance-entry{
  display:grid;
  grid-template-columns:150px 1fr;
  gap:18px;
  align-items:start;
  padding:15px 16px;
  border:1px solid var(--line);
  border-radius:13px;
  background:rgba(255,255,255,.014);
}
.maintenance-entry time{color:var(--muted);font-size:.8rem}
.maintenance-entry strong{display:block;margin:4px 0 5px}
.maintenance-entry p{margin:0;color:var(--muted);line-height:1.5;font-size:.84rem}

.report-controls{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0 16px;
}
.report-controls select{
  border:1px solid var(--line);border-radius:10px;padding:9px 12px;
  background:var(--surface-2);color:var(--text);
}
.report-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
}
.report-card{
  padding:14px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.015)
}
.report-card span,.report-card small{display:block;color:var(--muted)}
.report-card span{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em}
.report-card strong{display:block;margin:6px 0 4px;font-size:1.06rem}
.report-card small{font-size:.75rem;line-height:1.35}

.uptime-targets{display:grid;gap:8px;margin-top:12px}
.uptime-target{
  display:flex;justify-content:space-between;gap:12px;align-items:center;
  padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.014)
}
.uptime-target code{font-size:.76rem;color:var(--muted);overflow-wrap:anywhere}

.coastal-context-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px
}

@media(max-width:760px){
  .alert-options{grid-template-columns:1fr}
  .maintenance-entry{grid-template-columns:1fr;gap:6px}
  .report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .coastal-context-grid{grid-template-columns:1fr}
}
@media(max-width:500px){
  .report-grid{grid-template-columns:1fr}
  .uptime-target{align-items:flex-start;flex-direction:column}
}

/* Respect the user's operating-system motion preference everywhere. */
@media (prefers-reduced-motion: reduce){
  html:focus-within{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
}


/* v37 — universal secondary navigation */
.nav-more { position: relative; flex: 0 0 auto; }
.nav-more-button {
  appearance: none; border: 0; font: inherit; cursor: pointer;
  color: #b9c9d3; background: transparent; font-size: .9rem;
  padding: 9px 12px; border-radius: 9px;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.nav-more-button:hover,.nav-more-button:focus-visible,.nav-more-button.nav-more-active,
.nav-more-button[aria-expanded="true"] { color:#fff; background:rgba(123,215,239,.09); }
.nav-more-menu {
  position: fixed; z-index: 10050; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 5px;
  padding: 7px; border: 1px solid var(--line-strong); border-radius: 13px;
  background: #0a1b26; box-shadow: 0 18px 50px rgba(0,0,0,.42);
  max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain;
}
.nav-more-menu[hidden] { display:none !important; }
.nav-more-menu a {
  display:flex; align-items:center; min-width:0; padding:8px 10px;
  border-radius:8px; color:#b9c9d3; text-decoration:none;
  font-size:.82rem; line-height:1.2; white-space:normal;
  transition:background .18s ease,color .18s ease;
}
.nav-more-menu a:visited { color:#b9c9d3; }
.nav-more-menu a:hover,.nav-more-menu a:focus-visible {
  background:rgba(123,215,239,.09); color:#fff;
}
.nav-more-menu a.active,.nav-more-menu a.active:visited,
.nav-more-menu a.active:hover,.nav-more-menu a.active:focus-visible { background:rgba(123,215,239,.12); color:#fff; }
@media(max-width:900px){.nav-more-button{font-size:.82rem;padding:8px 10px}}
@media(max-width:560px){.nav-more-button{font-size:.78rem;padding:7px 9px}}

/* v38.4.60 — clear chart coverage and mobile range controls */
.graph-coverage{color:var(--accent);font-weight:650;margin:.35rem 0}
.coverage-badge{
  display:inline-flex;align-items:center;width:max-content;margin-top:5px;
  padding:5px 9px;border:1px solid rgba(242,191,103,.42);border-radius:999px;
  background:rgba(242,191,103,.08);color:var(--amber);font-size:.7rem;font-weight:780;
  letter-spacing:.035em;text-transform:uppercase
}
.coverage-badge[hidden]{display:none!important}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:760px){
  .graph-range-heading{align-items:stretch}
  .graph-range-controls{position:sticky;top:6px;z-index:40;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;padding:7px;background:rgba(7,19,31,.96);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.22);backdrop-filter:blur(10px)}
  .graph-range-controls button{min-width:0;padding:10px 4px;touch-action:manipulation}
  .v2-chart-grid .chart-card{scroll-margin-top:70px}
  .nav{
    padding-inline:12px 18px;
    box-shadow:inset -13px 0 11px -13px rgba(123,215,239,.85);
  }
  .trends-section .section-heading{align-items:flex-start;flex-direction:column;gap:9px}
  .trends-section .text-link{white-space:normal}
}

/* v38.4.64 — clear placeholders while archive panels are loading. */
.loading-placeholder{
  color:transparent!important;
  min-width:3.5em;
  border-radius:7px;
  background:linear-gradient(90deg,rgba(255,255,255,.045),rgba(123,215,239,.13),rgba(255,255,255,.045));
  background-size:220% 100%;
  animation:placeholder-shimmer 1.5s ease-in-out infinite;
}
@keyframes placeholder-shimmer{to{background-position:-220% 0}}
@media(prefers-reduced-motion:reduce){.loading-placeholder{animation:none;background:rgba(123,215,239,.09)}}

.pwa-diagnostics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.pwa-diagnostic{display:flex;flex-direction:column;min-width:0;min-height:112px;padding:16px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.014)}
.pwa-diagnostic span,.pwa-diagnostic small{display:block;color:var(--muted);font-size:.72rem;line-height:1.4}
.pwa-diagnostic span{font-weight:700;letter-spacing:.055em;text-transform:uppercase}
.pwa-diagnostic strong{display:block;margin:7px 0;font-size:1.05rem;line-height:1.3;overflow-wrap:anywhere}
.pwa-diagnostic small{margin-top:auto}
@media(max-width:760px){.pwa-diagnostics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.pwa-diagnostics{grid-template-columns:1fr}}

/* Keep the two archive overview charts useful without dominating desktop pages. */
@media(min-width:761px){
  #rainDailyChart,#climateMonthlyChart{max-height:390px}
  #rainDailyChart[height],#climateMonthlyChart[height]{height:390px!important}
}

/* v37 — consistent provenance badges */
.source-badge {
  display:inline-flex; align-items:center; gap:5px; width:max-content;
  padding:4px 8px; border:1px solid var(--line); border-radius:999px;
  font-size:.64rem; line-height:1; font-weight:760; letter-spacing:.055em;
  text-transform:uppercase; white-space:nowrap;
}
.source-badge::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; opacity:.85; }
.source-observed { color:#78e6c7; background:rgba(120,230,199,.055); }
.source-official { color:#7ecfff; background:rgba(126,207,255,.055); }
.source-modelled { color:#c7a6ff; background:rgba(199,166,255,.055); }

/* v38.4.13 — preserve provenance colours inside cards.
 * Earlier .climate-card span / .context-card span rules were more specific
 * and unintentionally forced these badges back to the generic muted grey. */
.climate-card .source-badge.source-observed,
.context-card .source-badge.source-observed { color:#78e6c7; background:rgba(120,230,199,.055); }
.climate-card .source-badge.source-official,
.context-card .source-badge.source-official { color:#7ecfff; background:rgba(126,207,255,.055); }
.climate-card .source-badge.source-modelled,
.context-card .source-badge.source-modelled { color:#c7a6ff; background:rgba(199,166,255,.055); }
.source-badge-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.card-source { margin-top:8px; }

/* v37 — archive search + completeness heatmap */
.archive-search { display:flex; align-items:end; gap:9px; flex-wrap:wrap; }
.archive-day-navigation{display:flex;justify-content:space-between;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.archive-day-navigation button{padding:8px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface-2);color:var(--text);font:inherit;cursor:pointer}
.archive-day-navigation button:disabled{opacity:.4;cursor:not-allowed}
.archive-search label { display:grid; gap:5px; color:var(--muted); font-size:.72rem; }
.archive-search input {
  min-height:38px; padding:8px 10px; border-radius:9px; border:1px solid var(--line);
  background:#091a25; color:var(--text); color-scheme:dark;
}
.archive-search button { min-height:38px; }
.archive-search-status { margin-top:8px; color:var(--muted); font-size:.76rem; }
.archive-heatmap-wrap { overflow-x:auto; padding-bottom:6px; }
.archive-heatmap {
  display:grid; grid-auto-flow:column; grid-template-rows:repeat(7,28px);
  grid-auto-columns:28px; gap:3px; width:max-content; min-width:100%; align-content:start;
}
.heatmap-day { width:28px; height:28px; border:0; border-radius:3px; background:rgba(255,255,255,.025); padding:0; cursor:default; }
.heatmap-day.has-data { cursor:pointer; outline:1px solid rgba(255,255,255,.035); }
.heatmap-day.level-1 { background:rgba(116,221,255,.18); }
.heatmap-day.level-2 { background:rgba(116,221,255,.34); }
.heatmap-day.level-3 { background:rgba(116,221,255,.56); }
.heatmap-day.level-4 { background:rgba(110,241,203,.72); }
.heatmap-day.current { box-shadow:0 0 0 1px #fff inset; }
.heatmap-day.selected { box-shadow:0 0 0 2px #fff; }
.heatmap-legend { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:10px; color:var(--muted); font-size:.7rem; }
.heatmap-legend span { display:inline-flex; align-items:center; gap:5px; }
.heatmap-legend i { width:10px; height:10px; border-radius:2px; display:inline-block; }

/* v37 — rain event analytics */
.rain-event-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.rain-events-list { display:grid; gap:8px; margin-top:12px; }
.rain-event-row {
  display:grid; grid-template-columns:minmax(145px,.8fr) 1fr 1fr 1fr; gap:12px;
  align-items:center; padding:11px 13px; border:1px solid var(--line); border-radius:11px;
  background:rgba(255,255,255,.014);
}
.rain-event-row span { color:var(--muted); font-size:.74rem; }
.rain-event-row strong { font-size:.85rem; }

/* v37 — historical wind rose */
.wind-rose-wrap { height:330px; max-width:520px; margin:0 auto; }
.wind-rose-meta { text-align:center; margin-top:8px; color:var(--muted); font-size:.75rem; }

@media(max-width:780px){
  .rain-event-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rain-event-row{grid-template-columns:1fr 1fr}.rain-event-row span:first-child{grid-column:1/-1}
  .archive-search{align-items:stretch}.archive-search label{flex:1 1 180px}.archive-search input{width:100%}
}
@media(max-width:480px){.rain-event-summary{grid-template-columns:1fr}.rain-event-row{grid-template-columns:1fr}}

/* v38.4.5 — shared wind rose on Dashboard and Graphs */
.wind-card > .wind-readout { margin-top:14px; }


/* v38.4.20 — footer contact + social links */
footer .footer-links {
  display: inline-flex;
  align-items: center;
  gap: .45em;
}
footer .footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
footer .footer-links a:hover,
footer .footer-links a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  footer {
    flex-wrap: wrap;
    white-space: normal;
    overflow: visible;
    gap: 6px 10px;
  }
  footer > span {
    white-space: nowrap;
  }
  footer > span + span::before {
    content: none;
    margin: 0;
  }
  footer > span:nth-child(2) {
    flex-basis: 100%;
    justify-content: center;
    order: 2;
  }
  footer > span:first-child,
  footer > .footer-links {
    order: 1;
  }
  footer > .footer-links::before {
    content: "·";
    margin-right: .15em;
  }
}

/* v38.4.65 — concise privacy page and chart highlights */
.privacy-summary{padding-bottom:0}
.privacy-summary .info-card{border-color:rgba(101,209,154,.28);background:linear-gradient(135deg,rgba(101,209,154,.07),rgba(123,215,239,.035))}
.friendly-list{display:grid;gap:9px;margin:16px 0 0;padding:0;list-style:none;color:var(--muted)}
.friendly-list li{position:relative;padding-left:25px}
.friendly-list li::before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:800}
.privacy-details{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.privacy-details summary{cursor:pointer;color:var(--text);font-weight:700}
.privacy-details p{color:var(--muted);line-height:1.7}
.privacy-updated{margin:18px 0 0;color:var(--muted-2);font-size:.75rem}
.chart-highlights{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0 20px;padding:0;list-style:none}
.chart-highlights li{padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.02)}
.chart-highlights span,.chart-highlights strong{display:block}
.chart-highlights span{color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.04em}
.chart-highlights strong{margin-top:4px;font-size:.88rem}
.chart-guide{align-self:start}.chart-guide h2{margin-bottom:12px}.chart-guide ul{display:grid;gap:8px;margin:0;padding-left:20px;color:var(--muted);line-height:1.55}.chart-guide li::marker{color:var(--accent)}
@media(max-width:900px){.chart-highlights{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.chart-highlights{grid-template-columns:1fr}}

/* v38.4.66 — sea/swim overview and shareable report controls */
.swim-overview{padding-bottom:0}
.swim-overview .info-card{border-color:rgba(123,215,239,.3);background:linear-gradient(135deg,rgba(123,215,239,.075),rgba(101,209,154,.035))}
.swim-summary{margin:12px 0 0;max-width:none;color:var(--text);font-size:clamp(1rem,2vw,1.18rem);line-height:1.7}
.action-status{min-height:1.4em;margin:8px 0 0;color:var(--muted);font-size:.78rem}
@media print{
  .topbar,.report-controls,.back-links,footer,.pwa-update-banner,.offline-banner{display:none!important}
  body,.shell,.page-section,.info-card,.climate-card{background:#fff!important;color:#111!important;box-shadow:none!important}
  .shell{width:100%;margin:0;border:0}.page-hero,main{padding:12px!important}
  .monthly-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .info-note,.monthly-note,.climate-card span,.climate-card small{color:#444!important}
}

/* v38.4.73 — Weather Intelligence Lab styling */
.storm-active{color:#fff!important;background:rgba(241,127,127,.16)!important;border-color:rgba(241,127,127,.5)!important}
.weather-story{margin-top:16px;padding:16px 18px;border-left:3px solid var(--accent);border-radius:0 12px 12px 0;background:rgba(123,215,239,.05);line-height:1.7}

.sky-name-controls summary{cursor:pointer;color:var(--accent);font-weight:750;list-style-position:inside}
.sky-name-controls[open] summary{margin-bottom:8px}
.sky-name-controls label{display:block;color:var(--muted);font-size:.78rem;margin-bottom:6px}
.sky-observation-media{display:grid;place-items:center}.sky-page-photo{position:relative;width:min(100%,960px);margin:0 auto;overflow:hidden;border-radius:14px;background:rgba(255,255,255,.035)}.sky-page-photo .sky-image{display:block;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;object-fit:contain;border-radius:14px}.sky-page-photo .today-sky-caption{position:absolute;inset:10px 12px auto 12px;z-index:2;display:flex;justify-content:flex-end;width:auto;max-width:none;margin:0;padding:0;background:transparent;pointer-events:none}.sky-page-photo .today-sky-caption-pill{display:inline-block;flex:0 1 auto;width:auto;max-width:100%;min-width:0;margin:0;padding:7px 10px;box-sizing:border-box;border-radius:9px;background:rgba(7,19,31,.83);color:#eaf4fb;font-size:.82rem;line-height:1.4;text-align:left;overflow-wrap:anywhere;white-space:normal;backdrop-filter:blur(6px)}
.wear-forecast-note{margin:12px 0 0;padding:12px 15px;border-left:3px solid var(--accent);border-radius:0 10px 10px 0;background:rgba(123,215,239,.07);color:var(--text);line-height:1.55}.wear-forecast-note[hidden]{display:none!important}
@media (max-width: 390px) {
  footer {
    font-size: .68rem;
  }
  footer > span:first-child {
    flex-basis: 100%;
    justify-content: center;
  }
  footer > .footer-links::before {
    content: none;
  }
}


/* v38.4.21 — definitive footer regression fix
   Social/contact links are now a <nav>, so legacy rules aimed at a third
   footer <span> can never rename Facebook or X to "Email". */
footer > .footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45em;
  white-space: nowrap;
  min-width: 0;
}
footer > .footer-links a {
  display: inline !important;
  font-size: inherit !important;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
footer > .footer-links a::before,
footer > .footer-links a::after {
  content: none !important;
  display: none !important;
}
footer > .footer-links a:hover,
footer > .footer-links a:focus-visible {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 761px) {
  footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 22px;
    white-space: normal;
    overflow: visible;
  }
  footer > span:first-child { justify-self: start; white-space: nowrap; }
  footer > span:nth-child(2) { justify-self: center; text-align: center; white-space: normal; }
  footer > .footer-links { justify-self: end; }
  footer > span + span::before,
  footer > .footer-links::before { content: none !important; }
}

@media (max-width: 760px) {
  footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px 10px;
    white-space: normal;
    overflow: visible;
    text-align: center;
  }
  footer > span:first-child,
  footer > .footer-links {
    order: 1;
  }
  footer > span:nth-child(2) {
    order: 2;
    flex-basis: 100%;
    justify-content: center;
  }
  footer > .footer-links::before {
    content: "·" !important;
    display: inline !important;
    margin-right: .15em;
  }
}

@media (max-width: 390px) {
  footer > span:first-child {
    flex-basis: 100%;
    justify-content: center;
  }
  footer > .footer-links::before {
    content: none !important;
    display: none !important;
  }
}

/* v38.4.22 — canonical footer: one Email · Facebook · X set only */
footer > .footer-links {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .45em !important;
  white-space: nowrap !important;
  min-width: 0;
}
footer > .footer-links a {
  display: inline !important;
  font-size: inherit !important;
  color: inherit !important;
  text-decoration: none;
  white-space: nowrap !important;
}
footer > .footer-links a::before,
footer > .footer-links a::after,
footer > .footer-links::before,
footer > .footer-links::after {
  content: none !important;
  display: none !important;
}
footer > .footer-links a:hover,
footer > .footer-links a:focus-visible {
  color: var(--text) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Disable obsolete mobile-only footer-link relabelling from older releases. */
footer > span:nth-child(3) a,
footer > span:nth-child(3) a::after {
  font-size: inherit !important;
}
footer > span:nth-child(3) a::after {
  content: none !important;
  display: none !important;
}


/* v38.4.23 — static-only footer. Social links exist only in HTML; JS does not create them. */
footer > .footer-links {
  display: inline-flex !important;
  align-items: center !important;
  gap: .45em !important;
  white-space: nowrap !important;
}
footer > .footer-links a {
  display: inline !important;
  font-size: inherit !important;
  color: inherit !important;
  text-decoration: none !important;
}
footer > .footer-links a::before,
footer > .footer-links a::after,
footer > .footer-links::before,
footer > .footer-links::after {
  content: none !important;
  display: none !important;
}
footer > .footer-links a:hover,
footer > .footer-links a:focus-visible {
  color: var(--text) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
@media (min-width: 761px) {
  footer {
    display: grid !important;
    grid-template-columns: auto minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 14px 22px !important;
    overflow: visible !important;
    white-space: normal !important;
  }
  footer > span:first-child { justify-self: start !important; white-space: nowrap !important; }
  footer > span:nth-child(2) { justify-self: center !important; text-align: center !important; }
  footer > .footer-links { justify-self: end !important; }
}
@media (max-width: 760px) {
  footer {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px 10px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-align: center !important;
  }
  footer > span:first-child { order: 1 !important; }
  footer > .footer-links { order: 1 !important; }
  footer > span:nth-child(2) { order: 2 !important; flex-basis: 100% !important; }
}

/* An unavailable official feed is a neutral status, never a yellow warning. */
.warning-banner.level-unavailable{--warning-bg:#e4e9ed;--warning-fg:#18232d;--warning-soft:rgba(24,35,45,.08);--warning-line:rgba(24,35,45,.25)}

.heatmap-day:focus-visible { outline:3px solid #fff; outline-offset:1px; }
@media (pointer:coarse) { .archive-heatmap { grid-template-rows:repeat(7,44px);grid-auto-columns:44px;gap:4px; }.heatmap-day { width:44px;height:44px; } }

/* Date context and day inspection for annual archive coverage. */
.archive-heatmap-frame{--heatmap-cell:28px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:7px;align-items:start}
.archive-heatmap{grid-template-rows:22px repeat(7,var(--heatmap-cell,28px));grid-auto-columns:var(--heatmap-cell,28px);gap:3px;min-width:0}
.heatmap-day{width:var(--heatmap-cell,28px);height:var(--heatmap-cell,28px);cursor:pointer}
.heatmap-weekdays{display:grid;grid-template-rows:22px repeat(7,var(--heatmap-cell));gap:3px;color:var(--muted);font-size:.65rem;align-items:center}
.heatmap-month{font-size:.7rem;color:var(--muted);align-self:center;white-space:nowrap;overflow:hidden}
.heatmap-date-range{color:var(--muted);font-size:.75rem;margin:0 0 10px}
.heatmap-day.before-archive,.heatmap-before-key{background:repeating-linear-gradient(135deg,rgba(255,255,255,.012),rgba(255,255,255,.012) 3px,rgba(255,255,255,.06) 3px,rgba(255,255,255,.06) 4px)}
.heatmap-day.coverage-unknown,.heatmap-unknown-key{background:transparent;outline:1px dashed rgba(255,255,255,.25);outline-offset:-1px}
.heatmap-day.current{box-shadow:0 0 0 1px #fff inset}
.heatmap-day.selected{outline:2px solid #fff;outline-offset:1px}
.heatmap-day-inspector{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:10px;font-size:.78rem;min-height:44px}
.heatmap-day-inspector p{margin:0;flex:1 1 240px;color:var(--muted)}
.heatmap-day-inspector a{display:inline-flex;min-height:44px;align-items:center;color:var(--accent,#74ddff)}
.heatmap-day-inspector a[hidden]{display:none}
@media(pointer:coarse){.archive-heatmap-frame{--heatmap-cell:44px}.archive-heatmap{gap:4px}.heatmap-weekdays{gap:4px}}


/* Seven-day station solar exposure tracker. */
.solar-exposure-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.solar-exposure-grid>.context-card{min-width:0}
.solar-chart-card{grid-column:1/-1;min-width:0}
@media(max-width:760px){.solar-exposure-grid{grid-template-columns:minmax(0,1fr)}.solar-chart-card{grid-column:auto}}

/* Initial station state is neutral until a fresh live reading is verified. */
.live-pill.checking:not(.offline):not(.delayed) .live-dot {
  background: #91a9b6;
  box-shadow: 0 0 0 5px rgba(145,169,182,.09);
}
