/* Shared archive design, drawn from the landing page's weather atlas. */
:root {
  --atlas-ink: #173c50;
  --atlas-muted: #566c79;
  --atlas-line: #dce4e8;
  --atlas-accent: #25627a;
  --atlas-surface: #f7f9fa;
}

.archive-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--atlas-surface);
  color: var(--atlas-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.archive-page :is(a, button, input, select, textarea):focus-visible,
.site-header :is(a, button, input):focus-visible {
  outline: 3px solid #b8672c;
  outline-offset: 4px;
}
.archive-page [id] { scroll-margin-top: 24px; }
.site-skip-link { position: absolute; top: 8px; left: 16px; transform: translateY(-160%); z-index: 60; border-radius: 6px; background: #173c50; color: white; padding: 12px 18px; }
.site-skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 30; background: #fff; border-bottom: 1px solid var(--atlas-line); }
.site-header-inner { max-width: 1200px; padding: 24px 32px; margin: auto; display: flex; align-items: center; gap: 28px; }
.site-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--atlas-ink); font-size: 21px; font-weight: 650; letter-spacing: -.6px; }
.site-brand-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; }
.site-brand-caption { display: block; margin-top: 4px; font-size: 10px; letter-spacing: 1.8px; font-weight: 500; color: #627784; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 550; white-space: nowrap; color: var(--atlas-ink); }
.site-nav a:hover { color: #aa5725; }
.site-header-search { width: 260px; }
.site-search-field { background: #f7f9fa; border: 1px solid #c9d7df; border-radius: 6px; color: var(--atlas-muted); }
.site-search-field:focus-within { border-color: var(--atlas-accent); box-shadow: 0 0 0 3px #25627a18; }
.site-search-results { border: 1px solid #c9d7df; background: #fff; box-shadow: 0 14px 32px #173c5014; color: var(--atlas-muted); }
.site-search-results a:hover, .site-search-results a[aria-selected="true"] { background: #eaf1f4; }
.site-header [data-search-toggle] { border-radius: 6px; border: 1px solid #c9d7df; background: #f7f9fa; box-shadow: none; backdrop-filter: none; }
.site-header input { font-size: 16px; }

.archive-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 48px 32px 64px; flex: 1; min-width: 0; }
.archive-main h1 { color: var(--atlas-ink); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.4rem, 4.2vw, 3.5rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; overflow-wrap: anywhere; }
.archive-main h2 { color: var(--atlas-ink); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.65rem, 2.5vw, 2.1rem); line-height: 1.2; font-weight: 400; letter-spacing: -.025em; text-wrap: balance; }
.archive-main h3 { color: var(--atlas-ink); }
.archive-page .archive-intro { margin: 0 0 32px; padding: 36px 40px; border: 1px solid #d3dfe5; border-radius: 12px; background: #eaf1f4; box-shadow: none; backdrop-filter: none; text-align: left; }
.archive-intro h1 { margin-top: 12px; }
.archive-intro > p:last-child { max-width: 760px; margin-top: 18px; font-size: 16px; line-height: 1.8; color: var(--atlas-muted); }
.archive-intro > p:first-child:not(:last-child), .archive-eyebrow { font-size: 12px; font-weight: 650; letter-spacing: 1.8px; line-height: 1.6; color: #426477; }
.archive-card { min-width: 0; border: 1px solid var(--atlas-line); border-radius: 12px; background: #fff; box-shadow: none; backdrop-filter: none; }
.archive-card .archive-card { border-radius: 8px; background: var(--atlas-surface); }
.archive-main :is(input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]):not([type="range"]), select, textarea) { min-width: 0; min-height: 46px; border-color: #c5d3db; border-radius: 6px; box-shadow: none; font-size: 16px; color: var(--atlas-ink); }
.archive-main select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23456475' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right 12px center; background-repeat: no-repeat; padding-right: 36px; }
.archive-page select + .pointer-events-none { display: none; }
.archive-page input[type="range"] { accent-color: var(--atlas-accent); }
.archive-main button[type="submit"] { min-height: 46px; border-radius: 6px; background: #234e63; color: white; box-shadow: none; font-size: 14px; }
.archive-main button[type="submit"]:hover { background: #173c50; }
.archive-main .bg-slate-950 { background-color: #173c50; border-radius: 8px; }
.archive-main :is(a, button).rounded-full { border-radius: 6px; box-shadow: none; }
.archive-main :is(form, .grid) > * { min-width: 0; }
.archive-main a.underline { text-underline-offset: 3px; }
.archive-main .sortable-header-button { border-radius: 5px; font-size: 13px; min-height: 36px; font-weight: 600; }
.archive-main .sortable-header-button:is([aria-pressed="true"], .is-active) { background: #234e63; box-shadow: none; color: #fff; }
.archive-main .table { color: var(--atlas-ink); font-variant-numeric: tabular-nums; }
.archive-main .table tr { border-bottom: 1px solid #e5ebee; }
.archive-main .table th { background-color: #edf2f5; border-bottom: 1px solid #d6e1e7; color: #496675; padding-top: 14px; padding-bottom: 14px; letter-spacing: .04em; }
.archive-main .table td { padding-top: 14px; padding-bottom: 14px; }
.archive-main .table tbody tr:hover { background: #f2f6f8; }

/* Station navigation and data panels share the same frame as the archive. */
.archive-page .station-nav { background: #fff; border-bottom: 1px solid var(--atlas-line); backdrop-filter: none; }
.station-nav > div { max-width: 1200px; padding: 14px 32px; gap: 8px; }
.station-nav a { border-radius: 6px; font-weight: 550; background: transparent; color: var(--atlas-muted); min-height: 40px; }
.station-nav a:hover { background: #edf2f5; color: var(--atlas-ink); }
.station-nav a[aria-current="page"] { background: #234e63; color: #fff; box-shadow: none; }
.archive-page > .no-page-animation:not(header) { background: #edf2f5; }
.archive-page > .no-page-animation select { min-height: 42px; border-radius: 6px; }
.archive-page > .no-page-animation a { border-radius: 6px; box-shadow: none; }
.archive-period-nav > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; max-width: 440px; gap: 12px; }
.archive-period-nav > div > div { min-width: 0; }
.archive-page .archive-period-nav select { min-width: 0; width: 100%; font-size: 16px; }
.archive-page :is(.station-latest-shell, .yearly-data-shell, .station-history-shell, .station-month-overview) {
  --latest-heading: var(--atlas-ink); --latest-text: var(--atlas-ink); --latest-text-muted: var(--atlas-muted); --latest-accent: #25627a; --latest-accent-strong: #a5512f;
  --yearly-heading: var(--atlas-ink); --yearly-text: var(--atlas-ink); --yearly-text-muted: var(--atlas-muted);
  --history-heading: var(--atlas-ink); --history-text-muted: var(--atlas-muted);
  --month-heading: var(--atlas-ink); --month-text-muted: var(--atlas-muted);
}
.archive-page :is(.station-latest-panel, .history-panel, .yearly-panel, .station-month-overview-panel) { border: 1px solid var(--atlas-line); border-radius: 12px; background: #fff; box-shadow: none; }
.archive-page :is(.station-latest-card, .station-slider-card, .history-metric-card, .history-top-card, .yearly-key-metric, .station-month-overview-group, .station-month-overview-card) { border: 1px solid var(--atlas-line); border-radius: 8px; background: #f7f9fa; box-shadow: none; }
.archive-page :is(.station-latest-value, .history-metric-value, .yearly-key-value, .station-month-overview-value) { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-variant-numeric: tabular-nums; }
.archive-page .station-latest-value { font-size: 3rem; }
.archive-page .yearly-key-number { font-weight: 400; }
.archive-page .station-latest-label { font-size: 14px; font-weight: 600; }
.archive-page .station-latest-track { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.archive-page .station-latest-card { min-width: 0; padding: 24px 14px; }
.archive-page .station-latest-card-single { min-height: 150px; }
.archive-page .station-latest-card-range { min-height: 250px; }
.archive-page :is(.station-slider-tab, .yearly-segment-label) { border-radius: 6px; border-color: #d3dfe5; background: #f7f9fa; color: #496675; font-weight: 550; box-shadow: none; }
.archive-page .station-slider-tab[aria-selected="true"], .archive-page .yearly-segment input:checked + .yearly-segment-label { background: #234e63; color: #fff; border-color: #234e63; box-shadow: none; }
.archive-page .yearly-segment input:focus-visible + .yearly-segment-label { outline: 3px solid #b8672c; outline-offset: 3px; }
.archive-page :is(.yearly-key-group-title, .history-group-title)::before { display: none; }
.archive-page :is(.yearly-key-group-title, .history-group-title) { font-weight: 600; letter-spacing: .08em; font-size: 12px; }
.archive-page .station-month-overview-card[data-variant] { background: #f7f9fa; }

.archive-reading { max-width: 960px; }
.archive-reading > :is(section, div) { line-height: 1.85; }
.archive-reading > .space-y-8 > section { border-top: 1px solid var(--atlas-line); padding-top: 28px; }
.archive-reading > .archive-card { padding: 32px; }
.archive-message { max-width: 800px; padding-top: 72px; padding-bottom: 80px; text-align: center; }
.archive-message h1 { margin-bottom: 20px; }
.archive-assistant { max-width: none; padding: 0; }
.archive-assistant > section:first-child { background: #eaf1f4; color: var(--atlas-ink); border-bottom: 1px solid #d3dfe5; }
.archive-assistant > section:first-child p { color: var(--atlas-muted); }
.archive-assistant > section:first-child a { background: #234e63; color: #fff; border-color: #234e63; border-radius: 6px; }
.archive-assistant > section:first-child h1 { font-size: clamp(2.5rem, 4.5vw, 3.75rem); }
.archive-assistant .archive-quote { padding: 24px; font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.6; color: var(--atlas-ink); }
.archive-assistant article h2 { font-size: 26px; }
.archive-assistant .archive-assistant-badge { border: 1px solid #b9d2ca; border-radius: 5px; background: #e1eee8; color: #2c6253; }
.archive-assistant-badge > span { background: #42846a; }
.archive-page .site-footer, .landing-page .site-footer { background: #edf2f5; border-top: 1px solid var(--atlas-line); color: var(--atlas-ink); }
.archive-page .site-footer { margin-top: 0; }
.site-footer > div { max-width: 1200px; }
.site-footer > div:first-child { padding: 44px 32px; gap: 48px; }
.site-footer > div:last-child { max-width: none; }
.site-footer > div:last-child > div { max-width: 1200px; padding-left: 32px; padding-right: 32px; }
.site-footer a { text-underline-offset: 4px; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 1100px) and (min-width: 768px) {
  .site-header-inner { flex-wrap: wrap; gap: 20px; }
  .site-nav { order: 3; width: 100%; padding-top: 16px; border-top: 1px solid var(--atlas-line); }
}
@media (max-width: 900px) {
  .archive-page .station-latest-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .site-header-inner { padding: 20px; gap: 12px; flex-wrap: wrap; }
  .site-brand { font-size: 18px; gap: 8px; }
  .site-brand-icon { width: 34px; height: 34px; }
  .site-brand-caption { font-size: 8px; letter-spacing: 1.3px; }
  .site-header-search { width: auto; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--atlas-line); font-size: 12px; }
  .archive-main { padding: 28px 20px 44px; }
  .archive-page .archive-intro { padding: 28px 24px; margin-bottom: 24px; }
  .archive-main h1 { font-size: 2.4rem; }
  .archive-main h2 { font-size: 1.75rem; }
  .archive-main .archive-card .archive-card { padding: 16px; }
  .archive-page .station-latest-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-page .station-latest-card { padding: 20px 12px; }
  .archive-page .station-latest-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .station-nav > div { padding: 12px 20px; gap: 4px; }
  .station-nav > div > span { width: 100%; margin: 0 0 6px; font-size: 12px; }
  .station-nav a { flex: 1; text-align: center; padding: 10px 8px; }
  .archive-period-nav > div { padding: 12px 20px; gap: 8px; }
  .archive-period-nav > div > :is(a, span) { min-width: 56px; padding: 10px 8px; border-radius: 6px; }
  .archive-reading > .archive-card { padding: 24px; }
  .archive-assistant { padding: 0; }
  .site-footer > div:first-child { padding: 32px 20px; gap: 28px; }
  .site-footer > div:last-child > div { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 359px) {
  .site-brand { font-size: 15px; gap: 6px; }
  .site-brand-icon { width: 30px; height: 30px; }
  .site-brand-caption { font-size: 7px; letter-spacing: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .archive-page *, .archive-page *::before, .archive-page *::after { scroll-behavior: auto; transition-duration: 0s; animation-duration: 0s; }
}
