/* Surf & Sound design system.
   Daytime coastal palette (sand, sea glass, deep marsh green) for the body of
   the site, and a night palette for the hero and the Book Now band where the
   pool LEDs are the star. Fraunces for headlines, Inter for body, both
   self-hosted (never @import a font: it blocks rendering). */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/fraunces-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

:root {
  /* Day */
  --sand: #F5EFE4;
  --sand-deep: #E8DCC6;
  --shell: #FFFDF9;
  --seaglass: #9FD3C7;
  --seaglass-deep: #276A60;   /* 5.6:1 on shell, 5.1:1 on sand; links and eyebrows */
  --marsh: #24453A;           /* primary: buttons, headings */
  --marsh-deep: #18302A;
  --ink: #1D2622;
  --muted: #55605B;           /* 6.2:1 on shell */
  --line: #DDD3C1;
  /* Night (hero, Book Now band) */
  --night: #0E1A2B;
  --night-2: #16243A;
  --led-blue: #2F7BFF;
  --led-purple: #8A4DFF;
  --led-magenta: #E040B8;
  --led-green: #2BD38A;
  --led-teal: #19C6D1;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --max-width: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(29, 38, 34, 0.10);
  --cta-bar-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--shell);
  line-height: 1.65;
  /* Room for the mobile sticky Check Availability bar. */
  padding-bottom: var(--cta-bar-h);
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--seaglass-deep); }
a:hover { color: var(--marsh); }
/* Prose links are underlined so they don't rely on color alone (WCAG). */
main p a:not(.btn), main li a:not(.btn), main dd a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--led-teal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--marsh); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--marsh-deep);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 700; }
p { margin: 0 0 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--seaglass-deep); margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--marsh); color: #fff; }
.btn-primary:hover { background: var(--marsh-deep); color: #fff; }
.btn-light { background: #fff; color: var(--marsh-deep); }
.btn-light:hover { background: var(--sand); color: var(--marsh-deep); }
.btn-outline { border-color: var(--marsh); color: var(--marsh); background: transparent; }
.btn-outline:hover { background: var(--marsh); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(14,26,43,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.wordmark {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--marsh-deep);
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.wordmark span { color: var(--seaglass-deep); font-style: italic; }
.primary-nav { display: none; }
.primary-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--marsh); border-bottom-color: var(--seaglass); }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--marsh-deep); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.primary-nav.open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--shell); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: var(--shadow);
}
.primary-nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav, .primary-nav.open {
    display: flex; flex-direction: row; gap: 26px; position: static; padding: 0; box-shadow: none; border: 0; background: none;
  }
  .primary-nav.open a { padding: 8px 2px; border-bottom: 2px solid transparent; font-size: 0.98rem; }
  .header-cta { display: inline-flex; min-height: 42px; padding: 10px 20px; }
}

/* ---------- Sticky Check Availability ----------
   Full-width bar on phones, a floating pill on desktop (where the header
   button scrolls away on long pages). Hidden on /book itself. */
