body {
  background:
    radial-gradient(circle at 18% 0%, rgba(71, 124, 89, 0.12), transparent 30rem),
    linear-gradient(180deg, #f5f8f5 0%, #edf4f0 100%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(16, 35, 27, 0.08);
}

.brand {
  color: #10231b;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
}

.site-nav a {
  position: relative;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #40564a;
  font-size: 0.95rem;
  font-weight: 850;
  text-decoration: none;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: transparent;
  color: #10231b;
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
  background: #477c59;
}

.home-shell {
  width: min(1180px, calc(100% - 56px));
  max-width: none;
}

.hero-compact {
  padding: clamp(30px, 5vw, 64px);
}

.home-shell .hero-compact {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  align-content: end;
  border-radius: 34px;
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(90deg, rgba(4, 18, 13, 0.88) 0%, rgba(4, 18, 13, 0.62) 42%, rgba(4, 18, 13, 0.25) 100%),
    linear-gradient(180deg, rgba(4, 18, 13, 0.1) 0%, rgba(4, 18, 13, 0.45) 100%),
    url('/river-ure-hero.jpeg');
  background-size: cover;
  background-position: center 58%;
  color: #ffffff;
  box-shadow: 0 28px 90px rgba(7, 31, 22, 0.22);
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: grid;
  align-content: end;
  border-radius: 28px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(4, 18, 13, 0.86) 0%, rgba(4, 18, 13, 0.58) 48%, rgba(4, 18, 13, 0.22) 100%),
    linear-gradient(180deg, rgba(4, 18, 13, 0.08) 0%, rgba(4, 18, 13, 0.58) 100%),
    url('/river-ure-hero.jpeg');
  background-size: cover;
  background-position: center 56%;
  color: #ffffff;
  box-shadow: 0 22px 70px rgba(7, 31, 22, 0.16);
}

.home-shell .hero-compact .eyebrow,
.home-shell .hero-compact .lede,
.page-hero .eyebrow,
.page-hero .lede {
  color: rgba(255, 255, 255, 0.9);
}

.home-shell .hero-compact .lede,
.page-hero .lede {
  max-width: 690px;
  font-size: 1.12rem;
}

.home-shell .hero-compact h1,
.page-hero h1 {
  max-width: 760px;
  color: #ffffff;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.36);
}

.home-shell .hero-compact h1 {
  font-size: clamp(2.4rem, 5.4vw, 5.2rem);
  line-height: 0.94;
}

.home-shell .hero-compact .actions {
  gap: 10px;
}

.home-shell .hero-compact .actions a {
  background: #ffffff;
  color: #10231b;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.home-shell .hero-compact .actions a + a {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.hero-compact h1 {
  max-width: 860px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.condition-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.condition-panel .section-heading,
.condition-panel .condition-reason {
  grid-column: 1;
}

.condition-panel .condition-metrics {
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-columns: 1fr;
}

.condition-badge {
  align-self: start;
  justify-self: end;
}

.snapshot-panel {
  background: rgba(255, 255, 255, 0.92);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.snapshot-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  border: 1px solid rgba(16, 35, 27, 0.1);
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  color: #10231b;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(21, 50, 37, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.snapshot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(71, 124, 89, 0.34);
  box-shadow: 0 24px 58px rgba(21, 50, 37, 0.14);
}

.snapshot-card span {
  color: #477c59;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.snapshot-card strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.05;
}

.snapshot-card p {
  margin: 0;
  color: #40564a;
  line-height: 1.55;
}

.chart-panel {
  background: rgba(255, 255, 255, 0.94);
}

.station-select-label {
  display: grid;
  gap: 8px;
  min-width: 240px;
  color: #40564a;
  font-size: 0.84rem;
  font-weight: 950;
}

.station-select-label select {
  width: 100%;
  border: 1px solid rgba(16, 35, 27, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  color: #10231b;
  font: inherit;
  font-size: 1rem;
  font-weight: 850;
}

.chart-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.chart-summary-card {
  border: 1px solid rgba(16, 35, 27, 0.1);
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
}

.chart-summary-card span {
  display: block;
  margin-bottom: 8px;
  color: #607367;
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart-summary-card strong {
  color: #10231b;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  line-height: 1.05;
}

.river-chart-wrap {
  overflow-x: auto;
  border: 1px solid rgba(16, 35, 27, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
}

.river-chart {
  display: block;
  width: 100%;
  min-width: 720px;
  height: auto;
}

.chart-grid-line {
  stroke: rgba(16, 35, 27, 0.1);
  stroke-width: 1;
}

.chart-axis-line {
  stroke: rgba(16, 35, 27, 0.24);
  stroke-width: 1.4;
}

.chart-axis-label,
.chart-empty {
  fill: #607367;
  font-size: 13px;
  font-weight: 800;
}

.chart-area {
  fill: rgba(71, 124, 89, 0.12);
  stroke: none;
}

.chart-line {
  fill: none;
  stroke: #477c59;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-latest-dot {
  fill: #10231b;
  stroke: #ffffff;
  stroke-width: 3;
}

.chart-caption {
  margin: 12px 0 0;
  color: #607367;
  font-size: 0.9rem;
  font-weight: 750;
}

.river-map-large {
  height: min(72vh, 680px);
  min-height: 520px;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.jump-links a:hover {
  background: rgba(255, 255, 255, 0.22);
}

.site-footer {
  margin: 34px 0 0;
  border: 1px solid rgba(16, 35, 27, 0.1);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.86);
  color: #40564a;
  box-shadow: 0 16px 48px rgba(21, 50, 37, 0.08);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: #10231b;
  font-size: 1rem;
  font-weight: 950;
}

.site-footer p {
  margin: 0;
  line-height: 1.65;
}

.footer-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-source-list li {
  border-radius: 999px;
  padding: 7px 10px;
  background: #e8f1ec;
  color: #244334;
  font-size: 0.8rem;
  font-weight: 900;
}

.footer-warning {
  margin-top: 16px !important;
  color: #607367;
  font-size: 0.88rem;
  font-weight: 800;
}

@media (max-width: 960px) {
  .condition-panel {
    display: block;
  }

  .condition-panel .condition-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chart-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-shell,
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 16px;
  }

  .site-nav a,
  .actions a,
  .jump-links a,
  .map-filter-panel label {
    min-height: 44px;
  }

  .home-shell .hero-compact,
  .page-hero {
    background:
      linear-gradient(180deg, rgba(4, 18, 13, 0.35) 0%, rgba(4, 18, 13, 0.82) 100%),
      url('/river-ure-hero.jpeg');
    background-size: cover;
    background-position: center center;
  }

  .home-shell .hero-compact {
    min-height: 500px;
  }

  .page-hero {
    min-height: 280px;
  }

  .condition-panel .condition-metrics,
  .snapshot-grid,
  .chart-summary-grid {
    grid-template-columns: 1fr;
  }

  .river-chart-wrap {
    min-height: 360px;
  }

  .river-chart {
    min-width: 760px;
  }

  .river-map-large {
    min-height: 380px;
  }

  .site-footer {
    border-radius: 22px;
  }
}
