:root {
  --ink: #142b35;
  --muted: #6f7d7d;
  --page: #eef0e9;
  --card: #fbfcf8;
  --line: #1f6072;
  --fill: #dcebed;
  --forecast: #c95630;
  --forecast-soft: #fbefe8;
  --border: #d8ded7;
  --grid: #dfe4df;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.site-layout {
  width: 100%;
}

#graph,
#wave-reports,
#water-quality,
#weather {
  scroll-margin-top: 28px;
}

#graph:focus:not(:focus-visible),
#wave-reports:focus:not(:focus-visible),
#water-quality:focus:not(:focus-visible),
#weather:focus:not(:focus-visible) {
  outline: none;
}

#graph:focus-visible,
#wave-reports:focus-visible,
#water-quality:focus-visible,
#weather:focus-visible {
  outline: 3px solid rgba(31, 96, 114, 0.24);
  outline-offset: 4px;
}

.page-nav {
  position: relative;
  z-index: 20;
}

.page-nav-links {
  color: #526467;
  background: rgba(251, 252, 248, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(36, 53, 50, 0.1);
  backdrop-filter: blur(10px);
}

.page-nav-links > p {
  margin: 0 0 8px;
  color: #71807d;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-nav-links ul {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.page-nav-links a {
  display: block;
  padding: 8px 6px;
  color: #536568;
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.page-nav-links a:hover {
  color: var(--ink);
  background: #edf3ef;
}

.page-nav-links a[aria-current="location"] {
  color: #fff;
  background: var(--line);
}

.page-nav-links a:focus-visible,
.page-nav-toggle:focus-visible {
  outline: 3px solid rgba(31, 96, 114, 0.28);
  outline-offset: 3px;
}

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

.page-shell {
  min-height: 100svh;
  width: min(1208px, 100%);
  margin: 0 auto;
  padding: 28px 44px 44px;
}

.turtle-scene {
  position: relative;
  isolation: isolate;
  width: min(1120px, 100%);
}

.mural-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #6e352d;
  border-bottom: 1px solid rgba(20, 43, 53, 0.12);
  border-radius: 0;
  box-shadow: none;
}

.mural-photo {
  display: block;
  width: 100%;
  height: auto;
}

.turtle-character {
  position: relative;
  z-index: 5;
  grid-column: 2;
  grid-row: 1;
  width: 260px;
  height: 208px;
  align-self: end;
  justify-self: center;
  transform: translateY(48px) rotate(-1.5deg);
  transform-origin: 70% 100%;
}

.turtle-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 12px rgba(28, 38, 31, 0.22));
  pointer-events: none;
  user-select: none;
}

.wave-card {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(36, 53, 50, 0.08);
}

.wave-card-content {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  background: var(--card);
}

.wave-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px minmax(190px, max-content);
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 0;
}

.wave-heading,
.current-reading {
  position: relative;
  z-index: 3;
}

.wave-heading {
  grid-column: 1;
}

.location-label {
  margin: 0 0 10px;
  color: #507078;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.location-compact {
  display: none;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 27px;
  padding: 0 10px;
  color: #2e6651;
  background: #eaf3ed;
  border: 1px solid #d1e5d8;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-badge i {
  width: 7px;
  height: 7px;
  background: #3c8b65;
  border-radius: 50%;
}

.live-badge.stale {
  color: #7a5d36;
  background: #f6f0e6;
  border-color: #eadcc7;
}

.live-badge.stale i {
  background: #b7833c;
}

.live-badge.saved {
  color: #5f6664;
  background: #f0f1ed;
  border-color: #dfe2dc;
}

.live-badge.saved i {
  background: #7d8986;
}

.chart-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.current-reading {
  grid-column: 3;
  min-width: 190px;
  text-align: right;
}

