@charset "UTF-8";
:root {
  --paper: #f4f4f0; --white: #fff; --ink: #202729; --muted: #62696a;
  --line: #d5d8d5; --accent: #b74313; --orange: #ed682e; --blue: #245fd0;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--paper); color-scheme: light;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 4px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: inherit; }
h1 { font-size: clamp(42px, 5.5vw, 78px); line-height: 1; letter-spacing: -.065em; font-weight: 800; }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.04em; font-weight: 650; }
h3 { font-size: 22px; letter-spacing: -.03em; }
p { line-height: 1.65; }
.accent { color: var(--accent); }
.eyebrow, .label { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .8px; line-height: 1.5; }
.eyebrow { color: var(--accent); margin-bottom: 17px; }
.label { color: var(--muted); }
.skip { position: absolute; top: -100px; padding: 18px; background: white; z-index: 100; }
.skip:focus { top: 10px; left: 10px; }
.masthead { position: relative; z-index: 12; height: 90px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: var(--white); }
.brand { display: flex; align-items: center; gap: 13px; font-size: 26px; font-weight: 850; letter-spacing: -1.3px; line-height: 1; }
.brand img { width: 40px; height: 40px; border-radius: 0; }
.brand-sub { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: 1.6px; font-weight: 400; margin-top: 8px; }
.connection { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.connection.is-offline { color: var(--accent); }
main { margin-left: 168px; padding: 42px 48px 70px; max-width: 1550px; outline: none; }
.bottom-nav { position: fixed; left: 0; top: 90px; bottom: 0; width: 168px; padding: 35px 0; background: var(--ink); color: #d2d9d8; display: flex; flex-direction: column; z-index: 10; }
.bottom-nav:after { content: "BUFFALO\A NATIONAL RIVER\A\A ARKANSAS / USA"; white-space: pre; font-family: var(--mono); font-size: 8px; line-height: 1.8; letter-spacing: .8px; color: #a7b0ad; margin: auto 22px 0; }
.bottom-nav a { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 15px 22px; border-left: 3px solid transparent; font-size: 12px; font-weight: 500; }
.bottom-nav a[aria-current] { color: white; border-left-color: var(--orange); background: #30383b; }
.bottom-nav a[aria-current] svg { color: #ff9565; }
.bottom-nav a:hover { background: #30383b; }
.bottom-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 30px; }
.page-heading .lede { color: var(--muted); font-size: 14px; margin-top: 18px; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 22px; padding: 13px 20px; border: 1px solid var(--ink); background: var(--ink); color: white; border-radius: 0; font-size: 12px; font-weight: 600; line-height: 1.4; }
.button:hover { background: #3b4447; }
.button.secondary { background: transparent; color: var(--ink); border-color: #acb3b2; }
.button.secondary:hover { background: #e7e9e5; }
.overview-meta { border-top: 1px solid var(--ink); padding: 13px 0; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .25px; }
.overview-layout { display: grid; grid-template-columns: minmax(0, 1fr) 195px; gap: 30px; align-items: start; margin-top: 18px; }
.station-board { min-width: 0; }
.filters { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.filter { color: var(--muted); padding: 14px 0; min-height: 46px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-size: 12px; white-space: nowrap; }
.filter.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.gauge-grid { border-top: 0; }
.gauge-card { display: grid; grid-template-columns: 22px minmax(100px, 1.35fr) minmax(78px, .8fr) minmax(58px, .65fr) minmax(80px, 1fr) 94px 14px; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); padding: 25px 0; min-height: 151px; transition: background .12s; }
.gauge-card:hover { background: #e9ece6; }
.station-index { font-family: var(--mono); color: #69716f; font-size: 11px; align-self: start; margin-top: 5px; }
.station-name .eyebrow { display: block; font-size: 8px; letter-spacing: .2px; margin-bottom: 9px; color: var(--muted); }
.station-name h2 { font-size: 25px; line-height: 1; margin-bottom: 7px; }
.station-subtitle { display: block; font-size: 10px; color: var(--muted); line-height: 1.6; max-width: 170px; }
.metric .label { display: block; font-size: 9px; margin-bottom: 10px; }
.metric strong { font-family: var(--mono); font-size: 29px; font-weight: 450; letter-spacing: -1.9px; font-variant-numeric: tabular-nums; }
.metric .unit { font-family: var(--mono); color: var(--muted); font-size: 10px; }
.metric>div { white-space: nowrap; }
.row-height .metric strong { font-size: 21px; letter-spacing: -1px; }
.row-history { min-width: 0; text-align: right; }
.spark { display: block; width: 100%; height: 46px; overflow: visible; }
.spark-line { fill: none; stroke: var(--blue); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark-baseline { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.row-history .label { font-size: 7px; letter-spacing: .4px; display: block; margin-top: 6px; }
.spark-empty { color: var(--muted); font-size: 10px; }
.row-status { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.badge { display: inline-flex; gap: 5px; align-items: center; font-size: 9px; font-weight: 500; color: #3c6660; line-height: 1.4; }
.badge:before { content: ""; width: 5px; height: 5px; background: currentColor; flex-shrink: 0; }
.badge.amber { color: #9e4d19; }
.badge.muted { color: var(--muted); }
.reading-age { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.row-arrow { color: var(--accent); font-size: 20px; }
.board-foot { display: flex; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 8px; color: var(--muted); padding: 15px 0; }
.trip-rail { border-top: 4px solid var(--accent); background: #eaece6; padding: 20px 20px 8px; margin-top: 0; }
.trip-stamp { font-size: 54px; font-weight: 850; line-height: 1; letter-spacing: -4px; margin-bottom: 35px; }
.trip-stamp span { font-family: var(--mono); display: block; font-size: 9px; letter-spacing: 1px; margin-top: 10px; font-weight: 400; }
.trip-rail .eyebrow { font-size: 8px; margin-bottom: 14px; color: var(--muted); }
.route-ends { display: flex; flex-direction: column; gap: 30px; border-left: 1px solid #9aaba2; margin: 0 0 26px 3px; padding-left: 16px; font-size: 15px; font-weight: 600; }
.route-ends span { position: relative; }
.route-ends span:before { content: ""; background: var(--accent); width: 5px; height: 5px; position: absolute; top: 7px; left: -19px; }
.rail-numbers { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid #c3cac1; padding-top: 20px; margin-bottom: 25px; }
.rail-numbers strong { display: block; font-size: 33px; font-family: var(--mono); font-weight: 400; letter-spacing: -2px; }
.rail-numbers span { display: block; font-family: var(--mono); font-size: 8px; letter-spacing: .5px; margin-top: 5px; color: var(--muted); }
.trip-rail .button { display: flex; justify-content: space-between; padding: 13px 15px; }
.rail-download { display: block; padding: 19px 0; font-size: 10px; text-align: center; text-decoration: underline; text-underline-offset: 4px; }
.source-strip { display: flex; align-items: center; gap: 22px; padding: 22px 0; margin-top: 25px; border-top: 1px solid var(--line); color: var(--muted); }
.source-strip p { font-size: 11px; line-height: 1.7; flex: 1; max-width: 800px; }
.source-strip .text-link { font-size: 10px; }
.source-mark { font-family: var(--mono); width: 23px; height: 23px; border: 1px solid var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.text-link { font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; line-height: 1.8; }
.notice { background: #e9eeec; padding: 13px 16px; border-left: 3px solid #627e75; font-size: 12px; line-height: 1.65; margin: 17px 0; }
.notice.amber { background: #f4ebe0; border-color: #b2611e; color: #764316; }
.detail-topline { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 26px; }
.back { display: inline-flex; align-items: center; min-height: 38px; font-size: 12px; }
.detail-topline .label { font-size: 9px; }
.station-switcher { display: flex; gap: 30px; border-bottom: 1px solid var(--ink); margin: 26px 0 0; overflow-x: auto; }
.station-switcher a { padding: 14px 0; border-bottom: 3px solid transparent; color: var(--muted); font-size: 12px; white-space: nowrap; }
.station-switcher a[aria-current] { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.current-readings { display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 30px; padding: 30px 0; margin-bottom: 8px; }
.current-readings>div+div { border-left: 1px solid var(--line); padding-left: 30px; }
.current-readings .metric strong { font-size: 52px; letter-spacing: -3px; }
.current-readings .metric .unit { font-size: 13px; }
.metric-time { display: block; color: var(--muted); font-family: var(--mono); font-size: 10px; margin-top: 12px; }
.current-status { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.current-status .badge { font-size: 12px; }
.current-status>span:not(.badge) { font-size: 11px; color: var(--muted); }
.history-panel { border: 1px solid var(--line); background: var(--white); padding: 28px 30px; }
.history-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 25px; }
.history-heading .eyebrow { color: var(--muted); margin-bottom: 8px; font-size: 9px; }
.history-heading h2 { font-size: 30px; }
.resolution { font-family: var(--mono); font-size: 9px; background: #eef2f7; color: #315488; padding: 8px 10px; letter-spacing: .4px; }
.range-controls { display: grid; grid-template-columns: repeat(9, 1fr); border: 1px solid var(--line); padding: 4px; gap: 4px; background: #f4f5f2; }
.range-button { min-height: 44px; border: 0; background: transparent; color: #626969; font-family: var(--mono); font-size: 11px; padding: 10px 5px; }
.range-button.active { background: var(--ink); color: white; box-shadow: inset 0 -3px 0 var(--orange); }
.range-button:hover:not(.active) { background: #e3e7e5; }
.chart-readout { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 28px; min-height: 76px; }
.chart-readout .label { display: block; font-size: 9px; margin-bottom: 9px; }
#chart-value { display: block; font-family: var(--mono); font-size: 36px; line-height: 1; letter-spacing: -2px; }
#chart-value span { font-size: 12px; letter-spacing: 0; color: var(--muted); }
#chart-date { font-family: var(--mono); font-size: 11px; text-align: right; line-height: 1.7; }
#chart-date small { display: block; font-size: 9px; color: var(--muted); }
.chart-large { margin: 20px -4px 4px; }
.chart-large svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart-large text { fill: #6c7476; font-family: var(--mono); font-size: 10px; }
.chart-grid { fill: none; stroke: #e4e8ea; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart-crosshair { stroke: #b35b35; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
#chart-dot { fill: var(--orange); stroke: white; stroke-width: 2; }
.scrub-label { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; margin-top: 10px; }
.scrub-label span:last-child { font-family: var(--mono); font-size: 8px; }
input[type=range] { width: 100%; padding: 0; min-height: 40px; border: 0; background: transparent; accent-color: var(--accent); cursor: ew-resize; }
.chart-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 14px; padding-top: 22px; gap: 15px; }
.chart-summary>div+div { border-left: 1px solid var(--line); padding-left: 25px; }
.chart-summary .label { display: block; font-size: 8px; letter-spacing: .3px; margin-bottom: 9px; }
.chart-summary strong { font-family: var(--mono); font-size: 24px; font-weight: 400; letter-spacing: -1.4px; }
.chart-summary small { font-size: 11px; letter-spacing: -.3px; color: var(--muted); }
.chart-empty { padding: 50px 20px; text-align: center; color: var(--muted); font-size: 13px; background: #f4f6f5; margin: 25px 0; }
.chart-empty.large { min-height: 180px; display: grid; place-items: center; }
.source-note { font-size: 11px; line-height: 1.7; color: var(--muted); margin-top: 24px; }
details { margin-top: 25px; border-top: 1px solid var(--line); }
summary { font-size: 12px; cursor: pointer; padding: 17px 0 8px; }
.table-scroll { max-height: 290px; overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 11px; }
caption { text-align: left; color: var(--muted); font-size: 10px; padding: 12px 0; }
th, td { text-align: left; padding: 12px 9px; border-bottom: 1px solid var(--line); }
th { font-size: 10px; font-weight: 600; }
td:nth-child(2) { font-family: var(--mono); }
.detail-panel { padding: 28px 30px; border: 1px solid var(--line); background: var(--white); margin: 25px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading h2 { font-size: 25px; }
.section-heading>.label { font-size: 9px; }
.river-overview { display: grid; grid-template-columns: 1fr .7fr 1.4fr; align-items: center; padding: 25px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); gap: 30px; margin-bottom: 30px; }
.river-overview strong { font-family: var(--mono); font-size: 45px; font-weight: 400; letter-spacing: -3px; }
.river-overview strong span { display: block; font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .5px; margin-top: 9px; }
.river-overview>div { font-family: var(--mono); font-size: 11px; line-height: 1.8; }
.river-overview>div span { color: var(--accent); }
.river-overview small { display: block; color: var(--muted); font-size: 10px; }
.river-strip { padding: 28px; background: #e7eae5; }
.river-strip>.label { font-size: 9px; }
.river-stations { display: flex; justify-content: space-between; gap: 20px; margin-top: 25px; position: relative; }
.river-stations:before { content: ""; position: absolute; height: 1px; background: #9eb1ad; left: 0; right: 0; top: 6px; }
.river-stations a { position: relative; display: flex; flex-direction: column; gap: 9px; padding-bottom: 4px; min-width: 50px; }
.river-dot { width: 12px; height: 12px; background: var(--blue); border: 3px solid #e7eae5; outline: 1px solid var(--blue); margin-bottom: 5px; }
.river-stations strong { font-weight: 600; font-size: 15px; }
.river-stations small { color: var(--muted); font-size: 10px; }
.search-label { display: block; margin: 25px 0 10px; font-size: 12px; }
input, select, textarea { display: block; width: 100%; color: var(--ink); background: var(--white); border: 1px solid #b8c0bd; border-radius: 0; padding: 13px 12px; min-height: 48px; font-size: 16px; }
input[type=date] { min-width: 0; -webkit-appearance: none; }
textarea { resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #717a79; opacity: 1; }
.access-row { display: flex; gap: 25px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.access-index { font-family: var(--mono); font-size: 10px; color: var(--muted); min-width: 18px; }
.access-row>div { flex: 1; }
.access-row strong { font-size: 16px; font-weight: 600; }
.access-row small { font-size: 11px; color: var(--muted); line-height: 1.5; }
.access-row div small { display: block; margin-top: 5px; }
.access-row>span:last-child { font-family: var(--mono); font-size: 24px; letter-spacing: -1px; white-space: nowrap; }
.trip-summary { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 28px 0; gap: 30px; }
.trip-summary div+div { border-left: 1px solid var(--line); padding-left: 30px; }
.trip-summary strong { font-family: var(--mono); display: block; font-size: 48px; font-weight: 400; letter-spacing: -3px; }
.trip-summary span { font-family: var(--mono); display: block; font-size: 9px; color: var(--muted); letter-spacing: .5px; margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px 0; }
.form-grid label, .notes-label { display: block; font-size: 12px; font-weight: 600; }
.form-grid input, .form-grid select, .notes-label textarea { margin-top: 10px; }
.optional { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.form-error { color: #a03817; font-size: 13px; margin: 20px 0; }
.form-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.offline-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 4px solid var(--accent); background: #e9ece5; padding: 30px; }
.offline-card .label { display: block; font-size: 9px; margin-bottom: 10px; }
.offline-card h2 { font-size: 30px; }
.offline-card p { font-size: 12px; color: var(--muted); margin-top: 12px; max-width: 420px; }
.offline-card .button { max-width: 230px; flex-shrink: 0; }
.download-row { display: flex; align-items: center; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.download-row:last-child { border-bottom: 0; padding-bottom: 3px; }
.download-index { font-family: var(--mono); color: var(--muted); font-size: 10px; }
.download-row>div { flex: 1; }
.download-row strong { font-size: 15px; font-weight: 600; }
.download-row small { display: block; font-size: 11px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.download-row .badge { font-size: 11px; white-space: nowrap; }
.field-note { padding: 25px 0; border-top: 1px solid var(--ink); }
.field-note h2 { margin-bottom: 20px; }
.field-note p, .field-note li { font-size: 13px; line-height: 1.7; color: var(--muted); }
.field-note li { padding-left: 7px; margin: 12px 0; }
.field-note ol { padding-left: 20px; margin: 20px 0; }
.empty, .loading { padding: 30px 0; font-size: 13px; color: var(--muted); }
#toast { position: fixed; bottom: 25px; left: calc(50% + 84px); transform: translateX(-50%); z-index: 30; pointer-events: none; width: max-content; max-width: calc(100% - 200px); padding: 17px 23px; background: var(--ink); border-left: 4px solid var(--orange); color: white; font-size: 12px; line-height: 1.6; opacity: 0; }
#toast.visible { opacity: 1; }
@media(min-width:1750px) { main { margin-left: auto; margin-right: auto; padding-left: 180px; } }
@media(max-width:1250px) {
  main { padding: 36px 32px 65px; }
  .overview-layout { grid-template-columns: 1fr; }
  .trip-rail { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 15px 30px; align-items: center; padding: 22px 26px; }
  .trip-rail>.eyebrow { display: none; }
  .trip-stamp { margin: 0; grid-row: 1 / 3; }
  .route-ends { margin: 0; gap: 19px; }
  .rail-numbers { flex-direction: row; border: 0; padding: 0; margin: 0; gap: 20px; }
  .trip-rail .button { grid-column: 2; }
  .rail-download { padding: 0; }
}
@media(max-width:900px) {
  .masthead { height: 80px; padding: 0 25px; }
  .bottom-nav { top: auto; right: 0; bottom: 0; width: auto; height: auto; flex-direction: row; padding: 0 12px env(safe-area-inset-bottom); justify-content: space-around; }
  .bottom-nav:after { display: none; }
  .bottom-nav a { min-width: 70px; min-height: 66px; padding: 12px 14px; border-left: 0; border-top: 3px solid transparent; flex-direction: column; gap: 6px; font-size: 10px; }
  .bottom-nav a[aria-current] { border-top-color: var(--orange); background: transparent; }
  .bottom-nav svg { width: 19px; height: 19px; }
  main { margin: 0; padding: 30px 26px calc(110px + env(safe-area-inset-bottom)); }
  #toast { left: 50%; bottom: calc(85px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); }
  .gauge-card { gap: 14px; }
  .current-readings .metric strong { font-size: 43px; }
  .history-panel { padding: 25px; }
}
@media(max-width:600px) {
  .masthead { height: 72px; padding: 0 19px; }
  .brand { font-size: 23px; gap: 10px; letter-spacing: -.8px; }
  .brand img { width: 32px; height: 32px; }
  .brand-sub { font-size: 6px; letter-spacing: 1.1px; margin-top: 6px; }
  .connection { font-size: 8px; max-width: 96px; text-align: right; line-height: 1.7; }
  main { padding: 28px 19px calc(110px + env(safe-area-inset-bottom)); }
  h1 { font-size: 47px; letter-spacing: -3px; }
  h2 { font-size: 24px; }
  .eyebrow { font-size: 8px; letter-spacing: .8px; margin-bottom: 13px; }
  .page-heading { align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
  .page-heading>.button { min-height: 38px; padding: 9px 12px; font-size: 10px; margin-top: 2px; gap: 10px; }
  .page-heading .lede { font-size: 12px; margin-top: 14px; }
  .overview-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 7px; line-height: 1.6; padding: 12px 0; }
  .overview-meta>span:nth-child(2) { text-align: right; }
  .overview-meta>span:last-child { grid-column: 1 / -1; font-size: 8px; }
  .overview-layout { margin-top: 7px; gap: 26px; }
  .filters { justify-content: space-between; gap: 8px; }
  .filter { padding: 13px 3px; font-size: 11px; }
  .gauge-card { grid-template-columns: 22px minmax(0,1fr) minmax(0,1fr) 16px; gap: 14px 11px; padding: 23px 0 20px; min-height: 0; }
  .station-index { grid-column: 1; grid-row: 1; margin-top: 4px; font-size: 10px; }
  .station-name { grid-column: 2 / 4; grid-row: 1; }
  .station-name .eyebrow { font-size: 8px; margin-bottom: 7px; }
  .station-name h2 { font-size: 29px; letter-spacing: -1px; margin-bottom: 5px; }
  .station-subtitle { font-size: 10px; max-width: none; }
  .row-arrow { grid-column: 4; grid-row: 1; margin-top: 16px; align-self: start; font-size: 23px; }
  .row-flow { grid-column: 2; grid-row: 2; }
  .row-height { grid-column: 3; grid-row: 2; padding-left: 16px; border-left: 1px solid var(--line); }
  .metric .label { font-size: 9px; margin-bottom: 6px; }
  .metric strong { font-size: 34px; letter-spacing: -2px; }
  .row-height .metric strong { font-size: 29px; letter-spacing: -1.7px; }
  .row-height .metric .unit { font-size: 10px; }
  .row-history { grid-column: 2 / 4; grid-row: 3; display: flex; align-items: center; gap: 10px; }
  .spark { height: 36px; flex: 1; width: 75%; }
  .row-history .label { font-size: 6px; line-height: 1.8; width: 34px; flex-shrink: 0; margin: 0; }
  .row-status { grid-column: 2 / 4; grid-row: 4; flex-direction: row; justify-content: space-between; align-items: center; gap: 7px; margin-top: -3px; }
  .badge { font-size: 10px; }
  .reading-age { font-size: 9px; }
  .board-foot { font-size: 7px; gap: 15px; line-height: 1.5; }
  .trip-rail { grid-template-columns: .85fr 1fr; padding: 22px; gap: 25px 20px; }
  .trip-stamp { font-size: 49px; grid-row: 1; }
  .trip-stamp span { font-size: 8px; }
  .route-ends { font-size: 14px; }
  .rail-numbers { grid-column: 1 / -1; gap: 40px; border-top: 1px solid #c3cac1; padding-top: 15px; }
  .trip-rail .button { grid-column: 1; font-size: 11px; padding: 12px; }
  .rail-download { font-size: 10px; text-align: left; }
  .source-strip { flex-wrap: wrap; gap: 15px; padding-top: 20px; margin-top: 20px; }
  .source-strip p { font-size: 11px; }
  .source-strip .text-link { width: 100%; font-size: 11px; }
  .source-mark { display: none; }
  .detail-topline { margin-bottom: 22px; gap: 12px; }
  .detail-topline .label { font-size: 7px; text-align: right; max-width: 145px; }
  .back { font-size: 11px; }
  .station-switcher { gap: 24px; margin-top: 12px; }
  .station-switcher a { font-size: 11px; min-height: 44px; }
  .current-readings { grid-template-columns: 1fr 1fr; gap: 19px 15px; padding: 25px 0 20px; margin-bottom: 0; }
  .current-readings>div+div { padding-left: 20px; }
  .current-readings .metric strong { font-size: 38px; letter-spacing: -2.5px; }
  .current-readings .metric .label { font-size: 8px; }
  .current-readings .metric .unit { font-size: 11px; }
  .metric-time { font-size: 8px; line-height: 1.7; margin-top: 9px; }
  .current-readings .current-status { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; border: 0; padding: 0; }
  .current-status .badge { font-size: 10px; }
  .current-status>span:not(.badge) { font-size: 10px; }
  .history-panel { padding: 22px 15px; margin: 0 -4px; }
  .history-heading { gap: 10px; margin-bottom: 20px; }
  .history-heading .eyebrow { font-size: 8px; }
  .history-heading h2 { font-size: 25px; }
  .resolution { font-size: 7px; letter-spacing: .1px; padding: 7px; text-align: center; max-width: 100px; line-height: 1.5; }
  .range-controls { grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 3px; }
  .range-button { font-size: 10px; min-height: 44px; padding: 10px 3px; }
  .chart-readout { margin-top: 20px; gap: 15px; min-height: 66px; align-items: center; }
  .chart-readout .label { font-size: 7px; letter-spacing: .3px; }
  #chart-value { font-size: 29px; letter-spacing: -1.7px; }
  #chart-value span { font-size: 10px; }
  #chart-date { font-size: 9px; max-width: 142px; }
  #chart-date small { font-size: 8px; }
  .chart-large { margin: 22px -6px 8px; }
  .chart-large svg { height: auto; }
  .chart-large text { font-size: 12px; }
  .scrub-label { font-size: 9px; }
  .scrub-label span:last-child { font-size: 7px; }
  .chart-summary { gap: 10px; padding-top: 18px; }
  .chart-summary>div+div { padding-left: 10px; }
  .chart-summary .label { font-size: 6px; letter-spacing: .1px; min-height: 20px; }
  .chart-summary strong { font-size: 19px; letter-spacing: -1.3px; }
  .chart-summary small { font-size: 8px; letter-spacing: -.2px; }
  .source-note { font-size: 10px; margin-top: 20px; }
  .notice { font-size: 11px; padding: 12px; }
  th, td { padding: 11px 6px; font-size: 10px; }
  td:last-child { font-size: 9px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading>.label { font-size: 7px; max-width: 130px; text-align: right; }
  .detail-panel { padding: 23px 18px; margin: 22px 0; }
  .river-overview { grid-template-columns: 1fr 1fr; gap: 25px; padding: 23px 0; }
  .river-overview strong { font-size: 43px; }
  .river-overview>div { grid-column: 1 / -1; font-size: 10px; }
  .river-overview strong span { font-size: 8px; }
  .river-strip { padding: 22px; }
  .river-strip>.label { font-size: 8px; }
  .river-stations { flex-direction: column; gap: 22px; }
  .river-stations:before { width: 1px; height: auto; left: 6px; top: 6px; bottom: 10px; }
  .river-stations a { flex-direction: row; align-items: center; gap: 16px; padding: 0; min-height: 32px; }
  .river-dot { margin: 0; }
  .river-stations small { margin-left: auto; }
  .access-row { padding: 20px 0; gap: 15px; }
  .access-index { font-size: 8px; min-width: 12px; }
  .access-row strong { font-size: 14px; }
  .access-row>span:last-child { font-size: 21px; }
  .access-row small { font-size: 10px; }
  .access-row>span:last-child small { font-size: 9px; }
  .trip-summary { padding: 24px 0; gap: 12px; }
  .trip-summary div+div { padding-left: 15px; }
  .trip-summary strong { font-size: 36px; letter-spacing: -2.8px; }
  .trip-summary span { font-size: 8px; letter-spacing: 0; }
  .form-grid { gap: 24px 14px; }
  .form-grid input, .form-grid select { padding: 12px 8px; }
  .form-grid>label { grid-column: 1 / -1; }
  .form-actions { gap: 10px; }
  .form-actions .button { padding: 12px; font-size: 11px; flex: 1; white-space: nowrap; }
  .offline-card { padding: 25px 22px; flex-direction: column; align-items: stretch; gap: 23px; }
  .offline-card h2 { font-size: 28px; }
  .offline-card .button { width: 100%; max-width: none; font-size: 11px; }
  .download-row { gap: 12px; padding: 22px 0; }
  .download-index { font-size: 8px; }
  .download-row strong { font-size: 12px; }
  .download-row small { font-size: 10px; }
  .download-row .badge { font-size: 9px; }
  .download-row .text-link { font-size: 10px; white-space: nowrap; }
  .field-note h2 { font-size: 25px; }
  .field-note p, .field-note li { font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) { * { transition: none!important; scroll-behavior: auto!important; } }

/* Height-first station readings. Bands represent NPS flow categories. */
.gauge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--paper); border: 1px solid var(--line); }
.gauge-card { display: block; min-height: 0; border: 0; padding: 28px 24px 18px; background: white; }
.gauge-card:hover { background: #fafbf8; }
.gauge-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.gauge-heading h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; letter-spacing: -1px; font-weight: 700; line-height: 1.2; margin: 4px 0 7px; }
.gauge-district { display: block; color: var(--muted); font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
.level-name { display: block; font-size: 11px; font-weight: 750; letter-spacing: .4px; text-transform: uppercase; line-height: 1.5; }
.height-reading { flex-shrink: 0; text-align: right; white-space: nowrap; }
.height-reading strong { font-size: 42px; font-weight: 750; letter-spacing: -2px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.height-reading>span { font-size: 13px; font-weight: 700; margin-left: 5px; }
.height-reading small { display: block; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .6px; margin-top: 4px; }
.level-bar { display: block; width: 100%; height: auto; }
.level-0 { fill: #101312; background: #101312; }
.level-1 { fill: #225bfa; background: #225bfa; }
.level-2 { fill: #3abf88; background: #3abf88; }
.level-3 { fill: #f9c400; background: #f9c400; }
.level-4 { fill: #ee4644; background: #ee4644; }
.level-marker { fill: white; stroke: #202729; stroke-width: 1; stroke-linejoin: round; }
.gauge-observed { font-family: var(--mono); font-size: 8px; color: var(--muted); line-height: 1.8; text-align: center; margin-top: 14px; }
.gauge-flow { text-align: center; font-size: 11px; margin-top: 7px; color: var(--muted); }
.gauge-flow strong { color: var(--ink); margin-left: 4px; }
.gauge-flow small { display: block; font-size: 8px; margin-top: 5px; }
.gauge-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid #edf0eb; padding-top: 14px; margin-top: 22px; font-size: 9px; color: var(--muted); line-height: 1.5; }
.gauge-footer .badge { font-size: 9px; }
.level-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 20px 0 0; }
.level-legend>span { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.level-legend i, .threshold-details i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.band-caption { font-size: 10px; color: var(--muted); margin: 9px 0 18px; }
.detail-gauge { background: white; border: 1px solid var(--line); max-width: 680px; margin: 28px 0; padding: 28px 30px 15px; }
.detail-gauge .height-reading strong { font-size: 58px; }
.detail-gauge .level-name { font-family: Georgia, 'Times New Roman', serif; text-transform: none; font-size: 30px; letter-spacing: -.7px; margin-top: 10px; }
.detail-gauge .level-bar { max-height: none; }
.detail-gauge .level-legend { justify-content: center; }
.threshold-details { margin-top: 12px; border-color: #edf0eb; }
.threshold-details summary { padding: 15px 0; font-size: 11px; }
.threshold-details p { font-size: 11px; color: var(--muted); margin: 10px 0; }
.threshold-details dl { margin: 18px 0; font-size: 11px; }
.threshold-details dl>div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0eb; }
.threshold-details dt { display: flex; align-items: center; gap: 8px; }
.threshold-details dd { margin: 0; font-family: var(--mono); }
.metric-controls { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.metric-controls button { text-align: left; padding: 12px 18px 12px 0; margin-right: 22px; background: transparent; border: 0; border-bottom: 3px solid transparent; min-height: 50px; font-size: 15px; font-weight: 650; color: var(--muted); }
.metric-controls button[aria-pressed=true] { color: var(--ink); border-color: var(--accent); }
.metric-controls small { display: block; font-size: 9px; font-weight: 400; margin-top: 5px; }
.history-availability { font-size: 10px; color: var(--muted); margin-top: 12px; max-width: 600px; }
@media(max-width:600px) {
  .gauge-grid { display: block; border: 0; background: white; }
  .gauge-card { padding: 28px 16px 20px; border-bottom: 1px solid var(--line); }
  .gauge-heading { gap: 12px; margin-bottom: 18px; }
  .gauge-heading h2 { font-size: 33px; }
  .height-reading strong { font-size: 40px; }
  .gauge-district { font-size: 8px; }
  .level-name { font-size: 10px; }
  .gauge-observed { font-size: 8px; }
  .level-legend { gap: 9px 12px; }
  .level-legend>span { font-size: 9px; gap: 5px; }
  .band-caption { font-size: 9px; margin-bottom: 14px; }
  .detail-gauge { margin: 22px 0; padding: 24px 18px 10px; }
  .detail-gauge .height-reading strong { font-size: 47px; }
  .detail-gauge .level-name { font-size: 26px; }
  .detail-gauge .gauge-district { letter-spacing: .5px; }
  .detail-gauge .level-legend { gap: 8px 10px; }
  .threshold-details dd { font-size: 10px; }
}

.height-tick { fill: var(--muted); font-family: var(--mono); font-size: 12px; }
.level-unknown { fill: #dce1dd; }
.rating-note { font-size: 9px; color: var(--muted); text-align: center; margin: 8px 0; }
.threshold-details dd { text-align: right; }
.threshold-details dd small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }

/* River map and flexible trip notebook. */
.map-route { display:flex; align-items:center; gap:28px; padding:18px 0; border-top:1px solid var(--ink); border-bottom:1px solid var(--line); }
.map-route>div { flex:1; }
.map-route .label { display:block; margin-bottom:7px; }
.map-route strong { font-size:20px; letter-spacing:-.5px; }
.map-route strong span { color:var(--accent); padding:0 8px; }
.map-route>span { font-family:var(--mono); font-size:23px; white-space:nowrap; }
.map-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:16px 0; }
.map-toolbar .filters { border:0; gap:22px; }
.map-tools { display:flex; gap:8px; }
.map-tools .button { padding:10px 14px; }
.map-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; border:1px solid var(--line); background:white; }
.map-canvas-wrap { min-width:0; }
#river-map { height:560px; background:#eae9df; z-index:0; }
#map-status { padding:10px 14px; font-size:11px; color:var(--muted); min-height:40px; border-top:1px solid var(--line); }
#place-panel { padding:26px 24px; border-left:1px solid var(--line); }
#place-panel h2 { font-family:Georgia,serif; font-size:31px; line-height:1.12; letter-spacing:-.7px; margin-bottom:20px; }
.place-intro>p:not(.eyebrow), .place-note { font-size:13px; line-height:1.7; }
.map-key { display:grid; gap:12px; font-size:11px; margin-top:28px; color:#126b80; }
.place-distance strong { display:block; font-family:var(--mono); font-size:37px; letter-spacing:-2px; }
.place-distance>span { font-family:var(--mono); font-size:9px; color:var(--muted); }
.place-route { margin:14px 0; font-size:12px; }
.place-facts { display:grid; gap:7px; border-block:1px solid var(--line); padding:14px 0; font-size:12px; color:#466258; }
.place-detail .source-note { margin:14px 0; font-size:10px; }
.place-detail .text-link { font-size:11px; }
.place-actions { display:grid; gap:8px; margin-top:20px; }
.place-marker { display:grid; place-items:center; border:2px solid white; background:#126b80; box-shadow:0 1px 4px #0005; border-radius:50%; color:white; font:700 13px/1 -apple-system,sans-serif; }
.place-marker.camp-marker { background:#7b562e; border-radius:3px; font-size:23px; }
.place-marker.endpoint { background:var(--ink); }
.place-marker.is-saved { outline:3px solid #ed682e; outline-offset:2px; }
.place-marker.is-selected { outline:4px solid #245fd0; outline-offset:3px; z-index:1000!important; }
.leaflet-container { font-family:inherit; }
.leaflet-container .leaflet-control-attribution { font-size:9px; max-width:100%; }
.leaflet-touch .leaflet-bar a { width:36px; height:36px; line-height:36px; }
.map-download { display:flex; align-items:center; gap:18px; padding:22px 0; margin-bottom:24px; border-bottom:1px solid var(--line); }
.map-download>div { flex:1; }
.map-download strong { display:block; font-size:16px; }
.map-download span { display:block; font-size:12px; margin-top:6px; color:var(--muted); }
.text-button { border:0; background:transparent; color:var(--accent); padding:10px 0; min-height:44px; text-decoration:underline; text-underline-offset:4px; font-size:12px; }
.place-list-row { display:grid; grid-template-columns:24px minmax(0,1fr) auto; gap:15px; width:100%; text-align:left; color:var(--ink); border:0; border-bottom:1px solid var(--line); padding:19px 0; background:transparent; align-items:center; }
.place-list-row:hover { background:var(--paper); }
.place-list-row strong { font-size:15px; }
.place-list-row small { display:block; font-size:11px; color:var(--muted); margin-top:6px; letter-spacing:0; font-family:inherit; white-space:normal; }
.place-list-row>span:last-child { text-align:right; font-family:var(--mono); font-size:21px; letter-spacing:-1px; }
.place-kind { color:#126b80; font-size:19px; }
.planning-columns { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:25px; }
.planning-columns>div { min-width:0; }
.planning-columns .detail-panel { padding:25px; }
.planning-columns .section-heading { align-items:flex-start; }
.planning-columns .section-heading>.label { font-size:8px; text-align:right; max-width:115px; }
.planning-columns .form-grid { gap:16px; }
.planning-columns .notes-label { margin:22px 0; }
.planning-columns h2 { font-family:Georgia,serif; font-weight:600; letter-spacing:-.5px; }
.section-copy { font-size:12px; color:var(--muted); margin-top:12px; }
.next-controls { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:22px 0 6px; }
.next-controls label { font-size:11px; }
.next-controls select { margin-top:8px; padding:12px 8px; }
.next-panel .eyebrow { margin-bottom:9px; font-size:9px; }
.next-panel .filters { gap:20px; }
.next-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:15px; align-items:center; padding:19px 0; border-bottom:1px solid var(--line); }
.next-row strong { font-size:14px; font-weight:600; }
.next-row small { display:block; margin-top:5px; font-size:10px; color:var(--muted); line-height:1.5; }
.next-distance { font-family:var(--mono); text-align:right; font-size:15px; white-space:nowrap; }
.next-distance small { font-family:inherit; font-size:8px; }
.next-row .text-link { font-size:11px; }
.saved-place { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:15px; padding:24px 0; border-bottom:1px solid var(--line); margin-bottom:18px; }
.saved-place .eyebrow { font-size:8px; margin-bottom:8px; display:block; }
.saved-place h3 { font-family:Georgia,serif; font-size:21px; margin-bottom:10px; }
.saved-place>label { grid-column:1/-1; font-size:11px; }
.saved-place textarea { margin-top:8px; }
.trip-checklist { margin-top:18px; }
.trip-checklist label { display:flex; align-items:center; gap:12px; padding:13px 0; min-height:48px; border-bottom:1px solid var(--line); cursor:pointer; font-size:13px; line-height:1.5; }
.trip-checklist input[type=checkbox] { display:inline-block; width:20px; height:20px; min-height:20px; flex-shrink:0; margin:0; padding:0; accent-color:#126b80; }
.trip-checklist input:checked+span { color:var(--muted); text-decoration:line-through; }
.trip-export { padding:20px 0; border-top:1px solid var(--ink); }
.trip-export p { font-size:13px; margin:15px 0; color:var(--muted); }
.trip-export>a { display:block; margin-top:16px; }
@media(max-width:1100px) {
 .map-layout { grid-template-columns:minmax(0,1fr) 245px; }
 #place-panel { padding:23px 18px; }
 .planning-columns { grid-template-columns:1fr; gap:0; }
 .map-toolbar { flex-wrap:wrap; }
}
@media(max-width:700px) {
 .map-layout { display:block; }
 #river-map { height:410px; }
 #place-panel { border-left:0; border-top:1px solid var(--line); padding:24px 20px; }
 .map-route { flex-wrap:wrap; gap:16px; }
 .map-route>div { flex-basis:70%; }
 .map-route strong { font-size:17px; }
 .map-route>span { font-size:21px; }
 .map-route>.text-link { margin-top:-4px; }
 .map-toolbar { gap:8px; padding:8px 0 14px; }
 .map-toolbar .filters { width:100%; justify-content:space-between; gap:12px; }
 .map-tools { width:100%; }
 .map-tools .button { flex:1; }
 .map-download { flex-wrap:wrap; gap:14px; }
 .map-download>div { flex-basis:100%; }
 .planning-columns .detail-panel { padding:22px 17px; }
 .planning-columns .form-grid { grid-template-columns:1fr; }
 .next-controls { grid-template-columns:1fr; }
 .next-row { gap:10px; }
 .next-row strong { font-size:13px; }
 .place-list-row { gap:10px; grid-template-columns:18px minmax(0,1fr) auto; }
 .place-list-row strong { font-size:14px; }
 .trip-summary span { font-size:8px; letter-spacing:0; }
 .trip-summary strong { font-size:34px; }
 .trip-summary { gap:15px; }
 .trip-summary div+div { padding-left:15px; }
}
