:root {
  --paper: #F6F2EA;
  --card: #FFFFFF;
  --card-soft: #FBF9F5;
  --chip: #F1EBE0;
  --chip-active: #EDE6DA;
  --map-sea: #EEF3F2;

  --ink: #13262B;
  --ink-2: #3A4B50;
  --muted: #5A686C;
  --faint: #8A969A;
  --chev: #9AA5A7;

  --line: #E4DCCD;
  --line-soft: #EFE8DC;
  --line-strong: #D6CCBB;

  --teal-900: #0E4A56;
  --teal-700: #1A6B7C;
  --teal-500: #4F97A3;
  --teal-300: #A9CBD0;
  --teal-100: #DCE9EA;
  --coral: #C4562B;
  --rust: #8A3312;
  --cream: #F4EFE6;

  --footer: #13262B;
  --footer-text: #AEBABC;
  --footer-label: #8E9C9F;
  --footer-line: #2B3C40;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5.5vw, 80px);
  --band-y: clamp(40px, 5.5vw, 80px);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
a { color: var(--teal-900); }
a:hover { color: var(--coral); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 16px; top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.stack-10 { display: flex; flex-direction: column; gap: 10px; }
.stack-18 { display: flex; flex-direction: column; gap: 18px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.stack-36 { display: flex; flex-direction: column; gap: 36px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.center-self { align-self: center; }
.teal { color: var(--teal-900); }

.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 99px; background: var(--teal-500); }
.dot-coral { background: var(--coral); }
.dot-deep { background: var(--teal-900); }
.dot-mid { background: var(--teal-500); }
.dot-shallow { background: var(--teal-300); }

.fineprint { font-size: 13px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-xs { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn-sm { height: 40px; padding: 0 14px 0 16px; font-size: 14px; gap: 6px; }
.btn-md { height: 48px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--teal-900); color: #fff; }
.btn-outline { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { color: var(--cream); border-color: #4F8791; font-size: 15px; }
.btn-ghost-light:hover { background: rgba(244, 239, 230, 0.08); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--teal-900); font-weight: 700; font-size: 15px; }
.btn-cream:hover { background: #fff; color: var(--teal-900); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: 72px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 32px;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { justify-self: start; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.primary-nav { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.primary-nav a { text-decoration: none; color: var(--ink-2); padding: 10px 14px; border-radius: 8px; }
.primary-nav a:hover { color: var(--ink); background: var(--chip); }
.primary-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--chip-active); }
.primary-nav .nav-only-menu { display: none; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: var(--chip); color: var(--ink); }
.header-divider { width: 1px; height: 20px; background: var(--line-strong); margin: 0 10px; }
.header-link { height: 40px; display: inline-flex; align-items: center; padding: 0 12px; text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.header-actions .btn-sm { margin-left: 4px; }
.menu-toggle { display: none; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.card-head { padding: 18px 24px 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card-title { font-size: 15px; font-weight: 600; }

.stat-row { display: grid; border-top: 1px solid var(--line-soft); }
.stat-row-4 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 0.85fr) minmax(0, 0.85fr); }
.stat-row > div { padding: 14px 20px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line-soft); }
.stat-row > div:last-child { border-right: 0; }
.stat-row dt, .stat-grid dt { font-size: 12px; color: var(--muted); }
.stat-row dd { font-size: 14px; font-weight: 500; }

/* Hero */
.hero {
  padding-top: 56px; padding-bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 32px; align-items: start;
}
.hero > * { transition: opacity 0.2s ease; }
.hero.is-loading > * { opacity: 0.55; }
.hero-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-main > .fineprint { margin-top: -14px; }
.hero-copy { display: flex; flex-direction: column; gap: 14px; }
.hero-kicker { font-size: 15px; font-weight: 600; letter-spacing: 0.005em; color: var(--muted); line-height: 1.45; }
.hero-picker { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.beach-select {
  position: relative; display: inline-flex; align-items: center;
  height: 40px; border: 1px solid var(--line-strong); background: var(--card); border-radius: 10px;
}
.beach-select:hover { border-color: var(--ink); }
.beach-select:focus-within { outline: 2px solid var(--coral); outline-offset: 2px; }
.beach-select select {
  appearance: none; -webkit-appearance: none;
  height: 100%; border: 0; background: transparent;
  padding: 0 36px 0 37px; font-size: 15px; font-weight: 600; color: var(--ink);
  cursor: pointer; max-width: 78vw; text-overflow: ellipsis;
}
.beach-select select:focus { outline: none; }
.beach-select-pin { position: absolute; left: 14px; color: var(--teal-900); pointer-events: none; }
.beach-select-chevron { position: absolute; right: 12px; pointer-events: none; }
.hero-updated { font-size: 14px; color: var(--muted); }
.hero-heading {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 4.5vw, 64px); line-height: 1.02; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-lede { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 700px; }

.tide-now { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.tide-chart { padding: 0 12px; }
.tide-chart svg { display: block; width: 100%; height: auto; max-height: 220px; }
.tide-chart text { font-family: var(--sans); }

.weather-card { display: flex; flex-direction: column; }
.weather-now { padding: 24px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line-soft); }
.weather-icon { width: 52px; height: 52px; flex: none; color: var(--coral); }
.weather-icon svg { width: 100%; height: 100%; }
.weather-now-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.weather-temp-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.weather-temp { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; }
.weather-sky { font-size: 17px; font-weight: 600; }
.weather-range { font-size: 14px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid > div {
  padding: 16px 24px; display: flex; flex-direction: column; gap: 3px;
  border-bottom: 1px solid var(--line-soft);
}
.stat-grid > div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.stat-grid dd { font-size: 16px; font-weight: 600; }
.stat-grid dd.is-alert { color: var(--rust); }
.weather-foot { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; }

/* Bands + section heads */
.band { padding: var(--band-y) 0; }
.band-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; }
.section-intro { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.section-intro.narrow { max-width: 620px; }
.section-intro p, .section-aside { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.section-aside { font-size: 16px; max-width: 420px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust); }
.band h2, .cta-panel h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(28px, 3.1vw, 44px); line-height: 1.06; letter-spacing: -0.02em;
  text-wrap: balance;
}
.band h2.h2-sm { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.1; }

/* Segmented controls */
.segmented-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.segmented { display: flex; background: var(--chip); border-radius: 10px; padding: 3px; }
.segmented button {
  height: 38px; border: 0; border-radius: 8px; padding: 0 16px;
  background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(19, 38, 43, 0.12); }

/* Coast map + table */
.coast-grid { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 40px; align-items: start; }
.map-card {
  background: var(--map-sea); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: 96px;
}
.map-card-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fl-map { width: 100%; height: auto; display: block; }
.fl-map text { font-family: var(--sans); }
.map-sea-labels { font-size: 9px; letter-spacing: 1.5px; fill: #7FA0A4; }
.map-pin { cursor: pointer; }
.map-pin circle { transition: r 0.15s ease; }
.map-pin:hover circle.pin-dot, .map-pin:focus-visible circle.pin-dot { r: 7.5; }
.map-pin:focus { outline: none; }
.map-pin:focus-visible circle.pin-dot { stroke: var(--coral); }
.map-label { font-size: 9px; font-weight: 500; fill: var(--ink-2); pointer-events: none; }
.map-label-selected { font-weight: 600; fill: #fff; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 9px; height: 9px; }

.beach-table { display: flex; flex-direction: column; min-width: 0; }
.beach-table-head, .beach-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 90px minmax(0, 170px) 104px 16px;
  gap: 16px; align-items: center;
}
.beach-table-head { padding: 0 4px 12px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.beach-rows > li { border-bottom: 1px solid var(--line-soft); }
.beach-rows .row-empty { padding: 24px 4px; color: var(--muted); font-size: 15px; }
.beach-row {
  width: 100%; min-height: 60px; padding: 8px 4px;
  border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink);
}
.beach-row:hover { background: var(--card-soft); }
.beach-row[aria-current="true"] { background: var(--chip); box-shadow: inset 3px 0 0 var(--coral); }
.row-beach { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-name { font-size: 16px; font-weight: 600; }
.row-meta { font-size: 13px; color: var(--muted); }
.row-alert { color: var(--rust); }
.row-low { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.row-ft { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 14px; }
.row-wx, .row-score { font-size: 14px; color: var(--ink-2); }
.row-score b { font-family: var(--mono); font-weight: 500; color: var(--ink); margin-right: 6px; }
.row-chev { width: 16px; height: 16px; color: var(--chev); }
.beach-table > .fineprint { margin-top: 14px; padding: 0 4px; }

/* Week */
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.day-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.day-card.is-today { border: 1.5px solid var(--ink); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.day-name { font-weight: 700; font-size: 15px; }
.day-date { font-size: 13px; color: var(--muted); }
.day-low { display: flex; flex-direction: column; gap: 2px; }
.day-low-label { font-size: 12px; color: var(--muted); }
.day-time { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; font-weight: 500; white-space: nowrap; }
.bar { display: block; height: 6px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 6px; background: var(--teal-700); border-radius: 99px; }
.day-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; color: var(--muted); }
.day-foot > span { white-space: nowrap; }
.day-ft { font-family: var(--mono); color: var(--ink); }
.week-grid .day-skeleton { min-height: 170px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; opacity: 0.6; }

/* Regions */
.beach-search { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; position: relative; }
.beach-search label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.beach-search input, .contact-form input, .contact-form textarea {
  width: 300px; max-width: 100%; height: 48px;
  border: 1px solid var(--line-strong); background: var(--card); border-radius: 10px;
  padding: 0 14px; font-size: 16px; color: var(--ink);
}
.beach-search input:focus, .contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
.search-status { position: absolute; top: 100%; left: 0; margin-top: 6px; font-size: 13px; color: var(--rust); }
.region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.region-col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.region-col-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.region-col-head span { font-size: 13px; color: var(--muted); }
.region-list > li { border-bottom: 1px solid var(--line-soft); }
.region-row {
  width: 100%; min-height: 64px; padding: 8px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border: 0; background: transparent; text-align: left; color: var(--ink);
}
button.region-row { cursor: pointer; }
button.region-row:hover .region-name { color: var(--teal-900); text-decoration: underline; text-underline-offset: 3px; }
.region-text { display: flex; flex-direction: column; gap: 2px; }
.region-name { font-size: 16px; font-weight: 600; }
.region-sub { font-size: 13px; color: var(--muted); }
.region-low { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.region-low.is-empty { color: var(--faint); }
.region-low svg { color: var(--chev); }
.region-note { margin-top: 20px; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Shells */
.shells-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.rarity-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; border-radius: 14px; }
.rarity-card .card-title { font-size: 13px; }
.rarity-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--line-soft); }
.rarity-bar > span { display: block; min-width: 4px; }
.rarity-legend { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; font-size: 12px; color: var(--muted); }
.rarity-legend b { color: var(--ink); font-weight: 600; }
.r1 { background: var(--teal-100); }
.r2 { background: var(--teal-300); }
.r3 { background: var(--teal-500); }
.r4 { background: var(--teal-700); }
.r5 { background: var(--teal-900); }
.shell-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.shell-card {
  height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.shell-card:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-2px); }
.shell-art { height: 196px; background: var(--chip); display: flex; align-items: center; justify-content: center; color: #B3A68F; }
.shell-art img { width: 100%; height: 100%; object-fit: cover; }
.shell-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.shell-name { font-size: 17px; font-weight: 600; }
.shell-sci { font-size: 14px; font-style: italic; color: var(--muted); }
.shell-meta { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.pips { display: inline-flex; align-items: center; gap: 8px; }
.pips > span { display: flex; gap: 3px; }
.pips i { width: 6px; height: 6px; border-radius: 99px; background: #E0D8CA; }
.pips i.on { background: var(--teal-700); }

/* Reports + sources */
.reports-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px 64px; }
.report-empty {
  border: 1px solid var(--line); background: var(--card-soft); border-radius: 14px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.report-empty strong { font-size: 16px; }
.report-empty p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.report-empty .btn { margin-top: 4px; }
.report-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.report {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.report-photo { width: 72px; height: 72px; border-radius: 10px; background: var(--chip); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #B3A68F; }
.report-photo img { width: 100%; height: 100%; object-fit: cover; }
.report-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.report-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.report-beach { font-weight: 600; }
.report-when { font-size: 13px; color: var(--muted); white-space: nowrap; }
.report-kind { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--teal-100); color: var(--teal-900); }
.report-kind.is-warn { background: #F6E3D9; color: var(--rust); }
.report-note { font-size: 14px; color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.sources > div { padding: 20px 20px 20px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line-soft); }
.sources > div:nth-child(even) { padding: 20px 0 20px 20px; }
.sources > div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.sources > div:nth-child(n+3) { border-bottom: 0; }
.sources dt { font-weight: 600; }
.sources dd { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* FAQ + contact */
.split-1-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; min-height: 64px; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 18px; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--teal-900); }
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--muted);
  transition: transform 0.2s ease;
}
.faq-icon::after { transform: rotate(90deg); }
details[open] .faq-icon::after { transform: rotate(0deg); }
.faq-list details p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 760px; }

.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-content: start; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.contact-form input, .contact-form textarea { width: 100%; }
.contact-form textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.contact-form .span-2 { grid-column: 1 / -1; }
.contact-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-form .status { font-size: 14px; color: var(--ink-2); }
.honeypot { position: absolute; left: -9999px; }

/* CTA */
.cta-wrap { padding-top: var(--band-y); padding-bottom: var(--band-y); }
.cta-panel {
  background: var(--teal-900); color: var(--cream); border-radius: 20px;
  padding: clamp(24px, 3.5vw, 48px) clamp(24px, 4vw, 56px);
  display: flex; justify-content: space-between; align-items: center; gap: 24px 48px;
}
.cta-panel h2 { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.08; }
.cta-panel p { font-size: 17px; color: #C4DADD; max-width: 620px; line-height: 1.5; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: var(--footer); color: var(--footer-text);
  padding: 64px 0 40px; font-size: 14px; line-height: 1.6;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 0.8fr); gap: 40px 56px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { max-width: 340px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 21px; color: var(--cream); }
.footer-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--footer-label); }
.footer-beaches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px 48px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--footer-line); font-size: 13px;
}
.footer-bottom p { max-width: 860px; }
.footer-bottom > span { flex-shrink: 0; }

/* ≤ 1200: tighten desktop */
@media (max-width: 1200px) {
  .primary-nav a { padding: 10px 10px; }
  .header-divider, .header-link { display: none; }
  .coast-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 32px; }
  .beach-table-head, .beach-row { grid-template-columns: minmax(0, 1fr) 92px 84px minmax(0, 150px) 16px; }
  .beach-table-head > span:nth-child(5), .row-score { display: none; }
  .week-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shell-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row .stat-sep { display: none; }
  .stat-row .stat-ft { display: block; font-size: 13px; color: var(--muted); }
}

/* ≤ 1024: tablet — stack the hero and coast */
@media (max-width: 1024px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; height: 64px; gap: 12px; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn-sm { display: none; }
  .primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(19, 38, 43, 0.08);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .primary-nav a[aria-current="page"] { background: transparent; }
  .primary-nav .nav-only-menu { display: block; }
  .primary-nav .nav-only-menu:last-child { border-bottom: 0; color: var(--teal-900); font-weight: 600; }

  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 48px; gap: 24px; }
  .coast-grid { grid-template-columns: minmax(0, 1fr); }
  .map-card { position: static; max-width: 560px; }
  .shells-head, .reports-grid, .split-1-2 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
}

/* ≤ 720: phone — follows the mobile board */
@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 56px; padding-right: 8px; }
  .brand { gap: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 19px; }
  .icon-btn { width: 44px; height: 44px; color: var(--ink); }

  .hero { padding-top: 28px; padding-bottom: 36px; gap: 20px; }
  .hero-main { gap: 20px; }
  .hero-kicker { font-size: 13px; letter-spacing: 0.01em; }
  .hero-picker { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-updated { font-size: 13px; }
  .hero-heading { line-height: 1.06; letter-spacing: -0.02em; }
  .card-head { padding: 16px 16px 8px; }
  .card-title { font-size: 13px; }
  .tide-now { font-size: 13px; gap: 6px; }
  .tide-chart { padding: 0; }
  .stat-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row > div { padding: 12px 16px; }
  .stat-row > div:nth-child(2) { border-right: 0; }
  .stat-row > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }

  .weather-now { padding: 16px; gap: 14px; }
  .weather-icon { width: 40px; height: 40px; }
  .weather-temp { font-size: 34px; }
  .weather-sky { font-size: 16px; }
  .weather-range { font-size: 13px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid > div { padding: 12px 16px; }
  .stat-grid dd { font-size: 15px; }
  .weather-foot { padding: 16px; }

  .eyebrow { font-size: 11px; }
  .section-intro { gap: 6px; }
  .section-intro p, .section-aside { font-size: 15px; }
  .section-head { gap: 18px; }
  .stack-36, .stack-32 { gap: 20px; }
  .segmented-row { width: 100%; }
  .segmented { flex: 1 1 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .segmented button { padding: 0 8px; }

  .map-card { padding: 14px; }
  .beach-table-head { display: none; }
  .beach-rows { border-top: 1px solid var(--line); }
  .beach-row {
    grid-template-columns: minmax(0, 1fr) auto 16px;
    grid-template-areas: "beach low chev" "beach ft chev";
    gap: 3px 12px; min-height: 64px; padding: 10px 0;
  }
  .beach-row[aria-current="true"] { padding-left: 10px; }
  .row-beach { grid-area: beach; }
  .row-low { grid-area: low; justify-self: end; }
  .row-ft { grid-area: ft; justify-self: end; font-family: var(--sans); font-size: 13px; color: var(--muted); gap: 6px; }
  .row-ft .dot { width: 7px; height: 7px; }
  .row-wx { display: none; }
  .row-chev { grid-area: chev; }

  /* Week collapses into rows inside one card */
  .week-grid {
    grid-template-columns: minmax(0, 1fr); gap: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  }
  .day-card {
    display: grid; grid-template-columns: 52px 84px minmax(0, 1fr) 62px;
    align-items: center; gap: 10px;
    height: 48px; padding: 0 16px;
    border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0;
  }
  .day-card:last-child { border-bottom: 0; }
  .day-card.is-today { border: 0; border-bottom: 1px solid var(--line-soft); background: var(--card-soft); }
  .day-head, .day-low, .day-foot { display: contents; }
  .day-name { font-size: 15px; font-weight: 500; }
  .is-today .day-name { font-weight: 700; }
  .day-date, .day-low-label, .day-moon { display: none; }
  .day-time { font-family: var(--mono); font-size: 14px; }
  .bar { grid-column: 3; grid-row: 1; }
  .day-ft { grid-column: 4; grid-row: 1; text-align: right; font-size: 13px; color: var(--muted); }
  .week-grid .day-skeleton { min-height: 48px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line-soft); }

  .beach-search { width: 100%; }
  .beach-search label { flex: 1 1 100%; }
  .beach-search input { width: 100%; }
  .beach-search .btn { flex: 1 1 100%; }
  .region-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }

  .rarity-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shell-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shell-card { border: 0; border-radius: 0; background: transparent; gap: 10px; }
  .shell-card:hover { transform: none; }
  .shell-art { height: 150px; border-radius: 12px; }
  .shell-body { padding: 0; }
  .shell-name { font-size: 15px; }
  .shell-sci, .shell-size { display: none; }
  .shell-meta { margin-top: 0; }
  .center-self { align-self: stretch; }

  .sources { grid-template-columns: minmax(0, 1fr); }
  .sources > div, .sources > div:nth-child(even) { padding: 16px 0; border-right: 0; }
  .sources > div:nth-child(odd) { border-right: 0; }
  .sources > div:nth-child(3) { border-bottom: 1px solid var(--line-soft); }

  .faq-list summary { min-height: 56px; padding: 14px 0; gap: 16px; font-size: 16px; }
  .faq-list details p { margin-bottom: 16px; font-size: 15px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }

  .cta-wrap { padding-top: 0; padding-bottom: 40px; }
  .cta-panel { border-radius: 16px; gap: 14px; }
  .cta-panel p { font-size: 15px; }
  .cta-actions { width: 100%; flex-direction: column-reverse; }
  .cta-actions .btn { width: 100%; height: 48px; border-radius: 10px; }

  .site-footer { padding: 32px 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-beaches { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; }
  .footer-bottom { flex-direction: column; margin-top: 24px; padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
