:root {
  --color-bg: #f0efe9;
  --color-surface: #ffffff;
  --color-primary: #0f1923;
  --color-primary-soft: #334556;
  --color-amber: #e8a020;
  --color-energy: #e8a020;
  --color-agri: #5ba85c;
  --color-marine: #4a90d9;
  --color-border: #d1cec8;
  --color-subtext: #5e6b76;
  --color-up: #366646;
  --color-up-bg: rgba(54, 102, 70, 0.08);
  --color-down: #b74e43;
  --color-down-bg: rgba(183, 78, 67, 0.08);
  --color-sev-extreme: #8f1f1f;
  --color-sev-extreme-bg: rgba(143, 31, 31, 0.10);
  --color-sev-high: #b74e43;
  --color-sev-high-bg: rgba(183, 78, 67, 0.10);
  --color-sev-moderate: #c17a2e;
  --color-sev-moderate-bg: rgba(193, 122, 46, 0.10);
  --color-sev-low: #5e6b76;
  --color-sev-low-bg: rgba(94, 107, 118, 0.08);
  --nav-height: 52px;
  --filter-height: 52px;
  --shell-max: 1280px;
  --radius: 8px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-primary);
  background: var(--color-bg);
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] { display: none !important; }

/* ── PAGE SHELL ── */
.page-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ── PAGE HEADER ── */
.ww-page-header {
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.ww-page-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 3px;
  line-height: 1.2;
  color: var(--color-primary);
}

.ww-page-subhead {
  font-size: 13px;
  color: var(--color-subtext);
  margin: 0 0 9px;
}

.ww-freshness-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-subtext);
}

.ww-freshness-item { display: flex; align-items: center; gap: 5px; }

.ww-freshness-label { color: var(--color-subtext); }

.ww-freshness-value { color: var(--color-primary); font-weight: 500; }

.ww-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(232, 160, 32, 0.12);
  color: #7a5a12;
  border: 1px solid rgba(232, 160, 32, 0.28);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.ww-mode-badge.is-live {
  background: rgba(54, 102, 70, 0.10);
  color: #2a5c3c;
  border-color: rgba(54, 102, 70, 0.26);
}

.ww-mode-badge.is-unavailable {
  background: rgba(232, 160, 32, 0.12);
  color: #7a5a12;
  border-color: rgba(232, 160, 32, 0.28);
}

/* ── FILTER BAR ── */
.weather-filter-wrap {
  z-index: 90;
}

.weather-filter-bar {
  min-height: var(--filter-height);
}

.filter-pill.weather-filter-pill.is-selected[data-sector="marine_logistics"],
.filter-pill.weather-filter-pill.is-partial[data-sector="marine_logistics"],
.filter-pill.weather-filter-pill:hover[data-sector="marine_logistics"] {
  color: var(--color-marine);
}

/* ── LOADING / ERROR ── */
.ww-state-wrapper {
  padding: 48px 0;
  text-align: center;
  color: var(--color-subtext);
  font-size: 14px;
}

.ww-state-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  opacity: 0.4;
}

.ww-empty-search {
  margin: 0;
  padding: 48px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--type-ui);
  color: var(--color-subtext);
}

.ww-empty-setup {
  margin-top: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-amber);
}

/* ── SECTION GROUP ── */
.ww-section {
  margin-top: 32px;
}


.ww-run-change {
  margin-top: 24px;
}

.ww-run-change-header {
  margin-bottom: 10px;
}

.ww-run-change-cycle-line {
  margin: -6px 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-subtext);
}

.ww-run-change-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.ww-run-change-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 8px 10px;
}

.ww-run-change-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Sector-colored left border per What Changed panel */
.ww-run-change-panel[data-run-change-family="energy_demand"] {
  border-left: 3px solid var(--color-energy);
}
.ww-run-change-panel[data-run-change-family="energy_demand"] .ww-run-change-title {
  color: var(--color-energy);
}
.ww-run-change-panel[data-run-change-family="power_wind"] {
  border-left: 3px solid var(--color-primary-soft);
}
.ww-run-change-panel[data-run-change-family="agriculture_rainfall"] {
  border-left: 3px solid var(--color-agri);
}
.ww-run-change-panel[data-run-change-family="agriculture_rainfall"] .ww-run-change-title {
  color: var(--color-agri);
}
.ww-run-change-panel[data-run-change-family="marine_wave"] {
  border-left: 3px solid var(--color-marine);
}
.ww-run-change-panel[data-run-change-family="marine_wave"] .ww-run-change-title {
  color: var(--color-marine);
}

