/* ============================================================
   PNW River Conditions — Public Site Styles
   ============================================================ */

:root {
  --color-primary:     #2d6b5e;
  --color-primary-dk:  #1e4d43;
  --color-accent:      #4a9e8a;
  --color-bg:          #f5f5f5;
  --color-surface:     #ffffff;
  --color-border:      #dde3ea;
  --color-text:        #1e293b;
  --color-text-muted:  #64748b;

  /* Status */
  --color-normal:      #16a34a;
  --color-action:      #d97706;
  --color-flood:       #ea580c;
  --color-moderate:    #dc2626;
  --color-major:       #7c3aed;
  --color-unknown:     #94a3b8;

  --radius:  8px;
  --shadow:  0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --font:    system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Site Header ---- */
.site-header {
  background: #1a3d35;
  color: #fff;
  padding: .875rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; opacity: .85; }

.site-beta {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 99px;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255,255,255,.8);
}

.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  margin-left: 1.5rem;
}
.site-nav a:hover { color: #fff; text-decoration: none; }

/* ---- Map Page ---- */
.map-page { position: relative; height: calc(100vh - 56px); }
#map { height: 100%; width: 100%; }

.map-loading {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: .45rem 1.1rem;
  font-size: .825rem;
  color: var(--color-text-muted);
  box-shadow: var(--shadow);
  pointer-events: none;
  white-space: nowrap;
}

/* ---- Individual gauge pin (DivIcon inside cluster or standalone) ---- */
.river-pin {
  width: 100%;
  height: 100%;
  background: rgba(74, 158, 138, 0.85);
  border: 2px solid #2d6b5e;
  border-radius: 50%;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform .12s ease;
}
.river-pin:hover { transform: scale(1.3); }

/* ---- Cluster bubble ---- */
.river-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border: 2.5px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  box-sizing: border-box;
  cursor: pointer;
  transition: transform .12s ease;
}
.river-cluster:hover { transform: scale(1.1); }

/* ---- Leaflet popup overrides ---- */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.map-popup h3 { margin: 0 0 .25rem; font-size: 1rem; color: var(--color-primary); }
.map-popup .popup-state { font-size: .8rem; font-weight: 400; color: var(--color-text-muted); }
.map-popup .popup-site { font-size: .85rem; color: var(--color-text-muted); margin-bottom: .5rem; }
.map-popup .popup-cfs  { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; }
.map-popup .popup-link {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: .35rem .9rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
}
.map-popup .popup-link:hover { background: var(--color-primary-dk); text-decoration: none; }

/* ---- River Page ---- */
.river-page { padding: 2rem 0 3rem; }

.back-to-map {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .9rem;
  padding: .3rem .8rem .3rem .6rem;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: .825rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.back-to-map:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  text-decoration: none;
}

