/* Shared interior theme, including archive pages generated before this release.
   Exclude the homepage, which owns its layout in dashboard.css. */
body:not(.weather-dashboard) {
  --ink: #202b2b; --charcoal: #202b2b; --ink-soft: #465451; --muted: #62716c;
  --orange: #d94e12; --orange-dark: #a73509; --orange-soft: #fff1e7; --orange-pale: #fafbf8;
  --line: #dde3de; --line-strong: #c5cfc6; --surface: #fff; --surface-soft: #f5f7f3;
  --shadow-sm: none; --shadow-md: none; --shadow-lg: none;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 12px;
  margin: 0; background: #f3f5f0; color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5; font-variant-numeric: tabular-nums;
}
body:not(.weather-dashboard) main { width: min(100%, 1420px); max-width: 1420px; margin: 0 auto; padding: 0 36px 28px; }
body:not(.weather-dashboard) .site-shell { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body:not(.weather-dashboard) .site-shell::before,
body:not(.weather-dashboard) .topbar::after { display: none; }
body:not(.weather-dashboard) .topbar { display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 30px; padding: 24px 0; background: none; border-bottom: 1px solid #ced8cf; overflow: visible; }
body:not(.weather-dashboard) .brand-lockup,
body:not(.weather-dashboard) .brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--ink); text-decoration: none; }
body:not(.weather-dashboard) .site-logo,
body:not(.weather-dashboard) .brand img { display: block; width: 62px; height: 62px; padding: 0; border: 1px solid #d5d9d0; border-radius: 50%; background: #fff; box-shadow: none; filter: none; }
body:not(.weather-dashboard) .brand-text .site-title,
body:not(.weather-dashboard) .brand-name { display: block; color: var(--ink); font-size: 1.75rem; font-weight: 850; letter-spacing: -.065em; line-height: 1.15; text-shadow: none; }
body:not(.weather-dashboard) .brand-text .site-title span,
body:not(.weather-dashboard) .brand-name span { display: inline; padding: 0; margin: 0; border: 0; border-radius: 0; color: var(--orange-dark); background: none; box-shadow: none; text-shadow: none; }
body:not(.weather-dashboard) .brand-text .site-title small,
body:not(.weather-dashboard) .brand-name small { color: var(--ink-soft); font-size: .7em; text-shadow: none; }
body:not(.weather-dashboard) .brand-subtitle,
body:not(.weather-dashboard) .brand-meta { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; font-weight: 500; line-height: 1.4; }
body:not(.weather-dashboard) .topbar nav { display: flex; flex-wrap: wrap; width: auto; justify-content: flex-start; margin: 0; padding: 0; gap: 5px; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
body:not(.weather-dashboard) .topbar nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 14px; border: 0; border-radius: 8px; color: var(--ink-soft); font-size: .83rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
body:not(.weather-dashboard) .topbar nav a:hover { color: var(--orange-dark); background: #e9eee7; }
body:not(.weather-dashboard) .topbar nav a.active,
body:not(.weather-dashboard) .topbar nav a.nav-active { color: var(--orange-dark); background: #fbe6d8; box-shadow: none; }
body:not(.weather-dashboard) .content { padding: 28px 0 0; }
body:not(.weather-dashboard) .breadcrumbs { margin: 0 0 18px; font-size: .8rem; color: var(--muted); line-height: 1.65; }
body:not(.weather-dashboard) .breadcrumbs a { font-weight: 600; text-underline-offset: 3px; }
body:not(.weather-dashboard) .hero,
body:not(.weather-dashboard) .page-hero,
body:not(.weather-dashboard) .intro-copy { margin: 0 0 26px; padding: 8px 0 0; border: 0; border-radius: 0; background: none; color: var(--ink); box-shadow: none; overflow: visible; }
body:not(.weather-dashboard) .page-hero::after,
body:not(.weather-dashboard) .intro-copy::after { display: none; }
body:not(.weather-dashboard) .hero h1,
body:not(.weather-dashboard) .page-hero h1,
body:not(.weather-dashboard) .intro-copy h1 { max-width: 1000px; margin: 0; color: var(--ink); font-size: clamp(1.8rem, 3.1vw, 2.75rem); font-weight: 650; line-height: 1.12; letter-spacing: -.055em; }
body:not(.weather-dashboard) .hero p,
body:not(.weather-dashboard) .page-hero p,
body:not(.weather-dashboard) .intro-copy p { max-width: 850px; margin: 13px 0 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.65; }
body:not(.weather-dashboard) .eyebrow { margin-bottom: 9px; color: var(--orange-dark); font-size: .75rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
body:not(.weather-dashboard) .badge { margin-top: 15px; padding: 6px 10px; border-radius: 6px; background: #e7ede4; color: #405847; font-size: .75rem; font-weight: 600; }
body:not(.weather-dashboard) .panel { min-width: 0; margin: 22px 0 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: none; }
body:not(.weather-dashboard) .panel-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 17px 22px; gap: 6px 16px; border-bottom: 1px solid var(--line); background: none; }
body:not(.weather-dashboard) .panel-header h2,
body:not(.weather-dashboard) .panel-header h3 { margin: 0; color: var(--ink); font-size: 1.05rem; font-weight: 750; letter-spacing: -.025em; }
body:not(.weather-dashboard) .panel-header .meta,
body:not(.weather-dashboard) .panel-meta { color: var(--muted); font-size: .75rem; font-weight: 500; }
body:not(.weather-dashboard) .panel-body { padding: 22px; color: var(--ink-soft); font-size: .95rem; line-height: 1.75; }
body:not(.weather-dashboard) .panel-body > p { max-width: 90ch; }
body:not(.weather-dashboard) .stack { gap: 22px; }
body:not(.weather-dashboard) .stack .panel { margin-top: 0; }
body:not(.weather-dashboard) .notice { margin: 22px 0; padding: 13px 16px; border: 1px solid #dce4d8; border-radius: 8px; background: #eaf0e6; color: #495c4c; font-size: .8rem; line-height: 1.6; }
body:not(.weather-dashboard) .status,
body:not(.weather-dashboard) :is(.archive-status, .records-status, .reports-status, .boundary-status, .timeline-status, .observer-status, .submit-status) { display: flex; flex-wrap: wrap; gap: 5px 18px; margin: 20px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-soft); box-shadow: none; backdrop-filter: none; font-size: .8rem; font-weight: 500; line-height: 1.5; }
body:not(.weather-dashboard) .status span::before { display: none; }
body:not(.weather-dashboard) .status small { font-size: .75rem; font-weight: 500; white-space: normal; }
body:not(.weather-dashboard) :is(.status, .archive-status, .records-status, .reports-status, .boundary-status, .timeline-status, .observer-status, .submit-status).error { border-color: #edc7b9; background: #fff3ec; color: #87351d; }
body:not(.weather-dashboard) .archive-callout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; padding: 24px; border-radius: 0; background: #eaf0e6; color: var(--ink); }
body:not(.weather-dashboard) .archive-callout-copy h2 { margin: 0; font-size: 1.2rem; font-weight: 650; letter-spacing: -.03em; }
body:not(.weather-dashboard) .archive-callout-copy p { margin: 9px 0 0; color: var(--ink-soft); font-size: .85rem; line-height: 1.6; }
body:not(.weather-dashboard) .archive-actions { display: flex; align-content: center; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
body:not(.weather-dashboard) .archive-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 13px; border: 1px solid #cdd8c8; border-radius: 7px; background: #fff; color: var(--orange-dark); box-shadow: none; font-size: .8rem; font-weight: 650; text-decoration: none; }
body:not(.weather-dashboard) .archive-cta:hover { background: #f5f8f2; border-color: #96ac91; }
body:not(.weather-dashboard) .station-grid,
body:not(.weather-dashboard) .record-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 6px 22px; }
body:not(.weather-dashboard) .last-rain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 6px 22px; }
body:not(.weather-dashboard) .metric-grid,
body:not(.weather-dashboard) .event-summary { gap: 14px; margin-top: 22px; }
body:not(.weather-dashboard) .metric,
body:not(.weather-dashboard) .metric-card,
body:not(.weather-dashboard) .metric-card:nth-child(-n + 4) { display: block; min-width: 0; min-height: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: none; }
body:not(.weather-dashboard) .metric-card::after { display: none; }
body:not(.weather-dashboard) :is(.station-grid, .record-grid, .last-rain-grid) > :is(.metric, .metric-card) { padding: 16px 16px 16px 0; border: 0; border-radius: 0; background: none; }
body:not(.weather-dashboard) .station-grid > .metric-card:nth-child(n + 5),
body:not(.weather-dashboard) .record-grid > .metric:nth-child(n + 5) { border-top: 1px solid var(--line); }
body:not(.weather-dashboard) .metric-label { color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
body:not(.weather-dashboard) .metric-value,
body:not(.weather-dashboard) .metric-card:nth-child(-n + 4) .metric-value { margin-top: 8px; max-width: none; color: var(--ink); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 650; line-height: 1.2; letter-spacing: -.04em; text-align: left; overflow-wrap: anywhere; }
body:not(.weather-dashboard) .metric-value.small { font-size: 1.05rem; }
body:not(.weather-dashboard) :is(.metric-detail, .record-when, .event-meta, .boundary-time, .observer-meta, .form-help) { margin-top: 6px; color: var(--muted); font-size: .75rem; font-weight: 500; line-height: 1.5; }
body:not(.weather-dashboard) :is(.nearby-status, .report-status) { padding: 0 22px 17px; font-size: .75rem; color: var(--muted); font-weight: 500; }
body:not(.weather-dashboard) .toolbar { padding: 18px 22px; gap: 12px; background: #f8faf6; }
body:not(.weather-dashboard) .toolbar label,
body:not(.weather-dashboard) .report-form label { font-size: .85rem; font-weight: 650; }
body:not(.weather-dashboard) .toolbar input,
body:not(.weather-dashboard) .report-form :is(input, select, textarea) { min-width: 0; min-height: 44px; max-width: 100%; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: #fff; font-size: 1rem; font-weight: 400; }
body:not(.weather-dashboard) .toolbar button,
body:not(.weather-dashboard) .publish-button { min-height: 44px; padding: 10px 17px; border: 0; border-radius: 7px; color: #fff; background: var(--orange-dark); box-shadow: none; font-size: .85rem; font-weight: 650; }
body:not(.weather-dashboard) .toolbar button:hover,
body:not(.weather-dashboard) .publish-button:hover { background: #822a09; }
body:not(.weather-dashboard) .filter-row { gap: 8px; padding: 18px 22px 0; }
body:not(.weather-dashboard) .filter-button { min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: #fff; font-size: .8rem; font-weight: 600; }
body:not(.weather-dashboard) .filter-button:hover { background: #f2f5ef; }
body:not(.weather-dashboard) .filter-button.active { background: #fbe6d8; color: var(--orange-dark); border-color: #efc6ad; }
body:not(.weather-dashboard) .history-table-wrap,
body:not(.weather-dashboard) .table-wrap { max-width: 100%; overflow-x: auto; padding: 12px 22px 20px; }
body:not(.weather-dashboard) table { font-size: .82rem; }
body:not(.weather-dashboard) th,
body:not(.weather-dashboard) .history-table th { padding: 12px 10px; background: #f6f8f3; color: var(--muted); font-size: .75rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
body:not(.weather-dashboard) td,
body:not(.weather-dashboard) .history-table td { padding: 11px 10px; border-color: var(--line); }
body:not(.weather-dashboard) tbody tr:hover,
body:not(.weather-dashboard) .history-table tbody tr:hover { background: #f7faf3; }
body:not(.weather-dashboard) .link-button { min-height: 32px; font-weight: 650; }
body:not(.weather-dashboard) :is(.archive-list, .event-list, .boundary-list, .observer-list, .month-list) { padding: 20px 22px; gap: 16px; }
body:not(.weather-dashboard) :is(.archive-card, .event-card, .boundary-card, .observer-card, .observer-detail, .month-card) { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: none; }
body:not(.weather-dashboard) :is(.archive-card, .event-card, .boundary-card, .month-card) { padding: 18px; }
body:not(.weather-dashboard) .archive-card { background: #f9fbf7; }
body:not(.weather-dashboard) .archive-card :is(h2, h3),
body:not(.weather-dashboard) .month-card h2,
body:not(.weather-dashboard) .month-card h3 { color: var(--ink); font-weight: 650; letter-spacing: -.025em; }
body:not(.weather-dashboard) .archive-card p { color: var(--ink-soft); font-size: .85rem; line-height: 1.6; }
body:not(.weather-dashboard) .archive-card a { display: inline-block; padding: 8px 0; font-weight: 650; }
body:not(.weather-dashboard) :is(.event-badge, .signal, .observer-type) { padding: 5px 8px; border-radius: 5px; color: #405847; background: #eaf0e6; font-size: .75rem; font-weight: 600; }
body:not(.weather-dashboard) :is(.event-metric, .evidence-item) { font-size: .75rem; font-weight: 500; }
body:not(.weather-dashboard) :is(.event-link, .timeline-link, .observer-link) { display: inline-block; min-height: 36px; padding: 7px 0; font-weight: 650; }
body:not(.weather-dashboard) .day-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #f8faf5; color: var(--ink-soft); font-weight: 600; }
body:not(.weather-dashboard) .day-link:hover { background: #fbe6d8; color: var(--orange-dark); }
body:not(.weather-dashboard) :is(.training-item, .workflow-item, .tool-card) { border: 1px solid var(--line); border-radius: 8px; background: #f8faf5; box-shadow: none; color: var(--ink-soft); }
body:not(.weather-dashboard) .training-item { font-size: .85rem; font-weight: 500; }
body:not(.weather-dashboard) .tool-card h3 { color: var(--ink); }
body:not(.weather-dashboard) .report-form { padding: 22px; }
body:not(.weather-dashboard) .phase { background: #f5f7f3; color: var(--muted); font-size: .75rem; }
body:not(.weather-dashboard) .phase.passage { color: var(--orange-dark); background: #fff1e7; }
body:not(.weather-dashboard) .empty-state { padding: 30px 18px; font-size: .9rem; line-height: 1.6; }
body:not(.weather-dashboard) footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 28px; padding: 20px 0 0; border-top: 1px solid #ced8cf; color: var(--muted); font-size: .75rem; text-align: left; }
body:not(.weather-dashboard) footer a { color: var(--ink-soft); text-underline-offset: 3px; }
body:not(.weather-dashboard) :is(a, button, input, select, textarea):focus-visible { outline: 3px solid #356c94; outline-offset: 3px; }
body:not(.weather-dashboard) .skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 10px 16px; border-radius: 6px; color: #fff; background: var(--ink); }
body:not(.weather-dashboard) .skip-link:focus { top: 12px; }
body:not(.weather-dashboard) [hidden] { display: none !important; }
@media (max-width: 1050px) {
  body:not(.weather-dashboard) .topbar { gap: 14px; }
  body:not(.weather-dashboard) .archive-callout { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 850px) {
  body:not(.weather-dashboard) .station-grid,
  body:not(.weather-dashboard) .record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.weather-dashboard) .station-grid > .metric-card:nth-child(n + 3),
  body:not(.weather-dashboard) .record-grid > .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  body:not(.weather-dashboard) main { padding: 0 18px 24px; }
  body:not(.weather-dashboard) .topbar { padding: 18px 0 12px; flex-direction: column; align-items: flex-start; gap: 13px; }
  body:not(.weather-dashboard) .site-logo,
  body:not(.weather-dashboard) .brand img { width: 45px; height: 45px; }
  body:not(.weather-dashboard) .brand-lockup,
  body:not(.weather-dashboard) .brand { gap: 10px; }
  body:not(.weather-dashboard) .brand-text .site-title,
  body:not(.weather-dashboard) .brand-name { font-size: 1.5rem; }
  body:not(.weather-dashboard) .brand-subtitle,
  body:not(.weather-dashboard) .brand-meta { font-size: .75rem; max-width: 250px; }
  body:not(.weather-dashboard) .topbar nav { gap: 2px; width: 100%; }
  body:not(.weather-dashboard) .topbar nav a { padding: 8px 10px; font-size: .78rem; }
  body:not(.weather-dashboard) .content { padding: 22px 0 0; }
  body:not(.weather-dashboard) .hero,
  body:not(.weather-dashboard) .page-hero,
  body:not(.weather-dashboard) .intro-copy { margin-bottom: 22px; }
  body:not(.weather-dashboard) .panel-header,
  body:not(.weather-dashboard) .panel-body,
  body:not(.weather-dashboard) .toolbar,
  body:not(.weather-dashboard) .report-form { padding: 16px; }
  body:not(.weather-dashboard) .archive-callout { padding: 19px; }
  body:not(.weather-dashboard) :is(.archive-list, .event-list, .boundary-list, .observer-list, .month-list) { padding: 14px; gap: 12px; }
  body:not(.weather-dashboard) .station-grid,
  body:not(.weather-dashboard) .record-grid,
  body:not(.weather-dashboard) .last-rain-grid { padding: 2px 16px; }
  body:not(.weather-dashboard) .last-rain-grid { grid-template-columns: 1fr; gap: 0; }
  body:not(.weather-dashboard) .last-rain-grid > .metric-card + .metric-card { border-top: 1px solid var(--line); }
  body:not(.weather-dashboard) .history-table-wrap,
  body:not(.weather-dashboard) .table-wrap { padding: 10px 12px 16px; }
  body:not(.weather-dashboard) .filter-row { padding: 16px 14px 0; }
  body:not(.weather-dashboard) .two-column,
  body:not(.weather-dashboard) .training-list { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  body:not(.weather-dashboard) main { padding-inline: 12px; }
  body:not(.weather-dashboard) .topbar nav a { padding-inline: 8px; font-size: .75rem; }
  body:not(.weather-dashboard) .station-grid,
  body:not(.weather-dashboard) .record-grid { grid-template-columns: 1fr; }
  body:not(.weather-dashboard) .station-grid > .metric-card + .metric-card,
  body:not(.weather-dashboard) .record-grid > .metric + .metric { border-top: 1px solid var(--line); }
}


/* History tools use the page scroll; only wide tables scroll horizontally. */
body:not(.weather-dashboard) .table-wrap { max-height: none; }
body:not(.weather-dashboard) #recentDates { flex-basis: 100%; font-size: .85rem; line-height: 2; }
body:not(.weather-dashboard) .legacy-events { margin-top: 24px; }
body:not(.weather-dashboard) summary { cursor: pointer; padding: 12px 0; }