.ww-run-change-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.ww-run-change-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding-top: 4px;
  border-top: 1px solid rgba(209, 206, 200, 0.58);
}

.ww-run-change-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.ww-run-change-move,
.ww-run-change-value {
  font-family: var(--font-mono);
  font-size: 11px;
}

.ww-run-change-move {
  min-width: 0;
  font-weight: 600;
  color: var(--color-primary);
}

.ww-run-change-move.is-positive { color: var(--color-up); }
.ww-run-change-move.is-negative { color: var(--color-down); }
.ww-run-change-move.is-neutral { color: var(--color-subtext); }
.ww-run-change-move--rainfall,
.ww-run-change-move--wave { color: var(--color-primary); }

.ww-run-change-value {
  color: var(--color-subtext);
  white-space: nowrap;
}

.ww-run-change-empty {
  font-size: 12px;
  color: var(--color-subtext);
}

.ww-run-change-footnote {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-subtext);
}

.ww-run-change-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  font-weight: 600;
  color: var(--color-subtext);
  background: rgba(94, 107, 118, 0.08);
  border: 1px solid rgba(94, 107, 118, 0.18);
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 120ms ease, color 120ms ease;
}

.ww-run-change-toggle:hover {
  background: rgba(94, 107, 118, 0.14);
  color: var(--color-primary);
}

.ww-table-method-note {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-subtext);
  line-height: 1.4;
}

.ww-compact-empty {
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--color-subtext);
}

.ww-section-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}


.ww-section-count {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-subtext);
}

/* ── CARD GRID ── */
.ww-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .ww-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .ww-card-grid { grid-template-columns: 1fr; }
  .ww-run-change-grid,
  .ww-power-card-grid,
  .ww-energy-chart-grid {
    grid-template-columns: 1fr;
  }

  .ww-run-change-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ww-run-change-value {
    grid-column: 1 / -1;
  }
}



.ww-severity-badge {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
  line-height: 1.4;
}

.ww-severity-badge.sev-extreme {
  background: var(--color-sev-extreme-bg);
  color: var(--color-sev-extreme);
  border: 1px solid rgba(143, 31, 31, 0.20);
}

.ww-severity-badge.sev-severe {
  background: var(--color-sev-extreme-bg);
  color: var(--color-sev-extreme);
  border: 1px solid rgba(143, 31, 31, 0.20);
}

.ww-severity-badge.sev-high {
  background: var(--color-sev-high-bg);
  color: var(--color-sev-high);
  border: 1px solid rgba(183, 78, 67, 0.20);
}

.ww-severity-badge.sev-elevated {
  background: var(--color-sev-high-bg);
  color: var(--color-sev-high);
  border: 1px solid rgba(183, 78, 67, 0.20);
}

.ww-severity-badge.sev-moderate {
  background: var(--color-sev-moderate-bg);
  color: var(--color-sev-moderate);
  border: 1px solid rgba(193, 122, 46, 0.20);
}

.ww-severity-badge.sev-watch {
  background: var(--color-sev-moderate-bg);
  color: var(--color-sev-moderate);
  border: 1px solid rgba(193, 122, 46, 0.20);
}

.ww-severity-badge.sev-low {
  background: var(--color-sev-low-bg);
  color: var(--color-sev-low);
  border: 1px solid rgba(94, 107, 118, 0.14);
}

.ww-severity-badge.sev-normal {
  background: rgba(46, 204, 113, 0.09);
  color: #257448;
  border: 1px solid rgba(46, 204, 113, 0.22);
}



/* ── SECTION ALERT CARDS (unified: Power, Agriculture, Marine) ── */
.ww-wx-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: box-shadow 140ms ease;
}

.ww-wx-card:hover {
  box-shadow: 0 2px 8px rgba(15, 25, 35, 0.08);
}

.ww-wx-headline {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

.ww-wx-value {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--color-primary);
}

.ww-wx-interp {
  margin-top: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--color-subtext);
  line-height: 1.4;
}

