/* River pages (scripts/build-rivers.mjs): the app's dark console look, readable without the map. */
:root {
  --bg: #0b0f14; --card: #121820; --raise: rgba(255, 255, 255, 0.04); --ink: #e9eef4; --ink-2: #a8b3c1; --muted: #6b7686;
  --line: rgba(255, 255, 255, 0.08); --accent: #3ad1ff; --accent-ink: #04121a;
  --prime: #00af70; --fair: #0075ab; --tough: #c68000; --off: #d33222; --closed: #8e6bd8;
  --mlow: #c11f00; --low: #c87e00; --norm: #5b646f; --high: #00a0cc; --mhigh: #2858cd;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
small { color: var(--muted); font-size: 12px; }
.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 920px; margin: 0 auto; padding: 16px 16px 0; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }
.crumbs { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); }
.crumbs i { font-style: normal; opacity: 0.5; }
main { max-width: 920px; margin: 0 auto; padding: 8px 16px 24px; }
section { margin: 28px 0; }
.hero { margin-top: 18px; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 8px; }
h1 .sub { display: block; font-size: 0.5em; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; margin-top: 4px; }
h2 { font-size: 18px; letter-spacing: -0.02em; margin: 0 0 10px; }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 70ch; margin: 0 0 18px; }
.cta { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 11px 18px; border-radius: 12px; }
.cta:hover { text-decoration: none; filter: brightness(1.08); }
.note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
tbody th { font-weight: 600; }
tbody th small { display: block; font-family: var(--mono); font-weight: 500; }
.num { font-family: var(--mono); white-space: nowrap; }
.num b { font-weight: 600; }
.vs { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.vs::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--norm)); }
.vs[data-c='mlow'] { --c: var(--mlow); } .vs[data-c='low'] { --c: var(--low); } .vs[data-c='high'] { --c: var(--high); } .vs[data-c='mhigh'] { --c: var(--mhigh); }
.pct { display: block; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fff; background: var(--o, var(--norm)); }
.tag[data-o='prime'] { --o: var(--prime); } .tag[data-o='fair'] { --o: var(--fair); } .tag[data-o='tough'] { --o: var(--tough); } .tag[data-o='off'] { --o: var(--off); } .tag[data-o='closed'] { --o: var(--closed); }
.legal { font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
ul { padding: 0; margin: 0; list-style: none; }
.species { display: grid; gap: 10px; margin-top: 12px; }
.species li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.species .sp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.species .score { margin-left: auto; font-family: var(--mono); font-weight: 600; }
.species p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.near, .states { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; }
.near li, .states li { padding: 4px 0; }
.rivers li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rivers li span { color: var(--muted); font-size: 13px; font-family: var(--mono); }
footer { max-width: 920px; margin: 0 auto; padding: 8px 16px 40px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--prime); margin-right: 6px; vertical-align: 1px; }
