:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #657082;
  --panel: #ffffff;
  --line: #dbe3ec;
  --sky: #e9f5fb;
  --blue: #226b91;
  --green: #3c7d66;
  --amber: #b96f2d;
  --shadow: 0 18px 42px rgba(25, 39, 60, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f5f7fa;
}

a {
  color: inherit;
}

.site-header {
  background:
    linear-gradient(90deg, rgba(8, 33, 53, 0.78), rgba(10, 54, 74, 0.42)),
    url("../picture.jpg") center/cover;
  color: #fff;
}

.topbar {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  flex: 0 0 176px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  min-height: 2.3em;
  line-height: 1.15;
  max-width: 112px;
}

.brand small,
.eyebrow,
.hero-text,
.muted {
  color: rgba(255, 255, 255, 0.78);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
}

.nav-links a[aria-current="page"] {
  font-weight: 800;
  color: #fff;
}

.hero {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: end;
  gap: 28px;
  padding: 36px 0 34px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero-text {
  max-width: 640px;
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.45;
}

.hero-current {
  position: relative;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.status-dot {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7be495;
  box-shadow: 0 0 0 6px rgba(123, 228, 149, 0.18);
}

.label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-current strong {
  font-size: 3.35rem;
  line-height: 1;
}

.hero-current span:not(.status-dot) {
  font-size: 1.3rem;
  font-weight: 700;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 64px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.metric,
.split,
.charts article,
.archive {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  min-height: 112px;
  padding: 0;
  display: grid;
  align-content: stretch;
  overflow: hidden;
}

.metric span,
.detail-list span,
.sun-panel span {
  color: var(--muted);
  font-size: 0.9rem;
}

.metric > span {
  padding: 10px 14px;
  color: #174763;
  background: #edf6fb;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.metric strong {
  display: block;
  padding: 16px 14px 4px;
  font-size: 1.85rem;
}

.metric small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.85rem;
}

.metric em {
  display: block;
  padding: 0 14px 12px;
  color: var(--blue);
  font-style: normal;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 28px;
  padding: 28px;
  margin-bottom: 26px;
}

h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.section-kicker {
  color: var(--green);
}

.site-note {
  text-transform: none;
  letter-spacing: 0;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.detail-list p,
.sun-panel p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list strong,
.sun-panel strong {
  text-align: right;
}

.sun-panel {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: 8px;
  background: var(--sky);
}

.sun-panel img {
  width: 76px;
  height: 76px;
}

.charts {
  margin-bottom: 26px;
}

.section-heading {
  margin-bottom: 14px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.charts article {
  padding: 22px;
}

.charts h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.chart-frame {
  position: relative;
  width: 100%;
  height: 280px;
  max-height: 42vh;
  min-height: 220px;
}

.chart-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.archive {
  padding: 28px;
}

.home-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.home-title h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.home-title p:last-child {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
}

.current-strip {
  position: relative;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.current-strip p {
  margin: -18px -18px 12px;
  padding: 10px 18px;
  color: #174763;
  background: #edf6fb;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.current-strip strong {
  display: block;
  font-size: 2.8rem;
  line-height: 1;
}

.current-strip small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 1.1rem;
}

.current-strip em {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.planned-pages {
  margin-bottom: 26px;
}

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

.page-grid article {
  min-height: 116px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-grid strong,
.page-grid span {
  display: block;
}

.page-grid strong {
  margin-bottom: 8px;
}

.page-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.archive p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.6;
}

.archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.archive-actions span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  color: var(--muted);
  background: #f8fafc;
}

.archive-actions a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  text-decoration: none;
}

.page-grid a {
  color: var(--blue);
  text-decoration: none;
}

.report-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.station-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.station-context p {
  margin: 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.station-context span,
.station-context strong {
  display: block;
}

.station-context span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.report-picker,
.report-viewer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.report-picker {
  padding: 18px;
}

.report-picker h2,
.report-title-row h2 {
  font-size: 1.2rem;
}

.report-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.report-button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.report-button[aria-pressed="true"] {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.report-viewer {
  min-width: 0;
}

.report-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.report-title-row a {
  color: var(--blue);
  font-weight: 800;
}

.report-viewer pre {
  min-height: 520px;
  max-height: 720px;
  margin: 0;
  padding: 20px;
  overflow: auto;
  background: #fbfcfe;
  color: #202b3d;
  font-family: "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 0.88rem;
  line-height: 1.35;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
}

.site-footer a {
  color: var(--blue);
  font-weight: 700;
}

.plain-page {
  background: #f5f7fa;
}

.compact-header {
  background: #12314a;
  color: #fff;
}

.page-shell {
  padding-top: 28px;
}

.page-title {
  margin-bottom: 18px;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0;
}

.page-title p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.data-panel {
  padding: 22px;
  margin-bottom: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.data-panel h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.data-item {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.data-item span,
.comparison-table th {
  color: var(--muted);
  font-size: 0.86rem;
}

.data-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.32rem;
}

.comparison-table,
.record-table {
  overflow-x: auto;
}

.comparison-table table,
.record-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td,
.record-table th,
.record-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.comparison-table td:not(:first-child),
.comparison-table th:not(:first-child),
.record-table td:not(:first-child),
.record-table th:not(:first-child) {
  text-align: right;
}

.comparison-table tbody tr:hover,
.record-table tbody tr:hover {
  background: #f8fafc;
}

.month-selector {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.month-selector button {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.month-selector button[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.chart-workbench {
  display: grid;
  gap: 16px;
}

.chart-controls,
.range-controls,
.series-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-controls button,
.range-controls button,
.series-picker label {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.chart-controls button,
.range-controls button {
  cursor: pointer;
}

.range-controls {
  align-items: center;
  margin-top: -8px;
}

.range-controls::before {
  content: "Range";
  margin-right: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.range-controls button {
  min-height: 36px;
  padding: 7px 11px;
  color: var(--blue);
}

.chart-controls button[aria-pressed="true"],
.range-controls button[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.range-controls button:disabled {
  cursor: default;
  opacity: 0.45;
}

.series-picker label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.chart-panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chart-title-row {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.chart-title-row h2 {
  font-size: 1.3rem;
}

.large-chart-frame {
  position: relative;
  height: 560px;
  min-height: 360px;
  max-height: 68vh;
  padding: 18px;
}

.large-chart-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.gauge-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.gauge-status p {
  margin: 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gauge-status span,
.gauge-status strong {
  display: block;
}

.gauge-status span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

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

.gauge-card {
  min-height: 270px;
  padding: 20px;
  display: grid;
  place-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gauge-ring {
  width: min(190px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(var(--gauge-accent) var(--gauge-progress), #e6edf4 0);
}

.gauge-ring div {
  width: 72%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: #fff;
  text-align: center;
}

.gauge-ring strong {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.05;
}

.gauge-ring span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gauge-card p {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.dashboard-page {
  background: #eef2f5;
}

.dashboard-header .topbar {
  min-height: 54px;
}

.dashboard-shell {
  width: min(1360px, calc(100% - 24px));
  padding: 16px 0 22px;
}

.dashboard-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 12px;
}

.dashboard-status h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.02;
}

.dashboard-outlook {
  min-width: 0;
  color: var(--muted);
  text-align: right;
}

.dashboard-outlook span,
.dashboard-outlook strong {
  display: block;
}

.dashboard-outlook span {
  margin-bottom: 3px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-outlook strong {
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.2;
}

.dashboard-update {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.dashboard-update span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-update strong {
  color: var(--ink);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  grid-auto-rows: minmax(168px, auto);
  gap: 10px;
}

.external-modules {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 10px;
  margin-top: 10px;
}

.external-module {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 45, 62, 0.08);
}

.external-module > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  background: #12314a;
  color: #fff;
}

.external-module > header span,
.external-module > header small {
  display: block;
}

.external-module > header span {
  font-weight: 850;
}

.external-module > header small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.external-module > header strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  text-align: right;
}

.forecast-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.forecast-day {
  min-height: 172px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.forecast-day h3 {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.forecast-day-main {
  display: grid;
  gap: 5px;
  min-height: 64px;
}

.forecast-day-main strong {
  font-size: 1.85rem;
  line-height: 1;
}

.forecast-day-main small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.forecast-day-main span,
.module-placeholder {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.forecast-day dl {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
}

.forecast-day dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.forecast-day dt {
  color: var(--muted);
}

.forecast-day dd {
  margin: 0;
  font-weight: 800;
}

.module-placeholder {
  margin: 0;
  padding: 16px;
}

.module-link {
  display: block;
  padding: 0 14px 14px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
  text-decoration: none;
}

.module-link:hover {
  text-decoration: underline;
}

.radar-frame {
  height: 324px;
  background: #dce5ee;
}

.radar-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.dash-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce5ee;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 45, 62, 0.08);
}

.dash-card-wide {
  grid-column: span 2;
}

.dash-card header {
  padding: 10px 14px;
  background: #12314a;
  color: #fff;
}

.dash-card header span,
.dash-card header small {
  display: block;
}

.dash-card header span {
  font-weight: 850;
}

.dash-card header small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.temperature-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.hero-reading strong,
.dash-reading strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.hero-reading small,
.dash-reading small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-reading em,
.dash-reading em {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.mini-bars,
.rain-bars,
.sun-times,
.wind-detail,
.pressure-detail {
  display: grid;
  gap: 8px;
}

.mini-bars p,
.rain-bars p,
.sun-times p,
.wind-detail p,
.pressure-detail p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.mini-bars span,
.rain-bars span,
.sun-times span,
.wind-detail span,
.pressure-detail span,
.forecast-tile span {
  color: var(--muted);
}

.mini-bars strong,
.rain-bars strong,
.sun-times strong,
.wind-detail strong,
.pressure-detail strong {
  text-align: right;
}

.wind-compass {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 14px auto 6px;
  border: 1px solid #c9d6e5;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, #e4ebf2 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, #e4ebf2 50%, transparent 51%),
    #fbfdff;
}

.wind-compass span {
  position: absolute;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.wind-compass span:nth-child(1) { top: -4px; left: 50%; transform: translateX(-50%); }
.wind-compass span:nth-child(2) { right: 5px; top: 50%; transform: translateY(-50%); }
.wind-compass span:nth-child(3) { bottom: -4px; left: 50%; transform: translateX(-50%); }
.wind-compass span:nth-child(4) { left: 5px; top: 50%; transform: translateY(-50%); }

.wind-compass div {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 20px;
  height: 54px;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(205deg);
  background: linear-gradient(#2c8cc2, #0d5f90);
  clip-path: polygon(50% 0, 100% 100%, 50% 82%, 0 100%);
}

.dash-reading {
  padding: 12px 16px 16px;
  text-align: center;
}

.wind-detail {
  padding: 0 16px 14px;
}

.rain-bars {
  padding: 12px 16px 16px;
}

.dash-gauge {
  width: 126px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 20px auto 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, transparent 59%),
    conic-gradient(#3c9b72 var(--gauge), #e7edf3 0);
}

.humidity-gauge {
  width: 104px;
  margin: 18px 0 0;
}

.humidity-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.dash-gauge strong {
  font-size: 1.7rem;
}

.dash-gauge small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.sun-times,
.pressure-detail,
.forecast-tile {
  padding: 16px;
}

.moon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 16px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.moon-row span {
  min-width: 0;
}

.moon-row img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.air-quality-frame {
  height: 276px;
  background: #dce5ee;
}

.air-quality-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.forecast-tile {
  display: grid;
  align-content: center;
  min-height: 124px;
  gap: 14px;
}

.forecast-tile strong {
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  line-height: 1.15;
}

.dashboard-footer {
  width: min(1360px, calc(100% - 24px));
  padding-bottom: 22px;
}

@media (max-width: 1280px) {
  .topbar,
  main,
  .site-footer {
    width: min(1120px, calc(100% - 24px));
  }

  .topbar {
    min-height: 56px;
    align-items: center;
    gap: 18px;
  }

  .brand {
    gap: 8px;
    min-height: 46px;
    flex-basis: 160px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.78rem;
    min-height: 2.3em;
    line-height: 1.15;
    max-width: 104px;
  }

  .nav-links {
    gap: 13px;
    font-size: 0.88rem;
  }

  main {
    padding-top: 18px;
    padding-bottom: 46px;
  }

  .home-title {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 14px;
    margin-bottom: 12px;
  }

  .home-title h1 {
    font-size: clamp(2.2rem, 3.3vw, 3rem);
  }

  .home-title p:last-child {
    margin-top: 8px;
  }

  .section-kicker {
    margin-bottom: 9px;
  }

  .current-strip {
    padding: 14px;
  }

  .current-strip p {
    margin: -14px -14px 10px;
    padding: 9px 14px;
  }

  .current-strip strong {
    font-size: 2.15rem;
  }

  .current-strip em {
    margin-top: 7px;
    font-size: 0.9rem;
  }

  .summary-grid {
    gap: 9px;
    margin-bottom: 18px;
  }

  .metric {
    min-height: 88px;
  }

  .metric > span {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .metric strong {
    padding: 11px 12px 2px;
    font-size: 1.25rem;
  }

  .metric small {
    font-size: 0.76rem;
  }

  .metric em {
    padding: 0 12px 9px;
    font-size: 0.88rem;
  }

  .split {
    gap: 18px;
    padding: 22px;
    margin-bottom: 20px;
  }

  h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
  }

  .detail-list {
    gap: 5px;
    margin-top: 14px;
  }

  .detail-list p,
  .sun-panel p {
    padding: 9px 0;
  }

  .sun-panel {
    grid-template-columns: 58px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .sun-panel img {
    width: 58px;
    height: 58px;
  }

  .chart-frame {
    height: 230px;
    min-height: 200px;
  }

  .dashboard-shell,
  .dashboard-footer {
    width: min(1180px, calc(100% - 18px));
  }

  .dashboard-shell {
    padding-top: 12px;
  }

  .dashboard-status h1 {
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  }

  .dashboard-grid {
    grid-auto-rows: minmax(146px, auto);
    gap: 8px;
  }

  .external-modules {
    gap: 8px;
  }

  .forecast-days {
    grid-template-columns: repeat(7, minmax(112px, 1fr));
    padding: 10px;
  }

  .radar-frame {
    height: 292px;
  }

  .dash-card header {
    padding: 8px 12px;
  }

  .temperature-layout {
    padding: 12px;
  }

  .hero-reading strong,
  .dash-reading strong {
    font-size: clamp(1.75rem, 3vw, 2.45rem);
  }

  .mini-bars p,
  .rain-bars p,
  .sun-times p {
    padding: 7px 0;
  }

  .wind-compass {
    width: 98px;
    height: 98px;
    margin-top: 10px;
  }

  .wind-compass div {
    height: 44px;
  }

  .dash-reading {
    padding: 9px 12px 12px;
  }

  .rain-bars,
  .sun-times,
  .forecast-tile {
    padding: 11px 12px 12px;
  }

  .dash-gauge {
    width: 104px;
    margin: 14px auto 12px;
  }

  .moon-tile {
    padding: 12px;
  }

  .moon-tile img {
    width: 58px;
    height: 58px;
  }

  .air-quality-frame {
    height: 246px;
  }
}

@media (max-width: 920px) {
  .hero,
  .split,
  .home-title {
    grid-template-columns: 1fr;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .month-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-layout {
    grid-template-columns: 1fr;
  }

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

  .gauge-status {
    grid-template-columns: 1fr;
  }

  .station-context {
    grid-template-columns: 1fr;
  }

  .report-list {
    max-height: 280px;
  }

  .dashboard-status {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .dashboard-outlook {
    text-align: left;
  }

  .dashboard-update {
    justify-content: start;
  }

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

  .external-modules {
    grid-template-columns: 1fr;
  }

  .dash-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: auto;
    padding: 8px 0 10px;
  }

  .brand {
    min-height: 36px;
    flex-basis: auto;
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    min-height: 0;
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.05;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 4px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .summary-grid,
  .chart-grid,
  .page-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }

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

  .large-chart-frame {
    height: 390px;
    max-height: none;
    padding: 12px;
  }

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

  .chart-frame {
    height: 240px;
    max-height: none;
  }

  .split {
    padding: 20px;
  }

  .detail-list p,
  .sun-panel p {
    display: grid;
    gap: 4px;
  }

  .detail-list strong,
  .sun-panel strong {
    text-align: left;
  }

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

  .external-module > header {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .external-module > header strong {
    text-align: left;
  }

  .forecast-days {
    grid-template-columns: repeat(7, minmax(132px, 1fr));
  }

  .radar-frame {
    height: 320px;
  }

  .dashboard-shell {
    width: min(100% - 16px, 640px);
    padding-top: 10px;
  }

  .dashboard-status {
    gap: 9px;
    margin-bottom: 10px;
  }

  .dashboard-status h1 {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }

  .site-note {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .dashboard-update {
    gap: 7px;
  }

  .dashboard-update span {
    padding: 7px 9px;
    font-size: 0.86rem;
  }

  .dash-card-wide {
    grid-column: auto;
  }

  .temperature-layout {
    grid-template-columns: 1fr;
  }
}
