/* src/client/styles.css */
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef5f1;
  color: #10231b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(71, 124, 89, 0.22), transparent 34rem),
    linear-gradient(180deg, #f7fbf8 0%, #e8f1ec 100%);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero,
.panel {
  border: 1px solid rgba(16, 35, 27, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 80px rgba(21, 50, 37, 0.12);
}

.hero {
  padding: clamp(32px, 6vw, 72px);
}

.panel {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
}

.condition-panel {
  background: rgba(244, 250, 246, 0.94);
}

.condition-panel[data-condition="good"] {
  background: rgba(239, 250, 242, 0.96);
}

.condition-panel[data-condition="caution"] {
  background: rgba(255, 250, 242, 0.96);
}

.condition-panel[data-condition="poor"] {
  background: rgba(255, 245, 245, 0.96);
}

.condition-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 11px 16px;
  background: #10231b;
  color: #fff;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.condition-panel[data-condition="good"] .condition-badge {
  background: #277148;
}

.condition-panel[data-condition="caution"] .condition-badge {
  background: #d97706;
}

.condition-panel[data-condition="poor"] .condition-badge {
  background: #b42318;
}

.condition-reason {
  max-width: 860px;
  margin-bottom: 22px;
  color: #10231b;
  font-size: 1.08rem;
  font-weight: 750;
  line-height: 1.55;
}

.condition-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.condition-metrics div {
  border: 1px solid rgba(16, 35, 27, 0.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.condition-metrics dt {
  margin-bottom: 8px;
  color: #607367;
  font-size: 0.84rem;
  font-weight: 900;
}

.condition-metrics dd {
  margin: 0;
  color: #10231b;
  font-size: 1.2rem;
  font-weight: 950;
}

.alert-panel {
  background: rgba(255, 250, 242, 0.9);
}

.map-panel {
  overflow: hidden;
}

.muted {
  background: rgba(245, 249, 246, 0.86);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 800;
  color: #477c59;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

.lede,
.helper-text {
  max-width: 720px;
  color: #40564a;
  line-height: 1.7;
}

.lede {
  font-size: 1.18rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  background: #10231b;
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.actions a + a {
  background: #477c59;
}

.section-heading {
  margin-bottom: 22px;
}

.split-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.count-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 14px;
  background: #10231b;
  color: #fff;
  font-weight: 900;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: #40564a;
  font-size: 0.9rem;
  font-weight: 800;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(16, 35, 27, 0.25);
}

.station-dot {
  background: #1d5cff;
}

.overflow-dot {
  background: #d97706;
}

.river-map {
  width: 100%;
  height: min(68vh, 560px);
  min-height: 380px;
  border: 1px solid rgba(16, 35, 27, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background: #dbe8df;
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  outline: 0;
  touch-action: pan-x pan-y;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-container img.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
  width: 256px;
  height: 256px;
  padding: 0;
  border: 0;
}

.leaflet-tile {
  user-select: none;
  visibility: hidden;
}

.leaflet-tile-loaded {
  visibility: inherit;
}

.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-popup-pane {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-shadow-pane {
  z-index: 500;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control-container {
  position: relative;
  z-index: 800;
}

.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}

.leaflet-popup-content-wrapper {
  background: #ffffff;
  color: #10231b;
  border: 1px solid rgba(16, 35, 27, 0.14);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(16, 35, 27, 0.28);
  padding: 2px;
}

.leaflet-popup-content {
  margin: 12px 14px;
  min-width: 210px;
  color: #10231b;
  font-size: 0.92rem;
  line-height: 1.55;
  text-align: left;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 4px;
  color: #10231b;
  font-size: 1rem;
}

.leaflet-popup-tip-container {
  position: absolute;
  left: 50%;
  width: 40px;
  height: 20px;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}

.leaflet-popup-tip {
  width: 17px;
  height: 17px;
  margin: -10px auto 0;
  background: #ffffff;
  border-right: 1px solid rgba(16, 35, 27, 0.14);
  border-bottom: 1px solid rgba(16, 35, 27, 0.14);
  transform: rotate(45deg);
  box-shadow: 0 8px 18px rgba(16, 35, 27, 0.18);
}

.leaflet-popup-close-button {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  color: #40564a;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  line-height: 22px;
  font-weight: 900;
  z-index: 1;
}

.leaflet-popup-close-button:hover {
  color: #10231b;
}

.map-marker {
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(16, 35, 27, 0.28);
}

.station-marker {
  background: #1d5cff;
}

.overflow-marker {
  background: #d97706;
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.station-card,
.overflow-card {
  border: 1px solid rgba(16, 35, 27, 0.12);
  border-radius: 20px;
  padding: 20px;
  background: #ffffff;
}

.overflow-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 24px;
}

.summary-card {
  border: 1px solid rgba(16, 35, 27, 0.12);
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(21, 50, 37, 0.08);
}

.summary-card span {
  display: block;
  margin-bottom: 10px;
  color: #40564a;
  font-size: 0.9rem;
  font-weight: 900;
}

.summary-card strong {
  display: block;
  color: #10231b;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
}

.summary-card.warning {
  border-color: rgba(217, 119, 6, 0.35);
  background: #fff8ed;
}

.summary-card.good {
  border-color: rgba(71, 124, 89, 0.28);
  background: #f4faf6;
}

.summary-card.muted-card {
  background: #f5f7f6;
}

.subsection-title {
  margin: 10px 0 16px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.overflow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.overflow-card {
  display: grid;
  gap: 10px;
}

.station-river {
  margin-bottom: 8px;
  color: #477c59;
  font-weight: 800;
}

.reading-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.reading-list.compact {
  margin-top: 0;
}

.reading-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(16, 35, 27, 0.1);
  padding-top: 10px;
}

.reading-list dt {
  color: #607367;
  font-size: 0.82rem;
  font-weight: 800;
}

.reading-list dd {
  margin: 0;
  color: #10231b;
  font-weight: 900;
  text-align: right;
}

.status {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  background: #e8f1ec;
  color: #244334;
  font-size: 0.85rem;
  font-weight: 800;
}

.roadmap {
  margin: 0;
  padding-left: 1.25rem;
  color: #40564a;
  line-height: 1.8;
}

@media (max-width: 720px) {
  .split-heading {
    display: block;
  }

  .condition-badge,
  .count-pill {
    margin-top: 14px;
  }

  .condition-metrics,
  .overflow-summary {
    grid-template-columns: 1fr;
  }

  .map-legend {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .river-map {
    min-height: 320px;
  }
}

/* src/client/professional.css */
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.webp');
  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.webp');
  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(auto-fit, minmax(170px, 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: 6px;
  color: #607367;
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart-summary-card strong {
  color: #10231b;
  font-size: 1.25rem;
  line-height: 1.1;
}

/* src/client/page-components.css */
html { scroll-behavior: smooth; }

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.52);
  color: #40564a;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

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

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.jump-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.jump-links a:hover,
.jump-links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.page-hero:not(.simplified-hero) .jump-links a {
  border-color: rgba(31, 104, 73, 0.2);
  background: rgba(237, 245, 240, 0.9);
  color: #245f46;
}

.page-hero:not(.simplified-hero) .jump-links a:hover,
.page-hero:not(.simplified-hero) .jump-links a:focus-visible {
  border-color: rgba(31, 104, 73, 0.38);
  background: #e5f0e9;
}

.clickable-card {
  position: relative;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.clickable-card::after {
  content: '↗';
  position: absolute;
  top: 14px;
  right: 16px;
  opacity: 0;
  transform: translate(-4px, 4px);
  color: #477c59;
  font-size: 0.95rem;
  font-weight: 950;
  transition: opacity 160ms ease, transform 160ms ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(71, 124, 89, 0.38);
  box-shadow: 0 20px 48px rgba(21, 50, 37, 0.13);
  background: #ffffff;
  outline: none;
}

.clickable-card:hover::after,
.clickable-card:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}

.card-action-hint {
  display: block;
  margin-top: 12px;
  color: #477c59;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.2;
}

.status-breakdown li,
.guide-list li {
  gap: 12px;
  column-gap: 12px;
  line-height: 1.5;
}

.status-breakdown li span:first-child,
.guide-list li span:first-child {
  flex: 0 0 1.25em;
  min-width: 1.25em;
  text-align: center;
}

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

.threshold-card {
  border: 1px solid rgba(16, 35, 27, 0.1);
  border-radius: 20px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(21, 50, 37, 0.07);
}

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

.threshold-card strong {
  display: block;
  color: #10231b;
  font-size: 1.25rem;
  line-height: 1.1;
}

.threshold-card p {
  margin: 10px 0 0;
  color: #40564a;
  line-height: 1.5;
  font-weight: 800;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.reason-item { min-width: 0; }
.reason-item span,
.reason-item strong,
.reason-item p { display: block; }
.reason-item span { margin-bottom: 8px; }
.reason-item strong {
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.result-card { grid-column: 1 / -1; }

.weather-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
  color: #10231b;
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(21, 50, 37, 0.10);
}

@media (max-width: 960px) {
  .threshold-grid,
  .reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }

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

  .site-nav a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .jump-links {
    gap: 7px;
    margin-top: 14px;
  }

  .jump-links a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .threshold-grid,
  .reason-grid { grid-template-columns: 1fr; }
}

/* src/client/mobile-fixes.css */
/* Mobile layout refinements. Navigation itself is owned by native-mobile-menu.css. */

.site-header {
  position: relative;
}

.river-chart-wrap {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.hero-compact,
.page-hero {
  min-height: 300px;
  padding: clamp(22px, 3vw, 38px);
}

.home-shell .hero-compact {
  min-height: 230px;
  padding: clamp(20px, 2.6vw, 32px);
}

.hero-compact h1,
.page-hero h1 {
  line-height: 0.98;
}

.home-shell .hero-compact h1 {
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 4.45rem);
  line-height: 0.98;
}

.hero-compact .lede,
.page-hero .lede {
  max-width: 860px;
}

@media (min-width: 761px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .site-nav a {
    color: inherit;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .hero-compact,
  .page-hero {
    min-height: 270px;
    padding: 28px 34px;
  }

  .home-shell .hero-compact {
    min-height: 215px;
    padding: 24px 32px;
  }

  .home-shell .hero-compact h1 {
    font-size: clamp(2rem, 5vw, 3.7rem);
  }
}

@media (min-width: 1181px) {
  .hero-compact,
  .page-hero {
    min-height: 280px;
  }

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

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }

  .brand {
    max-width: min(68vw, 260px);
    line-height: 1.25;
  }
}

/* src/client/accessibility.css */
:focus-visible {
  outline: 3px solid #39788c;
  outline-offset: 3px;
}

[aria-busy="true"] {
  cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* src/client/v2-specialist.css */
/* Riverwatch V2 specialist page refinements */

/* Storm overflows — warnings first, methodology secondary */
.page-storm-overflows .overflow-summary { display:grid; grid-template-columns:minmax(0,1fr); gap:0; margin:24px 0; border-block:1px solid var(--rw-line); }
.page-storm-overflows .summary-card { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 4px; border:0; border-radius:0; background:transparent; box-shadow:none; }
.page-storm-overflows .summary-card:nth-child(n+2) { display:none; }
.page-storm-overflows .summary-card span { color:var(--rw-muted); font-size:.85rem; font-weight:700; text-transform:none; letter-spacing:0; }
.page-storm-overflows .summary-card strong { color:var(--rw-ink); font-size:clamp(2rem,4vw,3.4rem); letter-spacing:-.05em; }
.page-storm-overflows .map-pill { min-height:44px; border:0; background:var(--rw-green-strong); color:#fff; box-shadow:0 8px 22px rgba(24,67,50,.15); }
.page-storm-overflows .overflow-list { display:grid; gap:12px; }
.page-storm-overflows .overflow-group { gap:12px; }
.page-storm-overflows .overflow-group + .overflow-group { border-top:1px solid var(--rw-line); }
.page-storm-overflows .overflow-card { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(250px,.8fr); align-items:center; gap:24px; padding:22px 24px; }
.page-storm-overflows .overflow-card .relevance-pill { display:none; }
.page-storm-overflows .overflow-card h3 { margin:4px 0 5px; font-size:1.15rem; }
.page-storm-overflows .overflow-card .reading-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; padding:0; border:0; }
.page-storm-overflows .overflow-card .reading-list > div { display:block; }
.page-storm-overflows .overflow-card dt { margin-bottom:5px; color:var(--rw-muted); font-size:.67rem; letter-spacing:.08em; text-transform:uppercase; }
.page-storm-overflows .water-quality-note { background:#f6f8f5; box-shadow:none; }
.page-storm-overflows .note-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border-top:1px solid var(--rw-line); }
.page-storm-overflows .note-card { border:0; border-right:1px solid var(--rw-line); border-radius:0; padding:22px; background:transparent; }
.page-storm-overflows .note-card:last-child { border-right:0; }

/* Preferences — compact setup rather than a form dashboard */
.page-preferences form, .page-preferences .preferences-form { max-width:820px; margin-inline:auto; }
.page-preferences fieldset { margin:0 0 28px; padding:0 0 28px; border:0; border-bottom:1px solid var(--rw-line); }
.page-preferences legend { margin-bottom:15px; color:var(--rw-ink); font-size:1.2rem; font-weight:780; letter-spacing:-.025em; }
.page-preferences label { font-weight:650; }
.page-preferences input[type="radio"], .page-preferences input[type="checkbox"] { accent-color:var(--rw-green-strong); }
.page-preferences select { min-height:46px; border:1px solid var(--rw-line); border-radius:12px; background:#f8faf8; padding-inline:13px; }

/* Weather — make the practical windows the visual focus */
.page-weather #fishing-weather-read { background:linear-gradient(145deg,#173f2f,#2c674b); color:#fff; border:0; box-shadow:0 22px 55px rgba(24,67,50,.17); }
.page-weather #fishing-weather-read .eyebrow { color:#c9dfd1; }
.page-weather #fishing-weather-read h2 { color:#fff; }
.page-weather #fishing-weather-read .helper-text { color:rgba(255,255,255,.7); }
.page-weather #fishing-weather-read .weather-insight-card { border-color:rgba(255,255,255,.12) !important; background:rgba(255,255,255,.08) !important; color:#fff; backdrop-filter:blur(8px); }
.page-weather #fishing-weather-read .weather-insight-card span { color:#c9dfd1; }
.page-weather #fishing-weather-read .weather-insight-card strong { color:#fff; }
.page-weather #fishing-weather-read .weather-insight-card p { color:rgba(255,255,255,.7) !important; }

/* River levels — put Masham and chart ahead of the reference catalogue */
.page-river-levels #live-gauges .station-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.page-river-levels #live-gauges .station-card[data-station-id="masham"] { grid-column:span 2; background:linear-gradient(145deg,#173f2f,#285f46) !important; color:#fff; border:0 !important; box-shadow:0 18px 42px rgba(24,67,50,.18) !important; }
.page-river-levels #live-gauges .station-card[data-station-id="masham"] h3,
.page-river-levels #live-gauges .station-card[data-station-id="masham"] dd { color:#fff; }
.page-river-levels #live-gauges .station-card[data-station-id="masham"] p,
.page-river-levels #live-gauges .station-card[data-station-id="masham"] dt { color:rgba(255,255,255,.68); }
.page-river-levels #live-gauges .station-card[data-station-id="masham"] .status { background:rgba(255,255,255,.13); color:#fff; }
.page-river-levels #river-threshold-guide { background:#f7f9f6; box-shadow:none; }

/* Map page takes over the viewport beneath its hero */
.page-catchment-map .page-hero { min-height:300px; }
.page-catchment-map .map-panel { margin-top:0; }

/* Footer and page entrance */
.v2 .hero + *, .v2 .page-hero + * { animation:rw-rise .55s cubic-bezier(.22,.7,.2,1) both; }
@keyframes rw-rise { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

@media (max-width:900px) {
  .page-river-levels #live-gauges .station-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-storm-overflows .overflow-card { grid-template-columns:1fr; }
  .page-storm-overflows .note-grid { grid-template-columns:1fr; }
  .page-storm-overflows .note-card { border-right:0; border-bottom:1px solid var(--rw-line); }
  .page-storm-overflows .note-card:last-child { border-bottom:0; }
}
@media (max-width:680px) {
  .page-river-levels #live-gauges .station-grid { grid-template-columns:1fr; }
  .page-river-levels #live-gauges .station-card[data-station-id="masham"] { grid-column:auto; }
  .page-storm-overflows .overflow-card .reading-list { grid-template-columns:1fr 1fr; }
}

/* src/client/premium-system.css */
/* Riverwatch Ure — premium product presentation layer */
:root {
  --premium-ink: #10231a;
  --premium-ink-soft: #41544a;
  --premium-muted: #708078;
  --premium-line: rgba(16, 35, 26, .10);
  --premium-line-strong: rgba(16, 35, 26, .16);
  --premium-surface: #ffffff;
  --premium-surface-soft: #f4f7f4;
  --premium-canvas: #edf2ee;
  --premium-green: #153f2c;
  --premium-green-2: #2d6a4b;
  --premium-green-soft: #e5efe8;
  --premium-blue: #286d82;
  --premium-gold: #b77a24;
  --premium-danger: #a6463f;
  --premium-radius-sm: 12px;
  --premium-radius: 20px;
  --premium-radius-lg: 30px;
  --premium-shadow-sm: 0 8px 24px rgba(15, 38, 27, .06);
  --premium-shadow: 0 24px 70px rgba(15, 38, 27, .10);
  --premium-content: 1240px;
}

html { background: var(--premium-canvas); scroll-behavior: smooth; }
body.premium {
  margin: 0;
  color: var(--premium-ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(74, 126, 94, .15), transparent 32rem),
    linear-gradient(180deg, #f7faf7 0%, var(--premium-canvas) 70%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.premium * { box-sizing: border-box; }
body.premium a { text-underline-offset: 3px; }
body.premium img { max-width: 100%; }
body.premium .page-shell {
  width: min(calc(100% - 32px), var(--premium-content));
  margin: 16px auto 32px;
  overflow: visible;
  border: 1px solid rgba(16, 35, 26, .07);
  border-radius: 32px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 30px 100px rgba(15, 38, 27, .12);
}

/* Header */
body.premium .site-header {
  position: sticky;
  top: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid var(--premium-line);
  border-radius: 32px 32px 0 0;
  background: rgba(255, 255, 255, .92);
  box-shadow: none;
  backdrop-filter: blur(20px) saturate(1.2);
}
body.premium .brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
body.premium .brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(21, 63, 44, .12);
  border-radius: 14px;
  color: var(--premium-green);
  background: var(--premium-green-soft);
}
body.premium .brand-mark svg { width: 24px; height: 24px; }
body.premium .brand-copy { display: grid; line-height: 1.18; }
body.premium .brand-name { font-size: .98rem; font-weight: 780; letter-spacing: -.025em; }
body.premium .brand-subtitle { margin-top: 3px; color: var(--premium-muted); font-size: .68rem; font-weight: 650; letter-spacing: .055em; text-transform: uppercase; }
body.premium .site-nav-menu { display: flex; align-items: center; }
body.premium .site-nav { display: flex; align-items: center; gap: 4px; }
body.premium .site-nav > a,
body.premium .nav-more > summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #46584e;
  font-size: .82rem;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
body.premium .site-nav > a:hover,
body.premium .nav-more > summary:hover { color: var(--premium-green); background: var(--premium-green-soft); }
body.premium .site-nav > a[aria-current="page"],
body.premium .nav-more-active > summary { color: #fff; background: var(--premium-green); box-shadow: 0 7px 18px rgba(21, 63, 44, .18); }
body.premium .nav-more { position: relative; }
body.premium .nav-more > summary { list-style: none; }
body.premium .nav-more > summary::-webkit-details-marker { display: none; }
body.premium .nav-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--premium-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--premium-shadow);
}
body.premium .nav-more-menu a { padding: 10px 12px; border-radius: 10px; color: var(--premium-ink-soft); font-size: .84rem; font-weight: 680; text-decoration: none; }
body.premium .nav-more-menu a:hover { background: var(--premium-surface-soft); color: var(--premium-green); }
body.premium .site-nav-toggle { display: none; }

/* Shared typography */
body.premium .eyebrow { margin: 0 0 8px; color: var(--premium-green-2); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
body.premium h1, body.premium h2, body.premium h3 { color: var(--premium-ink); text-wrap: balance; }
body.premium h1 { letter-spacing: -.055em; }
body.premium h2 { letter-spacing: -.04em; }
body.premium .helper-text, body.premium .lede { color: var(--premium-ink-soft); }
body.premium :focus-visible { outline: 3px solid rgba(40, 109, 130, .38) !important; outline-offset: 3px; }

/* Site-wide surfaces */
body.premium .panel,
body.premium .station-card,
body.premium .weather-card,
body.premium .weather-insight-card,
body.premium .threshold-card,
body.premium .chart-summary-card,
body.premium .fly-card,
body.premium .guide-card,
body.premium .overflow-card,
body.premium .preference-card,
body.premium .note-card {
  border-color: var(--premium-line) !important;
  border-radius: var(--premium-radius) !important;
  background: var(--premium-surface) !important;
  box-shadow: none !important;
}
body.premium .panel { margin: clamp(24px, 4vw, 48px); padding: clamp(24px, 4vw, 46px); }
body.premium .button,
body.premium button,
body.premium .actions a {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 730;
  box-shadow: 0 9px 22px rgba(21, 63, 44, .15);
}
body.premium .site-status-strip { min-height: 42px; padding: 0 24px; border: 0; border-bottom: 1px solid var(--premium-line); background: #f7f9f7; color: var(--premium-muted); font-size: .78rem; }

/* Secondary-page heroes */
body.premium .page-hero,
body.premium .hero:not(.premium-hero) {
  position: relative;
  min-height: clamp(340px, 42vw, 480px);
  margin: 0;
  padding: clamp(42px, 7vw, 84px) clamp(24px, 7vw, 80px);
  overflow: hidden;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-position: center 54%;
}
body.premium .page-hero::before,
body.premium .hero:not(.premium-hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(5, 22, 15, .84), rgba(5, 22, 15, .52) 48%, rgba(5, 22, 15, .12)), linear-gradient(0deg, rgba(5, 22, 15, .28), transparent 52%);
}
body.premium .page-hero > *, body.premium .hero:not(.premium-hero) > * { position: relative; z-index: 1; max-width: 760px; }
body.premium .page-hero h1, body.premium .hero:not(.premium-hero) h1 { margin: 8px 0 14px; color: #fff; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .98; }
body.premium .page-hero .lede, body.premium .hero:not(.premium-hero) .lede { color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.7vw, 1.22rem); }
body.premium .page-hero .eyebrow, body.premium .hero:not(.premium-hero) .eyebrow { color: #d5e7dc; }

/* Premium homepage */
body.premium .home-shell { width: min(calc(100% - 32px), var(--premium-content)); }
body.premium .premium-home { padding-bottom: clamp(40px, 7vw, 84px); }
body.premium .premium-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  min-height: 620px;
  overflow: hidden;
  background: #0d2a1d;
}
body.premium .premium-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 23, 15, .95) 0%, rgba(5, 23, 15, .78) 46%, rgba(5, 23, 15, .23) 76%, rgba(5, 23, 15, .08) 100%);
  z-index: 1;
}
body.premium .premium-hero-media { position: absolute; inset: 0; background-image: url('/river-ure-hero.webp'), url('/hero.jpg'); background-size: cover; background-position: center 55%; }
body.premium .premium-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 760px;
  padding: clamp(54px, 8vw, 104px) clamp(28px, 7vw, 84px);
}
body.premium .premium-hero .eyebrow { color: #cae0d1; }
body.premium .premium-hero h1 { max-width: 760px; margin: 12px 0 20px; color: #fff; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .91; letter-spacing: -.068em; }
body.premium .premium-hero .lede { max-width: 620px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.58; }
body.premium .premium-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
body.premium .premium-hero-actions a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid rgba(255,255,255,.20); border-radius: 999px; color: #fff; background: rgba(255,255,255,.09); font-size: .88rem; font-weight: 730; text-decoration: none; backdrop-filter: blur(10px); }
body.premium .premium-hero-actions a:first-child { border-color: #fff; color: var(--premium-green); background: #fff; }
body.premium .premium-hero-aside { position: relative; z-index: 2; align-self: end; margin: 0 clamp(28px, 5vw, 62px) clamp(34px, 6vw, 74px) 0; }
body.premium .hero-live-card { padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(8, 30, 20, .62); color: #fff; box-shadow: 0 24px 55px rgba(4,18,12,.28); backdrop-filter: blur(18px); }
body.premium .hero-live-card span { display: block; color: rgba(255,255,255,.62); font-size: .68rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
body.premium .hero-live-card strong { display: block; margin-top: 8px; color: #fff; font-size: 1.08rem; }
body.premium .hero-live-card p { margin: 8px 0 0; color: rgba(255,255,255,.70); font-size: .84rem; line-height: 1.48; }

body.premium .premium-content { width: min(calc(100% - 48px), 1080px); margin: 0 auto; }
body.premium .premium-decision {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(30px, 5vw, 72px);
  align-items: end;
  margin-top: -54px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--premium-line);
  border-radius: var(--premium-radius-lg);
  background: rgba(255,255,255,.97);
  box-shadow: var(--premium-shadow);
}
body.premium .premium-status-line { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--premium-green-2); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body.premium .premium-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #788c81; box-shadow: 0 0 0 6px rgba(120,140,129,.12); }
body.premium .premium-decision[data-condition="good"] .premium-status-dot { background: #27804f; box-shadow: 0 0 0 6px rgba(39,128,79,.12); }
body.premium .premium-decision[data-condition="caution"] .premium-status-dot { background: var(--premium-gold); box-shadow: 0 0 0 6px rgba(183,122,36,.12); }
body.premium .premium-decision[data-condition="poor"] .premium-status-dot { background: var(--premium-danger); box-shadow: 0 0 0 6px rgba(166,70,63,.12); }
body.premium .premium-decision h2 { max-width: 760px; margin: 0; font-size: clamp(2.3rem, 5vw, 4.75rem); line-height: .98; letter-spacing: -.06em; }
body.premium .premium-decision-reason { max-width: 720px; margin: 18px 0 0; color: var(--premium-ink-soft); font-size: 1.05rem; line-height: 1.7; }
body.premium .premium-decision-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
body.premium .premium-primary,
body.premium .premium-secondary { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; font-size: .86rem; font-weight: 730; text-decoration: none; }
body.premium .premium-primary { color: #fff; background: var(--premium-green); box-shadow: 0 10px 25px rgba(21,63,44,.18); }
body.premium .premium-secondary { color: var(--premium-green); border: 1px solid var(--premium-line-strong); background: #fff; }
body.premium .premium-score { text-align: right; }
body.premium .premium-score-value { display: block; font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 780; line-height: .86; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
body.premium .premium-score-label { display: block; margin-top: 12px; color: var(--premium-muted); font-size: .7rem; font-weight: 780; letter-spacing: .12em; text-transform: uppercase; }

body.premium .premium-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; border: 1px solid var(--premium-line); border-radius: 22px; background: var(--premium-surface); overflow: hidden; }
body.premium .premium-evidence a { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; min-height: 104px; padding: 18px 20px; border-right: 1px solid var(--premium-line); color: inherit; text-decoration: none; }
body.premium .premium-evidence a:last-child { border-right: 0; }
body.premium .premium-evidence-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--premium-green); background: var(--premium-green-soft); }
body.premium .premium-evidence-icon svg { width: 21px; height: 21px; }
body.premium .premium-evidence-copy span { display: block; color: var(--premium-muted); font-size: .69rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
body.premium .premium-evidence-copy strong { display: block; margin-top: 5px; color: var(--premium-ink); font-size: .9rem; line-height: 1.35; }
body.premium .premium-evidence-arrow { color: #8a9991; transition: transform .18s ease; }
body.premium .premium-evidence a:hover .premium-evidence-arrow { transform: translateX(3px); }

body.premium .premium-section { padding-top: clamp(58px, 9vw, 104px); }
body.premium .premium-section-heading { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 34px; align-items: end; margin-bottom: 28px; }
body.premium .premium-section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.02; }
body.premium .premium-section-heading > p { max-width: 620px; margin: 0; color: var(--premium-ink-soft); line-height: 1.7; }
body.premium .premium-section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -18px; }

body.premium .insight-band {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  margin-top: clamp(58px, 9vw, 104px);
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--premium-radius-lg);
  color: #fff;
  background: linear-gradient(135deg, #0e2d1f, #1a4d35);
  box-shadow: 0 25px 65px rgba(14,45,31,.20);
}
body.premium .insight-band .eyebrow { color: #bdd8c6; }
body.premium .health-score { display: flex; align-items: baseline; gap: 8px; }
body.premium .health-score strong { color: #fff; font-size: clamp(4.3rem, 9vw, 7.5rem); line-height: .84; letter-spacing: -.08em; }
body.premium .health-score span { color: rgba(255,255,255,.55); }
body.premium .health-label { margin: 16px 0 0; color: #fff; font-weight: 720; }
body.premium .why-today h2 { margin: 0 0 14px; color: #fff !important; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.06; }
body.premium .why-today p { margin: 0; color: rgba(255,255,255,.78); font-size: 1rem; line-height: 1.72; }
body.premium .why-today .insight-subtle { margin-top: 18px !important; color: rgba(255,255,255,.48) !important; font-size: .82rem !important; }

body.premium .window-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
body.premium .window-card { min-height: 166px; padding: 20px; border: 1px solid var(--premium-line); border-radius: 18px; background: #fff; }
body.premium .window-card[data-rating="4"], body.premium .window-card[data-rating="5"] { background: #eaf4ed; }
body.premium .window-time { display: block; color: var(--premium-muted); font-size: .74rem; font-weight: 760; }
body.premium .window-stars { display: block; margin: 14px 0 9px; color: var(--premium-gold); letter-spacing: .04em; }
body.premium .window-card strong { font-size: .95rem; }
body.premium .window-card p { margin: 7px 0 0; color: var(--premium-muted); font-size: .82rem; line-height: 1.42; }
body.premium .seasonal-note { display: flex; gap: 14px; margin-top: 18px; padding: 18px 20px; border: 1px solid var(--premium-line); border-radius: 16px; background: var(--premium-surface-soft); }
body.premium .seasonal-note p { margin: 4px 0 0; color: var(--premium-ink-soft); }

body.premium .premium-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.premium .premium-plan-card { min-height: 230px; padding: 24px; border: 1px solid var(--premium-line); border-radius: 20px; background: #fff; }
body.premium .premium-plan-card span { color: var(--premium-green-2); font-size: .7rem; font-weight: 790; letter-spacing: .11em; text-transform: uppercase; }
body.premium .premium-plan-card strong { display: block; margin-top: 36px; font-size: 1.22rem; line-height: 1.25; }
body.premium .premium-plan-card p, body.premium .premium-plan-card ul { margin: 10px 0 0; padding: 0; color: var(--premium-ink-soft); line-height: 1.6; list-style: none; }
body.premium .premium-plan-card li + li { margin-top: 5px; }
body.premium .home-outlook { margin-top: 14px; padding: 20px 22px; border: 1px solid var(--premium-line); border-radius: 17px; color: var(--premium-green); background: var(--premium-green-soft); }
body.premium .home-outlook p { margin: 0; font-weight: 650; }
body.premium .home-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; margin-top: 22px; color: var(--premium-muted); font-size: .79rem; }
body.premium .home-meta a { color: var(--premium-green); font-weight: 700; text-decoration: none; }

/* Footer */
body.premium .site-footer { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; margin: clamp(46px, 7vw, 82px) clamp(24px, 4vw, 48px) 0; padding: 30px 0 34px; border-top: 1px solid var(--premium-line); color: var(--premium-muted); font-size: .8rem; }
body.premium .site-footer p { margin: 0; }
body.premium .site-footer strong { color: var(--premium-ink); }
body.premium .footer-brand { display: grid; gap: 5px; max-width: 670px; }
body.premium .footer-warning { max-width: 380px; text-align: right; }

@media (max-width: 920px) {
  body.premium .premium-hero { grid-template-columns: 1fr; min-height: 600px; }
  body.premium .premium-hero-aside { margin: 0 24px 28px; }
  body.premium .premium-decision { grid-template-columns: 1fr; }
  body.premium .premium-score { text-align: left; }
  body.premium .premium-evidence { grid-template-columns: 1fr; }
  body.premium .premium-evidence a { border-right: 0; border-bottom: 1px solid var(--premium-line); }
  body.premium .premium-evidence a:last-child { border-bottom: 0; }
  body.premium .premium-section-heading { grid-template-columns: 1fr; gap: 14px; }
  body.premium .premium-section-heading .eyebrow { margin-bottom: 0; }
  body.premium .window-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.premium .premium-plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body.premium .page-shell, body.premium .home-shell { width: min(calc(100% - 16px), var(--premium-content)); margin-top: 8px; border-radius: 22px; }
  body.premium .site-header { top: 4px; min-height: 68px; padding: 0 16px; border-radius: 22px 22px 0 0; }
  body.premium .brand-subtitle { display: none; }
  body.premium .site-nav-toggle { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--premium-line); border-radius: 999px; color: var(--premium-ink); background: #fff; box-shadow: none; font: inherit; font-size: .8rem; font-weight: 720; }
  body.premium .site-nav-toggle-icon, body.premium .site-nav-toggle-icon::before, body.premium .site-nav-toggle-icon::after { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor; content: ""; }
  body.premium .site-nav-toggle-icon { position: relative; }
  body.premium .site-nav-toggle-icon::before { position: absolute; top: -5px; }
  body.premium .site-nav-toggle-icon::after { position: absolute; top: 5px; }
  body.premium .site-nav { position: absolute; top: calc(100% + 8px); right: 12px; left: 12px; display: none; padding: 10px; border: 1px solid var(--premium-line); border-radius: 18px; background: rgba(255,255,255,.99); box-shadow: var(--premium-shadow); }
  body.premium .site-nav[data-open="true"] { display: grid; }
  body.premium .site-nav > a, body.premium .nav-more > summary { justify-content: flex-start; min-height: 44px; border-radius: 12px; }
  body.premium .nav-more-menu { position: static; margin-top: 4px; border: 0; box-shadow: none; background: var(--premium-surface-soft); }
  body.premium .premium-hero { min-height: 650px; }
  body.premium .premium-hero-content { padding: 54px 24px 36px; }
  body.premium .premium-hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  body.premium .premium-content { width: min(calc(100% - 24px), 1080px); }
  body.premium .premium-decision { margin-top: -28px; padding: 26px 22px; border-radius: 22px; }
  body.premium .premium-decision h2 { font-size: clamp(2.2rem, 11vw, 3.6rem); }
  body.premium .insight-band { grid-template-columns: 1fr; border-radius: 22px; }
  body.premium .window-grid { grid-template-columns: 1fr; }
  body.premium .site-footer { grid-template-columns: 1fr; }
  body.premium .footer-warning { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.premium *, body.premium *::before, body.premium *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* src/client/river-photography.css */
/* Page-specific River Ure photography
   Loaded after the core presentation layer so imagery stays intentional and easy to maintain. */

body.page-overview .premium-hero-media {
  background-image: url('/images/river/river-ure-west-tanfield.webp');
  background-position: center 54%;
}

body.page-river-levels .page-hero {
  background-image: url('/images/river/river-ure-mickley.webp');
  background-size: cover;
  background-position: center 52%;
}

body.page-weather .page-hero {
  background-image: url('/images/river/river-ure-evening.webp');
  background-size: cover;
  background-position: center 58%;
}

body.page-fly-guide .page-hero {
  background-image: url('/images/river/river-ure-woodland.webp');
  background-size: cover;
  background-position: center 52%;
}

/* Give the secondary-page imagery a consistent editorial treatment. */
body.page-river-levels .page-hero::before,
body.page-weather .page-hero::before,
body.page-fly-guide .page-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 22, 15, .88) 0%, rgba(5, 22, 15, .62) 46%, rgba(5, 22, 15, .18) 78%, rgba(5, 22, 15, .08) 100%),
    linear-gradient(0deg, rgba(5, 22, 15, .38), transparent 58%);
}

body.page-river-levels .page-hero,
body.page-weather .page-hero,
body.page-fly-guide .page-hero {
  isolation: isolate;
  background-color: #143426;
}

body.page-river-levels .page-hero::after,
body.page-weather .page-hero::after,
body.page-fly-guide .page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 35%);
}

body.page-river-levels .page-hero > *,
body.page-weather .page-hero > *,
body.page-fly-guide .page-hero > * {
  z-index: 1;
}

@media (max-width: 760px) {
  body.page-overview .premium-hero-media {
    background-position: 62% center;
  }

  body.page-river-levels .page-hero {
    background-position: 58% center;
  }

  body.page-weather .page-hero {
    background-position: 62% center;
  }

  body.page-fly-guide .page-hero {
    background-position: 54% center;
  }
}

/* src/client/professional-footer.css */
/* Shared footer presentation */
body.premium .site-footer {
  display: block;
  width: min(calc(100% - 48px), 1120px);
  margin: clamp(52px, 8vw, 96px) auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  color: rgba(255, 255, 255, .72);
  background: #102f22;
  box-shadow: 0 24px 60px rgba(15, 38, 27, .14);
}

body.premium .footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
  padding: clamp(30px, 5vw, 54px);
}

body.premium .footer-identity {
  min-width: 0;
  max-width: 610px;
}

body.premium .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}

body.premium .footer-logo-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 15px;
  color: #d8ebdf;
  background: rgba(255, 255, 255, .08);
}

body.premium .footer-logo-mark svg {
  width: 25px;
  height: 25px;
}

body.premium .footer-logo > span:last-child {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

body.premium .footer-logo strong {
  color: #fff;
  font-size: 1rem;
  letter-spacing: -.02em;
}

body.premium .footer-logo small {
  margin-top: 4px;
  color: rgba(255, 255, 255, .48);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.premium .footer-identity > p {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: .93rem;
  line-height: 1.7;
}

body.premium .footer-navigation {
  min-width: 0;
}

body.premium .footer-navigation > span,
body.premium .footer-sources > span {
  display: block;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, .42);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.premium .footer-navigation > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

body.premium .footer-navigation a {
  min-width: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .86rem;
  font-weight: 680;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

body.premium .footer-navigation a:hover {
  color: #fff;
  transform: translateX(2px);
}

body.premium .footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 22px clamp(30px, 5vw, 54px) 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .08);
}

body.premium .footer-warning,
body.premium .footer-sources {
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, .5);
  font-size: .75rem;
  line-height: 1.6;
  overflow-wrap: normal;
  word-break: normal;
}

body.premium .footer-warning {
  max-width: 560px;
  text-align: left;
}

body.premium .footer-sources {
  text-align: right;
}

body.premium .footer-sources > span {
  display: block;
  margin: 0 0 6px;
}

@media (max-width: 980px) {
  body.premium .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body.premium .footer-identity {
    max-width: 680px;
  }

  body.premium .footer-navigation > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px 20px;
  }

  body.premium .footer-meta {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.premium .footer-warning,
  body.premium .footer-sources {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 700px) {
  body.premium .site-footer {
    width: calc(100% - 20px);
    margin-top: 32px;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 38, 27, .12);
  }

  body.premium .footer-main {
    display: block;
    padding: 18px 18px 16px;
  }

  body.premium .footer-logo {
    gap: 10px;
  }

  body.premium .footer-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  body.premium .footer-logo-mark svg {
    width: 20px;
    height: 20px;
  }

  body.premium .footer-logo strong {
    font-size: .9rem;
  }

  body.premium .footer-logo small {
    margin-top: 2px;
    font-size: .58rem;
    letter-spacing: .055em;
  }

  body.premium .footer-identity > p,
  body.premium .footer-navigation > span,
  body.premium .footer-sources > span {
    display: none;
  }

  body.premium .footer-navigation {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  body.premium .footer-navigation > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
  }

  body.premium .footer-navigation a {
    position: relative;
    font-size: .74rem;
    font-weight: 650;
    line-height: 1.25;
  }

  body.premium .footer-navigation a:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -9px;
    color: rgba(255,255,255,.24);
  }

  body.premium .footer-navigation a:hover {
    transform: none;
  }

  body.premium .footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    align-items: center;
    padding: 11px 18px 13px;
  }

  body.premium .footer-warning,
  body.premium .footer-sources {
    width: auto;
    font-size: .64rem;
    line-height: 1.35;
  }

  body.premium .footer-warning::after {
    content: '·';
    margin-left: 12px;
    color: rgba(255,255,255,.24);
  }
}

@media (max-width: 430px) {
  body.premium .site-footer {
    width: calc(100% - 16px);
  }

  body.premium .footer-main {
    padding-inline: 16px;
  }

  body.premium .footer-meta {
    padding-inline: 16px;
  }

  body.premium .footer-navigation > div {
    gap: 7px 13px;
  }

  body.premium .footer-navigation a {
    font-size: .71rem;
  }
}
/* src/client/intelligence-suite.css */
.score-breakdown{margin-top:12px;border-top:1px solid rgba(16,35,27,.12);padding-top:12px}.score-breakdown summary,.decision-reasoning summary{cursor:pointer;font-weight:900;color:#315f49}.score-factor{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid rgba(16,35,27,.08)}.score-factor span{display:grid;gap:3px;font-weight:850}.score-factor small{color:#607367;font-weight:700}.score-factor strong{font-size:1rem}.score-factor .penalty{color:#9f3f32}.compact-conditions small{display:block;margin-top:5px;color:#607367;font-size:.78rem;line-height:1.4}.recommendation-feedback{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin-top:22px;padding:18px;border:1px solid rgba(16,35,27,.1);border-radius:18px;background:#f7faf8}.recommendation-feedback h3,.recommendation-feedback p{margin:0}.recommendation-feedback .eyebrow{margin-bottom:5px}.feedback-actions{display:flex;flex-wrap:wrap;gap:8px}.feedback-actions button,.reset-button{border:1px solid rgba(49,95,73,.22);border-radius:999px;padding:10px 14px;background:#fff;color:#315f49;font:inherit;font-weight:850;cursor:pointer}.feedback-actions button[aria-pressed=true]{background:#315f49;color:#fff}.journal-form{display:grid;gap:20px}.journal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.journal-grid label,.journal-notes{display:grid;gap:7px;color:#14251d;font-weight:850}.journal-grid input,.journal-grid select,.journal-notes textarea{width:100%;box-sizing:border-box;border:1px solid #c9d5cd;border-radius:12px;padding:12px;background:#fff;color:#14251d;font:inherit}.journal-insights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.journal-insights article{border:1px solid rgba(16,35,27,.1);border-radius:16px;padding:15px;background:#fff}.journal-insights span{display:block;color:#607367;font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.journal-insights strong{display:block;margin-top:7px;color:#10231b;font-size:1.08rem}.journal-list{display:grid;gap:12px}.journal-entry{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;border:1px solid rgba(16,35,27,.1);border-radius:16px;padding:16px;background:#fff}.journal-entry span{color:#607367;font-size:.82rem;font-weight:800}.journal-entry h3{margin:4px 0}.journal-entry p{margin:0;color:#40564a}.journal-entry dl{display:flex;gap:14px;margin:0}.journal-entry dl div{display:grid;gap:3px}.journal-entry dt{color:#607367;font-size:.72rem;font-weight:900;text-transform:uppercase}.journal-entry dd{margin:0;font-weight:900}.journal-entry button{border:0;background:transparent;color:#9f3f32;font-weight:850;cursor:pointer}@media(max-width:900px){.journal-grid,.journal-insights{grid-template-columns:repeat(2,minmax(0,1fr))}.recommendation-feedback{grid-template-columns:1fr}.journal-entry{grid-template-columns:1fr}.journal-entry dl{flex-wrap:wrap}}@media(max-width:560px){.journal-grid,.journal-insights{grid-template-columns:1fr}.feedback-actions button{flex:1 1 42%}}