:root {
  --ink: #102a43;
  --muted: #52667a;
  --line: #d7e2ea;
  --surface: #f3f8f8;
  --surface-strong: #e9f3f8;
  --ocean: #086b83;
  --ocean-dark: #07556a;
  --teal: #06736c;
  --seafoam: #d9f0ed;
  --sand: #f6efe3;
  --sand-strong: #eadbc4;
  --coral: #e76f51;
  --coral-dark: #bd4933;
  --sun: #e9b44c;
  --brass: #b8873f;
  --warning: #7a4b00;
  --warning-bg: #fff7df;
  --white: #fff;
  --canvas: #fbfaf7;
  --radius: 1rem;
  --shadow: 0 18px 42px rgb(16 42 67 / 10%);
}

* { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ocean); text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
a:hover { color: var(--ocean-dark); }
:where(a, button, input, summary):focus-visible { outline: 3px solid rgb(8 107 131 / 30%); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link { position: fixed; z-index: 100; top: 0.7rem; left: 0.7rem; padding: 0.65rem 0.85rem; border-radius: 0.55rem; color: var(--white); background: var(--ink); box-shadow: var(--shadow); transform: translateY(-180%); transition: transform 140ms ease; }
.skip-link:focus { color: var(--white); transform: translateY(0); }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.1rem, 7vw, 4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.15rem; }

.container { width: min(100% - 2rem, 70rem); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgb(16 42 67 / 10%); background: rgb(251 250 247 / 90%); backdrop-filter: blur(16px); }
.header-inner { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 2.65rem; height: 2.65rem; flex: 0 0 auto; color: var(--ink); filter: drop-shadow(0 6px 10px rgb(16 42 67 / 13%)); }
.brand-sun { fill: var(--coral); }
.brand-wave-light { fill: var(--seafoam); }
.brand-wave { fill: var(--ocean); }
.brand-wordmark { display: flex; align-items: baseline; gap: 0.25rem; font-size: 1.15rem; font-weight: 780; letter-spacing: -0.035em; }
.brand-wordmark strong { color: var(--coral-dark); font-weight: 850; }
.header-inner nav, .footer-inner nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.header-inner nav a, .footer-inner nav a { text-decoration: none; font-weight: 650; }
.header-inner nav a { position: relative; padding-block: 0.45rem; }
.header-inner nav a::after { content: ""; position: absolute; right: 0; bottom: 0.2rem; left: 0; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform 160ms ease; }
.header-inner nav a:hover::after { transform: scaleX(1); }
.mobile-menu-button { display: none; }
.mobile-menu-button, .mobile-menu-close { min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; padding: 0.55rem; border: 1px solid var(--line); border-radius: 0.75rem; color: var(--ink); background: var(--white); cursor: pointer; }
.mobile-menu-button:hover, .mobile-menu-close:hover { border-color: #78aeb7; color: var(--ocean-dark); background: var(--surface); }
.mobile-menu-button svg, .mobile-menu-close svg { width: 1.5rem; height: 1.5rem; }
.mobile-menu-popover { position: fixed; inset: 0.75rem 0.75rem auto auto; width: min(calc(100% - 1.5rem), 22rem); margin: 0; padding: 1rem; border: 1px solid rgb(16 42 67 / 18%); border-radius: 1.1rem; color: var(--ink); background: rgb(255 255 255 / 97%); box-shadow: 0 24px 70px rgb(16 42 67 / 25%); opacity: 0; transform: translateY(-0.55rem) scale(0.985); transition: opacity 150ms ease, transform 150ms ease, overlay 150ms allow-discrete, display 150ms allow-discrete; }
.mobile-menu-popover:popover-open { opacity: 1; transform: none; }
.mobile-menu-popover::backdrop { background: rgb(16 42 67 / 28%); backdrop-filter: blur(2px); }
.mobile-menu-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 0.25rem 0.15rem 0.9rem; border-bottom: 1px solid var(--line); }
.mobile-menu-heading .eyebrow { display: block; margin-bottom: 0.2rem; }
.mobile-menu-heading strong { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.25rem; }
.mobile-menu-popover nav { display: grid; gap: 0.3rem; padding-top: 0.65rem; }
.mobile-menu-popover nav a { display: flex; flex-direction: column; padding: 0.7rem 0.75rem; border-radius: 0.7rem; color: var(--ink); text-decoration: none; }
.mobile-menu-popover nav a:hover { color: var(--ocean-dark); background: var(--surface); }
.mobile-menu-popover nav strong { font-size: 0.95rem; }
.mobile-menu-popover nav span { color: var(--muted); font-size: 0.76rem; }
@starting-style {
  .mobile-menu-popover:popover-open { opacity: 0; transform: translateY(-0.55rem) scale(0.985); }
}

main.container { min-height: 65vh; padding-block: 2rem 5rem; }

