/* Surfing Florida Museum — site styles */

:root {
  /* Brand palette: Surfing Florida Museum Brand Guidelines v1.0 */
  --navy: #1b2e4a;      /* SFM Navy: logo, headlines, primary buttons, text */
  --ocean: #3a6b8c;     /* Ocean Blue: subheads, links, accents */
  --seafoam: #7abfb3;   /* Seafoam: callouts, highlights, interactive */
  --coral: #e86835;     /* Sunset Orange: events and CTAs, use sparingly */
  --sand: #f5ebd9;      /* Sand Beige: warm backgrounds */
  --paper: #ffffff;     /* White: primary background */

  /* Tints and shades of the palette for UI states */
  --navy-2: #24395a;
  --sand-2: #eadcc2;
  --coral-dark: #c24e22;  /* Sunset Orange shade for buttons: white text passes WCAG AA (4.8:1) */
  --coral-darker: #a8421b;
  --ink: var(--navy);
  --muted: #56657a;
  --line: rgba(27, 46, 74, 0.14);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", Arial, system-ui, sans-serif;

  --wrap: 1200px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 1rem;
  display: block;
}
.on-dark .eyebrow, .eyebrow.light { color: var(--seafoam); }

.lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.on-dark .lede { color: rgba(255, 255, 255, 0.78); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral-dark); color: #fff; }
.btn-coral:hover { background: var(--coral-darker); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.on-dark .btn-outline { color: #fff; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.on-dark .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { padding: 0.6em 1.15em; font-size: 0.8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Skip link */
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 92px; }

/* Announcement bar */
.announce {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease;
}
.announce a { color: #fff; text-underline-offset: 3px; }
.announce .sep { opacity: 0.5; margin: 0 6px; }
@media (max-width: 900px) { .hide-sm { display: none; } }

/* Live open/closed status */
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  flex: none;
}
.status.is-open::before { background: var(--seafoam); box-shadow: 0 0 0 4px rgba(122, 191, 179, 0.25); }
.status-pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.status-pill.status::before { background: var(--muted); }
.status-pill.status.is-open::before { background: #2f9e8d; box-shadow: 0 0 0 4px rgba(122, 191, 179, 0.35); }

/* Header
   Fixed (not sticky) so compacting it never moves the page underneath.
   body padding-top reserves its full height; main.js measures it into --masthead-h. */
body { padding-top: var(--masthead-h, 162px); }
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(27, 46, 74, 0.08); }
.site-header.scrolled .announce { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.site-header.no-anim, .site-header.no-anim * { transition: none !important; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 124px;
  transition: height 0.25s ease;
}
.site-header.scrolled .header-inner { height: 72px; }
/* Full logo at rest, sanderling icon once scrolled: a crossfade in a fixed-width box
   (both at the 150px brand minimum) */
.logo {
  position: relative;
  display: block;
  flex: none;
  width: 150px;
  height: 101px;
  transition: height 0.25s ease;
}
.site-header.scrolled .logo { height: 34px; }
.logo img {
  position: absolute;
  left: 0;
  top: 50%;
  width: 150px;
  height: auto;
  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}
.logo .logo-icon { opacity: 0; }
.site-header.scrolled .logo-full { opacity: 0; }
.site-header.scrolled .logo-icon { opacity: 1; }
.site-footer .logo { height: auto; }
.site-footer .logo img { position: static; transform: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
}
.nav-item:has(.dropdown) > .nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}
.nav-link:hover { color: var(--ocean); }
.nav-link[aria-current="page"] { color: var(--ocean); box-shadow: inset 0 -2px 0 var(--seafoam); border-radius: 0; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(27, 46, 74, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  /* Short delay before closing so a diagonal mouse path doesn't drop the menu */
  transition: opacity 0.18s ease 0.12s, transform 0.18s ease 0.12s, visibility 0s linear 0.3s;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* Invisible bridge over the gap between the link and its menu */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dropdown a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  text-decoration: none;
}
.dropdown a:hover { background: var(--sand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { display: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  color: var(--navy);
}
.menu-toggle svg { width: 28px; height: 28px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 960px) {
  body { padding-top: var(--masthead-h, 150px); }
  .header-inner { height: 112px; }
  .site-header.scrolled .header-inner { height: 64px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-bottom, 112px);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 8px 24px 40px;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: none;
  }
  .nav.open { display: flex; }
  body.menu-open { overflow: hidden; }
  .nav-link { font-size: 1.05rem; padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link[aria-current="page"] { box-shadow: none; }
  .nav-item:has(.dropdown) > .nav-link::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 6px 0 10px; background: transparent; display: grid; grid-template-columns: 1fr 1fr; }
  .dropdown a { padding: 10px 0; color: var(--muted); }
  .nav-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
  .nav-cta .btn { justify-content: center; }
  .header-actions .btn-outline { display: none; }
}

/* Hero: M.E. Gruber's "The Ship" (1966) under a navy fade so the text stays readable */
.hero {
  position: relative;
  min-height: min(84vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(27, 46, 74, 0.94) 0%, rgba(27, 46, 74, 0.8) 34%, rgba(27, 46, 74, 0.3) 68%, rgba(27, 46, 74, 0.08) 100%),
    linear-gradient(0deg, rgba(27, 46, 74, 0.55) 0%, rgba(27, 46, 74, 0) 35%);
}
.hero-credit {
  position: absolute;
  right: 20px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; z-index: 1; opacity: 0.85; }
.hero-waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.hero-waves .w1 { animation: drift 22s linear infinite; opacity: 0.55; }
.hero-waves .w2 { animation: drift 15s linear infinite reverse; opacity: 0.8; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hero-waves svg { animation: none !important; } }

.hero-content { position: relative; z-index: 2; padding: 120px 0 90px; max-width: 760px; }
.hero h1 { text-shadow: 0 2px 30px rgba(27, 46, 74, 0.45); }
.hero .lede { color: rgba(255, 255, 255, 0.9); font-size: 1.25rem; }
.hero-visit span { white-space: nowrap; }
.hero-visit { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--sand); margin: -4px 0 28px; }
@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-content { padding: 64px 0 120px; }
  .hero .lede { font-size: 1.05rem; }
  .hero::before { background: linear-gradient(180deg, rgba(27, 46, 74, 0.5) 0%, rgba(27, 46, 74, 0.6) 30%, rgba(27, 46, 74, 0.85) 62%, rgba(27, 46, 74, 0.95) 100%); }
  .hero-photo { object-position: 64% 50%; }
  .hero h1, .hero .lede, .hero .eyebrow { text-shadow: 0 1px 12px rgba(27, 46, 74, 0.8); }
  .hero-credit { left: 16px; right: 16px; text-align: right; }
  .hero .btn-row .btn { flex: 1 1 auto; justify-content: center; }
}

/* Page hero (inner pages) */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 191, 179, 0.35), rgba(58, 107, 140, 0.2) 45%, transparent 70%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { color: rgba(255, 255, 255, 0.82); }
.page-hero .eyebrow { color: var(--seafoam); }
/* Inner-page banners with a photo under a navy fade */
.page-hero.has-photo { padding: 120px 0 96px; }
.page-hero.has-photo::after { display: none; }
.page-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.page-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(27, 46, 74, 0.95) 0%, rgba(27, 46, 74, 0.82) 45%, rgba(27, 46, 74, 0.55) 100%);
}
.page-hero.has-photo .wrap { z-index: 2; }
@media (max-width: 640px) {
  .page-hero.has-photo { padding: 72px 0 64px; }
  .page-hero.has-photo::before { background: rgba(27, 46, 74, 0.86); }
}