.reading-label,
.updated-time {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.reading-label {
  margin-bottom: 3px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reading-value {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}

.reading-value strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.reading-value span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.updated-time {
  margin-top: 6px;
}

.chart-meta {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 32px;
  padding: 28px 0 16px;
  background: var(--card);
  border-top: 1px solid var(--border);
}

.chart-history-meta,
.chart-latest-meta,
.past-forecast-control {
  display: flex;
  align-items: center;
}

.chart-history-meta,
.chart-latest-meta {
  color: #526467;
  font-size: 0.78rem;
  font-weight: 650;
}

.chart-history-meta {
  min-width: 0;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.past-forecast-control {
  gap: 10px;
}

.chart-latest-meta {
  justify-self: end;
  justify-content: flex-end;
  gap: 22px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-line {
  display: block;
  width: 25px;
  height: 0;
  border-top: 3px solid var(--line);
}

.legend-line.forecast {
  border-color: var(--forecast);
  border-top-style: dashed;
}

.legend-line.history {
  border-color: var(--forecast);
  border-top-style: dotted;
  border-top-width: 2px;
  opacity: 0.62;
}

.past-forecast-select {
  min-width: 66px;
  min-height: 40px;
  padding: 7px 28px 7px 12px;
  color: #526467;
  background: var(--card);
  border: 1px solid #cbd5d0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 750;
}

.past-forecast-select:hover {
  border-color: #98aaa5;
}

.past-forecast-select:focus-visible {
  outline: 3px solid rgba(31, 96, 114, 0.26);
  outline-offset: 3px;
}

.past-forecast-status:not(:empty) {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.forecast-summary {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.forecast-summary strong {
  color: var(--forecast);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.forecast-summary sup {
  margin-left: 2px;
  color: #9a6a2b;
  font-weight: 800;
}

.forecast-delay-note {
  flex-basis: 100%;
  color: #8b612d;
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: right;
}

.chart-stage {
  position: relative;
  width: 100%;
  touch-action: pan-y pinch-zoom;
}

.flow-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  outline: none;
  touch-action: pan-y pinch-zoom;
}

.flow-chart:focus-visible {
  outline: 3px solid rgba(31, 96, 114, 0.28);
  outline-offset: 6px;
  border-radius: 8px;
}

.forecast-zone {
  fill: var(--forecast-soft);
}

.forecast-zone.unavailable {
  fill: #f0f1ed;
}

.grid-line {
  stroke: var(--grid);
  stroke-width: 1;
}

.axis-tick {
  stroke: #aab5b1;
  stroke-width: 1;
}

.axis-label {
  fill: #768581;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.axis-time-label,
.axis-date-label {
  fill: #768581;
  font-family: Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
}

.axis-time-label {
  font-size: 10px;
}

.axis-date-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.forecast-axis-label {
  fill: #a85739;
}

.now-line {
  stroke: #8d9b98;
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}

.now-label {
  fill: #62716e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.observed-area {
  fill: var(--fill);
  fill-opacity: 0.76;
}

.observed-path,
.historical-forecast-path,
.forecast-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.observed-path {
  stroke: var(--line);
  stroke-width: 3;
}

.forecast-path {
  stroke: var(--forecast);
  stroke-width: 3;
  stroke-dasharray: 7 7;
}

.historical-forecast-path {
  stroke: var(--forecast);
  stroke-width: 2;
  stroke-dasharray: 3 5;
  opacity: 0.62;
}

.historical-forecast-single {
  fill: var(--forecast);
  opacity: 0.62;
}

.current-halo {
  fill: var(--card);
  stroke: var(--line);
  stroke-width: 1;
  opacity: 0.9;
}

.current-dot {
  fill: var(--line);
}

.forecast-dot {
  fill: var(--forecast);
  stroke: var(--card);
  stroke-width: 2;
}

.now-dot {
  fill: var(--forecast);
  stroke: var(--card);
  stroke-width: 2;
}

.forecast-value-label {
  fill: var(--forecast);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.forecast-unavailable-label {
  fill: #7e8986;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.selected-point line {
  stroke: rgba(20, 43, 53, 0.32);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.selected-point circle {
  fill: var(--card);
  stroke-width: 2.5;
}

.selected-point .selection-observed {
  stroke: var(--line);
}

.selected-point .selection-forecast {
  stroke: var(--forecast);
}

.chart-tooltip {
  position: absolute;
  z-index: 6;
  display: grid;
  gap: 3px;
  min-width: 214px;
  padding: 11px 13px;
  pointer-events: none;
  background: #17343e;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 33, 38, 0.2);
  transform: translate(12px, calc(-100% - 12px));
  font-variant-numeric: tabular-nums;
}

.chart-tooltip.align-right {
  transform: translate(calc(-100% - 12px), calc(-100% - 12px));
}

.chart-tooltip.align-bottom {
  transform: translate(12px, 12px);
}

.chart-tooltip.align-right.align-bottom {
  transform: translate(calc(-100% - 12px), 12px);
}

.chart-tooltip time {
  color: #d9e4e6;
  font-size: 0.7rem;
}

.chart-tooltip dl {
  display: grid;
  gap: 4px;
  margin: 3px 0 0;
}

.chart-tooltip dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.chart-tooltip dt {
  color: #b9ced3;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-tooltip dd {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  text-align: right;
}

.chart-tooltip small {
  padding-top: 4px;
  color: #b9ced3;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.65rem;
}

.chart-hint {
  margin: 4px 0 0 68px;
  color: #87938f;
  font-size: 0.68rem;
}

.chart-hint-compact {
  display: none;
}

.chart-loading {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
}

.chart-loading > div {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 360px;
  text-align: center;
}

.retry-button {
  appearance: none;
  padding: 9px 15px;
  color: var(--card);
  background: var(--line);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

.retry-button:hover {
  background: var(--ink);
}

.retry-button:focus-visible {
  outline: 3px solid rgba(31, 96, 114, 0.28);
  outline-offset: 3px;
}

.data-warning {
  margin: 12px 0 0;
  color: #81502f;
  font-size: 0.72rem;
  text-align: center;
}

.data-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 20px 0 0;
  color: #87918e;
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: center;
}

.data-note a {
  color: #60777b;
  text-underline-offset: 2px;
}

.data-note strong {
  color: #6f7775;
}

.wave-notes-card {
  width: min(1120px, 100%);
  margin-top: 28px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(36, 53, 50, 0.06);
}

.turbidity-card {
  width: min(1120px, 100%);
  margin-top: 28px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(36, 53, 50, 0.06);
}

.turbidity-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.turbidity-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.turbidity-intro {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.turbidity-reading {
  min-width: 250px;
  text-align: right;
}

.turbidity-reading-value {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 8px;
}

.turbidity-reading-value strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.turbidity-reading-value span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.turbidity-state {
  min-height: 22px;
  margin: 20px 0 0;
  color: #586966;
  font-size: 0.75rem;
  line-height: 1.5;
}

.turbidity-state.is-stale {
  color: #925033;
}

.turbidity-figure {
  margin: 12px 0 0;
}

.turbidity-chart-summary {
  color: #526467;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: right;
}

.turbidity-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 5px;
  overflow: visible;
}

.turbidity-grid-line {
  stroke: var(--grid);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.turbidity-axis-label {
  fill: #768581;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.turbidity-area {
  fill: #e3efec;
}

.turbidity-path {
  fill: none;
  stroke: #347866;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.turbidity-current-dot {
  fill: #347866;
  stroke: var(--card);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.turbidity-figure figcaption {
  margin-top: 3px;
  color: #7b8885;
  font-size: 0.68rem;
  text-align: center;
}

.turbidity-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 18px;
  margin-top: 12px;
  color: #6d7b78;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  line-height: 1.55;
}

.turbidity-footer p {
  margin: 0;
}

.turbidity-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.turbidity-footer a {
  color: #46666b;
  text-underline-offset: 3px;
}

.turbidity-retry {
  margin-top: 14px;
}

.weather-card {
  width: min(1120px, 100%);
  margin-top: 28px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(36, 53, 50, 0.06);
}

.feature-request-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: start;
  gap: clamp(32px, 5vw, 64px);
  width: min(1120px, 100%);
  padding: clamp(24px, 4vw, 48px);
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 55px rgba(36, 53, 50, 0.06);
}

.feature-request-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.feature-request-intro {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.feature-request-form-area {
  min-width: 0;
}

.weather-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px 16px;
}

.weather-title {
  margin: 0;
  color: #507078;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.weather-intro,
.weather-updated {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.weather-intro {
  margin: 5px 0 0;
}

.weather-updated {
  flex: 0 0 auto;
  text-align: right;
}

.weather-state {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.weather-state.is-stale {
  color: #925033;
}

.weather-state.has-data {
  min-height: 0;
  justify-content: flex-start;
  padding: 10px 24px;
  text-align: left;
}

.weather-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  border-top: 1px solid var(--border);
}

.weather-chart-panel {
  min-width: 0;
  padding: 20px 18px 12px 20px;
}

.weather-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px 4px;
}

.weather-chart-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.weather-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

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

.weather-legend-line {
  display: inline-block;
  width: 19px;
  height: 0;
  border-top: 3px solid;
  border-radius: 999px;
}

.weather-legend-line.temperature {
  border-color: var(--forecast);
}

.weather-legend-line.rain {
  border-color: var(--line);
}

.weather-chart-stage {
  position: relative;
  width: 100%;
  min-height: 280px;
}

.weather-chart {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.weather-chart:focus-visible {
  outline: 3px solid rgba(31, 96, 114, 0.24);
  outline-offset: -3px;
}

.weather-grid-line,
.weather-frame-line,
.weather-temperature-path,
.weather-rain-path,
.weather-hover-guide,
.weather-temperature-dot,
.weather-rain-dot {
  vector-effect: non-scaling-stroke;
}

.weather-grid-line {
  stroke: var(--grid);
  stroke-width: 1;
}

.weather-frame-line {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}

.weather-temperature-path,
.weather-rain-path,
.weather-hover-guide {
  fill: none;
}

.weather-temperature-path {
  stroke: var(--forecast);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-rain-path {
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-temperature-dot,
.weather-rain-dot {
  fill: var(--card);
  stroke-width: 2;
}

.weather-temperature-dot {
  stroke: var(--forecast);
}

.weather-rain-dot {
  stroke: var(--line);
}

.weather-hover-guide {
  stroke: #8da09e;
  stroke-width: 1;
}

.weather-axis-label {
  fill: #768581;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.weather-axis-title {
  fill: #52676a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.weather-hit-area {
  fill: transparent;
  cursor: crosshair;
}

.weather-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 138px;
  padding: 9px 11px;
  color: #f7fbf8;
  background: #17343e;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20, 43, 53, 0.18);
  font-size: 0.7rem;
  line-height: 1.45;
  pointer-events: none;
}

.weather-tooltip strong,
.weather-tooltip span {
  display: block;
}

.weather-tooltip strong {
  margin-bottom: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.84rem;
  font-weight: 500;
}

.weather-tooltip .temperature {
  color: #f6b49b;
}

.weather-tooltip .rain {
  color: #b7e4ea;
}

.weather-chart-hint {
  margin: -2px 0 0;
  color: #87918e;
  font-size: 0.66rem;
  text-align: center;
}

.aqi-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-left: 1px solid var(--border);
}

.aqi-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.aqi-reading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.aqi-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  background: #8d9996;
  border: 1px solid rgba(20, 43, 53, 0.25);
  border-radius: 50%;
}

.aqi-panel[data-aqi-category="good"] .aqi-dot {
  background: #00e400;
  box-shadow: 0 0 0 5px rgba(0, 228, 0, 0.08);
}

.aqi-panel[data-aqi-category="moderate"] .aqi-dot {
  background: #f4d000;
  box-shadow: 0 0 0 5px rgba(244, 208, 0, 0.1);
}

.aqi-panel[data-aqi-category="unhealthy-sensitive"] .aqi-dot {
  background: #ff7e00;
}

.aqi-panel[data-aqi-category="unhealthy"] .aqi-dot {
  background: #ff0000;
}

.aqi-panel[data-aqi-category="very-unhealthy"] .aqi-dot {
  background: #8f3f97;
}

.aqi-panel[data-aqi-category="hazardous"] .aqi-dot {
  background: #7e0023;
}

.aqi-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.aqi-category {
  margin: 12px 0 0 27px;
  color: #326447;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.aqi-description {
  max-width: 220px;
  margin: 12px 0 0 27px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
  white-space: pre-line;
}

.weather-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 11px 24px 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.68rem;
  line-height: 1.5;
}

.weather-footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.weather-footer a {
  color: #46666b;
  text-underline-offset: 3px;
}

.weather-retry {
  flex: 0 0 auto;
}

@media (min-width: 1400px) {
  .site-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .page-shell {
    grid-area: 1 / 1;
    width: min(1208px, 100%);
    min-width: 0;
    margin: 0 auto;
  }

  .page-nav {
    grid-area: 1 / 1;
    position: sticky;
    top: 24px;
    align-self: start;
    justify-self: start;
    width: 124px;
    margin-left: max(12px, calc((100vw - 1208px) / 2 - 100px));
    margin-top: 402px;
  }

  .page-nav-toggle {
    display: none !important;
  }

  .page-nav-links {
    padding: 13px 11px;
  }
}

@media (max-width: 1399px) {
  .page-nav:not(.is-enhanced) {
    width: min(1120px, calc(100% - 24px));
    margin: 12px auto 0;
  }

  .page-nav:not(.is-enhanced) .page-nav-links {
    padding: 12px;
  }

  .page-nav:not(.is-enhanced) .page-nav-links ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-nav.is-enhanced {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    display: grid;
    justify-items: end;
  }

  .page-nav-toggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    color: var(--ink);
    background: rgba(251, 252, 248, 0.96);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(36, 53, 50, 0.14);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 750;
  }

  .page-nav-icon {
    display: grid;
    gap: 3px;
    width: 16px;
  }

  .page-nav-icon i {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  .page-nav.is-enhanced .page-nav-links {
    width: min(240px, calc(100vw - 24px));
    max-height: calc(100svh - 76px);
    padding: 13px 11px;
    margin-top: 8px;
    overflow-y: auto;
  }
}

.wave-notes-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  align-items: end;
  gap: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.wave-notes-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.wave-notes-intro {
  max-width: 650px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.wave-notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 44px;
  padding-top: 32px;
}

.report-panel-heading h3,
.community-feed-heading h3,
.report-success h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.report-panel-heading > p {
  margin: 7px 0 22px;
  color: #586966;
  font-size: 0.76rem;
  line-height: 1.5;
}

.surf-report-form fieldset,
.feature-request-form fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.report-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.report-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.report-field-wide {
  grid-column: 1 / -1;
}

.report-field > label,
.feed-sort > span {
  color: #3e565a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.report-field input,
.report-field textarea,
.feed-sort select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5d0;
  border-radius: 9px;
  outline: none;
}

.report-field input,
.feed-sort select {
  min-height: 43px;
  padding: 9px 11px;
}

.report-field textarea {
  min-height: 138px;
  padding: 11px;
  line-height: 1.5;
  resize: vertical;
}

.report-field input:hover,
.report-field textarea:hover,
.feed-sort select:hover {
  border-color: #aebeb8;
}

.report-field input:focus-visible,
.report-field textarea:focus-visible,
.feed-sort select:focus-visible,
.consent-field input:focus-visible {
  border-color: var(--line);
  outline: 3px solid rgba(31, 96, 114, 0.18);
  outline-offset: 1px;
}

.surf-report-form.was-validated .report-field input:invalid:not(:focus),
.surf-report-form.was-validated .report-field textarea:invalid:not(:focus),
.feature-request-form.was-validated .report-field input:invalid:not(:focus),
.feature-request-form.was-validated .report-field textarea:invalid:not(:focus) {
  border-color: #b9684b;
}

.flow-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.input-with-unit {
  position: relative;
}

.input-with-unit input {
  padding-right: 48px;
}

.input-with-unit span {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #586966;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateY(-50%);
  pointer-events: none;
}

.latest-reading-button,
.primary-button,
.secondary-button {
  appearance: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.latest-reading-button {
  padding: 9px 14px;
  color: var(--line);
  background: #edf4f3;
  border: 1px solid #cfe0dd;
  white-space: nowrap;
}

.latest-reading-button:hover:not(:disabled) {
  background: #e2efed;
}

.latest-reading-button:disabled,
.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.field-help-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.field-help,
.character-count {
  margin: 0;
  color: #586966;
  font-size: 0.67rem;
  line-height: 1.45;
}

.character-count {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 21px;
  color: #526467;
  cursor: pointer;
  font-size: 0.72rem;
  line-height: 1.5;
}

.consent-field input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--line);
}

.turnstile-area {
  min-height: 92px;
  margin-top: 20px;
}

#turnstile-widget,
#feature-request-turnstile {
  width: 100%;
  min-height: 65px;
}

.feature-request-turnstile-area {
  min-height: 0;
  margin-top: 0;
}

#feature-request-turnstile {
  min-height: 0;
}

.form-status {
  min-height: 18px;
  margin: 4px 0 9px;
  color: #8d4b34;
  font-size: 0.72rem;
  line-height: 1.45;
}

.form-status.is-success {
  color: #2e6651;
}

.feature-request-status {
  outline: none;
}

.feature-request-status:focus-visible {
  outline: 3px solid rgba(31, 96, 114, 0.2);
  outline-offset: 3px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  padding: 10px 17px;
}

.primary-button {
  width: 100%;
  color: #fff;
  background: var(--line);
  border: 1px solid var(--line);
}

.primary-button:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
}

.secondary-button {
  color: var(--line);
  background: transparent;
  border: 1px solid #b9cbc6;
}

.secondary-button:hover {
  background: #edf4f3;
}

.latest-reading-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 3px solid rgba(31, 96, 114, 0.24);
  outline-offset: 3px;
}

.form-setup-error {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 15px;
  color: #81502f;
  background: #faf1eb;
  border: 1px solid #edd5c8;
  border-radius: 12px;
  font-size: 0.74rem;
  line-height: 1.5;
}

.form-setup-error p {
  margin: 0;
}

.report-success {
  padding: 26px;
  background: #edf4f0;
  border: 1px solid #cfdfd5;
  border-radius: 14px;
  outline: none;
}

.report-success:focus-visible {
  outline: 3px solid rgba(31, 96, 114, 0.2);
  outline-offset: 3px;
}

.success-kicker,
.feed-kicker {
  margin: 0 0 6px;
  color: #477062;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.report-success > p:not(.success-kicker) {
  margin: 10px 0 20px;
  color: #586966;
  font-size: 0.78rem;
  line-height: 1.55;
}

.community-feed {
  min-width: 0;
  padding-left: 40px;
  border-left: 1px solid var(--border);
}

.community-feed-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.feed-sort {
  display: grid;
  gap: 5px;
  flex: 0 0 128px;
}

.feed-sort select {
  min-height: 36px;
  padding: 7px 28px 7px 9px;
  font-size: 0.7rem;
}

.community-feed-note {
  margin: 15px 0 0;
  padding: 12px 14px;
  color: #566661;
  background: #f2f4ef;
  border-radius: 10px;
  font-size: 0.68rem;
  line-height: 1.5;
}

.feed-status {
  margin: 22px 0 0;
  color: #586966;
  font-size: 0.75rem;
  line-height: 1.5;
}

.report-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.community-report {
  padding: 17px;
  background: #f7f8f4;
  border: 1px solid #e0e5df;
  border-radius: 13px;
}

.community-report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.community-report-name {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 600;
}

.community-report-experience,
.community-report-date {
  display: block;
  margin-top: 3px;
  color: #586966;
  font-size: 0.65rem;
}

.community-report-flow {
  margin: 0;
  color: var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.community-report-flow span {
  color: #586966;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.community-report-observations {
  margin: 14px 0 0;
  padding-top: 13px;
  color: #42575a;
  border-top: 1px solid #e0e5df;
  font-size: 0.76rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.feed-retry {
  margin-top: 16px;
}

.report-honeypot,
.feature-request-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1050px) {
  .chart-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .wave-header {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 16px 20px;
  }

  .wave-heading {
    grid-column: 1;
    grid-row: 1;
  }

  .current-reading {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    text-align: left;
  }

  .reading-value {
    justify-content: flex-start;
  }

  .turtle-character {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 190px;
    height: 152px;
    transform: translateY(36px) rotate(-1.5deg);
  }

  .chart-meta {
    padding-top: 22px;
  }
}

@media (max-width: 700px) {
  .page-shell {
    display: block;
    padding: 12px;
  }

  .location-full {
    display: none;
  }

  .location-compact {
    display: inline;
  }

  .wave-card {
    padding: 0;
    border-radius: 18px;
  }

  .wave-card-content {
    padding: 20px 16px 16px;
  }

  .wave-header {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 16px 10px;
    margin-bottom: 0;
  }

  .wave-heading {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .current-reading {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    text-align: left;
  }

  .turtle-character {
    grid-column: 2;
    grid-row: 2;
    width: 132px;
    height: 106px;
    transform: translateY(25px) rotate(-1.5deg);
  }

  .reading-label {
    grid-column: 1;
    grid-row: 1;
  }

  .reading-value {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .updated-time {
    grid-column: 1 / -1;
    grid-row: 3;
    padding-bottom: 0;
  }

  .chart-meta {
    gap: 10px;
    padding: 30px 0 12px;
  }

  .chart-latest-meta {
    width: 100%;
    justify-self: stretch;
    justify-content: space-between;
  }

  .forecast-summary {
    width: 100%;
    justify-content: space-between;
  }

  .forecast-delay-note {
    text-align: left;
  }

  .axis-label {
    font-size: 13px;
  }

  .axis-time-label {
    font-size: 12px;
  }

  .chart-hint {
    margin: 2px 0 0;
    text-align: center;
  }

  .chart-hint-full {
    display: none;
  }

  .chart-hint-compact {
    display: inline;
  }

  .chart-tooltip,
  .chart-tooltip.align-right {
    right: 8px;
    left: 8px !important;
    min-width: 0;
    transform: translateY(calc(-100% - 12px));
  }

  .chart-tooltip.align-bottom,
  .chart-tooltip.align-right.align-bottom {
    transform: translateY(12px);
  }

  .chart-loading {
    min-height: 340px;
  }

  .data-note {
    flex-wrap: wrap;
    margin-top: 12px;
  }

  #graph,
  #wave-reports,
  #water-quality,
  #weather {
    scroll-margin-top: 68px;
  }

  .wave-notes-card {
    margin-top: 16px;
    padding: 24px 16px;
    border-radius: 18px;
  }

  .turbidity-card {
    margin-top: 16px;
    padding: 24px 16px;
    border-radius: 18px;
  }

  .weather-card {
    margin-top: 16px;
    border-radius: 18px;
  }

  .feature-request-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 24px 16px;
    margin-top: 16px;
    border-radius: 18px;
  }

  .feature-request-heading h2 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
  }

  .feature-request-intro {
    font-size: 0.82rem;
  }

  .feature-request-card .report-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-request-card .report-field-wide {
    grid-column: auto;
  }

  .weather-header {
    align-items: flex-start;
    padding: 18px 16px 14px;
  }

  .weather-updated {
    max-width: 130px;
  }

  .weather-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .weather-chart-panel {
    padding: 18px 8px 12px;
  }

  .weather-chart-heading {
    padding: 0 10px 4px;
  }

  .weather-chart-stage {
    min-height: 250px;
  }

  .aqi-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 5px 18px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .aqi-label {
    grid-column: 1 / -1;
    margin: 0 0 6px;
  }

  .aqi-reading {
    grid-row: 2 / 4;
  }

  .aqi-number {
    font-size: 3.6rem;
  }

  .aqi-category,
  .aqi-description {
    margin: 0;
  }

  .weather-footer {
    align-items: flex-start;
    padding-right: 16px;
    padding-left: 16px;
  }

  .turbidity-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding-bottom: 20px;
  }

  .turbidity-heading h2 {
    font-size: clamp(1.9rem, 9vw, 2.65rem);
  }

  .turbidity-intro {
    font-size: 0.82rem;
  }

  .turbidity-reading {
    min-width: 0;
    text-align: left;
  }

  .turbidity-reading-value {
    justify-content: flex-start;
  }

  .turbidity-state {
    margin-top: 16px;
  }

  .turbidity-chart {
    width: calc(100% + 8px);
    margin-left: -8px;
  }

  .turbidity-footer {
    display: grid;
    gap: 12px;
  }

  .turbidity-links {
    flex-wrap: wrap;
    white-space: normal;
  }

  .wave-notes-header,
  .wave-notes-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-panel,
  .community-feed {
    min-width: 0;
  }

  .wave-notes-header {
    align-items: start;
    gap: 20px;
  }

  .wave-notes-layout {
    gap: 36px;
    padding-top: 26px;
  }

  .community-feed {
    padding: 32px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}

@media (hover: none) and (pointer: coarse) {
  .flow-chart {
    touch-action: none;
  }
}

@media (max-width: 430px) {
  .page-nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .page-nav-toggle {
    padding: 0 13px;
  }

  .chart-history-meta {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.68rem;
  }

  .past-forecast-control {
    align-items: center;
    gap: 8px;
  }

  .past-forecast-select {
    min-height: 44px;
  }

  .chart-latest-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .chart-latest-meta > .legend-item {
    justify-self: end;
  }

  .legend-item {
    gap: 5px;
  }

  .legend-line {
    width: 14px;
  }

  .flow-chart {
    width: calc(100% + 12px);
    margin-left: -12px;
  }

  .weather-chart-heading {
    display: block;
  }

  .weather-legend {
    margin-top: 8px;
  }

  .report-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-field input[type="date"] {
    padding-inline: 0;
  }

  .report-field-wide {
    grid-column: auto;
  }

  .flow-input-row {
    grid-template-columns: 1fr;
  }

  .latest-reading-button {
    justify-self: start;
  }

  .field-help-row {
    display: grid;
  }

  .community-feed-heading {
    display: grid;
  }

  .feed-sort {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .wave-header {
    grid-template-columns: minmax(0, 1fr) 110px;
    column-gap: 8px;
  }

  .turtle-character {
    width: 110px;
    height: 88px;
    transform: translateY(21px) rotate(-1.5deg);
  }

  .title-row {
    flex-wrap: nowrap;
    gap: 6px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .live-badge {
    padding: 0 7px;
    font-size: 0.58rem;
  }

  .chart-history-meta,
  .chart-latest-meta {
    gap: 4px;
    font-size: 0.62rem;
  }

  .legend-item {
    gap: 4px;
  }

  .legend-line {
    width: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