/* ── ENERGY WEATHER CHARTS ── */
.ww-energy-section,
.ww-power-section {
  margin-top: 36px;
}

.ww-power-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}


.ww-power-table-note {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-subtext);
  line-height: 1.4;
}

.ww-power-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.ww-power-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 12px;
}

.ww-power-table th {
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-subtext);
  text-align: left;
  padding: 9px 11px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(240, 239, 233, 0.58);
  white-space: nowrap;
}

.ww-power-table td {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(209, 206, 200, 0.55);
  color: var(--color-primary);
  vertical-align: middle;
  white-space: nowrap;
}

.ww-power-table tr:last-child td {
  border-bottom: 0;
}

.ww-power-table td:nth-child(n+2) {
  font-family: var(--font-mono);
  font-size: 11px;
}

.ww-energy-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin-bottom: 14px;
}

.ww-energy-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 12px;
}

.ww-energy-table th {
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-subtext);
  text-align: left;
  padding: 9px 11px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(240, 239, 233, 0.58);
  white-space: nowrap;
}

.ww-energy-table td {
  padding: 9px 11px;
  border-bottom: 1px solid rgba(209, 206, 200, 0.55);
  color: var(--color-primary);
  vertical-align: middle;
  white-space: nowrap;
}

.ww-energy-table tr:last-child td {
  border-bottom: 0;
}

.ww-energy-table td:nth-child(n+2) {
  font-family: var(--font-mono);
  font-size: 11px;
}


.ww-table-delta.is-positive { color: var(--color-up); }
.ww-table-delta.is-negative { color: var(--color-down); }
.ww-table-delta.is-neutral { color: var(--color-subtext); }
.ww-wind-delta { color: var(--color-subtext); }

.ww-table-group-header td {
  padding: 5px 11px;
  background: rgba(240, 239, 233, 0.88);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-subtext);
}

.ww-table-row--zero td {
  opacity: 0.44;
}

.ww-coverage-note {
  margin: 0 0 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-subtext);
  opacity: 0.78;
}

.ww-method-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(94, 107, 118, 0.18);
  border-radius: 3px;
  padding: 2px 6px;
  background: rgba(94, 107, 118, 0.07);
  color: var(--color-subtext);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
}

.ww-energy-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ww-energy-chart-grid > .ww-energy-chart-card:last-child:nth-child(odd) {
  grid-column: span 2;
}

#ww-energy-charts-root {
  margin-bottom: 20px;
}

.ww-energy-chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
}

.ww-chart-panel-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--color-subtext);
}


/* ── CHART PANEL (beneath section header) ── */
.ww-chart-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  margin-bottom: 16px;
}

.ww-chart-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ww-chart-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-soft);
  margin: 0;
}

.ww-chart-panel-region {
  flex: 0 1 240px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-subtext);
  line-height: 1.3;
  text-align: right;
}

.ww-chart-container {
  width: 100%;
  height: 150px;
  position: relative;
}

.ww-chart-lastval {
  position: absolute;
  right: 8px;
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--color-primary);
  color: #fff;
  pointer-events: none;
  z-index: 2;
  transform: translateY(-50%);
  letter-spacing: 0.02em;
  transition: opacity 100ms ease;
}

.ww-chart-tooltip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 11px;
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  line-height: 1.65;
  pointer-events: none;
  z-index: 3;
  min-width: 140px;
  box-shadow: 0 1px 4px rgba(15, 25, 35, 0.08);
  display: none;
}
.ww-chart-tooltip.is-visible { display: block; }
.ww-tooltip-date {
  font-size: var(--type-meta);
  color: var(--color-subtext);
  margin-bottom: 5px;
  letter-spacing: 0.04em;
}
.ww-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.ww-tooltip-label { color: var(--color-subtext); }
.ww-tooltip-val { font-weight: 600; }
.ww-tooltip-val--forecast { color: var(--color-primary); }
.ww-tooltip-val--prev { color: rgba(94, 107, 118, 0.90); }
.ww-tooltip-val--normal { color: var(--color-amber); }
.ww-tooltip-val--band { color: rgba(74, 144, 217, 0.95); }

.ww-chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 12px;
  color: var(--color-subtext);
}

/* ── CHART LEGEND ── */
.ww-chart-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.ww-legend-item {
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-subtext);
}

