:root {
  color-scheme: light;
  --ink: #12212b;
  --muted: #60717c;
  --line: rgba(18, 33, 43, 0.13);
  --paper: #f7f8f4;
  --white: #ffffff;
  --ocean: #126d8f;
  --blue: #2f8ec8;
  --green: #5e946d;
  --coral: #c95d4b;
  --gold: #d9a449;
  --shadow: 0 24px 70px rgba(21, 39, 50, 0.18);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

button,
a {
  font: inherit;
}

.site-shell {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(28, 45, 56, 0.16);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: max(18px, env(safe-area-inset-left));
  padding: 10px 12px 10px 16px;
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  top: 18px;
  z-index: 30;
  backdrop-filter: blur(18px);
}

.brand,
.site-shell nav,
.admin-link {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--ink);
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: var(--white);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  letter-spacing: 0;
  place-items: center;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.site-shell nav {
  gap: 22px;
}

.site-shell nav a,
.admin-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

.admin-link {
  background: var(--ink);
  border-radius: 999px;
  color: var(--white);
  min-height: 40px;
  padding: 0 18px;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-media {
  background-image: var(--hero-image, url("/assets/hero-summer.png"));
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(247, 248, 244, 0.96) 0%, rgba(247, 248, 244, 0.78) 38%, rgba(247, 248, 244, 0.2) 72%),
    linear-gradient(0deg, rgba(247, 248, 244, 1) 0%, rgba(247, 248, 244, 0) 25%);
  inset: 0;
  position: absolute;
}

.hero-content {
  display: grid;
  gap: 24px;
  max-width: 780px;
  padding: 180px 7vw 80px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.window-label {
  color: var(--coral);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-block: 0;
}

h1 {
  font-size: clamp(48px, 7vw, 92px);
  letter-spacing: 0;
  line-height: 0.92;
  max-width: 760px;
}

.hero-summary {
  color: #334752;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  max-width: 680px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action,
.season-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
}

.primary-action {
  background: var(--ink);
  color: var(--white);
}

.secondary-action,
.season-chip {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.season-chip {
  color: var(--muted);
}

.season-chip b {
  color: var(--ocean);
  margin-left: 5px;
}

.hero-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
}

.hero-grid article {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  box-shadow: 0 12px 38px rgba(40, 55, 65, 0.12);
  min-height: 132px;
  padding: 20px;
  backdrop-filter: blur(14px);
}

.hero-grid span,
.hero-grid small {
  color: var(--muted);
  display: block;
}

.hero-grid strong {
  display: block;
  font-size: 48px;
  line-height: 1;
  margin: 12px 0 10px;
}

.status-strip {
  align-items: center;
  background: rgba(18, 33, 43, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 800px;
  padding: 10px;
  backdrop-filter: blur(16px);
}

.status-strip span {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 13px;
}

.status-strip b {
  color: var(--white);
  margin-right: 5px;
}

.stream {
  display: grid;
  gap: 22px;
  margin-inline: auto;
  max-width: 1180px;
  padding: 60px 24px 110px;
}

.latest-update {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(24, 43, 55, 0.08);
  color: var(--ink);
  display: grid;
  gap: clamp(20px, 4vw, 42px);
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  padding: clamp(20px, 4vw, 34px);
}

.latest-update h2 {
  font-size: clamp(28px, 4.7vw, 56px);
  line-height: 1;
  max-width: 640px;
}

.latest-update-copy {
  align-self: center;
  display: grid;
  gap: 18px;
}

.latest-update-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
}

.text-action {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  justify-self: start;
  min-height: 42px;
  padding: 0 18px;
}

.text-action:hover,
.text-action:focus-visible {
  outline: 3px solid rgba(18, 109, 143, 0.18);
}

.latest-update-media {
  aspect-ratio: 16 / 10;
  background: #e8f0ed;
  border: 1px solid rgba(18, 33, 43, 0.1);
  border-radius: var(--radius);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.latest-update-media img,
.latest-update-media video {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.latest-update-overlay {
  align-content: end;
  background: linear-gradient(180deg, rgba(247, 248, 244, 0.02) 0%, rgba(247, 248, 244, 0.12) 44%, rgba(247, 248, 244, 0.36) 100%);
  display: grid;
  gap: 10px;
  inset: 0;
  justify-items: start;
  margin: 0;
  padding: clamp(20px, 4vw, 34px);
  position: absolute;
}

.latest-update-overlay .eyebrow,
.latest-update-overlay h2 {
  background: rgba(247, 248, 244, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(18, 33, 43, 0.12);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.latest-update-overlay .eyebrow {
  border-radius: 999px;
  padding: 8px 11px;
}

.latest-update-overlay h2 {
  border-radius: var(--radius);
  padding: 12px 14px 14px;
}

.weather-window {
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(24, 43, 55, 0.09);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  min-height: 360px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.weather-window:hover,
.weather-window:focus-visible {
  border-color: rgba(18, 109, 143, 0.34);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-3px);
}

.window-copy {
  align-content: end;
  display: grid;
  gap: 16px;
  min-height: 360px;
  padding: clamp(28px, 5vw, 56px);
}

.forecast-window .window-copy {
  align-content: center;
  overflow: hidden;
  position: relative;
}

.forecast-window .window-copy::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.28) 56%, rgba(255, 255, 255, 0.78) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.22) 46%, rgba(255, 255, 255, 0.5) 100%),
    url("/assets/forecast-four-seasons.png?v=beta-20260701-2") center / cover;
  content: "";
  filter: grayscale(0.12) saturate(0.92);
  inset: 0;
  opacity: 0.82;
  position: absolute;
  z-index: 0;
}

.forecast-window .window-copy::after {
  background:
    linear-gradient(90deg, rgba(248, 249, 244, 0.9) 0%, rgba(248, 249, 244, 0.78) 48%, rgba(248, 249, 244, 0.18) 100%),
    radial-gradient(circle at 28% 48%, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 58%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.forecast-window .window-copy > * {
  position: relative;
  z-index: 1;
}

.window-copy strong {
  display: block;
  font-size: clamp(32px, 5vw, 58px);
  letter-spacing: 0;
  line-height: 0.98;
  max-width: 710px;
}

.window-copy > span:not(.window-label):not(.window-meta) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  max-width: 640px;
}

.window-meta {
  align-items: center;
  background: #eef3f2;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
}

.window-meta b {
  color: var(--ink);
  margin-right: 6px;
}

.days-strip,
.radar-preview,
.station-grid,
.tide-chart,
.climate-preview,
.phone-preview {
  min-height: 360px;
}

.days-strip {
  align-content: center;
  background: #dceaf0;
  display: grid;
  gap: 14px;
  padding: 36px;
}

.days-strip span {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  display: grid;
  gap: 4px 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  justify-content: stretch;
  padding: 18px 20px;
}

.days-strip .ccw-icon {
  grid-row: span 2;
}

.days-strip b,
.days-strip i {
  font-style: normal;
}

.days-strip i {
  color: var(--ocean);
  font-size: 28px;
  font-weight: 850;
  justify-self: end;
}

.days-strip small {
  color: var(--muted);
  grid-column: 2 / -1;
  font-size: 13px;
  font-weight: 700;
}

.ccw-icon {
  background: linear-gradient(180deg, #9bd3ef, #e8f3f7);
  border: 1px solid rgba(18, 33, 43, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 -10px 22px rgba(18, 109, 143, 0.08);
  display: inline-block;
  flex: 0 0 auto;
  height: 68px;
  overflow: hidden;
  position: relative;
  width: 68px;
}

.ccw-icon-medium {
  height: 112px;
  width: 112px;
}

.ccw-icon.is-night {
  background: linear-gradient(180deg, #152433, #3f5362);
}

.ccw-icon > span {
  position: absolute;
}

.ccw-icon-layer {
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
}

.uses-image-assets .ccw-fallback-layer {
  display: none;
}

.ccw-icon-sky {
  background: #ffd45f;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 212, 95, 0.55);
  height: 31%;
  left: 19%;
  top: 18%;
  width: 31%;
}

.is-night .ccw-icon-sky {
  background: #f1f0d2;
  box-shadow: 0 0 14px rgba(241, 240, 210, 0.34);
}

.sky-cloudy .ccw-icon-sky,
.sky-fog .ccw-icon-sky {
  opacity: 0.18;
}

.sky-mostly_sunny .ccw-icon-cloud,
.sky-sunny .ccw-icon-cloud {
  opacity: 0.35;
}

.ccw-icon-cloud {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 16px 3px 0 rgba(255, 255, 255, 0.9), 31px 0 0 rgba(255, 255, 255, 0.84);
  height: 18%;
  left: 22%;
  top: 41%;
  width: 42%;
}

.ccw-icon-cloud.two {
  opacity: 0.78;
  transform: translate(-10%, 82%) scale(0.82);
}

.sky-fog .ccw-icon-cloud {
  box-shadow: 13px 6px 0 rgba(255, 255, 255, 0.65), 29px 12px 0 rgba(255, 255, 255, 0.55);
}

.ccw-icon-rain,
.ccw-icon-sleet {
  bottom: 12%;
  height: 34%;
  left: 22%;
  width: 56%;
}

.ccw-icon-rain {
  background: repeating-linear-gradient(110deg, transparent 0 7px, rgba(47, 142, 200, 0.94) 7px 10px, transparent 10px 16px);
}

.ccw-icon-sleet {
  background: repeating-linear-gradient(135deg, transparent 0 8px, rgba(134, 166, 176, 0.95) 8px 12px, transparent 12px 18px);
}

.ccw-icon-snow {
  background-image: radial-gradient(circle, #ffffff 0 2px, transparent 3px);
  background-size: 13px 13px;
  bottom: 12%;
  height: 36%;
  left: 21%;
  width: 58%;
}

.ccw-icon-lightning {
  background: #f3bf2f;
  clip-path: polygon(44% 0, 78% 0, 58% 38%, 82% 38%, 32% 100%, 45% 52%, 22% 52%);
  height: 38%;
  right: 17%;
  top: 42%;
  width: 23%;
}

.ccw-icon-wind {
  border-top: 3px solid rgba(18, 33, 43, 0.48);
  border-radius: 999px;
  bottom: 16%;
  height: 18%;
  left: 17%;
  width: 66%;
}

.ccw-icon-wind::after {
  border-top: 3px solid rgba(18, 33, 43, 0.34);
  border-radius: 999px;
  content: "";
  left: 22%;
  position: absolute;
  top: 42%;
  width: 62%;
}

.ccw-icon-temperature {
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(18, 33, 43, 0.18);
  height: 28%;
  right: 11%;
  top: 11%;
  width: 28%;
}

.ccw-icon-hot {
  background: radial-gradient(circle at 35% 35%, #fff0a8, #f36c38 70%);
}

.ccw-icon-cold {
  background: radial-gradient(circle at 35% 35%, #ffffff, #67b7e8 70%);
}

.radar-preview {
  background:
    linear-gradient(rgba(18, 33, 43, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 33, 43, 0.08) 1px, transparent 1px),
    #e8f0ed;
  background-size: 32px 32px;
  overflow: hidden;
  position: relative;
}

.radar-label {
  background: rgba(18, 33, 43, 0.82);
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
  left: 22px;
  letter-spacing: 0.08em;
  padding: 9px 12px;
  position: absolute;
  text-transform: uppercase;
  top: 22px;
  z-index: 2;
}

.radar-preview::before {
  background: rgba(18, 109, 143, 0.12);
  border: 2px solid rgba(18, 109, 143, 0.28);
  border-radius: 54% 46% 50% 52%;
  content: "";
  height: 185px;
  left: 35%;
  position: absolute;
  top: 22%;
  transform: rotate(-18deg);
  width: 125px;
}

.sweep {
  background: conic-gradient(from 10deg, rgba(47, 142, 200, 0.24), transparent 22%, transparent);
  border-radius: 50%;
  height: 380px;
  left: calc(50% - 190px);
  position: absolute;
  top: calc(50% - 190px);
  width: 380px;
}

.rain {
  border-radius: 50%;
  filter: blur(1px);
  position: absolute;
}

.rain.a {
  background: rgba(94, 148, 109, 0.72);
  height: 92px;
  right: 20%;
  top: 23%;
  width: 130px;
}

.rain.b {
  background: rgba(217, 164, 73, 0.62);
  height: 62px;
  right: 33%;
  top: 42%;
  width: 88px;
}

.rain.c {
  background: rgba(47, 142, 200, 0.72);
  bottom: 18%;
  height: 70px;
  left: 20%;
  width: 116px;
}

.station-grid {
  align-content: center;
  background: #f2f5f3;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 36px;
}

.station-grid span {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
}

.station-grid b {
  color: var(--muted);
}

.station-grid i {
  color: var(--ink);
  font-size: 44px;
  font-style: normal;
  font-weight: 850;
}

.station-grid small {
  color: var(--ocean);
  font-weight: 750;
}

.tide-chart {
  background: #0f3140;
  overflow: hidden;
  position: relative;
}

.tide-chart::before {
  background: linear-gradient(0deg, rgba(47, 142, 200, 0.28), rgba(47, 142, 200, 0));
  bottom: 0;
  content: "";
  height: 55%;
  left: 0;
  position: absolute;
  right: 0;
}

.tide-line {
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-bottom: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50% 50% 0 0;
  height: 180px;
  left: 11%;
  position: absolute;
  top: 36%;
  width: 78%;
}

.tide-dot {
  background: var(--gold);
  border: 4px solid var(--white);
  border-radius: 50%;
  height: 24px;
  position: absolute;
  width: 24px;
}

.tide-dot.high {
  left: 45%;
  top: 31%;
}

.tide-dot.low {
  bottom: 20%;
  right: 19%;
}

.climate-preview {
  align-content: center;
  background: #eef3ec;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 36px;
}

.climate-preview span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 22px;
}

.climate-preview b,
.climate-preview small {
  color: var(--muted);
}

.climate-preview i {
  color: var(--green);
  font-size: 40px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
}

.phone-preview {
  align-content: center;
  background: #e8edf0;
  display: grid;
  justify-content: center;
  padding: 36px;
}

.phone-preview::before {
  background: #101b22;
  border-radius: 34px;
  box-shadow: 0 20px 50px rgba(16, 27, 34, 0.24);
  content: "";
  grid-area: 1 / 1;
  height: 285px;
  width: 164px;
}

.phone-preview > span {
  grid-area: 1 / 1;
  justify-self: center;
  position: relative;
  z-index: 1;
}

.phone-bar {
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  height: 6px;
  margin-top: 22px;
  width: 54px;
}

.phone-card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  height: 58px;
  margin-top: 16px;
  width: 128px;
}

.phone-card.wide {
  background: #9dc7dc;
  height: 86px;
  margin-top: 48px;
}

.phone-card.pale {
  background: #e5d3a8;
}

.panel {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 40;
}

.panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.panel-backdrop {
  background: rgba(10, 22, 29, 0.52);
  inset: 0;
  position: absolute;
  backdrop-filter: blur(16px);
}

.panel-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(5, 16, 23, 0.34);
  inset: 24px;
  overflow: auto;
  position: absolute;
}

.panel-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-size: 28px;
  height: 46px;
  line-height: 1;
  place-items: center;
  pointer-events: auto;
  position: fixed;
  right: 42px;
  top: 42px;
  width: 46px;
  z-index: 90;
}

.panel-content {
  display: grid;
  gap: 28px;
  padding: 42px clamp(20px, 5vw, 72px) 72px;
}

.media-viewer {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  visibility: hidden;
  z-index: 80;
}

.media-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.media-viewer-backdrop {
  background: rgba(18, 33, 43, 0.72);
  border: 0;
  cursor: zoom-out;
  inset: 0;
  padding: 0;
  position: absolute;
}

.media-viewer-frame {
  display: grid;
  inset: clamp(16px, 4vw, 44px);
  margin: 0;
  place-items: center;
  pointer-events: none;
  position: absolute;
}

.media-viewer-content {
  display: grid;
  max-height: 100%;
  max-width: 100%;
  place-items: center;
}

.media-viewer-content img,
.media-viewer-content video {
  background: #eef3f2;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  display: block;
  max-height: calc(100vh - clamp(32px, 8vw, 88px));
  max-width: calc(100vw - clamp(32px, 8vw, 88px));
  object-fit: contain;
  pointer-events: auto;
}

.media-viewer-close {
  background: rgba(247, 248, 244, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  height: 48px;
  line-height: 1;
  pointer-events: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 48px;
  z-index: 1;
}

.panel-hero {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.panel-hero h2 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.95;
}

.panel-hero p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
  max-width: 780px;
}

.radar-panel-hero {
  align-items: end;
  gap: 20px;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  max-width: none;
}

.radar-panel-hero h2 {
  font-size: clamp(34px, 5vw, 62px);
  max-width: 900px;
}

.radar-panel-hero p:not(.eyebrow) {
  font-size: 17px;
  margin-bottom: 4px;
  max-width: 560px;
}

.panel-article {
  display: grid;
  gap: clamp(22px, 4vw, 44px);
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
}

.panel-article-media {
  align-self: start;
  aspect-ratio: 16 / 11;
  background: #eef3f2;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  padding: 10px;
  position: relative;
}

.panel-article-media img,
.panel-article-media video {
  border-radius: calc(var(--radius) - 3px);
  display: block;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.media-expand-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: grid;
  height: 100%;
  justify-items: center;
  padding: 0;
  position: relative;
  width: 100%;
}

.media-expand-button span {
  background: rgba(247, 248, 244, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  bottom: 16px;
  box-shadow: 0 12px 28px rgba(18, 33, 43, 0.14);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  padding: 8px 11px;
  position: absolute;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.media-expand-button:hover span,
.media-expand-button:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.media-expand-button:focus-visible {
  outline: 3px solid rgba(18, 109, 143, 0.22);
  outline-offset: 4px;
}

.panel-article-copy {
  align-self: center;
  display: grid;
  gap: 16px;
}

.panel-article-copy h2 {
  font-size: clamp(34px, 5.6vw, 74px);
  line-height: 0.95;
}

.panel-article-copy p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

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

.detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 170px;
  padding: 24px;
}

.detail-card b {
  display: block;
  font-size: 15px;
  margin-bottom: 18px;
}

.detail-card span {
  color: var(--muted);
  line-height: 1.45;
}

.temp-graph-card {
  align-content: stretch;
  display: grid;
  gap: 18px;
  min-height: 230px;
}

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

.temp-graph-heading b {
  margin: 0;
}

.temp-graph-heading strong {
  color: var(--ink);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 0.9;
}

.temp-sparkline {
  background:
    linear-gradient(rgba(18, 33, 43, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 33, 43, 0.05) 1px, transparent 1px),
    #f8faf8;
  background-size: 100% 33.33%, 25% 100%;
  border: 1px solid rgba(18, 33, 43, 0.08);
  border-radius: 8px;
  display: block;
  min-height: 108px;
  overflow: hidden;
  width: 100%;
}

.temp-sparkline.empty {
  align-content: center;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  padding: 18px;
  text-align: center;
}

.temp-sparkline-fill {
  fill: rgba(18, 109, 143, 0.12);
}

.temp-sparkline-grid {
  stroke: rgba(18, 33, 43, 0.08);
  stroke-width: 1;
}

.temp-sparkline-axis {
  stroke: rgba(18, 33, 43, 0.18);
  stroke-width: 1.2;
}

.temp-sparkline-x-label,
.temp-sparkline-y-label {
  fill: rgba(18, 33, 43, 0.56);
  font-size: 10px;
  font-weight: 800;
}

.temp-sparkline-x-label.end {
  text-anchor: end;
}

.temp-sparkline-line {
  fill: none;
  stroke: #126d8f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.temp-sparkline-dot {
  fill: #f7f8f4;
  stroke: #126d8f;
  stroke-width: 2.5;
}

.tide-panel-hero {
  background:
    linear-gradient(135deg, rgba(15, 49, 64, 0.94), rgba(18, 109, 143, 0.78)),
    radial-gradient(circle at 80% 20%, rgba(229, 211, 168, 0.28), transparent 34%);
  color: var(--white);
}

.tide-panel-hero .eyebrow,
.tide-panel-hero p {
  color: rgba(255, 255, 255, 0.74);
}

.tide-dashboard {
  display: grid;
  gap: 18px;
}

.tide-dashboard-head {
  align-items: end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  padding: 24px;
}

.tide-dashboard-head h3 {
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 0.98;
  margin: 0 0 10px;
}

.tide-dashboard-head > div > span {
  color: var(--muted);
  display: block;
  font-size: 17px;
  line-height: 1.45;
}

.tide-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.tide-controls label {
  display: grid;
  gap: 8px;
}

.tide-controls label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.tide-controls select,
.tide-controls input {
  appearance: none;
  background: #f8faf8;
  border: 1px solid rgba(18, 33, 43, 0.14);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  min-height: 46px;
  padding: 0 12px;
  width: 100%;
}

.tide-date-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tide-source-strip {
  align-items: center;
  background: #eef3ec;
  border: 1px solid rgba(18, 33, 43, 0.08);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.tide-source-strip span {
  color: #126d8f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tide-source-strip b {
  color: var(--muted);
  font-size: 13px;
}

.tide-date-strip button {
  background: #eef3ec;
  border: 1px solid rgba(18, 33, 43, 0.08);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 12px 8px;
  text-align: left;
}

.tide-date-strip button:hover,
.tide-date-strip button:focus-visible {
  background: #dfeee7;
  outline: 2px solid rgba(18, 109, 143, 0.2);
}

.tide-date-strip b {
  font-size: 12px;
  text-transform: uppercase;
}

.tide-date-strip span {
  color: var(--muted);
  font-size: 14px;
}

.tide-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
}

.tide-curve-card,
.tide-events-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.tide-card-title {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tide-card-title b {
  font-size: 18px;
}

.tide-card-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.tide-curve {
  border: 1px solid rgba(18, 33, 43, 0.08);
  border-radius: 8px;
  display: block;
  min-height: 250px;
  width: 100%;
}

.tide-plot-bg {
  fill: #f8faf8;
}

.tide-grid-line {
  stroke: rgba(18, 33, 43, 0.12);
  stroke-width: 1;
}

.tide-grid-line.vertical {
  stroke: rgba(18, 33, 43, 0.08);
}

.tide-curve-line {
  fill: none;
  stroke: #126d8f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.tide-marker circle {
  fill: var(--white);
  stroke-width: 3.5;
}

.tide-marker.high circle {
  stroke: #126d8f;
}

.tide-marker.low circle {
  stroke: #8f6d3d;
}

.tide-y-label,
.tide-x-label,
.tide-marker text,
.tide-chart-source {
  fill: rgba(18, 33, 43, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.tide-marker text {
  fill: rgba(18, 33, 43, 0.74);
  font-size: 11px;
}

.tide-loading-label {
  fill: rgba(18, 33, 43, 0.58);
  font-size: 14px;
  font-weight: 850;
}

.tide-chart-source {
  fill: rgba(18, 109, 143, 0.74);
  font-size: 11px;
  text-transform: uppercase;
}

.tide-event-list {
  display: grid;
  gap: 10px;
}

.tide-event {
  align-items: center;
  background: #f8faf8;
  border: 1px solid rgba(18, 33, 43, 0.08);
  border-left: 5px solid #126d8f;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 0.6fr 1fr;
  padding: 13px 14px;
}

.tide-event.low {
  border-left-color: #8f6d3d;
}

.tide-event-loading {
  border-left-color: rgba(18, 33, 43, 0.2);
}

.tide-event span,
.tide-event small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.tide-event b {
  font-size: 23px;
  grid-row: span 2;
  justify-self: end;
}

.tide-event small {
  text-transform: none;
}

.almanac-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.almanac-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  min-height: 148px;
  padding: 18px;
}

.almanac-card span,
.almanac-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.almanac-card span {
  text-transform: uppercase;
}

.almanac-card b {
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 0.95;
}

.almanac-card small {
  align-self: end;
  font-weight: 700;
  line-height: 1.35;
}

.wide-tool {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 320px;
  overflow: hidden;
}

.wide-tool.radar-tool {
  background:
    linear-gradient(rgba(18, 33, 43, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 33, 43, 0.07) 1px, transparent 1px),
    #dbe8e5;
  background-size: 42px 42px;
  position: relative;
}

.forecast-tool,
.conditions-tool {
  align-content: stretch;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.forecast-tool {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.conditions-tool {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.forecast-tool > div,
.conditions-tool div {
  background: #eef3f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  min-height: 180px;
  min-width: 0;
  padding: 18px;
}

.forecast-tool > div {
  align-content: start;
  display: flex;
  flex-direction: column;
}

.forecast-tool .ccw-icon {
  aspect-ratio: 1;
  border-radius: 10px;
  display: block;
  height: auto;
  justify-self: center;
  margin-bottom: 4px;
  max-width: 100%;
  width: 100%;
}

.forecast-tool b,
.conditions-tool b {
  color: var(--muted);
}

.forecast-tool strong,
.conditions-tool strong {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.precip-risk {
  display: grid;
  gap: 5px;
  margin-top: -2px;
}

.precip-risk-title {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.1;
}

.precip-risk-bar {
  background: rgba(18, 33, 43, 0.09);
  border-radius: 999px;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 10px;
  overflow: hidden;
  padding: 2px;
}

.risk-segment {
  border-radius: 999px;
}

.precip-risk-marker-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 24px;
}

.risk-marker-cell {
  align-items: center;
  display: grid;
  justify-items: center;
}

.risk-marker {
  border-bottom: 7px solid transparent;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  height: 0;
  width: 0;
}

.risk-marker-label {
  color: var(--ink);
  font-size: 9px;
  font-weight: 850;
  line-height: 0.98;
  margin-top: 3px;
  max-width: 28px;
  text-align: center;
  white-space: nowrap;
}

.precip-risk[data-risk="very_high"] .risk-marker-label {
  white-space: normal;
}

.risk-marker-cell.is-active .risk-marker {
  border-bottom-color: var(--ink);
}

.risk-none {
  background: #d7c4a3;
}

.risk-low {
  background: #edf5df;
}

.risk-medium {
  background: #cfe8a8;
}

.risk-high {
  background: #82bd68;
}

.risk-very_high {
  background: #287a43;
}

.forecast-tool span,
.conditions-tool span,
.conditions-tool small {
  color: var(--muted);
}

.forecast-tool .forecast-card-wind {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(18, 33, 43, 0.08);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  margin-top: -2px;
  padding: 7px 9px;
}

.forecast-tool .forecast-card-wind b {
  color: var(--muted);
  font-size: inherit;
  margin-right: 4px;
}

.conditions-tool {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.radar-tool-label {
  background: rgba(18, 33, 43, 0.84);
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
  left: 24px;
  letter-spacing: 0.08em;
  padding: 10px 13px;
  position: absolute;
  text-transform: uppercase;
  top: 24px;
  z-index: 2;
}

.radar-core {
  border: 2px solid rgba(18, 109, 143, 0.34);
  border-radius: 52% 48% 54% 46%;
  height: 170px;
  left: 44%;
  position: absolute;
  top: 26%;
  transform: rotate(-17deg);
  width: 110px;
}

.radar-band {
  border-radius: 999px;
  filter: blur(1px);
  position: absolute;
}

.radar-band.one {
  background: rgba(94, 148, 109, 0.7);
  height: 86px;
  right: 18%;
  top: 25%;
  width: 160px;
}

.radar-band.two {
  background: rgba(217, 164, 73, 0.58);
  height: 58px;
  right: 31%;
  top: 45%;
  width: 110px;
}

.radar-band.three {
  background: rgba(47, 142, 200, 0.68);
  bottom: 18%;
  height: 72px;
  left: 20%;
  width: 145px;
}

.radar-live-tool {
  background: #13212a;
  color: var(--white);
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  min-height: 620px;
}

.radar-live-stage {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 62% 53%, rgba(105, 148, 126, 0.36), transparent 0 16%, rgba(38, 78, 93, 0.18) 17% 24%, transparent 25%),
    linear-gradient(135deg, #182a33 0%, #0f1a22 100%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
  min-height: 460px;
  overflow: hidden;
  position: relative;
}

.radar-live-tool.is-loading .radar-live-stage {
  align-items: center;
  display: grid;
  justify-items: center;
}

.radar-live-tool.is-loading .radar-live-stage span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 850;
  padding: 12px 16px;
}

.radar-live-stage img {
  height: 100%;
  left: 50%;
  object-fit: contain;
  opacity: 0.96;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: 61.6% 52.8%;
  transition: transform 220ms ease, opacity 180ms ease;
  width: 100%;
  z-index: 2;
}

.radar-live-tool[data-radar-view="cape"] .radar-live-stage img {
  transform: translate(-50%, -50%) scale(1.95);
}

.radar-live-tool[data-radar-view="regional"] .radar-live-stage img {
  transform: translate(-50%, -50%) scale(1.05);
}

.radar-map-bg,
.radar-map-overlay {
  height: 100%;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: 61.6% 52.8%;
  transition: transform 220ms ease;
  width: 100%;
}

.radar-map-bg {
  z-index: 1;
}

.radar-map-overlay {
  z-index: 3;
}

.radar-live-tool[data-radar-view="cape"] .radar-map-bg,
.radar-live-tool[data-radar-view="cape"] .radar-map-overlay {
  transform: translate(-50%, -50%) scale(1.95);
}

.radar-live-tool[data-radar-view="regional"] .radar-map-bg,
.radar-live-tool[data-radar-view="regional"] .radar-map-overlay {
  transform: translate(-50%, -50%) scale(1.05);
}

.radar-basemap-svg,
.radar-boundary-overlay-svg {
  display: block;
  height: 100%;
  width: 100%;
}

.radar-ocean {
  fill: #0d2430;
}

.radar-county {
  fill: rgba(88, 122, 96, 0.46);
  fill-rule: evenodd;
  stroke: rgba(228, 238, 219, 0.13);
  stroke-width: 0.45;
  vector-effect: non-scaling-stroke;
}

.radar-state-outline {
  fill: none;
  opacity: 0.74;
  stroke: rgba(255, 248, 220, 0.54);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.radar-county-outline-overlay {
  fill: none;
  opacity: 0.68;
  stroke: rgba(239, 248, 232, 0.56);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.58;
  vector-effect: non-scaling-stroke;
}

.radar-state-outline-overlay {
  fill: none;
  opacity: 0.88;
  stroke: rgba(255, 249, 224, 0.78);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.28;
  vector-effect: non-scaling-stroke;
}

.radar-alert-polygon {
  fill: rgba(255, 203, 64, 0.14);
  opacity: 0.96;
  stroke: rgba(255, 224, 102, 0.96);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.radar-alert-polygon.is-tornado {
  fill: rgba(219, 82, 255, 0.18);
  stroke: rgba(239, 145, 255, 0.98);
}

.radar-alert-polygon.is-severe {
  fill: rgba(255, 210, 64, 0.15);
  stroke: rgba(255, 232, 104, 0.98);
}

.radar-alert-polygon.is-flood,
.radar-alert-polygon.is-marine {
  fill: rgba(66, 211, 255, 0.13);
  stroke: rgba(116, 226, 255, 0.96);
}

.radar-alert-polygon.is-snow {
  fill: rgba(198, 232, 255, 0.15);
  stroke: rgba(229, 244, 255, 0.98);
}

.radar-alert-polygon.is-tropical {
  fill: rgba(255, 112, 87, 0.16);
  stroke: rgba(255, 147, 122, 0.98);
}

.radar-road-line {
  fill: none;
  stroke: rgba(245, 216, 143, 0.56);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.radar-road-label {
  fill: rgba(255, 239, 191, 0.82);
  filter: url("#radarLabelGlow");
  font-size: 12px;
  font-weight: 850;
  paint-order: stroke;
  stroke: rgba(8, 17, 22, 0.74);
  stroke-width: 3px;
}

.radar-map-label circle {
  fill: #f4d98d;
  opacity: 0.86;
  stroke: rgba(5, 15, 20, 0.72);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.radar-map-label text {
  fill: rgba(244, 247, 239, 0.88);
  filter: url("#radarLabelGlow");
  font-size: 13px;
  font-weight: 850;
  paint-order: stroke;
  stroke: rgba(5, 15, 20, 0.8);
  stroke-width: 3.5px;
}

.radar-map-label.is-secondary text {
  fill: rgba(232, 238, 228, 0.68);
  font-size: 11px;
}

.radar-live-tool[data-counties="off"] .radar-counties-layer,
.radar-live-tool[data-states="off"] .radar-states-layer,
.radar-live-tool[data-roads="off"] .radar-roads-layer,
.radar-live-tool[data-labels="off"] .radar-labels-layer,
.radar-live-tool[data-alerts="off"] .radar-alerts-layer {
  display: none;
}

.radar-map-note,
.radar-alert-note {
  background: rgba(7, 15, 20, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 850;
  left: 18px;
  padding: 8px 11px;
  position: absolute;
  top: 18px;
}

.radar-alert-note {
  left: auto;
  right: 18px;
}

.radar-control-strip {
  align-items: center;
  background: rgba(11, 21, 27, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 0.72fr) auto auto minmax(220px, 1fr);
  padding: 18px;
}

.radar-control-strip > div:first-child {
  display: grid;
  gap: 4px;
}

.radar-control-strip b {
  font-size: 26px;
  line-height: 1;
}

.radar-control-strip span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 760;
}

.radar-control-strip i {
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
}

.radar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-layer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-buttons button,
.radar-layer-buttons button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  min-height: 38px;
  padding: 0 13px;
}

.radar-buttons button:hover,
.radar-buttons button:focus-visible,
.radar-layer-buttons button:hover,
.radar-layer-buttons button:focus-visible,
.radar-layer-buttons button.is-active {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.radar-layer-buttons button.is-active {
  border-color: rgba(244, 217, 141, 0.44);
  color: #f4d98d;
}

.radar-control-strip input[type="range"] {
  accent-color: var(--gold);
  width: 100%;
}

.tides-tool {
  background: #0f3140;
  color: var(--white);
  display: grid;
  gap: 20px;
  grid-template-columns: 0.45fr 1fr;
  padding: 28px;
}

.tides-tool > div:first-child {
  align-content: center;
  display: grid;
  gap: 12px;
}

.tides-tool strong {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
}

.tides-tool span {
  color: rgba(255, 255, 255, 0.72);
}

.tide-panel-line {
  align-self: center;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-bottom: 0;
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50% 50% 0 0;
  height: 180px;
  position: relative;
}

.tide-panel-line span {
  background: var(--gold);
  border: 4px solid var(--white);
  border-radius: 50%;
  height: 24px;
  left: 48%;
  position: absolute;
  top: -14px;
  width: 24px;
}

.climate-tool {
  align-content: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 24px;
}

.climate-tool div {
  background: #eef3ec;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  min-height: 160px;
  padding: 22px;
}

.climate-tool b,
.climate-tool span {
  color: var(--muted);
}

.climate-tool strong {
  color: var(--green);
  font-size: 38px;
  line-height: 1;
}

.desk-tool {
  align-content: center;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 24px;
}

.desk-tool span {
  background: #eef3f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
  min-height: 120px;
  padding: 22px;
}

.wide-tool.app-tool {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 0.7fr 1fr;
  padding: 32px;
}

.app-device {
  background: #101b22;
  border-radius: 34px;
  height: 390px;
  justify-self: center;
  width: 220px;
}

.app-points {
  display: grid;
  gap: 14px;
}

.app-points span {
  background: #eef3f2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.app-companion {
  align-items: center;
  background: #101b22;
  border-radius: var(--radius);
  color: var(--white);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.95fr) minmax(220px, 0.55fr) minmax(260px, 0.9fr);
  padding: clamp(28px, 5vw, 56px);
}

.app-companion h2 {
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1;
  max-width: 680px;
}

.app-phone-preview {
  background:
    radial-gradient(circle at 50% 18%, rgba(47, 142, 200, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  justify-self: center;
  min-height: 330px;
  width: min(100%, 270px);
}

.app-phone-preview::before {
  height: 260px;
  width: 150px;
}

.app-phone-preview .phone-card {
  width: 118px;
}

.app-phone-preview .phone-card.wide {
  height: 78px;
}

.app-companion-grid {
  display: grid;
  gap: 14px;
}

.app-companion-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 20px;
}

.app-companion-grid b {
  font-size: 15px;
}

.app-companion-grid span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

body.panel-lock,
body.media-viewer-lock {
  overflow: hidden;
}

@media (max-width: 820px) {
  .site-shell {
    gap: 10px;
    padding-left: 12px;
  }

  .brand small,
  .site-shell nav {
    display: none;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(247, 248, 244, 1) 0%, rgba(247, 248, 244, 0.86) 45%, rgba(247, 248, 244, 0.32) 100%);
  }

  .hero-content {
    padding: 132px 22px 58px;
  }

  .hero-grid,
  .latest-update,
  .panel-article,
  .radar-panel-hero,
  .weather-window,
  .detail-grid,
  .forecast-tool,
  .conditions-tool,
  .tides-tool,
  .climate-tool,
  .desk-tool,
  .wide-tool.app-tool,
  .app-companion {
    grid-template-columns: 1fr;
  }

  .hero-grid article {
    min-height: 112px;
  }

  .stream {
    padding-inline: 14px;
  }

  .window-copy {
    min-height: 300px;
    padding: 28px;
  }

  .forecast-window .window-copy::before {
    opacity: 0.52;
  }

  .days-strip,
  .radar-preview,
  .station-grid,
  .tide-chart,
  .climate-preview,
  .phone-preview {
    min-height: 250px;
  }

  .panel-card {
    inset: 10px;
  }

  .panel-close {
    right: 22px;
    top: 22px;
  }

  .panel-content {
    padding-top: 28px;
  }

  .tide-dashboard-head,
  .tide-layout,
  .radar-control-strip {
    grid-template-columns: 1fr;
  }

  .tide-controls {
    grid-template-columns: 1fr;
  }

  .tide-date-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .radar-live-tool {
    min-height: 540px;
  }

  .radar-live-stage {
    min-height: 360px;
  }

  .radar-live-tool[data-radar-view="cape"] .radar-live-stage img {
    transform: translate(-50%, -50%) scale(2.35);
  }
}

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