:root {
  --bg: oklch(98% 0.004 240);
  --surface: oklch(100% 0 0);
  --fg: oklch(30.561% 0.06410 163.509);
  --muted: oklch(49% 0.018 170);
  --border: oklch(90% 0.006 240);
  --accent: oklch(30.561% 0.06410 163.509);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-mono: Consolas, monospace;
  --soft: oklch(95% 0.013 165);
  --hover: oklch(92% 0.018 165);
  --ink-hover: oklch(23% 0.045 163);
  --control-border: oklch(61% 0.025 170);
  --warn: oklch(40% 0.078 66);
  --warn-bg: oklch(96% 0.025 78);
  --danger: oklch(42% 0.14 28);
  --success: oklch(36% 0.07 163);
  --radius: 12px;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
button, input, select { border-radius: 8px; }
button { color: var(--fg); background: var(--surface); border: 1px solid var(--control-border); min-height: 44px; padding: 9px 16px; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
button:hover { background: var(--hover); }
button:active, .primary:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: default; }
input, select { min-height: 44px; min-width: 0; color: var(--fg); background: var(--surface); border: 1px solid var(--control-border); padding: 10px 12px; }
input::placeholder { color: var(--muted); opacity: 1; }
input:hover, select:hover { border-color: var(--fg); }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; }
input:focus-visible { outline-offset: 2px; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin-top: 0; }
h1,h2 { font-family: var(--font-display); font-weight: 400; }
h1 { font-size: clamp(38px, 4.1vw, 58px); letter-spacing: -.028em; line-height: 1.07; text-wrap: balance; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.015em; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
p { max-width: 68ch; }
svg { display: inline-block; width: 18px; height: 18px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1480px, calc(100% - 80px)); margin-inline: auto; }
.eyebrow { font-size: 11px; line-height: 1.5; letter-spacing: .09em; font-weight: 600; text-transform: uppercase; }
.muted, .meta { color: var(--muted); }
.meta { font-size: 12px; letter-spacing: .015em; line-height: 1.5; }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--fg); color: var(--surface); padding: 12px 18px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 82px; height: auto; }
.brand-name { font-family: var(--font-display); font-size: 20px; line-height: 1.05; letter-spacing: -.015em; }
.brand-name span { display: block; margin-top: 3px; font-family: var(--font-body); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.main-nav a { display: inline-flex; min-height: 48px; align-items: center; padding: 8px 2px; font-size: 14px; letter-spacing: .02em; text-decoration: none; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--control-border); }
.main-nav a[aria-current=page] { border-bottom-color: var(--fg); font-weight: 600; }
.concept-label { border: 1px solid var(--border); border-radius: 50px; padding: 5px 11px; color: var(--muted); font-size: 11px; letter-spacing: .025em; }
.directory { padding-block: 30px 40px; }
.directory-top h1 { margin: 0; font-size: clamp(30px, 6vw, 42px); line-height: 1.1; }
.section-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 26px; }
.count-badge { border: 1px solid var(--border); border-radius: 50px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.directory-controls { display: grid; grid-template-columns: minmax(250px, 1fr) auto; gap: 16px; align-items: center; }
.search-box { position: relative; }
.search-box > svg { position: absolute; left: 16px; top: 16px; pointer-events: none; }
.search-box input { width: 100%; height: 52px; padding-left: 45px; padding-right: 48px; background: var(--surface); }
.search-clear { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.filters { display: flex; align-items: center; gap: 5px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.filters button { border: 0; background: transparent; padding: 9px 15px; font-size: 13px; white-space: nowrap; }
.filters button:hover { background: var(--hover); }
.filters button[aria-pressed=true] { background: var(--accent); color: var(--surface); }
.filters button[aria-pressed=true]:hover { background: var(--ink-hover); color: var(--surface); }
.toolbar-lower { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; }
.origin-form { display: flex; align-items: center; gap: 10px; min-width: 0; }
.origin-form label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.origin-field { display: flex; align-items: center; border: 1px solid var(--control-border); border-radius: 8px; background: var(--surface); }
.origin-field input { border: 0; background: transparent; padding: 8px 10px; width: 205px; font-size: 14px; }
.origin-field button { border: 0; width: 44px; padding: 8px; background: transparent; border-radius: 0 8px 8px 0; }
.origin-field button:hover { background: var(--hover); }
.origin-status { font-size: 12px; color: var(--muted); max-width: 270px; }
.result-note { margin: 0; font-size: 12px; color: var(--muted); text-align: right; }
.snapshot-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 16px; background: var(--soft); border: 1px solid var(--border); border-radius: 10px 10px 0 0; font-size: 12px; }
.snapshot-note p { margin: 0; max-width: none; }
.snapshot-note a { font-weight: 600; padding-block: 4px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 6px; vertical-align: 2px; }
.table-scroll { width: 100%; max-height: 880px; overflow: auto; overscroll-behavior-x: contain; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 10px 10px; background: var(--surface); scrollbar-color: var(--control-border) var(--soft); }
table { width: 100%; min-width: 1260px; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: left; font-size: 13px; line-height: 1.5; }
th { position: sticky; top: 0; z-index: 3; background: var(--soft); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 16px 14px; border-bottom: 1px solid var(--control-border); vertical-align: top; }
td { padding: 20px 14px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
th:first-child, td:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--border); }
th:first-child { z-index: 4; background: var(--soft); }
tbody tr:hover td { background: var(--bg); }
tbody tr[data-selected=true] td:first-child { background: var(--soft); }
td p { margin: 0 0 7px; }
.water-link { display: block; font-size: 16px; line-height: 1.3; font-weight: 600; padding: 3px 0 7px; text-decoration: none; min-height: 44px; }
.water-link:hover { text-decoration: underline; }
.water-link svg { width: 14px; height: 14px; margin-left: 4px; }
.reach-name { display: block; margin-top: 1px; font-size: 12px; line-height: 1.45; font-weight: 400; color: var(--muted); }
.water-meta { margin-top: 10px; font-size: 11px; letter-spacing: .015em; color: var(--muted); }
.species-list { list-style: none; margin: 0; padding: 0; }
.species-list li + li { margin-top: 4px; }
.cell-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 12px; font-weight: 600; }
.cell-link svg { width: 13px; height: 13px; }
.cell-label { font-weight: 600; }
.report-toggle { margin-top: 7px; }
summary { min-height: 44px; cursor: pointer; padding: 9px 0; font-size: 12px; font-weight: 600; }
summary:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
details[open] > summary { margin-bottom: 7px; }
.report-copy { padding-top: 4px; font-size: 12px; }
.alert-label { display: inline-flex; align-items: center; gap: 5px; color: var(--warn); font-size: 11px; font-weight: 600; letter-spacing: .02em; margin-bottom: 7px; }
.alert-label svg { width: 14px; height: 14px; }
.alert-label.unverified { color: var(--muted); }
.alert-item + .alert-item { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.cell-alert { font-size: 12px; }
.review-date { font-weight: 600; font-size: 12px; }
.table-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); padding: 14px 2px; }
.empty-state { text-align: center; padding: 54px 24px; background: var(--surface); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 12px 12px; }
.empty-state h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin: 0 0 10px; }
.empty-state p { margin: 0 auto 20px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 14px; font-weight: 600; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 25px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 12px; color: var(--muted); }
.footer-brand { font-family: var(--font-display); font-size: 17px; color: var(--fg); }
.footer-inner p { margin: 0; }
.breadcrumbs { padding: 22px 0 15px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.breadcrumbs a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.detail-heading { padding: 16px 0 25px; max-width: 920px; }
.detail-heading h1 { margin: 12px 0 10px; }
.detail-heading .reach-title { font-size: 20px; margin-bottom: 12px; }
.detail-heading .description { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.reach-bar { position: sticky; top: 0; z-index: 10; background: var(--surface); border-block: 1px solid var(--border); }
.reach-bar-inner { display: flex; align-items: center; gap: 20px; justify-content: space-between; padding-block: 10px; }
.reach-identity { max-width: 55%; font-size: 14px; font-weight: 600; line-height: 1.4; }
.reach-identity span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 3px; }
.reach-bar nav { display: flex; gap: 22px; }
.reach-bar nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; text-decoration: none; }
.reach-bar nav a:hover { text-decoration: underline; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 48px; padding-block: 30px 48px; align-items: start; }
.detail-section { padding: 26px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 115px; }
.detail-section:first-child { padding-top: 0; }
.detail-section h2 { margin-bottom: 16px; }
.detail-section p:last-child { margin-bottom: 0; }
.species-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.species-tags li { border: 1px solid var(--control-border); padding: 7px 12px; border-radius: 7px; background: var(--surface); font-size: 14px; }
.reading-note { padding: 14px 16px; background: var(--soft); border-radius: 8px; font-size: 13px; }
.report-panel { background: var(--surface); border: 1px solid var(--border); padding: 22px; border-radius: 12px; }
.report-panel h3 { margin: 14px 0 10px; font-size: 18px; line-height: 1.5; }
.report-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; font-size: 12px; color: var(--muted); }
.report-age { background: var(--soft); color: var(--fg); border-radius: 5px; padding: 3px 7px; font-size: 11px; font-weight: 600; }
.coverage { margin: 15px 0; padding-top: 15px; border-top: 1px solid var(--border); font-size: 14px; }
.coverage strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.sidebar { display: grid; gap: 22px; }
.access-panel { border: 1px solid var(--control-border); background: var(--surface); border-radius: 12px; padding: 24px; scroll-margin-top: 110px; }
.access-panel h2 { margin: 12px 0 14px; font-size: 28px; }
.access-panel p { font-size: 14px; }
.destination { background: var(--soft); border-radius: 8px; padding: 15px; margin: 18px 0; }
.destination strong { font-size: 15px; display: block; margin-top: 5px; }
.access-panel .origin-form { display: block; }
.access-panel .origin-form label { display: block; margin: 0 0 6px; }
.access-panel .origin-field input { width: 100%; }
.access-panel .origin-field { width: 100%; }
.access-panel .origin-status { min-height: 24px; margin-top: 6px; display: block; }
.primary { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 11px 20px; border-radius: 8px; background: var(--accent); color: var(--surface); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.primary:hover { background: var(--ink-hover); color: var(--surface); text-decoration: none; }
.access-panel .primary { margin-top: 15px; }
.access-unconfirmed { border: 1px solid var(--control-border); border-radius: 8px; padding: 15px; background: var(--soft); font-size: 14px; }
.alerts-panel { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); scroll-margin-top: 110px; }
.alerts-panel h2 { margin-bottom: 8px; font-size: 26px; }
.alerts-panel > p { font-size: 12px; color: var(--muted); }
.alerts-panel .alert-item { font-size: 14px; }
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { border-bottom: 1px solid var(--border); }
.source-list a { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; text-decoration: none; font-size: 14px; }
.source-list a:hover { text-decoration: underline; }
.source-list svg { width: 15px; height: 15px; }
.adjacent-waters { display: flex; justify-content: space-between; gap: 30px; padding-block: 25px 40px; border-top: 1px solid var(--border); }
.adjacent-waters a { max-width: 46%; font-size: 14px; padding: 8px 0; }
.adjacent-waters a:last-child { text-align: right; margin-left: auto; }
.adjacent-waters small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.approach-header { max-width: 800px; padding-block: 48px 28px; }
.approach-header h1 { margin: 14px 0 20px; }
.approach-header > p { color: var(--muted); font-size: 18px; }
.approach-grid { display: grid; grid-template-columns: 240px minmax(0, 780px); gap: 80px; padding-block: 20px 60px; }
.approach-aside { border-top: 1px solid var(--control-border); padding-top: 18px; font-size: 14px; }
.approach-aside p { margin: 14px 0 24px; }
.approach-aside a { display: flex; align-items: center; gap: 8px; }
.principle { border-top: 1px solid var(--border); padding: 24px 0; display: grid; grid-template-columns: 36px 1fr; gap: 18px; }
.principle > span { font-size: 12px; padding-top: 5px; color: var(--muted); }
.principle h2 { font-size: 26px; margin-bottom: 12px; }
.principle p { font-size: 15px; margin-bottom: 10px; }
.source-directory { margin: 15px 0; }
.source-directory > details { border-top: 1px solid var(--border); padding: 7px 0; }
.source-directory > details > summary { font-size: 15px; }
.source-directory > details > summary .meta { display: block; margin-left: 16px; font-weight: 400; }
.source-directory .source-content { padding: 10px 0 20px 16px; }
.not-found { padding: 70px 0; }
.filters button[aria-pressed=true] .filter-count { color: var(--surface); }
.filter-count { margin-left: 3px; }
.trending { padding-top: 28px; margin-top: 20px; border-top: 1px solid var(--border); }
.trending-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.trend-card { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-decoration: none; background: var(--surface); }
.trend-card:hover { background: var(--hover); text-decoration: none; border-color: var(--control-border); }
.trend-card > svg { margin-left: auto; margin-top: 4px; }
.trend-card strong { font-weight: 600; font-size: 15px; }
.trend-number { font-family: var(--font-display); font-size: 25px; line-height: 1.1; }
.trend-card .meta { display: block; margin-top: 10px; }
.monitor-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.monitor-panel h3 { margin: 10px 0; }
.monitor-actions { display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.readings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 20px 0; }
.readings-grid dt { font-size: 12px; color: var(--muted); }
.readings-grid dd { margin: 5px 0; font-size: 24px; }
.readings-grid dd small { font-size: 13px; }
.trending-empty { padding: 22px; border: 1px dashed var(--control-border); border-radius: 12px; display: flex; gap: 25px; align-items: center; font-size: 14px; background: var(--surface); }
.trending-empty span { color: var(--muted); }
.member-score-cell { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.member-score-cell > strong, .member-score-cell > span { display: block; }
.member-score-cell .cell-link { font-weight: 400; }
.member-score-panel { padding: 20px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--soft); }
.member-score-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.member-score-top h3 { margin: 0; }
.member-score-panel .score-status { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.member-score-panel .small { margin-bottom: 8px; }
.membership-page { max-width: 1200px; padding-bottom: 60px; }
.membership-heading { padding-block: 48px 34px; max-width: 850px; }
.membership-heading h1 { margin: 14px 0 20px; }
.membership-heading > p { color: var(--muted); font-size: 18px; max-width: 60ch; }
.membership-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 64px; align-items: start; }
.membership-story { padding-top: 22px; border-top: 1px solid var(--control-border); }
.membership-story > h2 { margin: 12px 0 16px; }
.membership-story > p { font-size: 15px; }
.membership-features { list-style: none; padding: 0; margin: 24px 0; counter-reset: benefits; }
.membership-features li { position: relative; counter-increment: benefits; padding: 18px 0 18px 38px; border-top: 1px solid var(--border); }
.membership-features li::before { content: "0" counter(benefits); position: absolute; left: 0; top: 21px; color: var(--muted); font-size: 12px; }
.membership-features h3 { margin: 0 0 6px; }
.membership-features p { font-size: 14px; color: var(--muted); margin: 0; }
.membership-price { background: var(--surface); padding: 30px; border: 1px solid var(--control-border); border-radius: var(--radius); }
.membership-price > h2 { margin: 22px 0; }
.membership-price > p { font-size: 14px; }
.membership-price .membership-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 16px; }
.membership-amount strong { font-family: var(--font-display); font-size: 54px; letter-spacing: -.025em; line-height: 1.1; font-weight: 400; }
.membership-amount span { font-size: 14px; color: var(--muted); }
.membership-availability { padding-block: 18px; margin-top: 24px; border-top: 1px solid var(--border); font-size: 14px; }
.membership-availability p { margin: 7px 0 0; color: var(--muted); }
.membership-price .primary { margin-top: 8px; }
.membership-free { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 34px; margin-top: 40px; border-block: 1px solid var(--border); }
.membership-free h2 { margin: 12px 0; }
.membership-free p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.membership-free ul { padding-left: 20px; margin: 0; font-size: 14px; }
.membership-free li { padding-block: 5px; }
.membership-faq { max-width: 850px; margin-top: 36px; }
.membership-faq details { border-top: 1px solid var(--border); }
.membership-faq summary { padding-block: 16px; font-size: 15px; }
.membership-faq details p { font-size: 14px; margin: 0 0 22px; }
@media (max-width: 900px) {
  .membership-layout, .membership-free { gap: 30px; }
}
@media (min-width: 1650px) {
  table { font-size: 14px; }
  td { padding: 22px 16px; }
}
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 48px); }
  .concept-label { display: none; }
  .directory-controls { grid-template-columns: 1fr; }
  .filters { justify-self: start; }
  .detail-grid { gap: 28px; grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr); }
  .approach-grid { gap: 40px; grid-template-columns: 200px minmax(0, 1fr); }
  .origin-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 700px) {
  .membership-layout, .membership-free { grid-template-columns: 1fr; gap: 24px; }
  .membership-heading { padding-block: 30px 20px; }
  .membership-heading h1 { font-size: 39px; }
  .membership-heading > p { font-size: 16px; }
  .membership-price { padding: 24px; }
  .membership-price { grid-row: 1; }
  .membership-free { margin-top: 24px; }
  .membership-page { padding-bottom: 36px; }
  .trending-grid { grid-template-columns: 1fr; }
  .trending-empty { flex-direction: column; align-items: flex-start; gap: 8px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 120px; flex-wrap: wrap; justify-content: center; gap: 5px; padding-top: 15px; }
  .brand { gap: 10px; margin-right: auto; }
  .brand img { width: 66px; }
  .brand-name { font-size: 19px; }
  .brand-name span { font-size: 10px; }
  .main-nav { width: 100%; gap: 0 20px; }
  .main-nav a { min-height: 45px; font-size: 13px; }
  .section-heading { margin-bottom: 15px; }
  .section-heading h2 { font-size: 25px; }
  .count-badge { font-size: 11px; }
  .directory-controls { gap: 10px; }
  .search-box input { font-size: 14px; }
  .filters { width: 100%; gap: 3px; }
  .filters button { padding-inline: 10px; font-size: 12px; flex: 1; }
  .toolbar-lower { display: block; padding-block: 12px; }
  .origin-form { gap: 8px; }
  .origin-field { flex: 1; }
  .origin-field input { width: 100%; }
  .origin-form label { font-size: 12px; }
  .result-note { text-align: left; margin-top: 10px; font-size: 11px; }
  .snapshot-note { font-size: 11px; padding: 11px 12px; gap: 4px; }
  .snapshot-note a { display: inline-flex; align-items: center; min-height: 44px; }
  .table-scroll { max-height: 78vh; }
  table { min-width: 1210px; }
  th:first-child, td:first-child { width: 160px; }
  col:first-child { width: 160px !important; }
  td { padding: 17px 12px; }
  .water-link { font-size: 15px; }
  .reach-name { font-size: 11px; }
  .water-meta { font-size: 10px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-inner p { max-width: 40ch; }
  .breadcrumbs { padding: 12px 0 8px; }
  .detail-heading { padding: 12px 0 24px; }
  .detail-heading h1 { font-size: 40px; }
  .detail-heading .reach-title { font-size: 18px; }
  .reach-bar-inner { flex-direction: column; align-items: flex-start; gap: 5px; padding-block: 9px 0; }
  .reach-identity { max-width: 100%; font-size: 13px; }
  .reach-identity span { font-size: 11px; }
  .reach-bar nav { width: 100%; gap: 25px; }
  .reach-bar nav a { font-size: 12px; min-height: 44px; }
  .detail-grid { grid-template-columns: 1fr; gap: 25px; padding-top: 24px; }
  .detail-section { scroll-margin-top: 155px; }
  .detail-section h2 { font-size: 27px; }
  .report-panel, .access-panel, .alerts-panel { padding: 20px; }
  .sidebar { gap: 18px; }
  .access-panel, .alerts-panel { scroll-margin-top: 155px; }
  .detail-grid .reading-note { font-size: 12px; }
  .approach-header { padding-block: 30px 10px; }
  .approach-header h1 { font-size: 39px; }
  .approach-header > p { font-size: 16px; }
  .approach-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 15px; }
  .approach-aside { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .approach-aside .eyebrow { grid-column: 1 / -1; }
  .approach-aside p { font-size: 13px; margin: 10px 0; }
  .principle { gap: 8px; grid-template-columns: 28px 1fr; }
  .principle h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* At-a-glance facts and multi-point access, built only from the record's own fields. */
.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fact-strip div { padding: 14px 16px; border-left: 1px solid var(--border); }
.fact-strip div:first-child { border-left: 0; padding-left: 0; }
.fact-strip dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact-strip dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 24px; line-height: 1.15; }
.access-points { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.access-points ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.access-points li { background: var(--soft); border-radius: 8px; padding: 13px 15px; }
.access-points li strong { display: block; font-size: 15px; margin-top: 2px; }
.access-points li p { margin: 4px 0 8px; font-size: 13px; }
.access-points .meta { font-size: 12px; }
.point-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 640px) {
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-strip div:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact-strip div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .fact-strip dd { font-size: 20px; }
}

/* Water map: satellite or topo base, USGS hydrography overlay, one pin per reach. */
.map-page { padding-bottom: 48px; }
.map-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46ch); gap: 12px 48px; align-items: end; padding: 40px 0 26px; }
.map-heading h1 { margin: 12px 0 0; }
.map-heading p { margin: 0; color: var(--muted); }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.map-frame { position: relative; border: 1px solid var(--control-border); border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.water-map { height: min(72vh, 720px); min-height: 420px; background: oklch(88% 0.02 200); }
.map-toolbar { position: absolute; top: 12px; left: 56px; right: 12px; z-index: 500; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.map-toolbar .filters { pointer-events: auto; box-shadow: 0 2px 10px oklch(20% 0.03 165 / .18); }
.map-filters button { min-height: 36px; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--muted); }
.map-legend label { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 600; }
.map-legend input { min-height: 0; width: 16px; height: 16px; accent-color: var(--accent); }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--control-border); vertical-align: -1px; margin-right: 6px; flex: none; }
.dot.river { background: #023926; }
.dot.lake { background: #2f6d8a; }
.map-legend .line { display: inline-block; width: 22px; height: 4px; border-radius: 2px; background: #f2c94c; box-shadow: 0 0 0 2px oklch(20% 0.03 165 / .45); vertical-align: 2px; margin-right: 6px; }
.map-side { display: grid; gap: 16px; }
.map-card { border: 1px solid var(--control-border); border-radius: var(--radius); background: var(--surface); padding: 20px; }
.map-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 8px 0 2px; }
.map-card .reach-name { margin: 0 0 14px; }
.map-card .species-tags li { font-size: 13px; padding: 5px 10px; }
.map-card-empty { margin: 8px 0 0; color: var(--muted); }
.map-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; }
.map-card-actions .primary { min-height: 44px; }
.map-list-head { display: flex; align-items: center; gap: 10px; }
.map-list-head h2 { margin: 0; font-size: 22px; }
.map-list { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.map-list li + li { border-top: 1px solid var(--border); }
.map-list button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 4px; width: 100%; min-height: 56px; border: 0; padding: 11px 14px; text-align: left; font-weight: 400; letter-spacing: 0; background: transparent; }
.map-list button .dot { grid-row: 1 / 3; align-self: center; }
.map-list button strong { display: block; font-size: 15px; }
.map-list button .meta { grid-column: 2; font-size: 12px; }
.map-list button[aria-pressed=true] { background: var(--soft); box-shadow: inset 3px 0 0 var(--accent); }
.map-note { margin-top: 14px; max-width: 90ch; }
.map-fallback { padding: 40px 20px; text-align: center; color: var(--muted); }
.map-tip { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--fg); }
.map-tip span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-container svg { width: auto; height: auto; display: block; vertical-align: baseline; flex: none; fill: initial; stroke: initial; stroke-width: initial; }
.leaflet-container img { height: auto; }
.map-toolbar .filters { width: auto; flex: 0 0 auto; }
@media (max-width: 900px) {
  .map-heading { grid-template-columns: 1fr; padding-top: 28px; }
  .map-layout { grid-template-columns: 1fr; }
  .water-map { height: 62vh; min-height: 360px; }
  .map-list { max-height: none; }
}
@media (max-width: 640px) {
  .map-toolbar { left: 52px; top: 10px; }
  .map-legend label { margin-left: 0; }
}