.sticky-cta {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--cta-bar-h); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--marsh-deep); color: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.18);
}
.sticky-cta-text { font-size: 0.9rem; line-height: 1.3; }
.sticky-cta-text strong { display: block; font-family: var(--font-serif); font-size: 1.05rem; }
.sticky-cta .btn { min-height: 44px; padding: 10px 18px; }
@media (min-width: 900px) {
  .sticky-cta {
    left: auto; right: 24px; bottom: 24px; height: auto; padding: 0; background: none; box-shadow: none;
    opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .sticky-cta-text { display: none; }
  .sticky-cta .btn { box-shadow: 0 10px 30px rgba(14,26,43,.35); min-height: 52px; padding: 14px 26px; }
}
body[data-page="book"] .sticky-cta { display: none; }
body[data-page="book"] { padding-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-sand { background: var(--sand); }
.section-header { max-width: 720px; margin-bottom: 36px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .lead { margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .section { padding: 104px 0; } }

.page-hero { padding: 64px 0 40px; background: var(--sand); }
.page-hero .lead { margin-bottom: 0; }
@media (min-width: 900px) { .page-hero { padding: 96px 0 56px; } }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
@media (min-width: 700px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-2 { gap: 48px; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Photo placeholders ----------
   Phase 1 stand-ins until the real photo set lands. Each one is a soft
   gradient in the photo's mood with a caption naming the shot that goes there,
   so the review is about layout, not filler stock. */
.ph {
  position: relative; display: flex; align-items: flex-end; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--radius); color: #fff;
  background: linear-gradient(160deg, #7FC4D8, #2E7D72);
}
.ph::after {
  content: attr(data-label); position: relative; margin: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(14, 26, 43, 0.72); font-size: 0.82rem; font-weight: 500; line-height: 1.3;
}
.ph-tall { aspect-ratio: 4 / 5; }
.ph-wide { aspect-ratio: 16 / 9; }
.ph-day { background: linear-gradient(165deg, #BFE7F2 0%, #6FC1D6 45%, #2E9C9A 100%); }
.ph-pool { background: radial-gradient(120% 80% at 30% 90%, #3FD0E0 0%, #1A8FB0 40%, #0F5F77 100%); }
.ph-night { background: radial-gradient(90% 70% at 50% 85%, #8A4DFF 0%, #2F2A7A 40%, #0E1A2B 100%); }
.ph-interior { background: linear-gradient(160deg, #F3E9DA 0%, #D9C6A5 60%, #B79E78 100%); color: var(--ink); }
.ph-bedroom { background: linear-gradient(160deg, #EEF3F2 0%, #C9DCD7 60%, #9DBDB4 100%); }
.ph-porch { background: linear-gradient(165deg, #E9E1D2 0%, #B9C9B0 55%, #6D8F6B 100%); }
.ph-beach { background: linear-gradient(180deg, #A9DCEB 0%, #DCEFF0 45%, #EBDDC2 70%, #D9C49E 100%); }
.ph-marsh { background: linear-gradient(180deg, #F6B26B 0%, #E97F5B 35%, #8E5A7A 65%, #3D4F49 100%); }
.ph-island { background: linear-gradient(170deg, #CDE8E4 0%, #8CC3B4 50%, #4F8B78 100%); }

/* ---------- Home hero (night, LED colors) ----------
   Until the day-to-night video is cut, the hero is a CSS night scene whose
   glow cycles through the pool LED colors. When .hero-video has sources, main.js
   lazy-starts it after first paint and it covers the CSS scene. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 68px); display: flex; align-items: flex-end;
  background: var(--night); color: #fff;
}
.hero-scene { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #0B1322 0%, #12223A 55%, #0E1A2B 100%); }
.hero-scene::before {
  /* The pool: a wide glow near the bottom that shifts color. */
  content: ''; position: absolute; left: -10%; right: -10%; bottom: -18%; height: 70%;
  background: radial-gradient(60% 55% at 50% 60%, var(--led-blue) 0%, rgba(47,123,255,0) 70%);
  filter: blur(10px); animation: led-cycle 16s linear infinite;
}
.hero-scene::after {
  /* Palm uplights: two softer glows up the sides. */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(18% 45% at 12% 55%, rgba(138,77,255,.55), transparent 70%),
    radial-gradient(18% 45% at 88% 50%, rgba(43,211,138,.45), transparent 70%);
  animation: led-cycle 16s linear infinite reverse;
}
@keyframes led-cycle {
  0%, 100% { filter: blur(10px) hue-rotate(0deg); }
  25% { filter: blur(10px) hue-rotate(60deg); }
  50% { filter: blur(10px) hue-rotate(140deg); }
  75% { filter: blur(10px) hue-rotate(230deg); }
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0; transition: opacity 1.2s; }
.hero-video.is-playing { opacity: 1; }
.hero::after {
  /* Legibility scrim behind the overlay copy. */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(8,14,24,.75) 0%, rgba(8,14,24,.15) 45%, rgba(8,14,24,0) 70%);
}
.hero-inner { padding: 0 20px 56px; width: 100%; max-width: var(--max-width); margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(3rem, 11vw, 6rem); margin-bottom: 8px; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--seaglass); }
.hero-line { font-size: clamp(1.1rem, 2.6vw, 1.4rem); margin-bottom: 24px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .hero-inner { padding-bottom: 88px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-scene::before, .hero-scene::after, .night-band::before { animation: none; }
}

/* ---------- Quick facts bar ---------- */
.facts { background: var(--marsh-deep); color: #fff; }
.facts ul {
  list-style: none; margin: 0 auto; padding: 18px 20px; max-width: var(--max-width);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px;
}
.facts li { display: flex; flex-direction: column; font-size: 0.85rem; color: rgba(255,255,255,.8); }
.facts li strong { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; color: #fff; }
@media (min-width: 700px) { .facts ul { grid-template-columns: repeat(5, 1fr); text-align: center; } }

/* ---------- Feature rows (Backyard, Surf side, Sound side) ---------- */
.feature { display: grid; gap: 28px; align-items: center; }
.feature + .feature { margin-top: 72px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.25fr 1fr; gap: 64px; }
  .feature.reverse .feature-media { order: 2; }
}
.feature-media { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.feature-media .ph:first-child { grid-column: span 2; }
@media (min-width: 900px) {
  .feature-media { gap: 12px; grid-template-columns: 2fr 1fr; }
  .feature-media .ph:first-child { grid-column: auto; grid-row: span 2; aspect-ratio: auto; min-height: 320px; }
}

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 20px; }
@media (min-width: 800px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 0; }
.review blockquote { margin: 0 0 16px; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.45; color: var(--marsh-deep); }
.review figcaption { font-size: 0.9rem; color: var(--muted); }
.stars { color: #B7791F; letter-spacing: 2px; margin-bottom: 10px; }
.placeholder-note {
  font-size: 0.85rem; color: var(--muted); background: var(--sand); border: 1px dashed var(--sand-deep);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 20px;
}

/* ---------- Availability widget ---------- */
.avail {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.avail-fields { display: grid; gap: 14px; }
@media (min-width: 700px) { .avail-fields { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--marsh-deep); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #B9AE9B; border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--seaglass); outline-offset: 0; border-color: var(--seaglass-deep); }
.form-status { margin: 14px 0 0; font-size: 0.95rem; color: var(--marsh); }
.form-status:empty { display: none; }

.quote { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.quote dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; }
.quote dt { color: var(--muted); }
.quote dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.quote .total { font-weight: 700; color: var(--marsh-deep); border-top: 1px solid var(--line); padding-top: 10px; }
.savings {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px;
  background: #E7F4F0; border-radius: var(--radius-sm); color: var(--marsh-deep); font-size: 0.95rem;
}
.savings strong { font-weight: 700; }

.book-layout { display: grid; gap: 32px; }
@media (min-width: 1000px) { .book-layout { grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; } }
.rules-list { list-style: none; padding: 0; margin: 0; }
.rules-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.rules-list li:last-child { border-bottom: 0; }

/* ---------- Night band (Book Now) ---------- */
.night-band { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; padding: 96px 0; text-align: center; }
.night-band::before {
  content: ''; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(40% 50% at 25% 70%, rgba(224,64,184,.55), transparent 70%),
    radial-gradient(40% 50% at 75% 60%, rgba(25,198,209,.5), transparent 70%);
  animation: led-cycle 14s linear infinite;
}
.night-band h2 { color: #fff; }
.night-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 24px; }

/* ---------- The House ---------- */
.rooms { display: grid; gap: 24px; }
@media (min-width: 800px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
.room .ph { margin-bottom: 16px; }
.room .beds { color: var(--muted); margin-bottom: 8px; }
.amenities { columns: 1; padding: 0; list-style: none; margin: 0; }
@media (min-width: 600px) { .amenities { columns: 2; } }
@media (min-width: 1000px) { .amenities { columns: 3; } }
.amenities li { break-inside: avoid; padding: 6px 0 6px 28px; position: relative; }
.amenities li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--seaglass); }
.amenity-group h3 { font-size: 1.15rem; margin-top: 28px; }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: 500 0.95rem var(--font-sans); color: var(--ink); cursor: pointer;
}
.filter-btn[aria-pressed="true"] { background: var(--marsh); border-color: var(--marsh); color: #fff; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); text-align: left; }
.gallery-item[hidden] { display: none; }
.gallery-item .ph { aspect-ratio: 1 / 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(8, 14, 24, 0.94); padding: 56px 12px; touch-action: pan-y;
}
.lightbox.is-open { display: flex; }
.lightbox-stage { width: min(1100px, 100%); }
.lightbox-stage .ph { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); }
.lightbox-caption { color: rgba(255,255,255,.85); text-align: center; margin-top: 12px; font-size: 0.95rem; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; line-height: 1;
}
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- The Island ---------- */
.places { display: grid; gap: 16px; }
@media (min-width: 800px) { .places { grid-template-columns: repeat(2, 1fr); } }
.place { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.place h3 { font-size: 1.2rem; margin: 0; }
.place p { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: 0.97rem; }
.time { font-size: 0.85rem; font-weight: 600; color: var(--seaglass-deep); white-space: nowrap; align-self: center; }
.map-ph { aspect-ratio: 16 / 10; border-radius: var(--radius); background: linear-gradient(135deg, #DCEFF0, #BFDCCF); display: grid; place-items: center; color: var(--marsh); text-align: center; padding: 24px; }

/* ---------- FAQ / Policies ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--marsh-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; color: var(--seaglass-deep); }
.faq details[open] summary::after { content: '\2212'; }
.faq details > div { padding: 0 0 20px; }
.policy h2 { font-size: 1.6rem; margin-top: 48px; }
.policy h2:first-child { margin-top: 0; }
.policy table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.policy th, .policy td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy th { font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 40px; }
.toc a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--marsh); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--marsh-deep); color: rgba(255,255,255,.85); padding: 56px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer .wordmark { color: #fff; }
.site-footer .wordmark span { color: var(--seaglass); }
.site-footer h2 { font-family: var(--font-sans); font-size: 0.8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--seaglass); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-meta { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,.7); }

.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; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
