/* Kern Fishing
   Cold water, a trout's rose stripe, and one rule: solid is confirmed, striped is predicted. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --water: #0a3d46;        /* the Kern in winter */
  --water-deep: #072f37;
  --snow: #edf3f0;         /* snowmelt: page background */
  --paper: #ffffff;
  --ink: #0f2a2e;
  --muted: #56696b;
  --line: #d3deda;
  --empty: #dfe8e4;
  --river: #0f7482;
  --lake: #6b8a34;
  --rose: #d9466f;         /* the rainbow's stripe: "happening now" */
  --gold: #e3a436;         /* projected */
  --gold-ink: #8a5a06;
  --hatch-bg: #f6ecd6;
  --on-water: #f3f8f6;
  --on-water-muted: #a9c6c6;
  --lift: 0 1px 0 rgba(15, 42, 46, .05), 0 18px 34px -24px rgba(15, 42, 46, .38);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font: "Archivo", "Arial Narrow", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --snow: #081c20;
    --paper: #0e282d;
    --ink: #e8f0ed;
    --muted: #9bb3b3;
    --line: #1c3d43;
    --empty: #17363c;
    --river: #3fb3c2;
    --lake: #a5c35a;
    --gold-ink: #efc271;
    --hatch-bg: #2a2a1c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--snow); color: var(--ink); font: 400 17px/1.55 var(--font); font-stretch: 100%; overflow-x: hidden; }
a { color: var(--river); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 3px; }
.kf-wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.kf-defs { position: absolute; }
.kf-skip { position: absolute; left: -999px; }
.kf-skip:focus { left: 16px; top: 12px; background: var(--paper); color: var(--ink); padding: 8px 12px; z-index: 50; }
.kf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kf-m0 { margin: 0 !important; }

.kf-hatch-bg { fill: var(--hatch-bg); }
.kf-hatch-river { fill: var(--river); }
.kf-hatch-lake { fill: var(--lake); }
.kf-hatch-gold { fill: var(--gold); }

/* ---------- Top bar: deep water with the rose stripe ---------- */
.kf-top { position: sticky; top: 0; z-index: 40; background: #062a33; }
.kf-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 58px; }
.kf-brand { color: var(--on-water); text-decoration: none; font-weight: 800; font-stretch: 68%; font-size: 27px; letter-spacing: .005em; line-height: 1; white-space: nowrap; }
.kf-nav { display: flex; gap: 2px; }
.kf-nav a { color: var(--on-water-muted); text-decoration: none; font-weight: 600; font-size: 16px; padding: 8px 12px; border-radius: 4px; }
.kf-nav a:hover { color: var(--on-water); }
.kf-nav a[aria-current="page"] { color: var(--on-water); box-shadow: inset 0 -3px 0 var(--rose); border-radius: 0; }

main { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 88px); padding: 0 0 clamp(64px, 9vw, 120px); }

/* ---------- Full-bleed water bands (hero and page heads) ---------- */
.kf-hero, .kf-pagehead {
  position: relative; color: var(--on-water);
  background-color: var(--water);
  box-shadow: 0 0 0 100vmax var(--water);
  clip-path: inset(0 -100vmax);
}
.kf-hero > *, .kf-pagehead > * { position: relative; z-index: 1; }
.kf-hero a, .kf-pagehead a { color: inherit; }

.kf-display { margin: 0; font-weight: 800; font-stretch: 64%; font-size: clamp(44px, 7.4vw, 104px); line-height: .9; letter-spacing: -.012em; text-wrap: balance; }
.kf-hero-next { margin: 22px 0 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; max-width: 34ch; color: var(--on-water); padding-left: 16px; border-left: 6px solid transparent; border-image: repeating-linear-gradient(135deg, var(--gold) 0 3px, transparent 3px 6px) 6; }
.kf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.kf-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 4px; background: var(--rose); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 17px; }
.kf-btn:hover { background: #c23a61; }
.kf-btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(243, 248, 246, .55); }
.kf-btn-ghost:hover { background: rgba(243, 248, 246, .12); }