.ww-legend-item::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.ww-legend-forecast { color: var(--color-primary); }
.ww-legend-prev-run { color: rgba(94, 107, 118, 0.55); }
.ww-legend-prev-run::before { border-top: 2px dashed currentColor; background: none; height: 0; }
.ww-legend-normal { color: var(--color-amber); }
.ww-legend-normal::before { border-top: 2px dotted currentColor; background: none; height: 0; }
.ww-legend-band { color: rgba(74, 144, 217, 0.75); }
.ww-legend-band::before { border-top: 1.5px dashed currentColor; background: none; height: 0; }

.ww-hydrology-chart-legend {
  gap: 14px;
}

.ww-hydrology-chart-legend .ww-legend-item {
  font-size: 11px;
}

.ww-hydrology-chart-legend .ww-legend-band {
  color: rgba(47, 116, 184, 0.82);
}

.ww-hydrology-chart-legend .ww-legend-band::before {
  width: 22px;
  border-top-width: 2px;
}

.ww-legend-unit {
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  color: rgba(94, 107, 118, 0.7);
  margin-left: auto;
}

/* ── EVENTS TABLE ── */
.ww-events-section {
  margin-top: 40px;
}

.ww-events-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.ww-events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ww-events-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-subtext);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(240, 239, 233, 0.6);
  white-space: nowrap;
}

.ww-events-table td {
  padding: 10px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(209, 206, 200, 0.5);
  color: var(--color-primary);
}

.ww-events-table tr:last-child td {
  border-bottom: 0;
}

.ww-events-table tr:hover td {
  background: rgba(240, 239, 233, 0.5);
}

.ww-ev-severity { font-family: var(--font-mono); font-size: var(--type-meta); font-weight: 700; }

.ww-ev-headline { font-size: 13px; line-height: 1.35; }

.ww-ev-type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-subtext);
  white-space: nowrap;
}

.ww-ev-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-subtext);
  white-space: nowrap;
}

/* ── METHODOLOGY & SOURCES ── */
.ww-method-section {
  margin-top: 40px;
}

.ww-section-link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.ww-sources-list {
  display: grid;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.ww-source-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(209, 206, 200, 0.55);
}

.ww-source-row:last-child {
  border-bottom: 0;
}

.ww-source-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 3px;
}

.ww-source-meta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-subtext);
  margin: 0;
}

.ww-source-attribution {
  font-size: 11px;
  color: var(--color-subtext);
  line-height: 1.4;
  margin: 0;
}

.ww-source-url {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-amber);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.ww-methodology-disclosure {
  margin-top: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.ww-methodology-summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
}

.ww-methodology-summary::-webkit-details-marker {
  display: none;
}

.ww-methodology-summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-subtext);
}

.ww-methodology-disclosure[open] .ww-methodology-summary::after {
  content: "-";
}

.ww-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px 12px;
}

@media (max-width: 760px) {
  .ww-method-grid { grid-template-columns: 1fr; }
}

.ww-method-card {
  background: rgba(240, 239, 233, 0.48);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.ww-method-card:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

.ww-method-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 5px;
}

.ww-method-summary {
  font-size: 12px;
  color: var(--color-primary-soft);
  margin: 0 0 6px;
  line-height: 1.45;
}

.ww-method-limitation {
  font-size: 11px;
  color: var(--color-subtext);
  font-style: italic;
  margin: 0 0 4px;
  line-height: 1.4;
}

.ww-method-attribution {
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(94, 107, 118, 0.8);
  margin: 0;
}

/* ── METHODOLOGY FORMULA & STATUS ── */
.ww-method-formula {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-primary-soft);
  background: rgba(15, 25, 35, 0.04);
  border-radius: 4px;
  padding: 4px 8px;
  margin: 0 0 5px;
  word-break: break-all;
}

.ww-method-formula code {
  font: inherit;
}

.ww-method-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── SECTION-LEVEL HEADING SHARED ── */
.ww-section-heading {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sector accent bars on section headings */
#ww-energy-section .ww-section-heading::before,
#ww-power-section .ww-section-heading::before {
  content: "";
  display: block;
  width: 3px;
  height: 15px;
  background: var(--color-energy);
  border-radius: 2px;
  flex-shrink: 0;
}