/* "On this page" links under a banner */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
  white-space: nowrap;
}
.subnav a:hover, .subnav a:focus-visible { border-color: var(--ocean); color: var(--ocean); }

/* Closing call to action at the end of inner pages */
.cta-band { background: #fff; padding: 72px 0 88px; text-align: center; }
.cta-band .wrap { background: var(--sand); border-radius: 24px; padding: 56px 28px; max-width: 1100px; }
@media (max-width: 640px) { .cta-band { padding: 48px 16px 64px; } .cta-band .wrap { padding: 40px 20px; } }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lede { margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }

/* Sections */
.section { padding: 110px 0; }
.section-tight { padding: 70px 0; }
.on-dark { background: var(--navy); color: #fff; }
.on-sand { background: var(--sand); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-head h2 { margin: 0; max-width: 18ch; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Photo placeholder — swap for <img> when photography is ready */
.ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--ocean), var(--navy));
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.ph.sepia { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px), linear-gradient(160deg, #a7825a, #5a3f27); }
.ph.sunset { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 14px), linear-gradient(170deg, var(--seafoam), var(--ocean) 60%, var(--navy)); }
.ph.tall { aspect-ratio: 3 / 4; }
.ph.wide { aspect-ratio: 16 / 9; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* Events: ticket stubs (date on a tear-off stub, details, then photo or poster) */
.events { display: grid; gap: 20px; }
.event {
  --notch: var(--paper); /* match the section background behind the cards */
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(27, 46, 74, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event:has(.cal-menu[open]) { z-index: 3; }
.event:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(27, 46, 74, 0.1); }
.event[hidden] { display: none; }
.event-date {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 24px 10px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-right: 2px dashed rgba(245, 235, 217, 0.5);
  border-radius: 15px 0 0 15px;
}
/* Punched notches where the stub tears off */
.event-date::before, .event-date::after {
  content: "";
  position: absolute;
  right: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--notch);
}
.event-date::before { top: -13px; }
.event-date::after { bottom: -13px; }
.event-date .dow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--seafoam); }
.event-date .day { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; line-height: 1; display: block; color: var(--coral); }
.event-date .mon { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); }
.event-body { padding: 26px 28px; min-width: 0; }
.event h3 { margin-bottom: 0.3em; }
.event-meta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.event-desc { color: var(--muted); margin-bottom: 16px; }
.event-media { display: flex; align-items: center; justify-content: center; padding: 18px 18px 18px 0; }
.event-media .ph { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; }
.event-media .ph.poster { width: 140px; aspect-ratio: 2 / 3; border-radius: 6px; box-shadow: 0 10px 24px rgba(27, 46, 74, 0.18); }
.event-media .ph.poster.has-img { background: #fff; }
/* Real posters keep their own proportions */
.event-media .ph.poster.has-img { aspect-ratio: auto; }
.event-media .ph.poster.has-img img { height: auto; display: block; }
.tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand-2);
  color: var(--ink);
  margin-right: 6px;
  vertical-align: middle;
}
.tag.members { background: var(--seafoam); color: var(--navy); }
@media (max-width: 760px) {
  .event { grid-template-columns: 84px 1fr; }
  .event-date { justify-content: flex-start; padding: 22px 6px; }
  .event-date .day { font-size: 2.3rem; }
  .event-body { padding: 20px 18px; }
  .event-media { display: none; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.14); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.stat { background: var(--navy); padding: 30px 26px; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1; color: var(--seafoam); display: block; margin-bottom: 8px; }
.stat-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(11, 31, 46, 0.12); }
.card .ph { border-radius: 0; }
.card-body { padding: 24px 24px 28px; }
.card-body h3 { margin-bottom: 0.4em; }
.card-body p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* Mission band */
.mission { text-align: center; padding: 120px 0; background: var(--sand); }
.mission blockquote {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--navy);
}

