﻿:root {
  --paper: #f5f6f8;
  --panel: #ffffff;
  --ink: #202630;
  --muted: #606a78;
  --line: #e1e5eb;
  --accent: #355db3;
  --accent-soft: #edf2fc;
  --rail: 80px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 100px; padding: 14px; background: var(--ink); color: white; z-index: 2000; }
.skip-link:focus { top: 12px; }

.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); background: #202733; color: #e8ecf3; display: flex; align-items: center; flex-direction: column; z-index: 100; }
.rail-symbol { display: grid; place-items: center; width: 40px; height: 44px; margin: 18px 0 20px; color: #bdcff5; }
.rail-symbol svg { width: 23px; height: 30px; }
.rail-label { font-size: 9px; letter-spacing: 1.7px; font-weight: 600; writing-mode: vertical-rl; color: #b2bdcd; }
.rail nav { display: flex; flex-direction: column; gap: 12px; margin-top: 36px; width: 100%; padding: 0 8px; }
.rail nav a { text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 62px; color: #b9c3d2; border-radius: 9px; transition: color .15s, background .15s; }
.rail nav a:hover, .rail nav a:focus-visible { color: white; background: #343e4e; }
.rail nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail nav small { font-size: 9px; }
.rail-bottom { margin-top: auto; margin-bottom: 24px; text-align: center; font-size: 8px; line-height: 1.9; letter-spacing: 1px; color: #b2bdcd; }
.page { margin-left: var(--rail); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 21px 40px; gap: 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.wordmark { text-decoration: none; font-size: 23px; font-weight: 650; letter-spacing: -.9px; white-space: nowrap; }
.wordmark > span:first-child { color: #6c7583; font-weight: 400; }
.wordmark-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 4px; }
.topbar-context { display: flex; gap: 18px; align-items: center; font-size: 11px; color: var(--muted); }
.source-badge { font-size: 9px; letter-spacing: 1px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: #f8f9fb; }
main { max-width: 1560px; margin: auto; padding: 0 40px; }
.intro { display: grid; grid-template-columns: 1fr 245px; gap: 50px; padding: 43px 0 34px; align-items: center; }
.eyebrow { font-size: 10px; letter-spacing: 1.15px; font-weight: 600; line-height: 1.5; margin: 0 0 9px; color: var(--muted); }
h1 { font-size: clamp(36px, 3.5vw, 50px); line-height: 1.12; letter-spacing: -1.8px; font-weight: 600; margin: 12px 0 15px; }
h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.5px; font-weight: 600; margin: 0; }
h3 { font-size: 14px; font-weight: 600; margin: 22px 0 8px; }
.lede { font-size: 14px; line-height: 1.75; max-width: 610px; color: var(--muted); margin: 0; }
.intro-note { border-left: 1px solid #d5dce6; padding: 4px 0 4px 24px; }
.note-rule { height: 3px; width: 24px; border-radius: 2px; background: #8397b5; display: block; }
.intro-note p { font-size: 14px; line-height: 1.7; color: #485467; margin: 12px 0 14px; }
.intro-note a { font-size: 11px; text-decoration: none; color: var(--accent); font-weight: 600; }
.intro-note a:hover { text-decoration: underline; text-underline-offset: 4px; }
.intro-note a span { margin-left: 18px; }

.status-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 24px; display: flex; gap: 17px; align-items: center; margin: 10px 0 48px; }
.status-panel strong { font-size: 16px; font-weight: 600; }
.status-panel p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 7px 0 0; }
.status-panel.error { border-left: 3px solid #ab492c; }
.loading-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .25; } }
.controlbar { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.control-heading { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.control-heading strong { font-weight: 600; }
.section-number { font-size: 10px; font-variant-numeric: tabular-nums; color: var(--accent); background: var(--accent-soft); border-radius: 6px; width: 28px; height: 28px; display: grid; place-items: center; }
.filter-fields { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
label { display: flex; flex-direction: column; font-size: 11px; gap: 6px; color: var(--muted); }
input, select { background: #fbfcfd; border: 1px solid #cbd2dd; border-radius: 6px; min-height: 40px; padding: 8px 10px; font-size: 12px; color: var(--ink); max-width: 100%; }
input:hover, select:hover { border-color: #9da9bb; }
.range-arrow { font-size: 14px; margin-bottom: 11px; color: var(--muted); }
.text-button { border: 0; background: none; color: var(--accent); font-size: 12px; min-height: 40px; padding: 8px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.filter-error { width: 100%; margin: 0; color: #a83e23; font-size: 12px; }
.selected-heading { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 15px; gap: 16px; }
.selected-heading .eyebrow { margin-bottom: 5px; }
.selected-heading h2 { font-size: 25px; letter-spacing: -.7px; }
.month-navigation { display: flex; gap: 6px; align-items: center; }
.month-navigation button { border: 1px solid #cbd2dd; border-radius: 6px; background: var(--panel); width: 40px; height: 40px; }
.month-navigation button:not(:disabled):hover { background: var(--accent-soft); border-color: #9eafd0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 18px 20px; min-height: 139px; }
.stat:first-child { border-color: #bfcee6; background: linear-gradient(130deg, #ffffff, #f1f5fc); }
.stat > span { font-size: 11px; color: #535f70; line-height: 1.5; display: block; }
.stat strong { font-size: 34px; letter-spacing: -1.1px; font-weight: 550; font-variant-numeric: tabular-nums; line-height: 1.15; display: block; margin: 10px 0; }
.stat strong.unavailable { font-size: 20px; letter-spacing: -.3px; min-height: 36px; display: flex; align-items: center; }
.stat small { font-size: 10px; color: var(--muted); line-height: 1.6; display: block; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-width: 0; scroll-margin-top: 24px; box-shadow: 0 2px 3px #20263003; }
.panel-heading { padding: 23px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading .eyebrow { font-size: 9px; margin-bottom: 6px; }
.panel-heading h2 { font-size: 21px; }
.small-tag { font-size: 8px; letter-spacing: .8px; border: 1px solid var(--line); background: #f8f9fb; border-radius: 4px; padding: 6px 8px; color: var(--muted); white-space: nowrap; }
.panel-description { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 12px 24px 0; }
.chart { width: 100%; min-width: 0; }
.heatmap { height: 635px; }
.heatmap-legend { display: flex; align-items: center; font-size: 10px; gap: 3px; padding: 18px 25px 0; color: var(--muted); flex-wrap: wrap; }
.heatmap-legend > span:first-child { margin-right: 4px; }
.heatmap-legend > span:nth-last-child(2) { margin-left: 4px; }
.heatmap-legend > i { width: 19px; height: 8px; }
.scale-1 { background: #fcf1dc; }
.scale-2 { background: #f4c690; }
.scale-3 { background: #e79249; }
.scale-4 { background: #cc5b21; }
.scale-5 { background: #73321b; }
.missing-key { margin-left: 16px; display: flex; gap: 5px; align-items: center; }
.missing-key i { height: 8px; width: 10px; background: #e5e7e1; }
.chart-caption { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 0 24px 20px; }
.panel-footer { border-top: 1px solid var(--line); padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.download-group { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.download-group span { margin-right: 3px; }
.download-group button { background: #fafbfd; border: 1px solid #cfd6e0; border-radius: 5px; font-size: 10px; padding: 6px 9px; min-height: 30px; }
.download-group button:hover { background: var(--accent-soft); border-color: #9eafd0; }
.right-column { display: grid; gap: 20px; }
.map-symbol { font-size: 22px; color: #7c8aa0; }
#county-map { height: 330px; background: #f0f3f7; margin: 17px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 1; }
.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { font-size: 9px !important; background: #ffffff !important; }
.map-empty { padding: 20px; font-size: 12px; line-height: 1.6; }
.map-panel .chart-caption { margin-bottom: 20px; }
.peak-list { list-style: none; padding: 0 24px; margin: 14px 0; }
.peak-list li { border-top: 1px solid #e9ecf1; }
.peak-list button { display: flex; gap: 12px; align-items: center; background: none; border: 0; width: 100%; text-align: left; padding: 13px 0; min-height: 48px; font-size: 12px; }
.peak-list button:hover .peak-name { color: var(--accent); }
.peak-rank { font-size: 10px; color: var(--muted); min-width: 16px; font-variant-numeric: tabular-nums; }
.peak-name { flex: 1; }
.peak-value { font-variant-numeric: tabular-nums; color: #3d4d65; font-size: 13px; font-weight: 600; }
.peak-list .empty-peaks { font-size: 12px; color: var(--muted); padding: 20px 0; }
.lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.trend { height: 310px; }
.exports-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; margin: 12px 0 6px; border-bottom: 1px solid var(--line); }
.exports-panel h2 { font-size: 22px; }
.exports-panel p:last-child { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.export-buttons { display: flex; gap: 10px; }
.export-buttons button { padding: 13px 17px; font-size: 12px; white-space: nowrap; border-radius: 7px; min-height: 44px; }
.export-buttons span { margin-left: 20px; }
.primary-button { background: #2e3c51; color: white; border: 1px solid #2e3c51; }
.primary-button:hover { background: #233146; }
.secondary-button { background: var(--panel); border: 1px solid #c7cfdb; }
.secondary-button:hover { background: #edf1f7; }
.methods { margin: 20px 0; }
.methods summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; gap: 15px; align-items: center; border-radius: 12px; }
.methods summary:hover { background: #fafbfd; }
.methods summary::-webkit-details-marker { display: none; }
.methods summary > span:first-child { display: flex; flex-direction: column; }
.methods summary .eyebrow { font-size: 9px; }
.methods summary strong { font-size: 19px; font-weight: 550; letter-spacing: -.3px; }
.details-icon { font-size: 22px; color: #6b7d96; }
.methods[open] .details-icon { transform: rotate(45deg); }
.methods-content { border-top: 1px solid var(--line); padding: 0 24px 24px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.methods p, .methods li { font-size: 12px; line-height: 1.8; color: #535f70; }
.methods ul { padding-left: 18px; }
.methods a { color: var(--accent); text-underline-offset: 3px; }
.validation-status { border-left: 3px solid #a86b3a; padding: 9px 12px; background: #f7f2ed; }
.validation-status.passed { border-color: #5a7e73; background: #eff5f2; }
.metrics-table { border-collapse: collapse; width: 100%; font-size: 11px; margin: 13px 0; }
.metrics-table th, .metrics-table td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; }
.metrics-table th { font-weight: 500; color: var(--muted); }
.metrics-table td:last-child { font-variant-numeric: tabular-nums; }
.quality-items { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 12px; color: var(--muted); }
.quality-items strong { color: var(--ink); font-weight: 500; }
.action-status { font-size: 12px; color: #805125; margin: 0 0 15px; min-height: 18px; }
footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 40px 30px; color: var(--muted); background: #f0f2f5; }
.footer-brand { text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -.7px; color: #485467; }
footer p { font-size: 10px; line-height: 1.8; margin: 0; }
footer > span { font-size: 9px; letter-spacing: 1px; }
.chart .modebar { display: none !important; }

@media (min-width: 1500px) {
  .heatmap { height: 675px; }
  #county-map { height: 365px; }
}
@media (max-width: 1150px) {
  main { padding: 0 26px; }
  .topbar, footer { padding-left: 26px; padding-right: 26px; }
  .source-badge { display: none; }
  .intro { grid-template-columns: 1fr 200px; gap: 28px; }
  .controlbar { align-items: start; }
  .control-heading { padding-top: 6px; }
  .filter-fields { gap: 8px; }
  .main-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); }
  .stat { padding: 16px 14px; }
  .stat > span { font-size: 10px; }
  .stat strong { font-size: 30px; }
  .panel-heading { padding-left: 20px; padding-right: 20px; }
  .panel-heading h2 { font-size: 20px; }
  .panel-description, .chart-caption { margin-left: 20px; margin-right: 20px; }
  .small-tag { display: none; }
  .export-buttons button { padding: 13px 12px; }
  .export-buttons span { margin-left: 13px; }
  .lower-grid { grid-template-columns: 1fr; }
  .trend { height: 300px; }
}
@media (max-width: 900px) {
  :root { --rail: 68px; }
  .rail nav { padding: 0 4px; }
  .rail nav small { font-size: 8px; }
  .rail-bottom { font-size: 7px; }
  .intro { grid-template-columns: 1fr; padding-top: 34px; }
  .intro-note { display: none; }
  .main-grid { grid-template-columns: 1fr; }
  .right-column { grid-template-columns: 1fr 1fr; align-items: start; }
  #county-map { height: 300px; }
  .stats { gap: 8px; }
  .stat strong { font-size: 28px; }
  .heatmap { height: 675px; }
  .exports-panel { align-items: start; flex-direction: column; }
  .method-grid { grid-template-columns: 1fr; gap: 0; }
  footer > span { display: none; }
}
@media (max-width: 600px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  .topbar { padding: 18px 20px; gap: 12px; }
  .wordmark { font-size: 22px; }
  .topbar-context { font-size: 10px; max-width: 137px; text-align: right; line-height: 1.6; }
  main { padding: 0 16px; }
  .intro { padding: 30px 4px 27px; }
  h1 { font-size: 39px; letter-spacing: -1.4px; }
  .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .lede { font-size: 13px; }
  .controlbar { padding: 17px; gap: 16px; }
  .control-heading { padding: 0; }
  .filter-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; gap: 12px; }
  .filter-fields label:nth-of-type(3) { grid-column: 1 / -1; }
  .filter-fields label select { width: 100%; }
  .filter-fields .range-arrow { display: none; }
  .text-button { grid-column: 1 / -1; text-align: left; padding: 0; min-height: 24px; justify-self: start; }
  .selected-heading { margin: 24px 2px 14px; gap: 8px; }
  .selected-heading h2 { font-size: 22px; }
  .month-navigation { gap: 4px; }
  .month-navigation input { width: 117px; padding: 5px; font-size: 11px; }
  .month-navigation button { width: 30px; font-size: 13px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
  .stat { min-height: 137px; padding: 15px 14px; }
  .stat strong { font-size: 31px; }
  .stat > span { font-size: 10px; min-height: 30px; }
  .main-grid, .right-column, .lower-grid { grid-template-columns: 1fr; gap: 16px; }
  .panel-heading { padding: 21px 18px 0; }
  .panel-heading h2 { font-size: 21px; }
  .panel-description, .chart-caption { margin-left: 18px; margin-right: 18px; }
  .panel-description { font-size: 11px; }
  .chart-caption { font-size: 10px; }
  .heatmap { height: 640px; }
  .heatmap-legend { padding-left: 19px; font-size: 9px; }
  .heatmap-legend > i { width: 16px; }
  .missing-key { margin-left: 8px; }
  .panel-footer { padding: 12px 18px; font-size: 9px; align-items: start; flex-direction: column; gap: 10px; }
  .panel-footer .download-group { align-self: flex-end; }
  .trend { height: 290px; }
  .lower-grid { margin-top: 16px; }
  .exports-panel { padding: 23px 3px; margin-top: 7px; }
  .exports-panel h2 { font-size: 21px; }
  .export-buttons { width: 100%; gap: 8px; }
  .export-buttons button { flex: 1; font-size: 11px; padding: 13px 9px; }
  .export-buttons span { margin-left: 8px; }
  .methods summary { padding: 20px 17px; }
  .methods summary strong { font-size: 18px; }
  .methods-content { padding: 0 18px 20px; }
  .methods p, .methods li, .quality-items { font-size: 11px; }
  .metrics-table { font-size: 10px; }
  .metrics-table th, .metrics-table td { padding: 7px 4px; }
  footer { padding: 24px 20px; align-items: start; gap: 15px; }
  .footer-brand { font-size: 19px; }
  footer p { font-size: 9px; }
  .skip-link { left: 16px; }
}
@media (max-width: 370px) {
  .filter-fields { grid-template-columns: minmax(0, 1fr); }
  .selected-heading { align-items: start; flex-direction: column; }
  .month-navigation { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loading-dot { animation: none; }
  .rail nav a { transition: none; }
}