.hero {
  padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(3rem, 9vw, 6.5rem);
  max-width: 58rem;
}
.hero h1 { max-width: 14ch; }
.hero-with-art { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); max-width: none; padding-block: clamp(2.5rem, 6vw, 5.25rem); }
.hero-with-art::before { content: ""; position: absolute; z-index: -1; top: 8%; right: calc((100vw - 100%) / -2 + 1rem); bottom: 7%; left: 44%; border-radius: 48% 0 0 48%; background: radial-gradient(circle at 70% 25%, rgb(233 180 76 / 18%), transparent 24%), linear-gradient(135deg, var(--sand), rgb(217 240 237 / 55%)); }
.hero-copy { position: relative; z-index: 1; }
.hero-art { position: relative; margin: 0; border: 1px solid rgb(16 42 67 / 12%); border-radius: 1.6rem 3.8rem 1.6rem 3.8rem; background: var(--sand); box-shadow: 0 26px 70px rgb(16 42 67 / 18%); overflow: hidden; transform: rotate(1.2deg); }
.hero-art::after { content: ""; position: absolute; inset: 0; border: 1px solid rgb(255 255 255 / 45%); border-radius: inherit; pointer-events: none; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-art figcaption { position: absolute; right: 1rem; bottom: 1rem; padding: 0.42rem 0.7rem; border: 1px solid rgb(255 255 255 / 55%); border-radius: 999px; color: var(--white); background: rgb(16 42 67 / 78%); backdrop-filter: blur(10px); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.02em; }
.hero-art figcaption span { color: var(--coral); margin-right: 0.3rem; }
.lede { color: var(--muted); font-size: clamp(1.08rem, 2.3vw, 1.35rem); max-width: 48rem; }
.eyebrow { color: var(--teal); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.65rem; }

.location-search { max-width: 42rem; margin-top: 2rem; }
.location-search label { display: block; font-weight: 750; margin-bottom: 0.45rem; }
.search-row { display: flex; gap: 0.55rem; }
.nearest-location-tool { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.7rem; margin-top: 0.8rem; font-size: 0.88rem; }
.text-button { padding: 0; border: 0; color: var(--ocean); background: transparent; font: inherit; font-weight: 750; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; cursor: pointer; }
.text-button:hover { color: var(--ocean-dark); }
.privacy-note { color: var(--muted); }
.nearest-location-status, .nearest-location-result { flex-basis: 100%; margin: 0.2rem 0 0; color: var(--muted); }
.nearest-location-result { color: var(--ink); font-weight: 650; }
input[type="search"], input[type="date"], select {
  width: 100%; min-height: 3.35rem; border: 1px solid #9db1c0; border-radius: 0.75rem;
  padding: 0.75rem 0.9rem; color: var(--ink); background: var(--white); font: inherit;
}
input[type="search"]:focus, input[type="date"]:focus, select:focus { outline: 3px solid rgb(8 107 131 / 18%); border-color: var(--ocean); }
input[type="submit"] {
  min-height: 3.35rem; border: 0; border-radius: 0.75rem; padding: 0.75rem 1.25rem;
  background: var(--coral-dark); color: var(--white); box-shadow: 0 8px 20px rgb(189 73 51 / 22%); font: inherit; font-weight: 750; cursor: pointer;
}
input[type="submit"]:hover { background: #a83f2d; }

.saved-locations { margin-top: -2rem; }
.saved-locations-panel { display: grid; grid-template-columns: minmax(15rem, 0.7fr) minmax(0, 1.3fr); align-items: center; gap: 1.5rem; padding: 1.25rem 1.4rem; border: 1px solid var(--sand-strong); border-radius: 1.2rem; background: linear-gradient(135deg, var(--sand), var(--white)); }
.saved-locations-panel[hidden] { display: none; }
.saved-locations-panel h2 { margin-bottom: 0; font-size: 1.35rem; }
.saved-locations-panel ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }
.saved-locations-panel li { display: flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.65rem; border: 1px solid var(--line); border-radius: 0.7rem; background: var(--white); }
.saved-locations-panel li a { font-weight: 750; text-decoration: none; }
.saved-locations-panel li span { color: var(--muted); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }

.page-header { position: relative; padding: 2.5rem 0 3rem; max-width: 52rem; }
.page-header.compact { padding-bottom: 1rem; }
.location-header { position: relative; margin: 1rem 0 2.5rem; padding: clamp(1.7rem, 4vw, 3rem); border: 1px solid rgb(8 107 131 / 14%); border-radius: 1.6rem 3.5rem 1.6rem 1.6rem; background: radial-gradient(circle at 92% 22%, rgb(233 180 76 / 22%) 0 4.5rem, transparent 4.6rem), linear-gradient(135deg, rgb(217 240 237 / 58%), rgb(246 239 227 / 72%)); overflow: hidden; }
.location-header::after { content: "≈"; position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: -1.4rem; color: rgb(8 107 131 / 12%); font-family: Georgia, serif; font-size: clamp(7rem, 16vw, 12rem); line-height: 1; transform: rotate(-8deg); pointer-events: none; }
.location-header > * { position: relative; z-index: 1; }
.location-header h1 { margin-bottom: 0.4rem; }
.marine-clock { width: fit-content; min-width: 19rem; display: inline-flex; align-items: center; gap: 1rem; margin: 0.7rem 0 0.35rem; padding: 0.65rem 1rem 0.65rem 0.7rem; border: 1px solid rgb(16 42 67 / 18%); border-radius: 1rem; background: rgb(255 255 255 / 78%); box-shadow: 0 8px 24px rgb(16 42 67 / 8%), inset 0 0 0 1px rgb(255 255 255 / 65%); backdrop-filter: blur(8px); }
.marine-clock-face { position: relative; width: 4.8rem; aspect-ratio: 1; flex: 0 0 auto; border: 3px solid var(--ink); outline: 2px solid rgb(184 135 63 / 72%); outline-offset: 2px; border-radius: 50%; background: radial-gradient(circle, #fffdf8 0 57%, transparent 58%), repeating-conic-gradient(from -1deg, var(--ink) 0 1.4deg, transparent 1.4deg 30deg), #fffdf8; box-shadow: inset 0 0 0 3px #fffdf8, inset 0 0 0 4px rgb(16 42 67 / 15%), 0 3px 9px rgb(16 42 67 / 16%); }
.clock-number { position: absolute; z-index: 1; color: var(--ink); font-family: Georgia, serif; font-size: 0.48rem; font-weight: 800; line-height: 1; }
.clock-number-12 { top: 0.3rem; left: 50%; transform: translateX(-50%); }
.clock-number-3 { top: 50%; right: 0.35rem; transform: translateY(-50%); }
.clock-number-6 { bottom: 0.3rem; left: 50%; transform: translateX(-50%); }
.clock-number-9 { top: 50%; left: 0.35rem; transform: translateY(-50%); }
.clock-hand { position: absolute; z-index: 2; left: 50%; bottom: 50%; display: block; border-radius: 999px 999px 0 0; background: var(--ink); transform-origin: 50% 100%; }
.clock-hour-hand { width: 0.2rem; height: 25%; transform: translateX(-50%) rotate(var(--hour-angle)); }
.clock-minute-hand { width: 0.12rem; height: 34%; background: var(--ocean); transform: translateX(-50%) rotate(var(--minute-angle)); }
.clock-pin { position: absolute; z-index: 3; top: 50%; left: 50%; width: 0.48rem; aspect-ratio: 1; border: 2px solid #fffdf8; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 1px var(--ink); transform: translate(-50%, -50%); }
.marine-clock-reading { min-width: 0; }
.marine-clock-label { display: block; color: var(--teal); font-size: 0.68rem; font-weight: 820; letter-spacing: 0.09em; line-height: 1.3; text-transform: uppercase; }
.marine-clock-time-row { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.12rem; line-height: 1; }
.marine-clock-time-row time { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.65rem; font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -0.025em; }
.marine-clock-time-row span { color: var(--coral-dark); font-size: 0.78rem; font-weight: 820; letter-spacing: 0.05em; }
.marine-clock-reading small { display: block; margin-top: 0.28rem; color: var(--muted); font-size: 0.78rem; }
.marine-clock-compact { width: 100%; min-width: 0; margin: 0.8rem 0 1rem; padding: 0.55rem 0.7rem; border-radius: 0.8rem; background: var(--surface); box-shadow: none; }
.marine-clock-compact .marine-clock-face { width: 3.7rem; }
.marine-clock-compact .marine-clock-time-row time { font-size: 1.35rem; }
.marine-clock-compact .marine-clock-label { font-size: 0.62rem; }
.location-intro { max-width: 52rem; margin-top: 1.35rem; font-size: 1.05rem; }
.location-intro p:last-child { margin-bottom: 0; }
.section-summary { max-width: 52rem; color: var(--muted); margin: -0.2rem 0 1.15rem; }
.print-header { display: none; }
.location-utility-panel { display: grid; grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 1.25fr); align-items: center; gap: 1rem 1.5rem; margin: -1rem 0 2.5rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); box-shadow: 0 8px 24px rgb(16 42 67 / 6%); }
.next-tide-summary .eyebrow { margin-bottom: 0.2rem; }
.next-tide-summary strong { display: block; color: var(--ocean-dark); font-size: 1.2rem; line-height: 1.25; }
.next-tide-summary small { display: block; margin-top: 0.2rem; color: var(--muted); }
.location-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.utility-button { min-height: 2.5rem; display: inline-flex; align-items: center; padding: 0.55rem 0.75rem; border: 1px solid #afc2ce; border-radius: 0.65rem; color: var(--ink); background: var(--white); font: inherit; font-size: 0.86rem; font-weight: 720; line-height: 1.2; text-decoration: none; cursor: pointer; }
.utility-button:hover { border-color: var(--ocean); color: var(--ocean-dark); background: var(--surface); }
.utility-button-primary { border-color: var(--ocean); color: var(--white); background: var(--ocean); }
.utility-button-primary:hover { color: var(--white); background: var(--ocean-dark); }
.utility-button-primary[aria-pressed="true"] { border-color: var(--sand-strong); color: var(--ink); background: var(--sand); }
.display-preferences { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.75rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.display-preferences-label { color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.preference-group { display: inline-flex; padding: 0.18rem; border: 1px solid var(--line); border-radius: 0.65rem; background: var(--surface); }
.preference-button { min-height: 2rem; padding: 0.3rem 0.6rem; border: 0; border-radius: 0.48rem; color: var(--muted); background: transparent; font: inherit; font-size: 0.78rem; font-weight: 720; cursor: pointer; }
.preference-button:hover { color: var(--ocean-dark); }
.preference-button[aria-pressed="true"] { color: var(--white); background: var(--ocean); box-shadow: 0 3px 10px rgb(8 107 131 / 18%); }
.location-action-status { grid-column: 1 / -1; min-height: 1em; margin: -0.4rem 0 0; color: var(--muted); font-size: 0.82rem; text-align: right; }
.location-jump-nav { position: sticky; z-index: 10; top: 5.1rem; display: flex; align-items: center; gap: 0.45rem; margin: 0 0 2.5rem; padding: 0.65rem; border: 1px solid rgb(16 42 67 / 10%); border-radius: 0.8rem; background: rgb(251 250 247 / 94%); box-shadow: 0 8px 24px rgb(16 42 67 / 7%); backdrop-filter: blur(14px); overflow-x: auto; scrollbar-width: thin; }
.location-jump-nav span { flex: 0 0 auto; padding-inline: 0.35rem; color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.location-jump-nav a { flex: 0 0 auto; padding: 0.35rem 0.58rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--white); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.location-jump-nav a:hover { border-color: #78aeb7; color: var(--ocean-dark); background: var(--surface); }
#at-a-glance, #tide-brief, #today, #date-planner, #seven-day, #nearby-tides, #hourly-curve, #station-details, #tide-faqs, tbody tr[id] { scroll-margin-top: 8rem; }

.breadcrumbs { color: var(--muted); font-size: 0.88rem; overflow-x: auto; }
.breadcrumbs ol { display: flex; list-style: none; gap: 0.45rem; padding: 0; margin: 0; white-space: nowrap; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.45rem; color: #91a3b3; }

.section { margin-top: 3.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-heading h2 { margin-bottom: 0; }
.state-group { margin-top: 3rem; }

.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.8rem; list-style: none; padding: 0; margin: 0; }
.location-link {
  position: relative; min-height: 7rem; display: flex; flex-direction: column; justify-content: center; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, var(--white), rgb(217 240 237 / 24%)); box-shadow: 0 5px 20px rgb(16 42 67 / 5%); text-decoration: none; overflow: hidden; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.location-link::after { content: ""; position: absolute; top: -1.7rem; right: -1.7rem; width: 4.3rem; height: 4.3rem; border: 1rem solid rgb(231 111 81 / 10%); border-radius: 50%; }
.location-link:hover { border-color: #78aeb7; box-shadow: var(--shadow); transform: translateY(-3px) rotate(-0.2deg); }
.location-link strong { color: var(--ink); }
.location-link span { color: var(--muted); font-size: 0.9rem; }
.location-link small { color: var(--muted); font-size: 0.78rem; margin-top: 0.25rem; }
.location-link .location-card-topline { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.25rem; color: var(--teal); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.mini-wave { display: inline-block; width: 1.5rem; height: 0.42rem; border-top: 2px solid var(--coral); border-radius: 50%; transform: rotate(-4deg); }
.inline-directory { display: flex; flex-wrap: wrap; gap: 0.65rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.inline-directory a { display: inline-block; padding: 0.35rem 0.65rem; border: 1px solid var(--sand-strong); border-radius: 999px; background: rgb(255 255 255 / 70%); font-weight: 700; text-decoration: none; }
.directory-note { max-width: 52rem; }
.directory-empty-state { margin-top: 2rem; }
.quick-directory { margin-top: 2.5rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.quick-directory .inline-directory { gap: 0.55rem 1.35rem; }
.directory-guide { margin-top: 4rem; }

.split-section { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); margin-top: 4.5rem; padding: 2.5rem; border: 1px solid rgb(16 42 67 / 7%); background: linear-gradient(135deg, var(--sand), var(--surface)); border-radius: 1.4rem; }
.split-section > div > :last-child { margin-bottom: 0; }

.notice { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.notice > :last-child { margin-bottom: 0; }
.notice.warning { border-color: #e8cf8d; color: var(--warning); background: var(--warning-bg); margin-bottom: 1rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.metric-card { min-height: 9rem; display: flex; flex-direction: column; justify-content: center; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.metric-card span { color: var(--muted); font-size: 0.88rem; }
.metric-card strong { display: block; margin: 0.2rem 0; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.2; }
.metric-card small { color: var(--muted); }
.status-rising { color: var(--teal); }
.status-falling { color: #7b4d8a; }
.source-chip { color: var(--ink); border: 1px solid var(--sand-strong); border-radius: 999px; padding: 0.3rem 0.65rem; background: var(--sand); font-size: 0.82rem; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 28px rgb(16 42 67 / 5%); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
time, td, .metric-card strong, .brief-events span, .range-day strong { font-variant-numeric: tabular-nums; }
th, td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); background: var(--surface); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr[id]:target > * { background: #fff7df; }
.event-list { display: flex; flex-wrap: wrap; gap: 0.45rem 1.2rem; }
.inline-action { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: 0.65rem; background: var(--white); font-size: 0.84rem; font-weight: 720; text-decoration: none; }
.table-action, .event-calendar-link { font-size: 0.78rem; font-weight: 720; white-space: nowrap; }
.event-calendar-link { margin-left: 0.2rem; }
.date-planner { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--sand-strong); border-radius: 1.3rem; background: linear-gradient(145deg, var(--sand), var(--white) 72%); }
.date-planner-form { display: flex; align-items: end; gap: 0.7rem; max-width: 30rem; }
.date-planner-form > div { flex: 1 1 auto; }
.date-planner-form label { display: block; margin-bottom: 0.35rem; font-weight: 750; }
.range-calendar-overview { margin-top: 1rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.range-calendar-overview > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; color: var(--ink); font-weight: 800; cursor: pointer; }
.range-calendar-overview > summary small { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.range-calendar-overview[open] > summary { background: var(--surface); }
.range-calendar-content { padding: 1rem 1.15rem 1.15rem; border-top: 1px solid var(--line); }
.range-calendar-legend { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.8rem; color: var(--muted); font-size: 0.82rem; }
.range-calendar-legend i { flex: 1 1 9rem; max-width: 14rem; height: 0.55rem; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--teal) 18%, var(--white)), var(--teal)); }
.range-calendar-weekdays, .range-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.4rem; }
.range-calendar-weekdays { margin-bottom: 0.4rem; }
.range-calendar-weekdays span { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: 0.08em; }
.range-calendar-day { min-width: 0; min-height: 4.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.12rem; padding: 0.55rem; border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--line)); border-radius: 0.7rem; color: var(--ink); background: color-mix(in srgb, var(--teal) var(--range-color), var(--white)); text-decoration: none; transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease; }
.range-calendar-day:hover { transform: translateY(-1px); border-color: var(--teal); box-shadow: 0 0.35rem 0.8rem rgb(9 84 103 / 12%); }
.range-calendar-day > span, .range-calendar-day > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.range-calendar-day > span { font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.range-calendar-day > strong { font-size: 1.12rem; line-height: 1; }
.range-calendar-day > small { color: currentColor; font-size: 0.72rem; font-weight: 800; }
.range-calendar-day-selected { border-color: var(--coral); box-shadow: inset 0 0 0 2px var(--coral); }
.range-calendar-day-unavailable { color: var(--muted); background: repeating-linear-gradient(-45deg, var(--white), var(--white) 5px, var(--surface) 5px, var(--surface) 10px); }
.range-calendar-blank { min-height: 1px; }
.range-calendar-note { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.84rem; }
.planner-result { margin-top: 1.5rem; }
.planner-result .section-heading { align-items: center; margin-bottom: 0.8rem; }
.planner-result h3 { margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.35rem; }
.comparison-tool { margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #b9d8dd; border-radius: 1.3rem; background: linear-gradient(145deg, var(--surface), var(--white)); }
.comparison-form { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: end; gap: 0.8rem; }
.comparison-form label { display: block; margin-bottom: 0.35rem; font-weight: 750; }
.comparison-versus { align-self: center; padding-top: 1.5rem; color: var(--muted); font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.comparison-tool .display-preferences { margin-top: 1rem; }
.comparison-insights { display: grid; gap: 0.4rem; margin-bottom: 1.2rem; padding: 1rem 1.1rem; border-left: 0.28rem solid var(--coral); border-radius: 0 0.8rem 0.8rem 0; background: var(--sand); }
.comparison-insights p { margin: 0; }
.comparison-range-visual { margin-bottom: 1.2rem; padding: 1.15rem; border: 1px solid #b9d8dd; border-radius: 1rem; background: linear-gradient(145deg, #f2fbfb, var(--white)); }
.comparison-range-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.comparison-range-heading .eyebrow { margin-bottom: 0.25rem; }
.comparison-range-heading h3 { margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.35rem; }
.comparison-range-key { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 0.9rem; color: var(--muted); font-size: 0.74rem; }
.comparison-range-key strong { color: var(--teal); }
.comparison-range-rows { display: grid; gap: 0.75rem; margin-top: 1rem; }
.comparison-range-row { display: grid; grid-template-columns: minmax(8rem, 0.28fr) minmax(0, 1fr); align-items: center; gap: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.comparison-range-place strong, .comparison-range-place small { display: block; }
.comparison-range-place small { color: var(--muted); }
.comparison-range-row .tide-range-rail { margin: 0 0 0.2rem; }
.comparison-range-values { display: flex; justify-content: space-between; gap: 0.75rem; margin: 0; color: var(--muted); font-size: 0.74rem; }
.comparison-range-values strong { color: var(--ink); }
.comparison-range-note { margin: 0.85rem 0 0; color: var(--muted); font-size: 0.75rem; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.comparison-card { padding: 1.3rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); box-shadow: var(--shadow); }
.comparison-card h3 { margin-bottom: 0.3rem; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.6rem; }
.comparison-local-time { color: var(--muted); }
.comparison-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1rem 0; border-top: 1px solid var(--line); }
.comparison-card dl div { padding: 0.8rem 0.6rem 0.8rem 0; border-bottom: 1px solid var(--line); }
.comparison-card dt { color: var(--muted); font-size: 0.78rem; font-weight: 720; }
.comparison-card dd { margin: 0.15rem 0 0; }
.comparison-card dd strong, .comparison-card dd span { display: block; }
.comparison-card dd span { color: var(--muted); font-size: 0.82rem; }
.comparison-note { margin-top: 1rem; }
.muted { color: var(--muted); }

.outlook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.outlook-card { position: relative; padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface), var(--white)); overflow: hidden; }
.outlook-card::before { content: ""; position: absolute; top: 0; left: 0; width: 3rem; height: 0.22rem; border-radius: 0 0 999px; background: var(--coral); }
.outlook-card h3 { margin-bottom: 0.5rem; }
.outlook-card p { color: var(--muted); margin-bottom: 0; }
.week-highlights-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.week-highlight-card { min-height: 8.5rem; display: flex; flex-direction: column; justify-content: center; padding: 1.15rem; border: 1px solid #b9d8dd; border-radius: var(--radius); background: linear-gradient(150deg, #f2fbfb, #fff 64%, rgb(246 239 227 / 70%)); }
.week-highlight-card span { color: var(--muted); font-size: 0.8rem; font-weight: 750; }
.week-highlight-card strong { display: block; margin: 0.2rem 0; color: var(--ocean-dark); font-size: 1.45rem; line-height: 1.2; }
.week-highlight-card small { color: var(--muted); }
.home-brief, .directory-brief, .state-brief { margin-top: 3.5rem; }
.state-brief + .location-grid { margin-top: 2rem; }
.regional-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.regional-metric-card { min-height: 9.5rem; display: flex; flex-direction: column; justify-content: center; padding: 1.15rem; border: 1px solid #b9d8dd; border-radius: var(--radius); background: linear-gradient(150deg, #f2fbfb, #fff 64%, rgb(246 239 227 / 72%)); }
.regional-metric-card span { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.regional-metric-card strong { display: block; margin: 0.25rem 0; color: var(--ocean-dark); font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.22; }
.regional-metric-card small { color: var(--muted); }

.tide-brief { position: relative; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #b9d8dd; border-radius: 1.4rem; background: radial-gradient(circle at 94% 15%, rgb(231 111 81 / 12%) 0 3.5rem, transparent 3.6rem), linear-gradient(140deg, #f0fbfc, #fff 68%); overflow: hidden; }
.tide-brief .section-heading { margin-bottom: 0.7rem; }
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.brief-card { padding: 1.15rem; border: 1px solid var(--line); border-radius: 0.65rem; background: rgb(255 255 255 / 88%); }
.brief-card h3 { margin-bottom: 0.45rem; }
.brief-card p { color: var(--muted); margin-bottom: 0; }
.phase-timeline { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.phase-endpoints, .phase-duration { display: flex; justify-content: space-between; gap: 1rem; }
.phase-endpoints > span { display: flex; flex-direction: column; }
.phase-endpoints > span:last-child { align-items: flex-end; text-align: right; }
.phase-endpoints strong { color: var(--ink); font-size: 0.82rem; }
.phase-endpoints small { color: var(--muted); font-variant-numeric: tabular-nums; }
.phase-progress { position: relative; height: 0.55rem; margin: 1.5rem 0 0.65rem; border-radius: 999px; background: #d8e8eb; }
.phase-progress-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--ocean)); }
.phase-now-marker { position: absolute; top: 50%; width: 0.82rem; aspect-ratio: 1; border: 2px solid var(--white); border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px rgb(16 42 67 / 28%); transform: translate(-50%, -50%); }
.phase-now-marker span { position: absolute; bottom: calc(100% + 0.35rem); left: 50%; color: var(--coral-dark); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; transform: translateX(-50%); }
.brief-card .phase-duration { color: var(--ink); font-size: 0.74rem; font-weight: 700; }
.phase-note { display: block; margin-top: 0.55rem; color: var(--muted); font-size: 0.72rem; line-height: 1.35; }
.brief-events { display: grid; gap: 0.55rem; list-style: none; padding: 0; margin: 0; }
.brief-events li { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.brief-events li:last-child { padding-bottom: 0; border-bottom: 0; }
.brief-events span { color: var(--muted); font-size: 0.9rem; text-align: right; }

.range-planner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.range-day { border: 1px solid var(--line); border-radius: 0.8rem; background: var(--white); box-shadow: 0 5px 15px rgb(16 42 67 / 4%); overflow: hidden; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.range-day-unavailable { background: var(--surface); }
.range-day:has(.range-day-link:hover) { border-color: #78aeb7; box-shadow: 0 10px 24px rgb(16 42 67 / 10%); transform: translateY(-2px); }
.range-day-link { display: block; min-height: 100%; padding: 0.9rem; color: inherit; text-decoration: none; }
.range-day-link:hover { color: inherit; }
.range-day-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 0.45rem; }
.range-day h3 { margin: 0; font-size: 1rem; white-space: nowrap; }
.range-day-heading strong { color: var(--teal); font-size: 0.78rem; white-space: nowrap; }
.range-scale-key { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 1rem; margin: 0 0 0.8rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 0.7rem; color: var(--muted); background: var(--surface); font-size: 0.76rem; }
.range-scale-key > span:first-child { color: var(--ink); font-weight: 800; }
.range-scale-key strong { color: var(--teal); }
.tide-range-rail { position: relative; height: 1.35rem; margin: 0.65rem 0 0.5rem; }
.range-rail-baseline, .range-rail-water { position: absolute; top: 50%; height: 0.32rem; border-radius: 999px; transform: translateY(-50%); }
.range-rail-baseline { right: 0; left: 0; background: #d9e9ec; }
.range-rail-water { left: var(--low-position); width: calc(var(--high-position) - var(--low-position)); min-width: 0.25rem; background: linear-gradient(90deg, var(--teal), var(--ocean)); }
.range-rail-point { position: absolute; top: 50%; width: 0.72rem; aspect-ratio: 1; border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px rgb(16 42 67 / 20%); transform: translate(-50%, -50%); }
.range-rail-low { left: var(--low-position); background: var(--teal); }
.range-rail-high { left: var(--high-position); background: var(--coral); }
.range-day p { display: flex; justify-content: space-between; gap: 0.5rem; margin: 0; color: var(--muted); font-size: 0.8rem; }
.range-day p strong { color: var(--ink); display: block; }
.range-summary { margin: 1rem 0 0; color: var(--muted); font-weight: 650; }
.detailed-table-heading { margin: 2rem 0 0.6rem; }
.home-guide, .state-guide { margin-top: 4rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.guide-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, var(--sand), var(--white)); }
.guide-card h3 { margin-bottom: 0.55rem; }
.guide-card p { color: var(--muted); margin-bottom: 0; }
.related-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.related-groups > div:only-child { grid-column: 1 / -1; }
.related-groups h3 { margin-bottom: 0.85rem; }
.related-groups .location-grid { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }

.chart-card { border: 1px solid var(--line); border-radius: 1.3rem; padding: 1rem; background: linear-gradient(180deg, #edf9fa, #fff); box-shadow: var(--shadow); overflow: hidden; }
.tide-chart { display: block; width: 100%; height: auto; }
.chart-axis { stroke: #a7bac7; stroke-width: 1; }
.chart-grid line { stroke: #cbdce2; stroke-width: 1; }
.chart-grid text, .chart-day-labels text { fill: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 10px; }
.chart-grid .chart-day-guide { stroke: #9eb8c1; stroke-dasharray: 3 5; stroke-opacity: 0.65; }
.chart-area { fill: url(#tide-area-gradient); }
.chart-line { fill: none; stroke: var(--ocean); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-event { stroke: var(--white); stroke-width: 2; }
.chart-event-high { fill: var(--coral); }
.chart-event-low { fill: var(--teal); }
.chart-extreme { fill: var(--white); stroke-width: 2.5; }
.chart-extreme-high { stroke: var(--coral); }
.chart-extreme-low { stroke: var(--teal); }
.chart-extreme-label { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 10px; font-weight: 850; paint-order: stroke; stroke: rgb(255 255 255 / 92%); stroke-width: 4px; stroke-linejoin: round; }
.chart-extreme-label-high { fill: var(--coral-dark); }
.chart-extreme-label-low { fill: var(--teal); }
.chart-now-line { stroke: var(--coral-dark); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart-now-label { fill: var(--coral-dark); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 10px; font-weight: 800; }
.chart-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.65rem 0.2rem 0; border-top: 1px solid var(--line); }
.chart-footer p { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 1rem; margin: 0; color: var(--muted); font-size: 0.78rem; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; color: var(--muted); font-size: 0.76rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.legend-dot { width: 0.62rem; aspect-ratio: 1; display: inline-block; border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1px rgb(16 42 67 / 18%); }
.legend-high { background: var(--coral); }
.legend-low { background: var(--teal); }
.legend-line { width: 1rem; display: inline-block; border-top: 2px dashed var(--coral-dark); }
.chart-description { margin: 0.75rem 0.2rem 0; color: var(--muted); font-size: 0.74rem; }

.station-details dl { margin: 0; }
.station-details dl div { display: grid; grid-template-columns: 7rem 1fr; gap: 0.7rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.station-details dt { color: var(--muted); }
.station-details dd { margin: 0; }

.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); padding: 0.9rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 750; }
.faq details p { margin: 0.75rem 0 0; color: var(--muted); }

.prose { max-width: 48rem; }
.breadcrumbs + .prose { margin-top: 2rem; }
.prose h1 { max-width: 15ch; }
.prose h2 { margin-top: 2.5rem; }
.prose li { margin-bottom: 0.35rem; }
.prose code { background: var(--surface-strong); border-radius: 0.25rem; padding: 0.1rem 0.3rem; }

.ad-slot { min-height: 9rem; margin: 2.5rem 0; display: grid; place-items: center; overflow: hidden; }
.admin-metrics { grid-template-columns: repeat(3, 1fr); }

.site-footer { border-top: 0; color: #e8f0f2; background: var(--ink); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 1.5rem; padding-block: 3rem; }
.site-footer .brand { color: var(--white); }
.site-footer .brand-mark { color: var(--white); filter: none; }
.site-footer .brand-wordmark strong { color: #ff9a7f; }
.footer-brand p { margin: 0.45rem 0 0 3.3rem; color: #b9cbd2; font-size: 0.9rem; }
.footer-inner nav { justify-content: flex-end; }
.footer-inner nav a { color: #e8f0f2; }
.fine-print { grid-column: 1 / -1; padding-top: 1.2rem; border-top: 1px solid rgb(255 255 255 / 12%); color: #b9cbd2; font-size: 0.82rem; margin: 0; }
.footer-copyright { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #b9cbd2; font-size: 0.82rem; }
.footer-copyright p { margin: 0; }
.footer-silin-link { display: inline-flex; width: fit-content; align-items: center; color: #e8f0f2; opacity: 0.62; text-decoration: none; transition: opacity 150ms ease; }
.footer-silin-link:hover { color: #e8f0f2; opacity: 0.9; text-decoration: none; }
.footer-silin-logo { width: 2.9rem; height: auto; filter: invert(1); }

@media (max-width: 760px) {
  .header-inner { min-height: 4rem; padding-block: 0.55rem; }
  .desktop-navigation { display: none !important; }
  .mobile-menu-button { display: inline-flex; flex: 0 0 auto; }
  .hero-with-art { grid-template-columns: 1fr; gap: 2rem; }
  .hero-with-art::before { top: 38%; right: 0; bottom: 3%; left: 8%; }
  .hero-art { width: min(100%, 34rem); justify-self: center; transform: rotate(0.6deg); }
  .metric-grid, .admin-metrics, .regional-metric-grid, .week-highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .range-planner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section, .outlook-grid, .related-groups, .brief-grid, .guide-grid, .saved-locations-panel, .location-utility-panel, .comparison-grid { grid-template-columns: 1fr; }
  .comparison-form { grid-template-columns: 1fr; align-items: stretch; }
  .comparison-versus { display: none; }
  .comparison-range-heading { align-items: flex-start; flex-direction: column; }
  .comparison-range-key { justify-content: flex-start; }
  .range-calendar-overview > summary { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .saved-locations-panel ul, .location-actions { justify-content: flex-start; }
  .location-action-status { text-align: left; }
  .location-jump-nav { position: static; margin-bottom: 2rem; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .chart-footer { align-items: flex-start; flex-direction: column; }
  .chart-footer p { justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-inner nav { justify-content: flex-start; }
  .fine-print { grid-column: 1; }
  .footer-copyright { grid-column: 1; align-items: flex-start; }
}

@media (max-width: 480px) {
  .search-row { flex-direction: column; }
  .date-planner-form { align-items: stretch; flex-direction: column; }
  .metric-grid, .admin-metrics, .regional-metric-grid, .week-highlights-grid { grid-template-columns: 1fr; }
  .comparison-range-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .range-calendar-content { padding: 0.75rem; }
  .range-calendar-weekdays, .range-calendar-grid { gap: 0.22rem; }
  .range-calendar-weekdays span { font-size: 0.58rem; letter-spacing: 0.03em; }
  .range-calendar-day { min-height: 3.7rem; padding: 0.35rem; border-radius: 0.5rem; }
  .range-calendar-day > span { font-size: 0.52rem; }
  .range-calendar-day > strong { font-size: 1rem; }
  .range-calendar-day > small { display: none; }
  .range-planner { grid-template-columns: 1fr; }
  .metric-card { min-height: 7.5rem; }
  .brand-wordmark { font-size: 1.05rem; }
  .hero-art { border-radius: 1.2rem 2.4rem 1.2rem 2.4rem; }
  .location-header { border-radius: 1.2rem 2.5rem 1.2rem 1.2rem; }
  .marine-clock { width: 100%; min-width: 0; }
  th, td { padding: 0.7rem; }
}

@media print {
  @page { margin: 0.55in; }

  body { color: #000; background: #fff; font-size: 10pt; }
  .site-header, .site-footer, main.container > * { display: none !important; }
  main.container { width: 100%; min-height: 0; padding: 0; }
  main.container > .print-header, main.container > .seven-day-section { display: block !important; }
  .print-header { padding-bottom: 0.2in; border-bottom: 1px solid #777; }
  .print-title { margin-bottom: 0.08in; font-family: Georgia, serif; font-size: 22pt; font-weight: 700; line-height: 1.1; }
  .print-header p { margin: 0.03in 0; }
  .seven-day-section { margin-top: 0.2in; }
  .seven-day-section h2 { font-size: 17pt; }
  .range-planner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.12in; }
  .range-day, .table-wrap { break-inside: avoid; box-shadow: none; }
  .event-calendar-link { display: none; }
  .range-day { min-height: 0; padding: 0.1in; }
  .range-day-link { padding: 0; color: #000; }
  .range-day-heading { gap: 0.08in; }
  .range-day h3 { font-size: 10.5pt; }
  .range-day-heading strong { font-size: 9pt; }
  .tide-range-rail { print-color-adjust: exact; }
  .detailed-table-heading { margin-top: 0.2in; }
  th, td { padding: 0.08in; }
}

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