/* Hours */
.hours { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hours li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hours li span:first-child { font-weight: 600; }
.hours li.closed span:last-child { color: var(--muted); }
.hours li.today { color: var(--ocean); }
.hours li.today span:first-child::after { content: " · Today"; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

.info-list { list-style: none; padding: 0; margin: 0 0 28px; }
.info-list li { padding: 6px 0; }
.info-list strong { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Membership tiers */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.tier.featured { background: var(--navy); color: #fff; border-color: var(--navy); }
.tier-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.tier-price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; margin: 10px 0 4px; }
.tier-price small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.tier.featured .tier-price small { color: rgba(255, 255, 255, 0.7); }
.tier ul { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; font-size: 0.95rem; }
.tier li { padding: 7px 0 7px 26px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 8px; border-radius: 0 0 8px 8px; background: var(--seafoam); }
@media (max-width: 1000px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiers { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 40px; padding: 0 0 44px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 86px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--seafoam); box-shadow: 0 0 0 5px var(--paper); }
.timeline .year { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ocean); line-height: 1.2; }
.timeline h3 { margin-bottom: 0.3em; font-size: 1.3rem; }
.timeline p { color: var(--muted); margin: 0; }
@media (max-width: 600px) {
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 34px; }
  .timeline li::before { left: 0; }
}

/* Newsletter (sand band so the page doesn't end in three dark sections) */
.newsletter { background: var(--sand); color: var(--navy); }
.newsletter .eyebrow { color: var(--ocean); }
.newsletter p { color: var(--muted); }
.newsletter-form { display: flex; gap: 10px; max-width: 520px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 240px;
  padding: 0.95em 1.2em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(122, 191, 179, 0.35); }
.newsletter .form-note a { color: var(--ocean); }
.form-note { font-size: 0.9rem; margin-top: 12px; min-height: 1.4em; }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); padding: 80px 0 36px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .footer-heading { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: 7px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--seafoam); }
.site-footer .logo { margin-bottom: 22px; }
.social { display: flex; gap: 14px; margin-top: 8px; }
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.footer-bottom ul { display: flex; gap: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--seafoam); outline-offset: 2px; }