/* ---------- River map ---------- */
.kf-hero-map { min-width: 0; }
.kf-map { display: block; width: 100%; height: auto; overflow: visible; }
.kf-map path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kf-map-bank { stroke: var(--water-deep); stroke-width: 22; opacity: .7; }
.kf-map-river { stroke: #3fb3c2; stroke-width: 9; }
.kf-map-flow { stroke: #d5f3f3; stroke-width: 2; stroke-dasharray: 3 26; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .kf-map-flow { animation: kf-flow 2.6s linear infinite; }
  .kf-map-pulse { animation: kf-pulse 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes kf-flow { to { stroke-dashoffset: -29; } }
@keyframes kf-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.4); opacity: 0; } }
.kf-map-node { text-decoration: none; cursor: pointer; }
.kf-map-dot { fill: var(--on-water); stroke: var(--water-deep); stroke-width: 3; }
.kf-map-lake .kf-map-dot { fill: #3fb3c2; stroke: var(--on-water); stroke-width: 2.5; }
.kf-map-now .kf-map-dot { fill: var(--rose); stroke: #fff; }
.kf-map-pulse { fill: var(--rose); }
.kf-map text { font-family: var(--font); fill: var(--on-water); paint-order: stroke; stroke: var(--water); stroke-width: 5px; stroke-linejoin: round; }
.kf-map-name { font-weight: 700; font-stretch: 78%; font-size: 16.5px; }
.kf-map-status { font-size: 13.5px; font-weight: 500; fill: var(--on-water-muted); }
.kf-map-proj .kf-map-status { fill: #f1c66f; }
.kf-map-now .kf-map-status { fill: #ff9db6; font-weight: 700; }
.kf-map-node:hover .kf-map-name, .kf-map-node:focus-visible .kf-map-name { text-decoration: underline; }
.kf-map-note { margin: 6px 0 0; font-size: 14px; color: var(--on-water-muted); text-align: right; }


@media (max-width: 560px) {
  .kf-map-status { display: none; }
  .kf-map-name { font-size: 19px; }
  .kf-nav a { padding: 8px 9px; font-size: 15px; }
  .kf-brand { font-size: 24px; }
  .kf-wrap { width: calc(100% - 32px); }
}
/* Phones: four nav links have to fit beside the name. Before this, "Safety" ran off the right edge. */
@media (max-width: 430px) {
  .kf-top-in { gap: 10px; }
  .kf-top .kf-brand { font-size: 21px; }
  .kf-top .kf-nav { gap: 0; }
  .kf-top .kf-nav a { padding: 10px 6px; font-size: 14px; font-stretch: 80%; }
}
@media (max-width: 345px) {
  .kf-top-in { gap: 8px; }
  .kf-top .kf-brand { font-size: 19px; }
  .kf-top .kf-nav a { padding: 10px 5px; font-size: 13px; font-stretch: 76%; }
}

/* ---------- Headings and text ---------- */
.kf-h2 { margin: 0 0 6px; font-weight: 750; font-stretch: 78%; font-size: 26px; line-height: 1.1; letter-spacing: -.005em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.kf-h2-lg { font-weight: 800; font-stretch: 66%; font-size: clamp(34px, 4.6vw, 52px); line-height: .95; }
.kf-h3 { margin: 30px 0 12px; font-weight: 700; font-stretch: 82%; font-size: 19px; }
.kf-cap { margin: 0 0 18px; color: var(--muted); font-size: 16px; max-width: 68ch; }
.kf-note { margin: 16px 0 0; color: var(--muted); font-size: 15px; max-width: 72ch; }
.kf-band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; margin-bottom: 20px; }
.kf-band-head .kf-h2 { margin: 0; }

/* The key: solid vs striped */
.kf-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: 15px; color: var(--muted); }
.kf-key span { display: inline-flex; align-items: center; gap: 8px; }
.kf-key i { width: 22px; height: 14px; border-radius: 2px; display: inline-block; }
.kf-key-solid { background: var(--river); }
.kf-key-hatch { background: repeating-linear-gradient(135deg, var(--gold) 0 3px, var(--hatch-bg) 3px 6px); }

/* ---------- Week rail ---------- */
.kf-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: thin; }
.kf-rail .kf-week { scroll-snap-align: start; }
@media (min-width: 900px) {
  .kf-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); align-items: stretch; overflow: visible; margin-inline: 0; padding-inline: 0; }
}
.kf-weeks { display: flex; flex-direction: column; gap: 10px; }
.kf-weeks-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.kf-week { background: var(--paper); border-radius: 10px; box-shadow: var(--lift); padding: 14px 14px 16px; border-top: 6px solid var(--river); min-width: 0; }
.kf-week-proj { border-top: 6px solid transparent; border-image: repeating-linear-gradient(135deg, var(--gold) 0 3px, var(--hatch-bg) 3px 6px) 6 0 0 0; }
.kf-week-label { margin: 0 0 12px; display: flex; flex-direction: column; line-height: 1.1; }