#ww-agriculture-section .ww-section-heading::before {
  content: "";
  display: block;
  width: 3px;
  height: 15px;
  background: var(--color-agri);
  border-radius: 2px;
  flex-shrink: 0;
}

#ww-marine-section .ww-section-heading::before,
#ww-river-section .ww-section-heading::before {
  content: "";
  display: block;
  width: 3px;
  height: 15px;
  background: var(--color-marine);
  border-radius: 2px;
  flex-shrink: 0;
}

#ww-events-section .ww-section-heading::before {
  content: "";
  display: block;
  width: 3px;
  height: 15px;
  background: var(--color-sev-high);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── FOOTER ── */
.footer {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--color-subtext);
  border-top: 1px solid var(--color-border);
}

.footer-attribution {
  font-size: 11px;
  color: var(--color-subtext);
  max-width: 640px;
  line-height: 1.45;
}

.footer-right {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(94, 107, 118, 0.6);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .page-shell { padding: 0 14px 48px; }
  .ww-page-title { font-size: 22px; }
  .ww-section-header { flex-wrap: wrap; }
  .ww-source-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ww-source-url {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ── TO TOP BUTTON ── */
.to-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-primary);
  background: var(--color-amber);
  color: var(--color-primary);
  border-radius: 20px;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  box-shadow: 0 3px 12px rgba(15, 25, 35, 0.22);
  transition: opacity 170ms ease, transform 170ms ease, background 150ms ease;
}

.to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top-btn:hover {
  background: #f0ab2d;
}

.to-top-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.to-top-btn svg { width: 14px; height: 14px; }

/* ── Agriculture Weather section ─────────────────────────────────────────── */

.ww-agriculture-section,
.ww-river-section,
.ww-marine-section {
  margin-top: 32px;
  margin-bottom: 40px;
}

.ww-section-note-inline {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-subtext);
  opacity: 0.88;
  line-height: 1.35;
  text-align: right;
  flex: 0 1 auto;
  min-width: 0;
}

.ww-section-empty {
  color: var(--color-subtext);
  font-size: 13px;
  font-style: italic;
}

.ww-agri-table-wrap,
.ww-marine-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin-bottom: 16px;
}

.ww-agri-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 0;
}