/* Core values */
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.values span { padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }

/* Event filters */
.event-tags { margin-bottom: 10px; }
.event-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.chip:hover { border-color: var(--ocean); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Form states */
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(122, 191, 179, 0.35); }
.field input:user-invalid { border-color: var(--coral); }
.form-success { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--seafoam); border-radius: var(--radius); padding: 28px; }
.form-success:focus { outline: none; }
.form-success p { margin: 0; color: var(--muted); }

/* Map */
.map-wrap { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--sand-2); }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-weight: 600; color: var(--navy); }
.map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }

/* Links that leave the site */
.btn[target="_blank"]::after { content: "↗"; font-size: 1.05em; line-height: 1; }

/* Relative date badge on events */
.tag.soon { background: var(--navy); color: #fff; }

/* Back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(27, 46, 74, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--ocean); }
.to-top { flex-direction: column; gap: 2px; }
.to-top img { width: 30px; height: auto; }
.to-top-arrow { width: 14px; height: 7px; opacity: 0.85; }
.to-top.hop img { animation: sanderling-hop 0.5s ease; }
@keyframes sanderling-hop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-7px) rotate(-6deg); }
  70% { transform: translateY(1px); }
}
@media (prefers-reduced-motion: reduce) { .to-top.hop img { animation: none; } }
body.menu-open .to-top { display: none; }

/* Photos inside placeholder frames */
.ph.has-img { background: var(--sand-2); }
.ph.has-img::after { display: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph figcaption, .photo-credit { position: absolute; right: 10px; bottom: 8px; font-size: 0.7rem; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }

/* Founders, board and advisory committee */
.founders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.founder { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--seafoam); border-radius: var(--radius); padding: 24px; }
.founder h3 { font-size: 1.3rem; margin-bottom: 4px; }
.founder .role { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ocean); margin-bottom: 12px; }
.founder p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 1000px) { .founders { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .founders { grid-template-columns: 1fr; } }
.roster h3 { font-size: 1.3rem; margin: 32px 0 12px; }
.roster ul { list-style: none; padding: 0; margin: 0; columns: 4 180px; column-gap: 28px; }
.roster li { padding: 5px 0; break-inside: avoid; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.roster li small { color: var(--muted); }
.roster .note { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
blockquote.pull { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--seafoam); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--navy); }
.event-date .day-word { font-size: 2.2rem; }

/* Add-to-calendar menu */
.cal-menu { position: relative; display: inline-block; }
.cal-menu summary { list-style: none; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-options {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 5;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(27, 46, 74, 0.16);
  padding: 6px;
}
.cal-options a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--navy); }
.cal-options a:hover, .cal-options a:focus-visible { background: var(--sand); }