/* Confirmed / Predicted flags. The card styling says it; these say it in words too. */
.kf-flag { margin: 0 0 12px; display: inline-flex; align-items: baseline; flex-wrap: wrap; column-gap: 7px; row-gap: 1px; font-family: var(--font); font-style: normal; padding: 4px 9px; border-radius: 3px; color: var(--gold-ink); background: var(--hatch-bg); border: 1.5px dashed var(--gold); }
.kf-flag strong { font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.kf-flag span { font-size: 11.5px; font-weight: 600; letter-spacing: .01em; opacity: .9; }
.kf-flag-real { color: var(--paper); background: var(--river); border: 1.5px solid var(--river); }
.kf-flag-real span { opacity: .85; }
.kf-flag-hero { display: inline-flex; width: fit-content; margin: 0 0 12px; font-family: var(--font); font-style: normal; color: var(--ink); background: var(--gold); border-color: var(--gold); border-style: solid; }
.kf-cap-warn { color: var(--gold-ink); background: var(--hatch-bg); border-left: 6px solid var(--gold); padding: 12px 16px; border-radius: 0 6px 6px 0; max-width: 72ch; }
/* Make a guessed week card read as provisional at a glance, not just at the top edge. */
.kf-week-proj { background: linear-gradient(var(--hatch-bg), var(--hatch-bg)) padding-box; box-shadow: none; outline: 1.5px dashed var(--gold); outline-offset: -1.5px; }
.kf-week-label strong { font-weight: 800; font-stretch: 68%; font-size: 30px; }
.kf-week-label span { font-size: 14px; color: var(--muted); margin-top: 3px; }
.kf-week ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.kf-card .kf-week { background: var(--snow); }
.kf-week-none { color: var(--muted); font-size: 15px; }
.kf-chip { display: inline-block; padding: 5px 10px; border-radius: 3px; font-weight: 650; font-stretch: 86%; font-size: 15.5px; line-height: 1.25; text-decoration: none; color: #fff; background: var(--river); }
.kf-chip-lake { background: var(--lake); }
@media (prefers-color-scheme: dark) { .kf-chip { color: #06181b; } }
.kf-chip-proj { color: var(--ink); background: var(--hatch-bg); box-shadow: inset 4px 0 0 var(--river); }
.kf-chip-proj.kf-chip-lake { box-shadow: inset 4px 0 0 var(--lake); }
.kf-chip:hover { text-decoration: underline; }

/* ---------- Waters roster ---------- */
.kf-roster { background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: var(--lift); }
.kf-row { display: grid; grid-template-columns: minmax(190px, 1.1fr) minmax(0, 2.2fr) 96px 116px; gap: 20px; align-items: center; padding: 16px 22px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); border-left: 6px solid var(--river); }
.kf-row-lake { border-left-color: var(--lake); }
.kf-row:last-child { border-bottom: 0; }
.kf-row:hover { background: color-mix(in srgb, var(--empty) 45%, transparent); }
.kf-row small { display: block; font-size: 13.5px; font-weight: 400; font-stretch: 100%; color: var(--muted); line-height: 1.3; }
.kf-row-name { font-weight: 750; font-stretch: 74%; font-size: 25px; line-height: 1.05; }
.kf-row-name small { margin-top: 4px; }
.kf-row-last, .kf-row-next { font-weight: 700; font-stretch: 80%; font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kf-row-next.kf-is-proj { color: var(--gold-ink); }
.kf-row-next.kf-is-now { color: var(--rose); }
.kf-strip { display: block; width: 100%; height: 26px; }
.kf-t { fill: var(--empty); }
.kf-t-on.kf-t-river { fill: var(--river); }
.kf-t-on.kf-t-lake { fill: var(--lake); }
.kf-t-now { fill: var(--rose); }
@media (max-width: 760px) {
  .kf-row { grid-template-columns: 1fr auto auto; gap: 10px 18px; padding: 14px 16px; }
  .kf-row-strip { grid-column: 1 / -1; grid-row: 2; }
  .kf-row-name { font-size: 22px; }
  .kf-row-last, .kf-row-next { font-size: 17px; }
}
@media (max-width: 430px) { .kf-row-last { display: none; } }

/* ---------- How to read ---------- */
.kf-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px 36px; }
.kf-how p { margin: 0; max-width: 40ch; }
.kf-how .kf-h2 { margin-bottom: 18px; }
.kf-how strong { display: block; font-weight: 750; font-stretch: 80%; font-size: 20px; }
/* The key inside "How to read this": real swatch, real badge, plain words. */
.kf-how-item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.kf-how-key { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--muted); }
.kf-how-key i { width: 22px; height: 14px; border-radius: 2px; display: inline-block; flex: none; }
.kf-how-key em { font-style: normal; opacity: .75; font-weight: 400; font-stretch: 100%; font-size: 15px; }
.kf-how-key-week { font-weight: 750; font-stretch: 80%; font-size: 19px; color: var(--ink); }
.kf-how .kf-flag { margin: 0; }
.kf-how .kf-flag strong { display: inline; font-size: 12px; font-weight: 800; font-stretch: 100%; }
.kf-how .kf-flag span { display: inline; font-size: 11.5px; font-weight: 600; }
.kf-flag-plain { color: var(--muted); background: transparent; border: 1.5px solid currentColor; }
/* Small "Predicted" marker for predicted dates inside tables. */
.kf-tag-row { display: inline-block; margin-left: 9px; vertical-align: 1px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; color: var(--gold-ink); background: var(--hatch-bg); border: 1.2px dashed var(--gold); white-space: nowrap; }

/* ---------- River safety ---------- */
.kf-grid-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: start; max-width: 980px; }
.kf-warn { background: #fdf1f4; border-left: 7px solid var(--rose); border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 0 0 28px; }
.kf-warn p { margin: 0 0 10px; max-width: 68ch; }
.kf-warn p:last-child { margin-bottom: 0; }
.kf-warn a { color: var(--ink); }
.kf-warn-inline { margin: 26px 0 28px; }
.kf-warn-lead { margin: 0 0 36px; padding: 24px 26px; }
.kf-warn-big { font-weight: 750; font-stretch: 80%; font-size: clamp(34px, 6vw, 52px); line-height: 1; color: var(--rose); display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 12px; }
.kf-warn-big span { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink); font-stretch: 86%; font-weight: 700; }
.kf-foot-warn { margin-top: 14px; }
.kf-foot-warn a { color: var(--on-water); font-weight: 650; box-shadow: inset 0 -2px 0 var(--rose); text-decoration: none; }
.kf-checklist { margin: 0 0 18px; padding-left: 0; list-style: none; max-width: 66ch; }
.kf-checklist li { position: relative; padding: 0 0 12px 30px; }
.kf-checklist li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--river); }
.kf-links { margin: 0 0 18px; padding-left: 20px; max-width: 70ch; }
.kf-links li { padding-bottom: 8px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .kf-warn { background: #35161f; }
}

/* ---------- Inner pages ---------- */

.kf-title { margin: 0 0 14px; font-weight: 800; font-stretch: 64%; font-size: clamp(48px, 8vw, 104px); line-height: .9; letter-spacing: -.012em; }
.kf-lede { margin: 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; max-width: 50ch; }
.kf-lede strong { font-weight: 700; }
.kf-lede-sm { color: var(--on-water-muted); }
.kf-eyebrow { margin: 0 0 12px; font-size: 16px; color: var(--on-water-muted); }
.kf-about-text { max-width: 62ch; margin: 14px 0 0; }
.kf-crumbs { margin: 0 0 18px; font-size: 15px; color: var(--on-water-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.kf-pagehead + *, .kf-hero + * { margin-top: 0; }

.kf-card { background: var(--paper); border-radius: 12px; box-shadow: var(--lift); padding: clamp(18px, 3vw, 30px); min-width: 0; }
.kf-card-proj { border-left: 8px solid transparent; border-image: repeating-linear-gradient(135deg, var(--gold) 0 3px, var(--hatch-bg) 3px 6px) 8; border-radius: 0; }
.kf-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; align-items: start; }
.kf-tag { display: inline-block; font-size: 14px; font-weight: 700; font-stretch: 100%; letter-spacing: 0; padding: 3px 10px 3px 14px; border-radius: 2px; color: var(--ink); background: var(--hatch-bg); border-left: 6px solid transparent; border-image: repeating-linear-gradient(135deg, var(--gold) 0 3px, var(--hatch-bg) 3px 6px) 6; }
.kf-section-card > .kf-tag { margin-bottom: 12px; }

/* Stats: one quiet row of big numerals, not four boxes */
.kf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: var(--lift); }
.kf-stats .kf-card { border-radius: 0; background: none; border: 0; border-image: none; padding: 22px 24px; box-shadow: inset 1px 0 0 var(--line); }
.kf-stat-label { margin: 0; font-size: 15px; color: var(--muted); }
.kf-stat-value { margin: 4px 0 2px; font-weight: 800; font-stretch: 64%; font-size: clamp(48px, 6vw, 68px); line-height: .95; font-variant-numeric: tabular-nums; }
.kf-stat-word { font-size: clamp(28px, 3.4vw, 38px); line-height: 1; padding: 8px 0 6px; }
.kf-stat-sub { margin: 0; font-size: 14px; color: var(--muted); }
.kf-stats .kf-card-proj .kf-stat-value { color: var(--gold-ink); }
@media (max-width: 520px) { .kf-stats { grid-template-columns: 1fr 1fr; } .kf-stats .kf-card { padding: 16px; box-shadow: inset 1px 0 0 var(--line), inset 0 1px 0 var(--line); } }

/* Dots and swatches */
.kf-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; flex: none; }
.kf-dot-river { background: var(--river); }
.kf-dot-lake { background: var(--lake); border-radius: 50% / 40%; width: 13px; }
.kf-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.kf-legend span { display: inline-flex; align-items: center; gap: 8px; }
.kf-sw { width: 14px; height: 14px; border-radius: 2px; display: inline-block; background: var(--empty); }
.kf-sw-river { background: var(--river); }
.kf-sw-lake { background: var(--lake); }
.kf-sw-river.kf-sw-proj { background: repeating-linear-gradient(135deg, var(--river) 0 2.5px, var(--hatch-bg) 2.5px 5px); }
.kf-sw-lake.kf-sw-proj { background: repeating-linear-gradient(135deg, var(--lake) 0 2.5px, var(--hatch-bg) 2.5px 5px); }