.ww-agri-table th,
.ww-agri-table td {
  padding: 9px 11px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.ww-agri-table th {
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--color-subtext);
  font-size: var(--type-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(240, 239, 233, 0.58);
}

.ww-agri-table tr:last-child td {
  border-bottom: 0;
}

.ww-agri-table tbody tr:hover td {
  background: rgba(240, 239, 233, 0.5);
}

.ww-focus-target {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

.ww-agri-table tr.ww-focus-target td {
  background: rgba(232, 160, 32, 0.1);
}

.ww-agri-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 580px) {
  .ww-agri-cards { grid-template-columns: 1fr; }
}

.ww-rainfall-delta {
  color: var(--color-primary);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.nav-search {
  position: relative;
}

.nav-search-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.headline-search {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.2;
  padding: 7px 88px 7px 12px;
  width: 220px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #fff;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.headline-search::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-family: var(--font-sans);
}

.headline-search:focus {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
}

.nav-search-icon {
  position: absolute;
  right: 62px;
  stroke: rgba(255, 255, 255, 0.38);
  pointer-events: none;
  flex-shrink: 0;
}

.headline-search:focus ~ .nav-search-icon,
.nav-search.has-query .nav-search-icon {
  stroke: rgba(255, 255, 255, 0.60);
}

.search-kbd {
  position: absolute;
  right: 10px;
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  line-height: 1;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.nav-search.has-query .search-kbd {
  opacity: 0;
}

/* ── Typography contract alignment ─────────────────────────────────────── */
:where(.ww-freshness-row, .ww-mode-badge, .ww-empty-setup, .ww-run-change-cycle-line, .ww-severity-badge, .ww-power-table-note, .ww-power-table th, .ww-power-table td:nth-child(n+2), .ww-energy-table th, .ww-energy-table td:nth-child(n+2), .ww-table-group-header td, .ww-coverage-note, .ww-method-chip, .ww-chart-panel-region, .ww-chart-lastval, .ww-chart-tooltip, .ww-tooltip-date, .ww-legend-item, .ww-legend-unit, .ww-events-table th, .ww-ev-severity, .ww-ev-type, .ww-ev-period, .ww-section-link, .search-kbd) {
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-meta);
}

:where(.ww-page-title, .ww-section-heading, .ww-wx-headline) {
  font-family: var(--font-serif);
  letter-spacing: var(--tracking-none);
}

.ww-page-title {
  font-size: var(--type-page-title);
  line-height: var(--leading-title);
}

.ww-section-heading {
  font-size: var(--type-section-title);
  line-height: var(--leading-title);
}

.ww-wx-headline {
  font-size: var(--type-card-title);
  line-height: 1.32;
}

:where(.ww-page-subhead, .ww-state-wrapper, .ww-run-change-title, .ww-wx-interp, .ww-chart-panel-subtitle, .ww-chart-loading, .ww-ev-headline, .ww-chart-panel-title) {
  font-family: var(--font-sans);
  font-size: var(--type-body-small);
  line-height: var(--leading-body);
}

.ww-wx-value {
  font-family: var(--font-mono);
  font-size: var(--type-panel-title);
  line-height: var(--leading-tight);
  font-variant-numeric: tabular-nums;
}

:where(.ww-power-table, .ww-energy-table, .ww-events-table) {
  font-size: var(--type-table);
  line-height: var(--leading-meta);
}

@media (max-width: 880px) {
  .headline-search { width: 160px; }
}

@media (max-width: 640px) {
  .nav-search { display: none; }
}

/* ── Rhine River Logistics ───────────────────────────────────────────────── */

.ww-river-corridor-status {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.ww-river-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--color-subtext);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ww-river-corridor-title-row,
.ww-river-featured-heading,
.ww-river-featured-footer,
.ww-river-detail-header,
.ww-river-detail-subhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ww-river-corridor-title,
.ww-river-featured-title,
.ww-river-detail-title {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

.ww-river-corridor-title {
  font-size: 17px;
}

.ww-river-corridor-explanation {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--color-subtext);
  font-size: 12px;
  line-height: 1.45;
}

.ww-river-corridor-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.ww-river-corridor-meta div,
.ww-river-featured-deltas div {
  min-width: 0;
}

.ww-river-corridor-meta dt,
.ww-river-featured-deltas dt,
.ww-river-metric-label {
  color: var(--color-subtext);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  text-transform: uppercase;
}

.ww-river-corridor-meta dd {
  margin: 3px 0 0;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
}

.ww-river-featured {
  padding: 15px 16px 13px;
  margin-bottom: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.ww-river-featured.is-stale {
  border-color: var(--color-border);
}

.ww-river-featured-title,
.ww-river-detail-title {
  font-size: 18px;
}

.ww-river-featured-metrics {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.5fr);
  gap: 22px;
  align-items: end;
  margin: 14px 0 12px;
}

.ww-river-featured-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.ww-river-level {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.ww-river-glw-distance {
  color: var(--color-subtext);
  font-family: var(--font-mono);
  font-size: 12px;
}

.ww-river-featured-deltas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.ww-river-featured-deltas dd {
  margin: 4px 0 0;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 15px;
}

.ww-river-featured-footer {
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.ww-river-forecast-line,
.ww-river-observed-at,
.ww-river-featured-note,
.ww-river-attribution,
.ww-river-caveat,
.ww-river-coverage-warning {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.ww-river-forecast-line {
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.ww-river-observed-at,
.ww-river-featured-note,
.ww-river-attribution {
  color: var(--color-subtext);
}

.ww-river-featured-note {
  margin-top: 9px;
}

.ww-river-severity-disclosure,
.ww-river-detail-notes {
  margin-top: 9px;
  border-top: 1px solid rgba(209, 206, 200, 0.72);
}

.ww-river-severity-disclosure > summary,
.ww-river-detail-notes > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 0;
  color: var(--color-primary-soft);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.ww-river-severity-disclosure > summary::-webkit-details-marker,
.ww-river-detail-notes > summary::-webkit-details-marker {
  display: none;
}

.ww-river-severity-disclosure > summary::after,
.ww-river-detail-notes > summary::after {
  content: "+";
  color: var(--color-subtext);
  font-family: var(--font-mono);
  font-weight: 400;
}

.ww-river-severity-disclosure[open] > summary::after,
.ww-river-detail-notes[open] > summary::after {
  content: "−";
}

.ww-river-severity-disclosure-body {
  max-width: 760px;
  padding: 7px 0 2px;
}

.ww-river-severity-disclosure-body p {
  margin: 0 0 5px;
  color: var(--color-subtext);
  font-size: 11px;
  line-height: 1.45;
}

.ww-river-method-link {
  color: #7a5a12;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(122, 90, 18, 0.4);
  text-underline-offset: 2px;
}

.ww-river-detail-trigger {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.ww-river-detail-trigger:hover {
  border-color: var(--color-amber);
  color: #7a5a12;
}

.ww-river-detail-trigger:focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

.ww-river-table-wrap,
.ww-river-six-week-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.ww-river-table,
.ww-river-six-week-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11px;
}

.ww-river-six-week-table {
  min-width: 720px;
}

.ww-river-table th,
.ww-river-table td,
.ww-river-six-week-table th,
.ww-river-six-week-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.ww-river-table th,
.ww-river-six-week-table th {
  background: rgba(240, 239, 233, 0.58);
  color: var(--color-subtext);
  font-family: var(--font-sans);
  font-size: var(--type-meta);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ww-river-table tbody tr:last-child td,
.ww-river-six-week-table tbody tr:last-child td {
  border-bottom: 0;
}

.ww-river-table .ww-river-gauge-row:hover td,
.ww-river-table tr.ww-focus-target td {
  background: rgba(232, 160, 32, 0.08);
}

.ww-river-table .ww-river-gauge-row.is-expanded td {
  background: rgba(15, 25, 35, 0.035);
  border-bottom-color: transparent;
}

.ww-river-table tr.is-stale td,
.ww-river-table tr.is-missing td {
  color: var(--color-subtext);
}

.ww-river-gauge-name,
.ww-river-gauge-freshness {
  display: block;
}

.ww-river-gauge-name {
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}

.ww-river-gauge-freshness {
  margin-top: 2px;
  color: var(--color-subtext);
  font-size: var(--type-meta);
}

.ww-river-table-forecast {
  max-width: 190px;
  white-space: normal;
}

.ww-river-table .is-negative {
  color: var(--color-down);
}

.ww-river-table .is-positive {
  color: var(--color-up);
}

.ww-river-coverage-warning {
  margin: -3px 0 12px;
  color: var(--color-down);
  font-family: var(--font-mono);
}

.ww-river-detail-panel {
  padding: 15px 16px 17px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: rgba(240, 239, 233, 0.36);
}

.ww-river-detail-row > td {
  padding: 0;
  background: rgba(240, 239, 233, 0.36);
}

.ww-river-detail-row[hidden] {
  display: none;
}

.ww-river-inline-detail {
  min-height: 0;
}

.ww-river-detail-header {
  align-items: center;
  margin-bottom: 16px;
}

.ww-river-detail-header > div:first-child {
  min-width: 0;
  margin-right: auto;
}

.ww-river-detail-meta {
  max-width: 980px;
  margin: 3px 0 0;
  color: var(--color-subtext);
  font-size: 11px;
  line-height: 1.45;
}

.ww-river-chart-panel,
.ww-river-six-week {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--color-border);
}

.ww-river-detail-subhead {
  align-items: baseline;
  margin-bottom: 9px;
}

.ww-river-detail-subhead h4 {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
}

.ww-river-detail-subhead span {
  color: var(--color-subtext);
  font-family: var(--font-mono);
  font-size: var(--type-meta);
  text-align: right;
}

.ww-river-chart {
  height: 280px;
}

.ww-legend-observed {
  color: var(--color-primary);
}

.ww-legend-hydrology-median {
  color: rgba(47, 116, 184, 1);
}

.ww-legend-handoff {
  color: rgba(94, 107, 118, 0.82);
}

.ww-legend-handoff::before {
  width: 22px;
  height: 0;
  border-top: 2px dashed currentColor;
  background: none;
}

.ww-legend-hydrology-median::before,
.ww-legend-observed::before {
  width: 22px;
  height: 3px;
}

.ww-legend-glw {
  color: var(--color-amber);
}

.ww-legend-glw::before {
  height: 0;
  border-top: 2px dotted currentColor;
  background: none;
}

.ww-river-chart-note,
.ww-river-product-note {
  margin: -2px 0 8px;
  color: var(--color-subtext);
  font-size: 11px;
  line-height: 1.4;
}

.ww-river-detail-notes {
  padding-top: 1px;
}

.ww-river-detail-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-top: 10px;
}

.ww-river-detail-notes-grid h4 {
  margin: 0;
  color: var(--color-primary);
  font-size: 11px;
}

.ww-river-detail-notes-grid p {
  margin: 4px 0 0;
  color: var(--color-subtext);
  font-size: 11px;
  line-height: 1.45;
}

.ww-river-detail-notes-grid > .ww-river-method-link {
  align-self: end;
  justify-self: start;
  grid-column: 1 / -1;
}

.ww-river-attribution {
  margin-top: 12px;
  font-family: var(--font-mono);
}

.ww-river-caveat {
  padding: 10px 12px;
  margin-top: 10px;
  border: 1px solid var(--color-border);
  background: rgba(240, 239, 233, 0.48);
  color: var(--color-primary-soft);
}

.ww-river-unavailable {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

@media (max-width: 760px) {
  .ww-river-corridor-status,
  .ww-river-featured-metrics {
    grid-template-columns: 1fr;
  }

  .ww-river-featured-footer,
  .ww-river-detail-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ww-river-detail-notes-grid {
    grid-template-columns: 1fr;
  }

  .ww-river-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .ww-river-table {
    display: block;
    min-width: 0;
    border-collapse: separate;
  }

  .ww-river-table thead {
    display: none;
  }

  .ww-river-table tbody {
    display: grid;
    gap: 10px;
  }

  .ww-river-table .ww-river-gauge-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
  }

  .ww-river-table .ww-river-gauge-row td {
    display: block;
    min-width: 0;
    padding: 9px 11px;
    border-bottom: 1px solid rgba(209, 206, 200, 0.72);
  }

  .ww-river-table .ww-river-gauge-row td:first-child,
  .ww-river-table .ww-river-gauge-row td:nth-child(7),
  .ww-river-table .ww-river-gauge-row td:nth-child(8),
  .ww-river-table .ww-river-gauge-row td:nth-child(9) {
    grid-column: 1 / -1;
  }

  .ww-river-table .ww-river-gauge-row td:nth-child(9) {
    border-bottom: 0;
  }

  .ww-river-table .ww-river-gauge-row td:not(:first-child)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--color-subtext);
    font-family: var(--font-sans);
    font-size: var(--type-meta);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .ww-river-table .ww-river-gauge-row td:nth-child(2)::before { content: "Level"; }
  .ww-river-table .ww-river-gauge-row td:nth-child(3)::before { content: "To GlW"; }
  .ww-river-table .ww-river-gauge-row td:nth-child(4)::before { content: "24H"; }
  .ww-river-table .ww-river-gauge-row td:nth-child(5)::before { content: "7D"; }
  .ww-river-table .ww-river-gauge-row td:nth-child(6)::before { content: "Status"; }
  .ww-river-table .ww-river-gauge-row td:nth-child(7)::before { content: "Forecast"; }
  .ww-river-table .ww-river-gauge-row td:nth-child(8)::before { content: "Observed"; }

  .ww-river-table .ww-river-gauge-row.is-expanded {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .ww-river-table .ww-river-detail-row {
    display: block;
    min-width: 0;
  }

  .ww-river-table .ww-river-detail-row[hidden] {
    display: none;
  }

  .ww-river-table .ww-river-gauge-row.is-expanded + .ww-river-detail-row {
    margin-top: -10px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .ww-river-table .ww-river-detail-row > td {
    display: block;
    width: 100%;
    border: 0;
  }

  .ww-river-inline-detail,
  .ww-river-detail-panel,
  .ww-river-chart-panel,
  .ww-river-chart {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .ww-river-corridor-meta,
  .ww-river-featured-deltas {
    grid-template-columns: 1fr 1fr;
  }

  .ww-river-corridor-status,
  .ww-river-featured,
  .ww-river-detail-panel {
    padding-right: 12px;
    padding-left: 12px;
  }

  .ww-river-chart {
    height: 250px;
  }

  .ww-river-detail-trigger {
    min-height: 44px;
  }
}