/* Photo viewer */
.ph.has-img img[data-zoom] { cursor: zoom-in; }
.ph.has-img img[data-zoom]:focus-visible { outline: 3px solid var(--seafoam); outline-offset: -3px; }
dialog.lightbox {
  width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(14, 24, 39, 0.88); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox figcaption { color: rgba(255, 255, 255, 0.85); text-align: center; font-size: 0.95rem; margin-top: 14px; padding: 0 12px; }
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-close svg { width: 24px; height: 24px; }

/* Split layouts that start at the top, with a photo that stays in view on desktop */
.split.align-start { align-items: start; }
@media (min-width: 861px) { .sticky-media { position: sticky; top: 100px; } }

/* Keep long timeline lines readable */
.timeline { max-width: 820px; }

/* Sticky "On this page" links (sit just under the compact header) */
.subnav { position: sticky; top: 73px; z-index: 40; }
.subnav a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
body:has(.subnav) [id] { scroll-margin-top: 140px; }
@media (max-width: 960px) { .subnav { top: 65px; } }

/* Advisory committee: first names shown, the rest behind a toggle */
.roster-more { margin-top: 0; }
.roster-more summary {
  display: inline-block;
  margin: 18px 0 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.roster-more summary::-webkit-details-marker { display: none; }
.roster-more summary:hover { border-color: var(--ocean); }

/* Scroll-in motion (classes added by main.js) */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
@media print { .reveal { opacity: 1; transform: none; } }

/* Live surf conditions in the homepage banner */
.hero-surf {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 22px 0 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
}
.hero-surf[hidden] { display: none; }
.hero-surf strong { font-weight: 600; color: #fff; }
.hero-surf a { color: rgba(255, 255, 255, 0.6); font-size: 0.72rem; text-underline-offset: 2px; }
.surf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--seafoam); box-shadow: 0 0 0 4px rgba(122, 191, 179, 0.3); }
@media (max-width: 640px) { .hero-surf { border-radius: 14px; } }

/* Share button and status toast */
.share-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.share-btn svg { width: 15px; height: 15px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 12px 30px rgba(27, 46, 74, 0.3);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.event.is-target { box-shadow: 0 0 0 3px var(--seafoam), 0 14px 30px rgba(27, 46, 74, 0.12); }

/* ---------- Phone-size refinements ---------- */
.btn-row-end { justify-content: flex-end; }

@media (max-width: 700px) {
  /* Card groups become swipeable rows (the next card peeks in) instead of long stacks */
  .cards, .tiers, .founders {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    margin: 0 -24px;
    padding: 4px 24px 14px;
    scrollbar-width: none;
  }
  .cards::-webkit-scrollbar, .tiers::-webkit-scrollbar, .founders::-webkit-scrollbar { display: none; }
  .cards > *, .tiers > *, .founders > * { scroll-snap-align: start; }
  .founders { margin-bottom: 40px; }
}

@media (max-width: 640px) {
  /* Tighter vertical rhythm */
  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
  .mission { padding: 72px 0; }
  .section-head { margin-bottom: 28px; }
  .stats { margin-top: 36px; }
  .split { gap: 28px; }
  .lede { font-size: 1.08rem; }
  .btn-row-end { justify-content: flex-start; }
  .hours li { padding: 11px 0; }

  /* Event tickets: date stub runs across the top so the details get the full width */
  .event { grid-template-columns: 1fr; }
  .event-date {
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
    padding: 12px 20px;
    border-right: 0;
    border-bottom: 2px dashed rgba(245, 235, 217, 0.5);
    border-radius: 15px 15px 0 0;
  }
  .event-date .day { font-size: 1.7rem; }
  .event-date::before, .event-date::after { top: auto; bottom: -13px; }
  .event-date::before { left: -13px; right: auto; }
  .event-date::after { right: -13px; left: auto; }
  .event-body { padding: 18px 20px 20px; }
  .event-meta { text-transform: none; letter-spacing: 0; font-size: 0.88rem; font-weight: 600; }
  .event-desc { font-size: 0.98rem; }

  /* Footer: link groups side by side */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .site-footer { padding-top: 56px; }
  .footer-bottom { margin-top: 36px; }
}

/* Line breaks: balanced headings, no single-word last lines in body text */
h1, h2, h3, blockquote, .tier-name { text-wrap: balance; }
p, li, .lede, figcaption { text-wrap: pretty; }

/* ---------- Wave details ---------- */

/* A small hand-drawn wave under section labels; it "draws" left to right when the section scrolls in */
main .section .eyebrow::after,
main .section-tight .eyebrow::after,
main .mission .eyebrow::after {
  content: "";
  display: block;
  width: 58px;
  height: 9px;
  margin-top: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 9'%3E%3Cpath d='M1.5 4.5 Q 8.5 0.5 15.5 4.5 T 29.5 4.5 T 43.5 4.5 T 56.5 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 9'%3E%3Cpath d='M1.5 4.5 Q 8.5 0.5 15.5 4.5 T 29.5 4.5 T 43.5 4.5 T 56.5 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: 0.75;
  clip-path: inset(0 0 0 0);
}
/* Centered labels get a centered wave */
.mission .eyebrow::after,
.section-tight[style*="text-align:center"] .eyebrow::after { margin-left: auto; margin-right: auto; }
/* Hidden until drawn (main.js adds .wave-ready, then .wave-drawn when in view) */
.wave-ready::after { clip-path: inset(0 100% 0 0) !important; transition: clip-path 1.1s cubic-bezier(0.45, 0, 0.2, 1) 0.15s; }
.wave-ready.wave-drawn::after { clip-path: inset(0 0 0 0) !important; }

/* Slow-rolling wave edge on top of the Collection section and the footer */
#collection, .site-footer { position: relative; }
#collection::before, .site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -34px;
  height: 36px;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 36' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C50 6 100 6 150 20 S250 34 300 20 S400 6 450 20 S550 34 600 20 V36 H0 Z'/%3E%3C/svg%3E") repeat-x 0 0 / 600px 36px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 36' preserveAspectRatio='none'%3E%3Cpath d='M0 20 C50 6 100 6 150 20 S250 34 300 20 S400 6 450 20 S550 34 600 20 V36 H0 Z'/%3E%3C/svg%3E") repeat-x 0 0 / 600px 36px;
  animation: wave-roll 22s linear infinite;
  pointer-events: none;
}
.site-footer::before { animation-duration: 28s; animation-direction: reverse; }
@keyframes wave-roll {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to { -webkit-mask-position: 600px 0; mask-position: 600px 0; }
}
@media (max-width: 640px) {
  #collection::before, .site-footer::before { top: -22px; height: 24px; -webkit-mask-size: 400px 24px; mask-size: 400px 24px; }
  @keyframes wave-roll { to { -webkit-mask-position: 400px 0; mask-position: 400px 0; } }
}
@media (prefers-reduced-motion: reduce) {
  #collection::before, .site-footer::before { animation: none; }
  .wave-ready::after { transition: none; }
}