/* Heat grids */
.kf-heat { position: relative; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.kf-heat-gap { margin-top: 12px; }
.kf-heat-svg { display: block; width: 100%; height: auto; }
.kf-heat-svg text { font: 500 12.5px var(--font); fill: var(--muted); }
.kf-heat-svg .kf-heat-label { fill: var(--ink); font-weight: 600; }
.kf-c { fill: var(--empty); }
.kf-c-river { fill: var(--river); }
.kf-c-lake { fill: var(--lake); }
.kf-heat rect:hover, .kf-heat rect.is-active { stroke: var(--rose); stroke-width: 2.5; }

.kf-tip { position: fixed; left: 0; top: 0; display: none; z-index: 60; pointer-events: none; max-width: 290px; background: var(--water-deep); color: var(--on-water); border-radius: 4px; padding: 8px 12px; font-size: 14px; line-height: 1.4; opacity: 0; transition: opacity .12s; }
.kf-tip.is-on { display: block; opacity: 1; }

/* Bars */
.kf-bars { display: flex; flex-direction: column; gap: 12px; }
.kf-bar { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr 2.6ch; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 16px; }
.kf-bar:hover .kf-bar-name { text-decoration: underline; }
.kf-bar-name { display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-stretch: 86%; }
.kf-bar-track { height: 16px; background: var(--empty); border-radius: 2px; overflow: hidden; }
.kf-bar-fill { display: block; height: 100%; }
.kf-fill-river { background: var(--river); }
.kf-fill-lake { background: var(--lake); }
.kf-bar-val { text-align: right; font-weight: 800; font-stretch: 70%; font-size: 22px; font-variant-numeric: tabular-nums; }

/* Month columns */
.kf-cols { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; height: 250px; align-items: end; padding-top: 8px; }
.kf-col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; padding-bottom: 38px; }
.kf-col-bar { width: 100%; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--river); }
.kf-col-val { font-weight: 800; font-stretch: 70%; font-size: 19px; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.kf-col-lab { position: absolute; bottom: 0; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.2; }
.kf-col-lab small { display: block; font-size: 12px; }
.kf-col:hover .kf-col-bar { background: var(--rose); }

/* Tables */
.kf-tablewrap { overflow: auto; -webkit-overflow-scrolling: touch; }
.kf-tablewrap-tall { max-height: 540px; }
.kf-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.kf-table th { text-align: left; font-size: 14px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--ink); position: sticky; top: 0; background: var(--paper); white-space: nowrap; }
.kf-table td { padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kf-table tbody tr:last-child td { border-bottom: 0; }
.kf-table a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; font-weight: 650; }
.kf-table a:hover { text-decoration: underline; }
.kf-num { text-align: right !important; }
.kf-strong { font-weight: 700; color: var(--gold-ink); }
.kf-loghead { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.kf-select { appearance: none; -webkit-appearance: none; font: inherit; font-weight: 600; color: var(--ink); background: var(--snow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23779' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; border: 2px solid var(--ink); border-radius: 4px; padding: 8px 38px 8px 14px; min-height: 46px; }

/* Projection list */
.kf-plist { list-style: none; margin: 0; padding: 0; }
.kf-plist li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kf-plist li:last-child { border-bottom: 0; }
.kf-plist strong { font-weight: 700; font-stretch: 82%; font-size: 19px; }
.kf-plist span { font-size: 14.5px; color: var(--muted); }

.kf-details { background: var(--paper); border-radius: 6px; padding: 18px 24px; }
.kf-details summary { cursor: pointer; font-weight: 700; }
.kf-details p { color: var(--muted); max-width: 70ch; }
.kf-soon { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }

@media print {
  .kf-top, .kf-actions, .kf-foot, .kf-map-note { display: none; }
  .kf-tablewrap-tall { max-height: none; }
}

/* =====================================================================
   The canyon. Dawn at the top of every page, dusk at the bottom.
   ===================================================================== */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
.kf-serif, .kf-hero-next, .kf-lede, .kf-kicker, .kf-map-note, .kf-eyebrow { font-family: var(--serif); font-style: italic; font-weight: 400; }
.kf-serif { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; color: var(--muted); max-width: 46ch; margin: 0; }

.kf-hero, .kf-pagehead {
  --scene-h: clamp(240px, 36vw, 520px);
  background: none; box-shadow: none; isolation: isolate;
  clip-path: inset(0 -100vmax);
}
.kf-hero::before, .kf-pagehead::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -2;
  background:
    radial-gradient(circle calc(var(--scene-h) * 1.2) at calc(50% + var(--scene-h) * .46) calc(100% - var(--scene-h) * .68),
      #fde6ae 0, #f6bd87 13%, rgba(226, 124, 112, .62) 30%, rgba(64, 140, 143, .5) 58%, transparent 100%),
    linear-gradient(#052830 0%, #0a3d47 50%, #15626c 100%);
}
.kf-hero > .kf-scene, .kf-pagehead > .kf-scene {
  position: absolute; left: 50%; bottom: -1px; width: 100vw; height: var(--scene-h);
  transform: translateX(-50%); z-index: -1; display: block; pointer-events: none; overflow: visible;
}
.kf-hero { display: block; padding: clamp(40px, 7vw, 96px) 0 calc(var(--scene-h) * .5); }
.kf-hero-text { max-width: 760px; }
.kf-kicker { margin: 0 0 14px; font-size: clamp(18px, 2vw, 22px); color: #f6cf9a; }
.kf-display { text-shadow: 0 2px 30px rgba(5, 40, 48, .5); font-size: clamp(46px, 7.6vw, 108px); }
.kf-hero-next { border: 0; padding: 0; font-size: clamp(20px, 2.2vw, 25px); max-width: 30ch; color: #fdf3df; text-shadow: 0 1px 14px rgba(5, 40, 48, .7); }
.kf-btn { border-radius: 999px; box-shadow: 0 10px 24px -12px rgba(5, 40, 48, .8); }
.kf-btn-ghost { background: rgba(5, 40, 48, .35); box-shadow: inset 0 0 0 2px rgba(243, 248, 246, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@media (max-width: 700px) { .kf-hero { padding-bottom: calc(var(--scene-h) * .92); } }

.kf-pagehead { --scene-h: clamp(210px, 30vw, 430px); padding: clamp(30px, 5vw, 60px) 0 max(24vw, calc(var(--scene-h) * .78)); }
.kf-title, .kf-lede { text-shadow: 0 2px 24px rgba(5, 40, 48, .5); }
.kf-lede { font-size: clamp(20px, 2.1vw, 24px); }
.kf-eyebrow { font-size: 19px; color: #f6cf9a; }

/* scene paint */
.kf-scene-dawn { --c1: #a9c4cc; --c2: #7aa5b4; --c3: #4a7f91; --c4: #235b6a; --c5: #0b3642; }
.kf-scene-dusk { --c1: #8a6f9f; --c2: #64578c; --c3: #444374; --c4: #2a2f5b; --c5: #151b3d; }
.kf-s-c1, .kf-s-pine1 { fill: var(--c1); } .kf-s-c2 { fill: var(--c2); }
.kf-s-c3, .kf-s-pine3 { fill: var(--c3); } .kf-s-c4, .kf-s-pine4 { fill: var(--c4); } .kf-s-c5, .kf-s-pine5 { fill: var(--c5); }
.kf-s-disc { fill: #fff6d8; }
.kf-s-halo0 { stop-color: #ffe9b5; stop-opacity: .95; } .kf-s-halo1 { stop-color: #ffe9b5; stop-opacity: 0; }
.kf-s-r0 { stop-color: #ffe6b3; } .kf-s-r1 { stop-color: #8fd0d0; } .kf-s-r2 { stop-color: #2a93a0; }
.kf-s-sh0 { stop-color: #052830; stop-opacity: .8; } .kf-s-shm { stop-color: #052830; stop-opacity: .5; } .kf-s-sh1 { stop-color: #052830; stop-opacity: 0; }
.kf-s-mist { fill: #fff; opacity: .34; }
.kf-s-glint path { stroke: #fff; stroke-width: 2.2; stroke-linecap: round; opacity: .75; fill: none; }
.kf-s-ground { fill: var(--snow); }
.kf-scene-dusk .kf-s-disc { fill: #f3effc; }
.kf-scene-dusk .kf-s-halo0, .kf-scene-dusk .kf-s-halo1 { stop-color: #d9c9f5; }
.kf-scene-dusk .kf-s-halo0 { stop-opacity: .5; }
.kf-scene-dusk .kf-s-r0 { stop-color: #f6c0a6; } .kf-scene-dusk .kf-s-r1 { stop-color: #9484c6; } .kf-scene-dusk .kf-s-r2 { stop-color: #2e3874; }
.kf-scene-dusk .kf-s-sh0, .kf-scene-dusk .kf-s-shm { stop-color: #10142f; stop-opacity: 0; } .kf-scene-dusk .kf-s-sh1 { stop-color: #10142f; }
.kf-scene-dusk .kf-s-mist { opacity: .16; }
.kf-scene-dusk .kf-s-ground { fill: #151b3d; }
.kf-s-stars circle { fill: #fff; opacity: .8; }
.kf-s-layer { will-change: transform; }

@media (prefers-reduced-motion: no-preference) {
  .kf-hero .kf-s-sun { animation: kf-rise 2.6s cubic-bezier(.16, .7, .2, 1) both; }
  .kf-s-mist { animation: kf-drift 44s ease-in-out infinite alternate; }
  .kf-s-stars circle:nth-child(3n) { animation: kf-twinkle 5s ease-in-out infinite alternate; }

  /* The current: ripple marks ease downstream, fading in and out so the
     river reads as moving without anything marching across it. */
  .kf-s-glint path { animation: kf-current 7.5s linear infinite; animation-duration: calc(7.5s * var(--kf-flow-k, 1)); }
  .kf-s-glint path:nth-child(1)  { animation-duration: calc(8.2s * var(--kf-flow-k, 1)); animation-delay: -0.4s; }
  .kf-s-glint path:nth-child(2)  { animation-duration: calc(7.1s * var(--kf-flow-k, 1)); animation-delay: -2.9s; }
  .kf-s-glint path:nth-child(3)  { animation-duration: calc(9.0s * var(--kf-flow-k, 1)); animation-delay: -5.6s; }
  .kf-s-glint path:nth-child(4)  { animation-duration: calc(7.8s * var(--kf-flow-k, 1)); animation-delay: -1.3s; }
  .kf-s-glint path:nth-child(5)  { animation-duration: calc(8.6s * var(--kf-flow-k, 1)); animation-delay: -4.2s; }
  .kf-s-glint path:nth-child(6)  { animation-duration: calc(7.4s * var(--kf-flow-k, 1)); animation-delay: -6.8s; }
  .kf-s-glint path:nth-child(7)  { animation-duration: calc(9.4s * var(--kf-flow-k, 1)); animation-delay: -0.9s; }
  .kf-s-glint path:nth-child(8)  { animation-duration: calc(8.0s * var(--kf-flow-k, 1)); animation-delay: -3.7s; }
  .kf-s-glint path:nth-child(9)  { animation-duration: calc(7.6s * var(--kf-flow-k, 1)); animation-delay: -6.1s; }
  .kf-s-glint path:nth-child(10) { animation-duration: calc(8.9s * var(--kf-flow-k, 1)); animation-delay: -2.2s; }
}
@keyframes kf-rise { from { transform: translateY(90px); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes kf-drift { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
@keyframes kf-twinkle { from { opacity: .25; } to { opacity: .95; } }
/* Downstream here is down and to the left, following the bend under the sun.
   Named kf-current, not kf-flow: the map's dashes already own kf-flow. */
@keyframes kf-current {
  0%   { opacity: 0;   transform: translate(11px, -10px); }
  20%  { opacity: .8; }
  65%  { opacity: .55; }
  100% { opacity: 0;   transform: translate(-21px, 19px); }
}

/* ---------- The river band ---------- */
.kf-riverband { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 5vw, 72px); align-items: center; color: var(--on-water); background: var(--water); box-shadow: 0 0 0 100vmax var(--water); clip-path: inset(0 -100vmax); padding: clamp(40px, 7vw, 88px) 0; }
.kf-riverband .kf-serif { color: #cfe3e1; margin-top: 16px; }
.kf-riverband .kf-map-note { text-align: left; margin-top: 18px; font-size: 17px; }
.kf-mapkey { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.kf-mapkey li { display: flex; align-items: center; gap: 12px; }
.kf-mapkey i { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.kf-mapkey-now { background: var(--rose); box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(217, 70, 111, .35); }
.kf-mapkey-river { background: var(--on-water); box-shadow: 0 0 0 3px var(--water-deep); transform: scale(.8); }
.kf-mapkey-lake { background: #3fb3c2; box-shadow: 0 0 0 2px var(--on-water); border-radius: 50% / 42% !important; width: 22px !important; height: 15px !important; }
@media (max-width: 860px) {
  .kf-riverband { grid-template-columns: 1fr; }
  .kf-map { max-width: 520px; margin-inline: auto; }
}

/* ---------- Footer at dusk ---------- */
.kf-foot { background: #151b3d; color: #b9bcd8; font-size: 15.5px; padding-bottom: 40px; }
.kf-foot-sky { --scene-h: clamp(240px, 36vw, 520px); position: relative; height: calc(var(--scene-h) + clamp(50px, 8vw, 120px)); overflow: hidden; background: linear-gradient(#141c47 0%, #3a3576 16%, #a55d88 32%, #f0a27f 44%, #f9cf9a 54%); }
.kf-foot-sky .kf-scene { position: absolute; left: 0; bottom: -1px; width: 100%; height: var(--scene-h); display: block; overflow: visible; }
.kf-foot-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 56px; padding-top: 12px; }
.kf-foot p { margin: 0 0 12px; max-width: 58ch; }
.kf-foot a { color: #fff; }
.kf-foot-brand { color: #fff; font-weight: 800; font-stretch: 66%; font-size: 44px; line-height: 1; }
.kf-foot-small { font-size: 14px; }

/* ---------- Live conditions ---------- */
.kf-gauges { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(243, 248, 246, .2); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 26px; }
.kf-gauges-h { grid-column: 1 / -1; margin: 0; font-weight: 700; font-stretch: 82%; font-size: 19px; }
.kf-gauge-label { margin: 0; font-size: 14.5px; color: var(--muted); }
.kf-gauge-value { margin: 2px 0 4px; font-weight: 800; font-stretch: 64%; font-size: clamp(40px, 5vw, 58px); line-height: 1; font-variant-numeric: tabular-nums; }
.kf-gauge-sub { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.kf-spark { display: block; width: 100%; max-width: 260px; height: 40px; overflow: visible; }
.kf-spark polyline { fill: none; stroke: var(--river); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.kf-spark circle { fill: var(--rose); }
.kf-riverband .kf-gauge-label, .kf-riverband .kf-gauge-sub { color: var(--on-water-muted); }
.kf-riverband .kf-gauge-value { font-size: clamp(32px, 3.4vw, 42px); }
.kf-riverband .kf-spark polyline { stroke: #7fd3dc; }
.kf-now { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 48px; align-items: center; }
@media (max-width: 700px) { .kf-now { grid-template-columns: 1fr; } }

/* ---------- Scorecard ---------- */
.kf-score { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 18px 32px; align-items: end; margin: 8px 0 18px; }
.kf-score p { margin: 0; font-size: 15px; color: var(--muted); max-width: 22ch; }
.kf-score .kf-score-big { font-weight: 800; font-stretch: 64%; font-size: clamp(64px, 9vw, 112px); line-height: .9; color: var(--ink); max-width: none; }
.kf-score-big span { font-size: .42em; color: var(--muted); font-stretch: 72%; }
.kf-score .kf-score-n { font-weight: 800; font-stretch: 66%; font-size: clamp(38px, 4.4vw, 54px); line-height: 1; color: var(--ink); }
@media (max-width: 700px) { .kf-score { grid-template-columns: 1fr 1fr 1fr; } .kf-score-main { grid-column: 1 / -1; } }
.kf-scorebar { display: flex; gap: 3px; height: 14px; border-radius: 7px; overflow: hidden; }
.kf-sb-hit { background: var(--river); }
.kf-sb-close { background: repeating-linear-gradient(135deg, var(--river) 0 3px, var(--empty) 3px 6px); }
.kf-sb-miss { background: var(--empty); }
.kf-res { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.kf-res::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--empty); flex: none; }
.kf-res-hit::before { background: var(--river); }
.kf-res-close::before { background: repeating-linear-gradient(135deg, var(--river) 0 2.5px, var(--empty) 2.5px 5px); }
.kf-res-miss { color: var(--muted); font-weight: 400; }
.kf-res-surprise::before { background: var(--rose); border-radius: 50%; }
.kf-archive { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.kf-archive > div { flex: 1 1 380px; }
.kf-btn-dark { background: var(--ink); box-shadow: none; }
.kf-btn-dark:hover { background: var(--water); }
@media (prefers-color-scheme: dark) { .kf-btn-dark { background: var(--river); color: #06181b !important; } }