.river-hero {
  margin-bottom: 2rem;
}
.river-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 .5rem;
  line-height: 1.2;
}
.river-hero .river-description {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* ---- Status Badge ---- */
.status-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
}
.status--normal   { background: #dcfce7; color: var(--color-normal); }
.status--action   { background: #fef9c3; color: var(--color-action); }
.status--flood    { background: #ffedd5; color: var(--color-flood); }
.status--moderate { background: #fee2e2; color: var(--color-moderate); }
.status--major    { background: #ede9fe; color: var(--color-major); }
.status--unknown  { background: #f1f5f9; color: var(--color-unknown); }

/* ---- Admin Notes ---- */
.notes-section { margin-bottom: 2rem; }
.note-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.note-card p { margin: 0; white-space: pre-wrap; }
.note-meta { font-size: .78rem; color: var(--color-text-muted); margin-top: .4rem; }

/* ---- Gauge Cards ---- */
.gauges-section { margin-bottom: 2.5rem; }
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--color-border);
}

.gauge-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.gauge-card-header {
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.gauge-card-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.gauge-usgs-link { font-size: .8rem; color: var(--color-text-muted); }

.gauge-readings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.reading-cell {
  background: var(--color-surface);
  padding: 1rem 1.25rem;
  text-align: center;
}
.reading-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-text-muted);
  margin-bottom: .3rem;
}
.reading-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.reading-value--primary {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.02em;
}
.reading-value.unavailable { color: var(--color-text-muted); font-size: 1rem; }

/* ---- Flood Stage Bar ---- */
.flood-stage-info {
  padding: .75rem 1.25rem;
  font-size: .875rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--color-text-muted);
}
.flood-stage-info strong { color: var(--color-text); }

/* ---- Chart Area ---- */
.gauge-chart-wrap { padding: 1.25rem; }
.chart-controls {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.chart-controls span { font-size: .8rem; color: var(--color-text-muted); margin-right: .25rem; }
.chart-btn {
  padding: .3rem .75rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all .15s;
}
.chart-btn:hover, .chart-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.chart-canvas-wrap { position: relative; height: 260px; }
.chart-canvas-wrap canvas { width: 100% !important; height: 100% !important; }
.chart-loading { position: absolute; inset: 0; display: flex; align-items: center;
                 justify-content: center; background: rgba(255,255,255,.7);
                 font-size: .875rem; color: var(--color-text-muted); }
.chart-loading.hidden { display: none; }

/* ---- Weather Section ---- */
.weather-section { margin-bottom: 2.5rem; }
.weather-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.weather-current {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.weather-temp {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-primary);
}
.weather-desc { font-size: 1.1rem; color: var(--color-text-muted); margin-top: .2rem; }
.weather-details { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.weather-detail { font-size: .875rem; }
.weather-detail .label { display: block; font-size: .72rem; font-weight: 600;
                          text-transform: uppercase; letter-spacing: .05em;
                          color: var(--color-text-muted); }

.weather-forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}
.forecast-day {
  text-align: center;
  font-size: .85rem;
}
.forecast-date { font-weight: 700; color: var(--color-text-muted); font-size: .75rem; margin-bottom: .2rem; }
.forecast-desc { font-size: .78rem; color: var(--color-text-muted); margin: .2rem 0; }
.forecast-temps { font-weight: 600; }
.forecast-temps .hi { color: var(--color-text); }
.forecast-temps .lo { color: var(--color-text-muted); margin-left: .4rem; }

/* ---- Site Footer ---- */
.site-footer {
  background: var(--color-primary-dk);
  color: rgba(255,255,255,.7);
  padding: 1.5rem 0;
  font-size: .8rem;
  margin-top: 3rem;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer p { margin: 0 0 .25rem; }
.footer-note { color: rgba(255,255,255,.5); font-size: .75rem; }

/* ---- Data Source Sections (USGS / NOAA within a gauge card) ---- */
.data-source-section {
  border-left: 4px solid transparent;
}
.data-source-section + .data-source-section {
  border-top: 2px solid var(--color-border);
}
.data-source-section--usgs { border-left-color: #2563eb; }
.data-source-section--noaa { border-left-color: #16a34a; }

.source-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 1.25rem;
  font-size: .78rem;
  font-weight: 600;
}
.source-label-text {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.source-sublabel {
  font-size: .7rem;
  font-weight: 400;
  opacity: .75;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}
.source-badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.source-badge--usgs { background: #2563eb; color: #fff; }
.source-badge--noaa { background: #16a34a; color: #fff; }
.source-label--usgs {
  background: #eff6ff;
  color: #1e40af;
  border-bottom: 1px solid #dbeafe;
}
.source-label--usgs a {
  color: #1e40af;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.source-label--noaa {
  background: #f0fdf4;
  color: #166534;
  border-bottom: 1px solid #bbf7d0;
}
.source-label--noaa a {
  color: #166534;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Timestamp / muted text ---- */
.ts { font-size: .75rem; color: var(--color-text-muted); }

/* ---- Gauge Location Mini Map ---- */
.gauge-map-wrap {
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
#gauge-map { height: 260px; }
.leaflet-tooltip.gauge-pin-label {
  background: rgba(45,107,94,.9);
  border: none;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.leaflet-tooltip.gauge-pin-label::before { border-top-color: rgba(45,107,94,.9); }

/* ---- Stream Conditions header row (title + jump select) ---- */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--color-border);
}
.section-title-row h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }

/* ---- Gauge Jump Select ---- */
.gauge-jump { display: flex; align-items: center; gap: .5rem; font-size: .825rem; }
.gauge-jump label { color: var(--color-text-muted); font-weight: 600; white-space: nowrap; }
.gauge-jump select {
  padding: .3rem .6rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: .825rem;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

/* ---- Favorite Button ---- */
.fav-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: .25rem .65rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.4;
  transition: border-color .15s, color .15s, background .15s;
}
.fav-btn:hover { border-color: #f59e0b; color: #b45309; }
.fav-btn.is-fav { background: #fef9c3; border-color: #f59e0b; color: #b45309; }
.gauge-card.is-favorite { border-color: #f59e0b; }
.gauge-card.is-favorite .gauge-card-header { background: #fffbeb; }

/* ---- In-Card Weather ---- */
.gauge-weather {
  border-top: 1px solid var(--color-border);
  padding: .85rem 1.25rem 1rem;
}
.gauge-weather-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--color-text-muted);
  margin-bottom: .65rem;
}
.gauge-weather .weather-current { margin-bottom: .75rem; }
.gauge-weather .weather-temp { font-size: 2.25rem; }

/* ---- Map Logo Watermark ---- */
.map-watermark {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 500;
  width: 200px;
  opacity: .27;
  pointer-events: none;
  user-select: none;
}

/* ---- Nav Favorites Button ---- */
.nav-fav-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  margin-left: 1.5rem;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
}
.nav-fav-btn:hover { color: #fff; }
.nav-fav-count {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 99px;
  padding: .05rem .4rem;
  margin-left: .25rem;
  vertical-align: middle;
  line-height: 1.5;
  min-width: 1.3em;
  text-align: center;
}
.nav-fav-count:empty { display: none; }

/* ---- Favorites Slide-Out Drawer ---- */
.fav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.fav-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.fav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 340px;
  max-width: 92vw;
  background: var(--color-surface);
  box-shadow: -4px 0 24px rgba(0,0,0,.22);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.fav-drawer.is-open {
  transform: translateX(0);
}
.fav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  background: #1a3d35;
  color: #fff;
  flex-shrink: 0;
}
.fav-drawer-title {
  font-size: 1rem;
  font-weight: 700;
}
.fav-drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: .15rem .4rem;
  border-radius: 4px;
  transition: background .12s;
}
.fav-drawer-close:hover { background: rgba(255,255,255,.15); color: #fff; }
.fav-drawer-body {
  flex: 1;
  overflow-y: auto;
}
.fav-drawer-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .85rem 1.25rem .85rem 1rem;
  border-bottom: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--color-text);
  transition: background .12s, border-left-color .12s;
}
.fav-drawer-item:last-child { border-bottom: none; }
.fav-drawer-item:hover { background: var(--color-bg); border-left-color: var(--color-accent); text-decoration: none; }
.fav-drawer-name  { font-size: .9rem; font-weight: 700; color: var(--color-text); line-height: 1.3; }
.fav-drawer-river { font-size: .78rem; color: var(--color-text-muted); }
.fav-drawer-cfs {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.fav-drawer-cfs::before { content: 'CFS:'; font-weight: 400; color: var(--color-text-muted); }
.fav-drawer-cfs.unavail { color: var(--color-text-muted); font-weight: 400; }
.fav-drawer-cfs.unavail::before { display: none; }
.fav-drawer-empty,
.fav-drawer-loading { margin: 0; padding: 2rem 1.25rem; font-size: .875rem; color: var(--color-text-muted); text-align: center; }

/* ---- Dark Mode Toggle Button ---- */
.nav-dark-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  margin-left: 1rem;
  padding: 0 .25rem;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
}
.nav-dark-toggle:hover { color: #fff; }

/* ============================================================
   Dark Mode
   ============================================================ */
body.dark-mode {
  --color-bg:         #1a2535;
  --color-surface:    #1e2d3d;
  --color-border:     #344f64;
  --color-text:       #e8f0f8;
  --color-text-muted: #a8c0d4;
  --color-primary:    #4a9e8a;
  --color-primary-dk: #3a7a6e;
  --color-accent:     #5bbaa6;
}

body.dark-mode .site-header,
body.dark-mode .fav-drawer-header {
  background: #0f1923;
}

body.dark-mode .site-footer {
  background: #0f1923;
}

/* Status badge backgrounds in dark mode */
body.dark-mode .status--normal   { background: #052e16; }
body.dark-mode .status--action   { background: #241a06; }
body.dark-mode .status--flood    { background: #2a1506; }
body.dark-mode .status--moderate { background: #2a0909; }
body.dark-mode .status--major    { background: #1e1040; }

/* Source label banners */
body.dark-mode .source-label--usgs {
  background: #0f1f3d;
  color: #93c5fd;
  border-bottom-color: #1a3060;
}
body.dark-mode .source-label--usgs a { color: #93c5fd; }
body.dark-mode .source-label--noaa {
  background: #0c2318;
  color: #6ee7b7;
  border-bottom-color: #14352a;
}
body.dark-mode .source-label--noaa a { color: #6ee7b7; }
body.dark-mode .data-source-section--usgs { border-left-color: #3b82f6; }
body.dark-mode .data-source-section--noaa { border-left-color: #4ade80; }

/* Admin note card */
body.dark-mode .note-card {
  background: #241a06;
  border-color: #6b4c1a;
  border-left-color: #d97706;
}

/* Chart loading overlay */
body.dark-mode .chart-loading {
  background: rgba(30,45,61,.75);
}

/* Map loading pill */
body.dark-mode .map-loading {
  background: rgba(30,45,61,.92);
  border-color: var(--color-border);
}

/* Back-to-map button */
body.dark-mode .back-to-map {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-muted);
}
body.dark-mode .back-to-map:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Favorite button & highlighted card */
body.dark-mode .fav-btn.is-fav {
  background: #241a06;
  border-color: #d97706;
  color: #fbbf24;
}
body.dark-mode .gauge-card.is-favorite { border-color: #d97706; }
body.dark-mode .gauge-card.is-favorite .gauge-card-header { background: #1e1608; }

/* Gauge jump select */
body.dark-mode .gauge-jump select {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

/* Fav drawer body */
body.dark-mode .fav-drawer-item:hover { background: #151f2e; }

/* Leaflet map popup */
body.dark-mode .leaflet-popup-content-wrapper,
body.dark-mode .leaflet-popup-tip {
  background: var(--color-surface);
  color: var(--color-text);
}

/* Cards — increased shadow separation */
body.dark-mode .gauge-card {
  box-shadow: 0 2px 8px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04);
}
body.dark-mode .chart-btn {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-muted);
}
body.dark-mode .chart-btn:hover,
body.dark-mode .chart-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
body.dark-mode .section-title-row { border-bottom-color: var(--color-border); }
body.dark-mode .gauge-weather-title { color: var(--color-text-muted); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .river-hero h1 { font-size: 1.5rem; }
  .gauge-card-header { flex-direction: column; align-items: flex-start; }
  .weather-forecast { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .weather-temp { font-size: 2.25rem; }
}