/* ---------- Slide night: archive photos in a projected slide mount ---------- */
.slide-night {
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(245, 235, 217, 0.13), rgba(245, 235, 217, 0) 70%),
    var(--navy);
  color: #fff;
  overflow: hidden;
}
.slide-intro { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.slide-intro .eyebrow { color: var(--seafoam); }
.slide-intro .eyebrow::after { margin-left: auto; margin-right: auto; }
.slide-intro .lede { color: rgba(255, 255, 255, 0.78); margin: 0 auto; }
.projector { max-width: 660px; margin: 0 auto; }
/* The cardboard slide mount */
.slide-mount {
  position: relative;
  padding: 26px 26px 46px;
  border-radius: 14px;
  background: linear-gradient(160deg, #f8f1e3, #ece0c8);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.08) inset;
  transform: rotate(-0.6deg);
}
.slide-window {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 3px;
  background: #0d1622;
  box-shadow: 0 0 0 2px rgba(27, 46, 74, 0.18), inset 0 0 40px rgba(0, 0, 0, 0.5);
}
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.9s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.04) sepia(0.08); transform: scale(1.04); transition: transform 6s ease-out; }
.slide.active img { transform: scale(1); }
/* Vignette, like light falling off at the edge of a projected slide */
.slide-window::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%); }
/* A quick projector flicker on each change */
.slide-window.flick { animation: projector-flick 0.4s ease; }
@keyframes projector-flick {
  0% { filter: brightness(1); }
  25% { filter: brightness(1.35); }
  55% { filter: brightness(0.85); }
  100% { filter: brightness(1); }
}
.mount-label, .mount-num {
  position: absolute;
  bottom: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.6;
}
.mount-label { left: 28px; }
.mount-num { right: 28px; font-family: "Courier New", monospace; font-size: 0.9rem; letter-spacing: 0.1em; }
.slide-caption { text-align: center; margin: 30px auto 18px; max-width: 46ch; min-height: 3em; color: rgba(255, 255, 255, 0.88); font-family: var(--font-display); font-style: italic; font-size: 1.15rem; }
.slide-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.slide-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.slide-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.slide-btn svg { width: 20px; height: 20px; }
.slide-play .i-play { display: none; }
.slide-play.paused .i-play { display: block; }
.slide-play.paused .i-pause { display: none; }
.slide-count { margin-left: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
@media (max-width: 640px) {
  .slide-mount { padding: 14px 14px 34px; transform: none; }
  .mount-label { left: 16px; bottom: 11px; font-size: 0.6rem; }
  .mount-num { right: 16px; bottom: 9px; }
  .slide-caption { font-size: 1.02rem; margin-top: 22px; }
  .slide-count { flex-basis: 100%; text-align: center; margin: 6px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide img { transition: none; }
  .slide img { transform: none; }
  .slide-window.flick { animation: none; }
}

/* Events without a photo: details take the full width */
.event:not(:has(.event-media)) { grid-template-columns: 132px 1fr; }
@media (max-width: 640px) { .event:not(:has(.event-media)) { grid-template-columns: 1fr; } }

/* Know Before You Go (Visit page) */
.faq { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ocean);
  border-bottom: 2px solid var(--ocean);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq-item summary:hover { color: var(--ocean); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