/* Dam and trap counts */
.count-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); margin-top: 14px; }
.count-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.count-top h3 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.count-table-wrap { overflow-x: auto; margin: 12px 0 6px; }
.count-table { width: 100%; min-width: 0; table-layout: auto; border-collapse: collapse; font-size: 14px; }
.count-table th, .count-table td { position: static; padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: right; background: none; box-shadow: none; }
.count-table thead th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.count-table th:first-child { text-align: left; }
.count-table tbody th { font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 14px; }
.count-table td { font-variant-numeric: tabular-nums; white-space: nowrap; overflow-wrap: normal; }
.count-cell { margin-top: 10px; }
@media (max-width: 640px) { .count-table { font-size: 13px; } .count-table th, .count-table td { padding: 8px 6px; } .count-panel { padding: 16px; } }

.count-live { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 12px 0 4px; padding: 10px 12px; background: var(--soft); border-radius: 8px; }
.count-live .meta { flex-basis: 100%; font-size: 12px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px oklch(42% 0.14 28 / .18); }

/* Trout stocking */
.stock-callout { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 13px 16px; border: 1px solid var(--control-border); border-radius: 10px; background: var(--surface); color: var(--fg); text-decoration: none; }
.stock-callout:hover { background: var(--hover); text-decoration: none; }
.stock-callout > span:nth-child(2) { display: grid; gap: 2px; }
.stock-callout .meta { font-size: 12px; }
.stock-callout svg { margin-left: auto; }
.stock-tiles { margin: 0 0 22px; }
.stock-tiles dd small { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.stock-controls { margin-bottom: 8px; }
.stock-controls select { border-radius: 8px; }
#stock-count { text-align: left; margin: 6px 0 4px; }
.stock-group h2 { display: flex; align-items: center; gap: 10px; font-size: 26px; margin: 26px 0 12px; }
.stock-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.stock-card { display: grid; gap: 4px; align-content: start; padding: 15px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stock-card.is-now { border-color: var(--control-border); box-shadow: inset 3px 0 0 var(--accent); }
.stock-card strong { font-size: 16px; }
.stock-card p { margin: 4px 0 6px; font-size: 14px; }
.stock-week { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 4px; }
.stock-week .meta { font-size: 12px; }
#stocking .stock-list { grid-template-columns: 1fr; margin: 12px 0; }
@media (max-width: 640px) {
  .stock-list { grid-template-columns: 1fr; }
  .stock-controls select { width: 100%; }
}

/* Member preview */
.preview-banner { background: var(--accent); color: var(--surface); font-size: 13px; }
.preview-banner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 10px; padding-bottom: 10px; }
.preview-banner strong { margin-right: 8px; letter-spacing: .02em; }
.preview-actions { display: inline-flex; align-items: center; gap: 14px; }
.preview-banner a { color: var(--surface); text-decoration: underline; text-underline-offset: 3px; }
.preview-banner button { min-height: 34px; padding: 5px 12px; border-radius: 8px; border-color: var(--surface); background: transparent; color: var(--surface); }
.preview-banner button:hover { background: var(--ink-hover); }
.preview-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 50px; background: var(--warn-bg); color: var(--warn); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; font-family: var(--font-body); }
.score-ring { --score: 0; display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--score) * 1%), var(--border) 0); }
.score-ring > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); font-family: var(--font-display); font-size: 17px; font-variant-numeric: tabular-nums; }
.score-inline { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.score-inline b { display: block; font-size: 14px; }
.score-inline .meta { font-size: 12px; }
.score-hero { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.score-hero .score-ring { width: 84px; height: 84px; }
.score-hero .score-ring > span { width: 66px; height: 66px; font-size: 30px; }
.score-hero .score-status { margin: 0; }
.score-hero .small { margin: 2px 0 0; }
.score-factors { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.factor-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.factor-top span { color: var(--muted); text-align: right; }
.factor-bar { display: block; height: 6px; margin: 6px 0 4px; border-radius: 3px; background: var(--border); overflow: hidden; }
.factor-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.score-factors .meta { margin: 0; font-size: 12px; }
.score-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.score-sort select { min-height: 40px; border-radius: 8px; padding: 6px 10px; color: var(--fg); }
.preview-cta { margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.preview-cta button { width: 100%; min-height: 48px; border-radius: 8px; }
.preview-cta button.primary { justify-content: center; }
.preview-cta .small { margin: 8px 0 0; color: var(--muted); }
td:first-child .member-score-cell.is-preview { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.stock-all { margin: 4px 0 12px; }
.stock-all summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 6px 0; }
.stock-all .stock-list { margin-top: 10px; }
.score-note { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 13px; }
