/* ==========================================================================
   Finca Escondida — Racket & Social Club
   Implementation of "Finca Escondida v2.dc.html"
   ========================================================================== */

/* Tokens, reset and shared components now live in
   packages/design-system and are linked ahead of this file. */

/* --- Announcement ticker -------------------------------------------------- */

.ticker {
  background: var(--gold);
  color: var(--forest);
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  gap: 48px;
  padding: 8px 24px;
  animation: fe-marquee 34s linear infinite;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
@keyframes fe-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--forest);
  color: var(--paper);
  border-bottom: 1px solid var(--rule-paper-18);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--paper); }
.brand__mark { width: 42px; height: 42px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand__place {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.nav__link {
  color: var(--cream);
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.nav__link:hover { color: var(--gold); }

.lang {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--sage);
}
.lang__opt { color: var(--sage); text-decoration: none; transition: color 0.18s ease; }
.lang__opt:hover { color: var(--gold); }
.lang__opt--active { color: var(--paper); }
.lang__opt--active:hover { color: var(--paper); }

.nav__cta {
  background: var(--gold);
  color: var(--forest);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}
.nav__cta:hover { background: var(--paper); color: var(--forest); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--forest);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 42, 28, 0.94) 0%,
    rgba(14, 42, 28, 0.72) 50%,
    rgba(14, 42, 28, 0.70) 100%
  );
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  padding: 128px var(--gutter) 88px;
}
.hero__eyebrow {
  margin: 0 0 24px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__title {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(50px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--paper-warm);
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__sub {
  margin: 0 auto 40px;
  max-width: 40ch;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-cool);
  line-height: 2;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Choose your experience ----------------------------------------------- */

.experience {
  background: var(--forest);
  color: var(--paper);
  border-top: 1px solid var(--rule-paper-18);
  padding: 64px var(--gutter) 76px;
}
.experience__kicker {
  margin: 0 0 24px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.experience__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.tab-chip {
  cursor: pointer;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 28px;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--rule-paper-40);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.tab-chip:hover { border-color: var(--gold); color: var(--gold); }
.tab-chip.is-active {
  background: var(--gold);
  color: var(--forest);
  border-color: var(--gold);
}
.tab-chip.is-active:hover { background: var(--gold); color: var(--forest); }

.experience__panels { margin-top: 40px; }
.panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 44px;
  align-items: center;
}
/* Panels 2-4 are hidden by app.js on load; without JS all four read in order. */
.panel + .panel { margin-top: 64px; }
/* .panel sets display:grid, which outranks the UA's [hidden]{display:none}. */
.panel[hidden] { display: none; }

.panel__title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper-warm);
}
.panel__body {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream-warm);
  max-width: 44ch;
}
.panel__points {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel__points li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cream);
}
.panel__dash { color: var(--gold); }
.panel__media {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: var(--forest-tint);
}
.panel__media img { width: 100%; height: 100%; object-fit: cover; }

/* --- Intro ---------------------------------------------------------------- */

.intro {
  background: var(--paper);
  padding: 96px var(--gutter);
}
.intro__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.intro .kicker { margin-bottom: 20px; }
.intro .display { margin-bottom: 28px; line-height: 1.04; }
.intro__body {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--moss);
  text-wrap: pretty;
}
.intro__body:last-child { margin-bottom: 0; }
/* Five facts under the welcome text, one row on wide screens. */
.intro__facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 0;
  border-top: 1px solid var(--rule-ink-16);
  border-bottom: 1px solid var(--rule-ink-16);
  text-align: left;
}
.intro__facts > div { padding: 18px 16px; }
.intro__facts > div + div { border-left: 1px solid var(--rule-ink-16); }
.intro__facts dt { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--moss-mute); margin-bottom: 6px; }
.intro__facts dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--forest); }
@media (max-width: 900px) {
  .intro__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro__facts > div + div { border-left: 0; }
  .intro__facts > div { border-bottom: 1px solid var(--rule-ink-16); }
  .intro__facts > div:nth-child(even) { border-left: 1px solid var(--rule-ink-16); }
  .intro__facts > div:last-child { border-bottom: 0; }
  /* an odd last fact takes the whole row */
  .intro__facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }
}

/* --- Audience cards ------------------------------------------------------- */

.audiences {
  background: var(--paper);
  padding: 0 var(--gutter) 96px;
}
.audiences__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.audience { display: flex; flex-direction: column; }
.audience__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--stone);
}
.audience__media img { width: 100%; height: 100%; object-fit: cover; }
.audience__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 42, 28, 0.85) 0%, rgba(14, 42, 28, 0.55) 50%, rgba(14, 42, 28, 0.12) 78%);
}
.audience__copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
}
.audience__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  color: var(--paper-warm);
}
.audience__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--cream-warm);
}

/* --- Destination ---------------------------------------------------------- */

.destination {
  background: var(--sand);
  padding: 96px var(--gutter);
}
.destination .kicker { margin-bottom: 16px; }
.destination__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 48px;
  align-items: start;
}
.acc { border-top: 1.5px solid var(--forest); }
.acc__rule { border-top: 1.5px solid var(--forest); }
.acc__head {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 24px 0;
  color: var(--forest);
  text-align: left;
}
.acc__name {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
}
.acc__icon {
  font-size: 24px;
  color: var(--terracotta);
  line-height: 1;
}
.acc__body {
  overflow: hidden;
  max-height: 280px;
  opacity: 1;
  padding: 0 0 24px;
  visibility: visible;
  transition: max-height 280ms ease, opacity 220ms ease, padding 220ms ease, visibility 0s linear 0s;
}
.acc__body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--moss);
  max-width: 56ch;
}
.acc.is-collapsed .acc__body {
  max-height: 0;
  opacity: 0;
  padding: 0;
  /* hidden once the close animation ends: no focus or screen reader stop inside a closed panel */
  visibility: hidden;
  transition: max-height 280ms ease, opacity 220ms ease, padding 220ms ease, visibility 0s linear 280ms;
}

.destination__media {
  height: 460px;
  overflow: hidden;
  background: var(--stone);
}
.destination__media img { width: 100%; height: 100%; object-fit: cover; }

/* --- The club ------------------------------------------------------------- */

.facilities {
  background: var(--paper);
  padding: 96px var(--gutter);
}
.facility-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 36px 32px;
}
.facility { display: flex; flex-direction: column; }
.facility__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--stone);
}
.facility__media img { width: 100%; height: 100%; object-fit: cover; }
.facility__num {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--forest);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 8px 12px;
}
.facility__title {
  margin: 20px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
}
.facility__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--moss);
}

/* --- Packages ------------------------------------------------------------- */

.packages {
  background: var(--forest);
  color: var(--paper);
  padding: 96px var(--gutter);
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 24px;
}
.package {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule-paper-22);
  background: rgba(243, 240, 230, 0.035);
}
.package__media {
  height: 170px;
  overflow: hidden;
  background: var(--forest-tint);
}
.package__media img { width: 100%; height: 100%; object-fit: cover; }
.package__body {
  padding: 24px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.package__kind {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.package__title {
  margin: 12px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.15;
  color: var(--paper-warm);
}
.package__lede {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cream-warm);
}
.package__points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.package__points li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--cream-dim);
}
.package__dash { color: var(--gold); }
.package__foot {
  padding-top: 16px;
  border-top: 1px solid var(--rule-paper-20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
@media (min-width: 600px) and (max-width: 1179px) {
  .package__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.package__price {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.package__cta {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--forest);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 20px;
  transition: background-color 0.18s ease;
}
.package__cta:hover { background: var(--paper); color: var(--forest); }
/* Secondary card action: a quiet text link, so the gold button stays the one
   primary action on a card. */
.package__cta--quiet {
  background: transparent;
  color: var(--paper);
  padding-left: 0;
  padding-right: 0;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: color 0.18s ease;
}
.package__cta--quiet:hover { background: transparent; color: var(--gold); }

/* --- Booking -------------------------------------------------------------
   Two columns: a fixed copy rail on the left, a three-step reservation flow
   on the right. Cards are white on the section's warm ground.
   ------------------------------------------------------------------------ */

.booking {
  background: var(--shell);
  color: var(--forest);
  padding: 96px var(--gutter);
  border-top: 1px solid var(--rule-ink-12);
}
.booking__layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);   /* the flow is the work; the rail introduces it */
  gap: 72px;
  align-items: start;
}
.booking__intro { position: sticky; top: 104px; }
.booking__intro .display { font-size: clamp(30px, 3.6vw, 48px); }
.booking__blurb {
  margin: 24px 0 40px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--moss);
  max-width: 42ch;
}

/* Outline button for light grounds (the vendor set only has --ghost-light,
   for dark ones). Used by the booking section and the 404 page. */
.btn--ghost { border: 1px solid var(--forest); color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: var(--paper); }
/* A filled .btn that is a <button> (it opens the opening dialog) keeps the
   look of the links beside it: no browser border, same type, a pointer. */
button.btn--gold, button.btn--paper { border: 0; font-family: inherit; cursor: pointer; }

/* How booking works (src/partials/booking-info.html): the club books in its
   own software, so the home page explains it where the request board was. */
.booking-info {
  background: var(--shell);
  color: var(--forest);
  padding: 96px var(--gutter);
  border-top: 1px solid var(--rule-ink-12);
}
.booking-info__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 72px;
  align-items: start;
}
.booking-info__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.booking-info__facts .spec__row { align-items: baseline; }
@media (max-width: 1100px) {
  .booking-info__inner { grid-template-columns: minmax(0, 1fr); }
}

/* Label / value rail */
.spec { margin: 0; }
.spec__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-ink-16);
}
.spec__row:first-child { border-top: 1px solid var(--rule-ink-16); }
.spec dt {
  font-size: 14.5px;
  color: var(--moss);
}
.spec dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--forest);
  text-align: right;
}

/* --- Weekly schedule ------------------------------------------------------ */

.schedule {
  background: var(--paper);
  padding: 92px var(--gutter);
}
.schedule .display { margin-bottom: 12px; }
.schedule__row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 24px 4px;
  border-bottom: 1px solid var(--rule-ink-16);
}
.schedule__day {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--terracotta-text);
}
.schedule__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.schedule__tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  white-space: nowrap;
}

/* --- Coaching ------------------------------------------------------------- */

.coaching {
  background: var(--paper);
  padding: 0 var(--gutter) 92px;
}
.coaching__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 44px;
}
.coaching__lede {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--moss);
  max-width: 32ch;
}
.coaching__media {
  height: 250px;
  overflow: hidden;
  background: var(--stone);
}
.coaching__media img { width: 100%; height: 100%; object-fit: cover; }

.coach {
  padding: 24px 0;
  border-top: 1px solid var(--rule-ink-22);
}
.coach__head {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.coach__discipline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta-text);
  flex: 0 0 8.75em;
  min-width: 0;
}
@media (max-width: 900px) {
  .coach__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .coach__discipline { flex-basis: auto; }
}
.coach__role {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.15;
}
.coach__detail {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--moss);
  max-width: 52ch;
}

/* --- Dining --------------------------------------------------------------- */

.dining {
  background: var(--plum);
  color: var(--paper);
}
.dining__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.dining__copy { padding: 92px 48px 92px var(--gutter); }
.dining .kicker { margin-bottom: 12px; }

/* The club's crest sits beside the restaurant's name — the dining band is the
   one place on the page where the two brands appear together. */
.dining__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin-bottom: 24px;
}
.dining__head .display { margin-bottom: 0; }
/* The restaurant's own mark beside its name (a transparent cut of the
   lotuslime.com logo), and the club's crest beside the button: the band is
   Lotus & Lime's, hosted at Finca Escondida. */
.dining__logo {
  width: clamp(104px, 11vw, 140px);
  height: auto;
  flex-shrink: 0;
}
.dining__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
}
.dining__crest {
  margin-left: auto;                 /* right-hand side, also when it wraps under the button */
  width: clamp(72px, 7vw, 96px);
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.dining__lede {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--rose-body);
  max-width: 42ch;
}
.dining__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--rule-paper-30);
  border-bottom: 1px solid var(--rule-paper-30);
}
.dining__label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-label);
  margin-bottom: 8px;
}
.dining__value {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--paper-warm);
}
.dining__media { position: relative; min-height: 400px; }
.dining__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Season --------------------------------------------------------------- */

.season {
  background: var(--paper);
  padding: 92px var(--gutter);
}
.season__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.event {
  border-top: 1.5px solid var(--forest);
  padding: 24px 24px 24px 0;
}
.event__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 16px;
}
.event__date {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--terracotta-text);
}
.event__format {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
}
.event__title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.12;
}
/* An event with its own page: the title links there, in the title's colour. */
.event__title a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.event__title a:hover { color: var(--terracotta-text); }
.event__detail {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--moss);
  max-width: 34ch;
}

/* --- Gallery — bento mosaic ----------------------------------------------
   One feature tile carrying two columns and two rows, two portrait tiles
   beside it, two wide tiles beneath. Each tile captions itself.
   ------------------------------------------------------------------------ */

.gallery {
  background: var(--paper);
  padding: 0 var(--gutter) 92px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 236px;
  gap: 16px;
}
/* Every tile is half the grid; the feature also takes two rows, so the five
   tiles tile the 4x3 grid exactly: feature left, two stacked right, two below. */
.tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--stone);
  grid-column: span 2;
  grid-row: span 1;
}
.tile--feature { grid-row: span 2; }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tile:hover img { transform: scale(1.04); }

.tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 42, 28, 0.88) 0%, rgba(14, 42, 28, 0.32) 42%, rgba(14, 42, 28, 0) 68%);
}
/* The pavilion photo is bright sky and white roof where its title sits. */
.tile:has(img[src*="/img/pavilion-"]) .tile__scrim {
  background: linear-gradient(to top, rgba(14, 42, 28, 0.9) 0%, rgba(14, 42, 28, 0.62) 55%, rgba(14, 42, 28, 0.15) 85%);
}
.tile__copy {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
}
.tile__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.1;
  color: var(--paper-warm);
}
.tile--feature .tile__title { font-size: 34px; }
.tile__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream-warm);
  max-width: 40ch;
}

/* --- Newsletter ----------------------------------------------------------- */

.signup {
  background: var(--sand);
  padding: 76px var(--gutter);
  border-top: 1px solid var(--rule-ink-16);
}
.signup__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.signup .kicker { margin-bottom: 16px; }
.signup__lede {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--moss);
}
.signup__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.signup__input {
  flex: 1 1 280px;
  max-width: 380px;
  background: var(--paper-warm);
  border: 1px solid var(--rule-ink-55);
  color: var(--forest);
  padding: 16px 16px;
  font-size: 15px;
  border-radius: 2px;
  transition: border-color 0.18s ease;
}
.signup__input:focus { border-color: var(--terracotta); }
.signup__input::placeholder, .opening__input::placeholder { color: var(--moss-mute); opacity: 1; }
.signup__form .field__error { flex-basis: 100%; order: 3; margin: 0; }
.signup__submit {
  background: var(--forest);
  color: var(--paper);
  border: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.signup__submit:hover { background: var(--terracotta-text); }   /* paper on it reads at 5.2:1 */
.signup__submit[disabled] { cursor: default; }

/* --- Visit ---------------------------------------------------------------- */

.visit {
  background: var(--forest);
  color: var(--paper);
  padding: 92px var(--gutter);
}
.visit__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 52px;
}
.visit .kicker { margin-bottom: 12px; }
.visit__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 24px;
}
.visit__label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}
.visit__value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream);
}
.visit__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--gold);
}
.visit__link--inline { margin-top: 0; font-size: 15px; }
.visit__link:hover { color: var(--paper); }

.enquiry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-content: start;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
}
.field__input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-paper-40);   /* 3.3:1 on forest */
  color: var(--paper);
  padding: 12px 0;
  font-size: 15px;
  border-radius: 0;
  transition: border-color 0.18s ease;
}
.field__input:focus { border-bottom-color: var(--gold); }
.field__input::placeholder { color: rgba(243, 240, 230, 0.45); }
select.field__input option { color: var(--forest); }
/* Safari draws its own rounded pill and ignores the padding: draw the
   chevron ourselves so the select matches the underlined inputs. */
select.field__input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F3F0E6' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px 8px;
}
@media (max-width: 560px) { .enquiry { grid-template-columns: minmax(0, 1fr); } }

.enquiry__submit {
  grid-column: 1 / -1;
  justify-self: start;
  background: var(--gold);
  color: var(--forest);
  border: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.18s ease;
}
.enquiry__submit:hover { background: var(--paper); }
.enquiry__submit[disabled] { cursor: default; }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--forest-deep);
  color: var(--sage);
  padding: 64px var(--gutter) 40px;
  border-top: 1px solid var(--rule-paper-12);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 40px;
}
.site-footer__mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
}
.site-footer__name {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}
.site-footer__addr {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
}
.site-footer__title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-footer__links a {
  display: inline-block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.18s ease;
}
.site-footer__links a:hover { color: var(--gold); }

.site-footer__bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-paper-14);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.site-footer__bottom p { margin: 0; font-size: 12px; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1100px) {
  .booking__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .booking__intro { position: static; }
  .booking__blurb { max-width: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }

  /* Keep the sticky bar one line tall instead of wrapping the whole nav. */
  .nav {
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }

  .hero__inner    { padding-top: 100px; padding-bottom: 72px; }
  .experience     { padding: 56px var(--gutter) 64px; }
  .panel__media   { height: 300px; }
  .intro          { padding: 72px var(--gutter); }
  .audiences      { padding: 0 var(--gutter) 72px; }
  .destination    { padding: 72px var(--gutter); }
  .destination__media { height: 320px; }
  .facilities     { padding: 72px var(--gutter); }
  .packages       { padding: 72px var(--gutter); }
  .booking        { padding: 72px var(--gutter); }
  .schedule       { padding: 68px var(--gutter); }
  .coaching       { padding: 0 var(--gutter) 68px; }
  .dining__copy   { padding: 68px var(--gutter); }
  .dining__media  { min-height: 300px; }
  .season         { padding: 68px var(--gutter); }
  .gallery        { padding: 0 var(--gutter) 68px; }
  .signup         { padding: 64px var(--gutter); }
  .visit          { padding: 68px var(--gutter); }

  /* Bento: two columns, the feature keeps its double height */
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .tile { grid-column: span 1; }
  .tile--feature { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 640px) {
  .schedule__row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px 16px;
  }
  .schedule__tag { grid-column: 2; }

  .event { padding-right: 0; }

  /* Step rail: every label stays readable; only the connectors shrink */
  .step { gap: 8px; }
  .step + .step::before { width: 8px; margin: 0 8px; }

  .card { padding: 16px 8px 16px; }
  .day { min-height: 44px; }
  .day__num { font-size: 15px; }

  .stage__actions { flex-direction: column; }
  .stage__back { width: 100%; }

  /* Bento: a single column, every tile the same height */
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
  .tile, .tile--feature { grid-column: span 1; grid-row: span 1; }
  .tile--feature .tile__title { font-size: 27px; }
}

/* --- Print ---------------------------------------------------------------- */

@media print {
  .ticker, .site-header, .steps, .stage, .legend,
  .enquiry, .signup__form, .skip-link, .experience__tabs { display: none; }
  body { background: #fff; }
  .hero { min-height: auto; }
  .panel[hidden] { display: grid !important; }
}

/* ==========================================================================
   v3 — header with centred lockup and a tab bar, plus the page scaffolding
   the inner pages share (Membership, academies, GuanaGolf, Events, Lotus &
   Lime, About, Contact). The v2 one-page sections above are untouched.
   ========================================================================== */

/* --- Masthead: phone · lockup · social ------------------------------------ */

.masthead {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter) 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.masthead__side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.masthead__side--right { justify-content: flex-end; }

.masthead__phone {
  color: var(--cream);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--rule-paper-30);
  border-radius: 999px;
  padding: 8px 16px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.masthead__phone:hover { color: var(--gold); border-color: var(--gold); }
/* The number is not confirmed yet: keep the slot visible, mark it as pending. */
.masthead__phone--pending { color: var(--sage); border-style: dashed; }

.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--paper);
  text-decoration: none;
  text-align: center;
}
.lockup:hover { color: var(--paper); }
.lockup__mark { width: 48px; height: 48px; border-radius: 50%; }
.lockup__text { display: flex; flex-direction: column; gap: 8px; }
.lockup__name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.lockup__tag {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
}

.social { display: flex; gap: 4px; }
.social__link {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cream);
  border: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.social__link svg { width: 18px; height: 18px; }
.social__link:hover { color: var(--gold); border-color: var(--rule-paper-30); }

.menu-toggle {
  display: none;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  gap: 8px;
  background: none;
  border: 1px solid var(--rule-paper-30);
  border-radius: 999px;
  color: var(--cream);
  padding: 8px 16px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-toggle__bars i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.site-header.is-open .menu-toggle__bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header.is-open .menu-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle__bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- Tab bar ---------------------------------------------------------------- */

.navbar { border-top: 1px solid var(--rule-paper-14); }
.navbar__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
}
.navbar__item { position: relative; display: flex; align-items: center; }
.navbar__link {
  display: block;
  padding: 16px 16px 16px;
  color: var(--cream);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.navbar__link:hover { color: var(--gold); }
.navbar__link.is-active { color: var(--gold); border-bottom-color: var(--gold); }

.navbar__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;                   /* looks like a caret, hits like a button */
  height: 44px;
  margin-left: -16px;
  background: none;
  border: 0;
  color: var(--sage);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.navbar__more:hover, .navbar__more[aria-expanded="true"] { color: var(--gold); }
/* A real chevron instead of a text glyph, which renders as a dot at this size. */
.navbar__more span { display: none; }
.navbar__more::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}
.navbar__more[aria-expanded="true"]::before,
.navbar__item--menu:hover .navbar__more::before { transform: translateY(2px) rotate(225deg); }
.navbar__item--menu.is-suppressed .navbar__sub { opacity: 0 !important; visibility: hidden !important; }

.navbar__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  background: var(--forest-deep);
  border: 1px solid var(--rule-paper-18);
  border-top: 2px solid var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
  z-index: 5;
}
.navbar__item--menu:hover .navbar__sub,
.navbar__item--menu.is-open .navbar__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.navbar__sub a {
  display: block;
  padding: 12px 20px;
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.navbar__sub a:hover { color: var(--gold); background: var(--rule-paper-12); }

.navbar__item--cta { margin-left: 16px; }
/* Book is first in the DOM so it leads the drawer; on the desktop bar it
   still sits last. Order beats moving the node: tab order stays DOM order. */
@media (min-width: 1025px) { .navbar__item--cta { order: 10; } }
.navbar__cta {
  background: var(--gold);
  color: var(--forest);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 2px;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}
.navbar__cta:hover { background: var(--paper); color: var(--forest); }

/* --- Page head (inner pages) ---------------------------------------------- */

.pagehead {
  background: var(--forest);
  color: var(--paper);
  padding: 84px var(--gutter) 72px;
}
.pagehead__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 48px;
  align-items: end;
}
.pagehead .kicker { color: var(--gold); }
.pagehead .display { color: var(--paper-warm); margin-bottom: 24px; }
.pagehead__lede {
  margin: 0;
  max-width: 58ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cream);
}
.pagehead__aside {
  display: grid;
  gap: 16px;
  justify-self: end;
  text-align: right;
}
.pagehead__label {
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 4px;
}
.pagehead__value { font-family: var(--serif); font-size: 22px; color: var(--paper-warm); }

/* --- Generic sections ------------------------------------------------------ */

.section { background: var(--paper); padding: 92px var(--gutter); }
.section--sand { background: var(--sand); }
.section--forest { background: var(--forest); color: var(--paper); }
.section--forest .kicker { color: var(--gold); }
.section--forest .display { color: var(--paper-warm); }
.section--tight { padding-top: 64px; padding-bottom: 64px; }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 64px;
  align-items: start;
}
.section__split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.section__sticky { position: sticky; top: 140px; }

.prose { max-width: 64ch; font-size: 17px; line-height: 1.7; color: var(--moss); }
.prose p { margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 20px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.section--forest .prose { color: var(--cream); }
.lede { font-size: 19px; line-height: 1.6; color: var(--moss); max-width: 58ch; margin: 0 0 28px; }
.section--forest .lede { color: var(--cream); }

/* A fact the club still has to supply. Visible on purpose: a TBD that looks
   finished gets published by accident. */
.pending {
  color: var(--terracotta);
  border-bottom: 1px dashed var(--terracotta);
  font-style: normal;
}
.section--forest .pending { color: var(--gold); border-bottom-color: var(--gold); }

/* A photograph the club still has to supply. A solid ground with a faint
   crest behind the label, so the frame reads as a deliberate placeholder and
   not as a broken image. */
.ph {
  position: relative;
  isolation: isolate;            /* the crest sits behind the label, above the ground */
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  overflow: hidden;
  background: var(--forest-tint);
  color: var(--sage);
  text-align: center;
  padding: 24px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.7;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: auto;
  width: min(40%, 128px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: url("/img/crest-128.webp") center / contain no-repeat;
  opacity: 0.2;
  pointer-events: none;
}
.ph--wide { aspect-ratio: 16 / 9; }
.img--fill { width: 100%; }        /* photos narrower than their column still span it */
.ph--paper { background: var(--stone); color: var(--moss); }   /* moss-mute is 4.0:1 on stone */

/* --- Rates ---------------------------------------------------------------- */

.rate-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 24px;
}
.rate-card {
  background: var(--paper-warm);
  color: var(--forest);          /* a paper surface even inside a forest section */
  border: 1px solid var(--rule-ink-12);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rate-card--featured { border-color: var(--forest); box-shadow: inset 0 3px 0 var(--gold); }
.rate-card__kind {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive);
}
.rate-card__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--forest); }
.rate-card__price {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}
.rate-card__price small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; color: var(--moss-mute); margin-left: 8px; }
.rate-card__unit { font-size: 13px; color: var(--moss-mute); }
.rate-card__points {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--moss);
}
.rate-card__points li { display: flex; gap: 8px; }
.rate-card__points li::before { content: "—"; color: var(--terracotta); flex-shrink: 0; }
.rate-card__foot { margin-top: auto; padding-top: 16px; }

.table-scroll { overflow-x: auto; }
.rates {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.rates th, .rates td {
  text-align: left;
  padding: 16px 16px;
  border-bottom: 1px solid var(--rule-ink-12);
  vertical-align: top;
}
.rates th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-mute);
}
.rates td { font-size: 16px; color: var(--forest); }
.rates td:first-child { font-family: var(--serif); font-size: 20px; }
.rates__price { font-family: var(--serif); font-size: 26px; white-space: nowrap; }
.rates__unit { display: block; font-size: 12.5px; color: var(--moss-mute); margin-top: 2px; }
.rates__note { font-size: 13.5px; color: var(--moss-mute); line-height: 1.5; }
.rates--right td:not(:first-child), .rates--right th:not(:first-child) { text-align: right; }

.smallprint { font-size: 13.5px; line-height: 1.6; color: var(--moss-mute); max-width: 64ch; }

/* --- Programs (class levels, youth groups, clinics) ----------------------- */

.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 28px 32px;
}
.program { border-top: 2px solid var(--forest); padding-top: 16px; }
.section--forest .program { border-top-color: var(--gold); }
.program__level {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 12px;
}
.section--forest .program__level { color: var(--sage); }
.program__title { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--forest); }
.section--forest .program__title { color: var(--paper-warm); }
.program__body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--moss); }
.section--forest .program__body { color: var(--cream); }
.program__meta {
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss-mute);
}
.section--forest .program__meta { color: var(--sage); }

/* --- FAQ -------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule-ink-16); }
.faq:last-child { border-bottom: 1px solid var(--rule-ink-16); }
.faq__q {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--forest);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; color: var(--terracotta-text); font-family: var(--sans); }
.faq[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--moss); max-width: 64ch; }
.faq__a p { margin: 0 0 12px; }
.faq__a p:last-child { margin-bottom: 0; }

/* --- Call-to-action band ---------------------------------------------------- */

.cta-band { background: var(--forest); color: var(--paper); padding: 72px var(--gutter); }
.cta-band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.cta-band .display { color: var(--paper-warm); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Responsive ------------------------------------------------------------- */

@media (max-width: 1180px) {
  .navbar__link { padding-left: 8px; padding-right: 8px; font-size: 11px; letter-spacing: 0.14em; }
  .navbar__more { margin-left: -8px; }
  .navbar__item--cta { margin-left: 8px; }
  .navbar__cta { padding-left: 16px; padding-right: 16px; }
  .section__split, .section__split--even { grid-template-columns: minmax(0, 1fr); }
  .section__sticky { position: static; }
}

@media (max-width: 1024px) {
  .masthead { grid-template-columns: auto minmax(0, 1fr) auto; padding: 12px var(--gutter); }
  .masthead__phone { padding: 8px 12px; font-size: 10.5px; }
  .lockup__mark { width: 40px; height: 40px; }
  .lockup__name { font-size: 16px; letter-spacing: 0.18em; }
  .lockup__tag { display: none; }
  .masthead__side--right .social { display: none; }
  .menu-toggle { display: inline-flex; }

  /* The tab bar becomes a drawer under the masthead. */
  .navbar {
    display: none;
    position: fixed;
    top: var(--header-h, 64px);
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    background: var(--forest);
    border-top: 1px solid var(--rule-paper-18);
    z-index: 59;
  }
  .site-header.is-open .navbar { display: block; }
  .navbar__list { flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 40px; }
  .navbar__item { flex-direction: column; align-items: stretch; }
  .navbar__link {
    padding: 16px 0 16px;
    font-size: 14px;
    letter-spacing: 0.14em;
    border-bottom: 1px solid var(--rule-paper-14);
  }
  .navbar__more { display: none; }
  .navbar__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 8px 0 12px;
  }
  .navbar__sub a { padding: 8px 0 8px 16px; font-size: 14px; color: var(--sage); }
  .navbar__item--cta { margin: 20px 0 0; }
  .navbar__cta { display: block; text-align: center; padding: 16px 24px; }
  body.menu-open { overflow: hidden; }

  .pagehead { padding: 60px var(--gutter) 52px; }
  .pagehead__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pagehead__aside { justify-self: start; text-align: left; grid-auto-flow: column; gap: 32px; }
  .section { padding: 68px var(--gutter); }
  .section--tight { padding-top: 48px; padding-bottom: 48px; }
  .cta-band { padding: 56px var(--gutter); }
}

@media (max-width: 640px) {
  .masthead__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    padding: 0;
    font-size: 0;               /* icon only; the number stays in the link's title and href */
  }
  .masthead__phone::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.6 3.6a1 1 0 0 1-.25 1z'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.6 3.6a1 1 0 0 1-.25 1z'/></svg>") center / contain no-repeat;
  }
  .lockup__name { font-size: 15px; letter-spacing: 0.16em; white-space: nowrap; }
  .rate-card__price { font-size: 36px; }
  .faq__q { font-size: 19px; }
  .pagehead__aside { grid-auto-flow: row; gap: 16px; }
}

/* Placeholders inside the v2 media frames fill the frame like the photo would. */
.panel__media .ph, .facility__media .ph, .package__media .ph, .audience__media .ph {
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
}
.season__more { margin: 36px 0 0; }

/* Spacing utilities for the inner pages, so page sources carry no inline styles. */
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 44px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 28px; }
.muted-on-forest { color: var(--sage); }

/* Anchor targets (e.g. /pickleball#youth from the tab bar) must land below the
   sticky masthead + tab bar, not underneath them. scroll-padding on the root
   covers every way of getting there — fragment jumps, focus() and
   scrollIntoView() — so no per-element scroll-margin (the two would stack). */
html { scroll-padding-top: 140px; }
@media (max-width: 1024px) { html { scroll-padding-top: 72px; } }


/* ==========================================================================
   Responsive hardening — measured with scripts/audit-responsive.mjs
   ========================================================================== */

/* Grids that know how many items they hold, so a set of three never ends as
   2 + 1 and a set of four never as 3 + 1 (Prägnanz: rows read as complete). */
@media (min-width: 640px) {
  .programs:has(> :nth-child(4):last-child),
  .package-grid:has(> :nth-child(4):last-child),
  .facility-grid:has(> :nth-child(4):last-child),
  .rate-cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit__facts:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 700px) {
  .programs:has(> :nth-child(3):last-child),
  .season__grid:has(> :nth-child(3):last-child),
  .audiences__grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .season__grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .programs:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facility-grid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .package-grid:has(> :nth-child(4):last-child),
  .facility-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facility-grid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Sets of three and five, which hiding golf leaves on the home, About and 404
   pages: three in a row, five as two wide cards over three narrow ones. */
@media (min-width: 480px) {
  .facility-grid:has(> :nth-child(5):last-child),
  .programs:has(> :nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .facility-grid:has(> :nth-child(5):last-child) > :nth-child(-n+2),
  .programs:has(> :nth-child(5):last-child) > :nth-child(-n+2) { grid-column: span 3; }
  .facility-grid:has(> :nth-child(5):last-child) > :nth-child(n+3),
  .programs:has(> :nth-child(5):last-child) > :nth-child(n+3) { grid-column: span 2; }
}
@media (min-width: 600px) {
  .package-grid:has(> :nth-child(3):last-child),
  .facility-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* The gallery's pavilion photo has a white roof apex up top: keep the caption
   over the darker deck. */
.tile img[src*="/img/pavilion-"] { object-position: 50% 80%; }
/* Links in a page head's small print sit on forest green. */
.pagehead .smallprint a { color: var(--gold); }
.pagehead .smallprint a:hover { color: var(--paper-warm); }
.site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .site-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Uppercase tracked labels: a notch larger on phones. */
@media (max-width: 640px) {
  .visit__label, .field__label, .dining__label, .package__kind, .spec dt, .schedule__tag,
  .event__format, .program__level, .rate-card__kind, .pagehead__label, .lockup__tag,
  .facility__num, .section-head__aside, .navbar__cta, .package__cta, .tab-chip,
  .ticker__track { font-size: 12px; }
  .program__meta, .smallprint, .rates__unit { font-size: 13px; }
  .site-footer__links a { padding: 12px 0; }     /* 44px rows for thumbs */
  .underline-link:not(.rates .underline-link) { padding-top: 16px; }
}

/* Anything that scrolls sideways says so (Tesler: the complexity is real, so
   name it) — app.js sets is-scrollable when content exceeds the box. */
.grid-scroll, .table-scroll { position: relative; }
.grid-scroll.is-scrollable::after, .table-scroll.is-scrollable::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 36px;
  pointer-events: none;
  background: linear-gradient(to right, rgba(239, 236, 227, 0), var(--shell));
}
.section--forest .table-scroll.is-scrollable::after { background: linear-gradient(to right, rgba(14, 42, 28, 0), var(--forest)); }
.scroll-hint {
  display: none;
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-mute);
}
.is-scrollable + .scroll-hint, .scroll-hint.is-on { display: block; }

/* The desktop header is two rows; after the first scroll it tightens so it
   stops taking a fifth of a laptop screen. */
@media (min-width: 1025px) {
  .masthead, .lockup__mark, .lockup__name { transition: padding 0.2s ease, width 0.2s ease, height 0.2s ease, font-size 0.2s ease; }
  .site-header.is-compact .masthead { padding-top: 8px; padding-bottom: 8px; }
  .site-header.is-compact .lockup__mark { width: 36px; height: 36px; }
  .site-header.is-compact .lockup__name { font-size: 18px; }
  .site-header.is-compact .lockup__tag { display: none; }
}


/* Second pass from the audit: the last targets under 44px, and the inputs. */
.masthead__phone, .navbar__cta { min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
.navbar__cta { padding-top: 0; padding-bottom: 0; }
.visit__link { display: inline-block; padding: 8px 0; }
.field__input { min-height: 44px; box-sizing: border-box; padding: 12px 0; }
.signup__input { min-height: 44px; box-sizing: border-box; }
.site-footer__title { font-size: 11px; }
@media (max-width: 900px) {
  .site-footer__links a, .visit__link { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .underline-link:not(.rates .underline-link) { padding-top: 24px; }
}
@media (max-width: 640px) {
  .package__price, .coach__discipline, .site-footer__title, .menu-toggle__label, .ph, .rates th,
  figcaption, .signup__submit, .enquiry__submit, .pending, .statusbar, .legend__note,
  .loadkey__item, .hero__eyebrow, .experience__kicker, .lotus-marks figcaption, .stage__cta, .stage__back { font-size: 12px; }
}
@media (max-width: 480px) {
  .field__input, .signup__input, .bfield__input, .enquiry select { font-size: 16px; }
}


/* ==========================================================================
   Review pass — findings from the page and flow reviewers
   ========================================================================== */

/* --- Phone header: one row, about 60px, icon-only phone and menu ------- */
@media (max-width: 1024px) {
  .masthead { padding: 8px var(--gutter); gap: 8px; }
  .lockup { flex-direction: row; gap: 8px; }
  .lockup__mark { width: 32px; height: 32px; }
  .lockup__name { font-size: 15px; letter-spacing: 0.16em; white-space: nowrap; }
  .site-header.is-compact .masthead { padding-top: 4px; padding-bottom: 4px; }
  .site-header.is-compact .lockup__mark { width: 26px; height: 26px; }
}
@media (max-width: 640px) {
  .masthead__phone { font-size: 0; overflow: hidden; }
  .masthead__phone::before { flex: none; width: 22px; height: 22px; }
  .menu-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 360px) {
  .lockup__name { font-size: 12.5px; letter-spacing: 0.08em; }
}

/* --- Drawer: Book first, sub-lists closed until asked ------------------- */
@media (max-width: 1024px) {
  .navbar__item { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .navbar__link { flex: 1 1 auto; }
  .navbar__more {
    display: inline-flex;
    width: 44px;
    height: 44px;
    margin: 0;
    flex: 0 0 44px;
    border-bottom: 1px solid var(--rule-paper-14);
    align-self: stretch;
    height: auto;
  }
  .navbar__sub { display: none; flex-basis: 100%; }
  .navbar__item--menu.is-open .navbar__sub,
  .navbar__item--menu:has(.navbar__link.is-active) .navbar__sub { display: block; }
  .navbar__item--cta { margin: 8px 0 16px; }
  .navbar__more::before { transform: translateY(-2px) rotate(45deg); }
  .navbar__item--menu.is-open .navbar__more::before { transform: translateY(2px) rotate(225deg); }
}

/* --- Hero facts never split mid-fact --------------------------------- */
.hero__fact { white-space: nowrap; }
@media (min-width: 900px) { .hero__sub { max-width: 64ch; } }
@media (max-width: 640px) {
  .hero__sub { display: flex; flex-direction: column; gap: 2px; }
  .hero__sep { display: none; }
  .hero__eyebrow { letter-spacing: 0.2em; }
}

/* --- Rows of label + value read left to right, not edge to edge -------- */
.spec__row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
  gap: 8px 24px;
  align-items: baseline;
}
.spec dd { text-align: left; }
@media (max-width: 480px) {
  .spec__row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
}
@media (min-width: 641px) {
  /* The title sits right after the day and wraps when it is long; the tag
     always keeps its own width beside it. */
  .schedule__row { grid-template-columns: 90px minmax(0, auto) minmax(max-content, 1fr); }
  .schedule__tag { justify-self: start; }
}

/* --- A pending fact is not a link -------------------------------------- */
.pending {
  color: var(--moss-mute);
  border-bottom: 0;
  font-style: italic;
  text-decoration: underline dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.section--forest .pending, .pagehead .pending { color: var(--sage); border-bottom: 0; }
.pagehead .pending { color: var(--gold); }
.program__meta, .program__level { line-height: 1.6; }

/* --- Stacked sections: the action follows the content it acts on -------- */
@media (max-width: 1180px) {
  .section__split { row-gap: 0; }
  .section__split > .section__sticky { display: contents; }
  .section__split > .section__sticky > .btn { order: 2; margin-top: 28px; align-self: flex-start; justify-self: start; }
  .section__split > .section__sticky > .underline-link { order: 3; margin-top: 12px; justify-self: start; }
  .section__split > :not(.section__sticky) { order: 1; margin-top: 28px; }
  .section__split > .section__sticky > .lede + .ph { margin-top: 28px; }
  .section__split > .section__sticky > .display { margin-bottom: 16px; }
  .section__split > .section__sticky > .lede { margin-bottom: 0; }
  .section__split > .section__sticky > .display:last-child,
  .section--tight .section__split > .section__sticky > .display { margin-bottom: 0; }
}

/* --- Programs inside a split column: no three cramped columns ---------- */
@media (min-width: 700px) and (max-width: 1499px) {
  .section__split .programs:has(> :nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section__split .programs:has(> :nth-child(6):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Facilities on phones: landscape frames, two-up when they fit ------- */
@media (max-width: 700px) {
  .facility__media { aspect-ratio: 3 / 2; }
  .facility-grid { gap: 28px 20px; }
}
@media (min-width: 480px) and (max-width: 700px) {
  .facility-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Visit facts: three columns only when the section is one column ---- */
@media (min-width: 640px) and (max-width: 1100px) {
  .visit__inner { grid-template-columns: minmax(0, 1fr); }
}

/* --- Booking board ------------------------------------------------------- */
@media (max-width: 1100px) {
  .booking__intro { order: 2; }
  .day { aspect-ratio: auto; height: 56px; }
  .card { max-width: 640px; }
  /* Two tennis courts must not become 400px buttons; the single any-court
     column (grid-min.is-any) is meant to fill, so it is left out. */
  .grid-min:not(.is-any) .slot, .grid-min:not(.is-any) .grid-head__court { max-width: 240px; }
}
@media (max-width: 640px) {
  .day { height: auto; }
  [data-stage="2"] .stage__actions {
    position: sticky;
    bottom: 0;
    margin-top: 0;
    padding: 12px 0 12px;
    background: var(--shell);
    box-shadow: 0 -10px 18px -14px rgba(0, 0, 0, 0.3);
  }
  .stage__actions { flex-direction: column; }
  .stage__back {
    width: auto;
    align-self: center;
    order: 2;
    border: 0;
    background: none;
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 12px 16px;
    min-height: 44px;
  }
}

/* --- Forms: errors are visible, success is a panel ----------------------- */
.field__input:user-invalid, .signup__input:user-invalid, .bfield__input:user-invalid { border-color: var(--terracotta); }
.signup__form[hidden], .enquiry[hidden] { display: none; }
.form-done {
  border: 1px solid var(--rule-ink-16);
  background: var(--paper-warm);
  padding: 24px 24px;
  max-width: 560px;
}
.form-done__title { margin: 0 0 8px; font-family: var(--serif); font-size: 24px; color: var(--forest); }
.form-done__body { margin: 0; font-size: 15px; line-height: 1.6; color: var(--moss); }
.form-done__again {
  margin-top: 12px;
  background: none;
  border: 0;
  padding: 12px 0;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  color: var(--terracotta-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.visit .form-done, .section--forest .form-done { background: var(--forest-deep); border-color: var(--rule-paper-18); }
.visit .form-done__title, .section--forest .form-done__title { color: var(--paper-warm); }
.visit .form-done__body, .section--forest .form-done__body { color: var(--cream); }
.visit .form-done__again, .section--forest .form-done__again { color: var(--gold); }

/* --- Cards and tables --------------------------------------------------- */
.event__head { flex-wrap: wrap; }
@media (min-width: 700px) {
  .season__grid .event__head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.event__format { white-space: nowrap; }
.rates th { white-space: nowrap; }
.rates__when { display: block; margin-top: 2px; font-weight: 400; letter-spacing: 0.08em; text-transform: none; color: var(--moss-mute); }
/* The hit area grows upward into the cell padding so the link is 44px tall
   without moving the underline. */
.rates .underline-link { padding: 24px 0 5px; margin: -24px 0 -2px; }

/* Three sport chips must wrap on a 320px phone; the lockup is a tap target too. */
.chip-row { flex-wrap: wrap; }
@media (max-width: 1024px) { .lockup { min-height: 44px; align-items: center; } }


/* ==========================================================================
   Accessibility pass — colour roles, focus, links on dark grounds
   ========================================================================== */

/* Focus rings on dark grounds: terracotta is 3.5:1 on forest, gold 8.9:1.
   Paper cards inside a forest section switch back. */
.site-header :focus-visible, .hero :focus-visible, .experience :focus-visible, .packages :focus-visible,
.visit :focus-visible, .dining :focus-visible, .pagehead :focus-visible, .section--forest :focus-visible,
.cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
.section--forest .rate-card :focus-visible { outline-color: var(--terracotta); }

/* The underline link inherits its ground's ink; the rule under it follows:
   terracotta on paper, gold on forest. */
.experience .underline-link, .packages .underline-link, .visit .underline-link, .section--forest .underline-link,
.cta-band .underline-link, .pagehead .underline-link { border-bottom-color: var(--gold); }
.section--forest .rate-card .underline-link { border-bottom-color: var(--terracotta); }

/* Links inside running text: one colour, always underlined. On forest grounds
   the same links go gold — terracotta-text is 2.6:1 there. */
.smallprint a, .faq__a a, .prose a, .program__body a, .lede a, .rates__note a {
  color: var(--terracotta-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.smallprint a:hover, .faq__a a:hover, .prose a:hover, .program__body a:hover, .lede a:hover, .rates__note a:hover { color: var(--forest); }
.smallprint .underline-link, .prose .underline-link, .faq__a .underline-link { text-decoration: none; }
.section--forest .smallprint a, .section--forest .faq__a a, .section--forest .prose a, .section--forest .program__body a,
.section--forest .lede a, .section--forest .rates__note a, .section--forest .link-terracotta,
.visit .smallprint a, .cta-band .smallprint a { color: var(--gold); }
.section--forest .smallprint a:hover, .section--forest .faq__a a:hover, .section--forest .prose a:hover,
.section--forest .program__body a:hover, .section--forest .lede a:hover, .section--forest .rates__note a:hover,
.section--forest .link-terracotta:hover, .visit .smallprint a:hover, .cta-band .smallprint a:hover { color: var(--paper); }


/* ==========================================================================
   Integration pass — group C verifier, group D (typography, spacing, colour,
   scanning) and the five fix owners' hand-offs
   ========================================================================== */

/* Hero facts sit on one line on a desk. */
@media (min-width: 900px) { .hero__sub { max-width: none; } }

/* With no phone number the left masthead slot is empty; keep the lockup centred
   against the 44px menu button. */
@media (max-width: 1024px) {
  .masthead__side--left { min-width: 44px; }
  .masthead { grid-template-columns: minmax(44px, 1fr) minmax(0, auto) minmax(44px, 1fr); }
  .lockup { justify-self: center; min-width: 0; }
}

/* Cards are paper even inside forest sections, so their text and links are ink. */
.rate-card { color: var(--forest); }
.rate-card .underline-link { color: var(--forest); border-bottom-color: var(--terracotta); }

/* --- Gold is for actions (rule 28) --------------------------------------- */
.ticker { background: var(--sand); color: var(--forest); }
.kicker--gold, .pagehead .kicker, .section--forest .kicker, .experience__kicker,
.package__kind, .site-footer__title, .package__dash, .panel__dash { color: var(--sage); }
.hero__eyebrow { color: var(--cream-cool); }
.package__price { color: var(--paper-warm); }
.facility__num { color: var(--paper); }
.navbar__link.is-active { color: var(--paper-warm); border-bottom-color: var(--paper-warm); }
.navbar__sub { border-top-color: var(--rule-paper-40); }
.section--forest .program { border-top-color: var(--rule-paper-30); }
.visit__link { color: var(--paper-warm); border-bottom-color: var(--rule-paper-40); }

/* --- Typography (rule 26) ------------------------------------------------ */
.program__body { font-size: 16px; max-width: 60ch; }
@media (max-width: 1100px) { .booking__blurb { max-width: 60ch; } }
.intro__body { max-width: 62ch; margin-left: auto; margin-right: auto; text-align: left; line-height: 1.6; }
.event__detail { max-width: none; }
.smallprint { font-size: 14px; }
.card__note { font-size: 14px; }
.event__detail, .coach__detail, .package__lede, .audience__body, .rate-card__points li { font-size: 15px; }
.facility__body { font-size: 16px; }
.prose p, .booking__blurb { line-height: 1.6; }
.pending { font-size: inherit; }
@media (max-width: 640px) {
  .pending { font-size: inherit; }
  .section-head__aside { font-size: 14px; letter-spacing: 0; text-transform: none; }
}

/* --- Spacing on the 4px scale (rule 27): utilities and the v3 blocks ----- */
.mt-sm { margin-top: var(--space-4); }
.mt-md { margin-top: var(--space-6); }
.mt-lg { margin-top: var(--space-12); }
.mb-sm { margin-bottom: var(--space-4); }
.mb-md { margin-bottom: var(--space-6); }
.rate-card { padding: var(--space-6); }
.rate-cards, .programs { gap: var(--space-6); }
.section__split { column-gap: var(--space-16); }
.faq__q { padding: var(--space-5) 0; }
.faq__a { padding-bottom: var(--space-6); }
.pagehead__inner { gap: var(--space-6) var(--space-12); }

/* Three sport chips on one row at 375 (rule 1); full-width Book in the drawer
   (rule 2); the current page keeps a visible underline in the drawer (rule 22). */
@media (max-width: 640px) {
  [data-sports] .chip { flex: 1 1 auto; padding: 12px 8px; letter-spacing: 0.1em; text-align: center; }
}
@media (max-width: 1024px) {
  .navbar__cta { display: flex; width: 100%; justify-content: center; }
  .navbar__link.is-active { border-bottom: 2px solid var(--paper-warm); }
}

/* Inline link on forest backgrounds: gold on forest is 8.94:1, terracotta only 3.46:1. */
.link-gold { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.link-gold:hover, .link-gold:focus-visible { color: var(--paper); }

/* Analytics consent banner (analytics.js). Bottom of the viewport, forest on
   paper text, never covers the header; the two buttons reuse .btn. */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  background: var(--forest);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(14, 42, 28, 0.25);
}
.consent__text { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.5; }
.consent__actions { display: flex; gap: var(--space-3); }
.consent .btn { min-height: 44px; padding: 0 var(--space-5); }
.consent .consent__decline { background: transparent; color: var(--cream); border: 1px solid rgba(255, 255, 255, 0.45); }
.consent .consent__decline:hover, .consent .consent__decline:focus-visible { background: rgba(255, 255, 255, 0.1); color: var(--paper); }
@media (max-width: 480px) {
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1 1 auto; }
}

/* Opening popup (app.js initOpeningPopup). A native <dialog>: the browser
   handles focus trapping, Escape and the inert page behind it. */
.opening {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: auto;
  background: var(--paper-warm);
  color: var(--forest);
  box-shadow: 0 24px 60px rgba(14, 42, 28, 0.35);
}
.opening::backdrop { background: rgba(14, 42, 28, 0.62); }
.opening[open] { animation: opening-in 0.28s ease-out; }
@keyframes opening-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .opening[open] { animation: none; } }
.opening__close-form { position: absolute; top: 10px; right: 10px; margin: 0; z-index: 1; }
.opening__close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(14, 42, 28, 0.72); color: var(--paper);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.opening__close:hover, .opening__close:focus-visible { background: var(--forest); }
.opening__close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.opening__media { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.opening__body { padding: var(--space-6) var(--space-8) var(--space-8); }
.opening__kicker { margin: 0 0 var(--space-2); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terracotta-text); }
.opening__title { margin: 0 0 var(--space-3); font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 6vw, 38px); line-height: 1.05; color: var(--forest); }
.opening__text { margin: 0 0 var(--space-5); font-size: 16px; line-height: 1.55; color: var(--moss); }
.opening__form { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.opening__form[hidden] { display: none; }
.opening__input {
  flex: 1 1 220px; min-height: 48px; box-sizing: border-box;
  padding: 0 var(--space-4);
  background: #fff; color: var(--forest);
  border: 1px solid var(--rule-ink-55); border-radius: 2px;
  font: inherit; font-size: 16px;
}
.opening__input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--forest); }
.opening__submit {
  flex: 0 0 auto; min-height: 48px;
  padding: 0 var(--space-6);
  border: 0; border-radius: 2px;
  background: var(--forest); color: var(--paper);
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer;
}
.opening__submit:hover { background: var(--terracotta-text); }
.opening__submit[disabled] { opacity: 0.7; cursor: default; }
.opening__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.opening__status { display: none; margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--rule-ink-12); border-left: 5px solid var(--forest); border-radius: 4px; background: var(--paper); font-size: 15px; line-height: 1.5; }
.opening__status.is-ok, .opening__status.is-error, .opening__status.is-wait { display: block; }
.opening__status.is-ok::before { content: "\2713\00a0"; font-weight: 700; }
.opening__status.is-error { border-left-color: var(--status-low); color: var(--status-low); }
.opening__status.is-wait { border-left-color: var(--moss-mute); color: var(--moss); }
.opening__later {
  display: inline-block; margin-top: var(--space-4); padding: var(--space-2) 0;
  min-height: 44px; border: 0; background: none;
  color: var(--moss); font: inherit; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.opening__later:hover, .opening__later:focus-visible { color: var(--forest); }
@media (max-width: 480px) {
  .opening__body { padding: var(--space-5) var(--space-5) var(--space-6); }
  .opening__submit { flex: 1 1 100%; }
}
@media (max-height: 640px) {
  .opening__media { aspect-ratio: auto; height: clamp(0px, calc(100dvh - 470px), 180px); }
  .opening__body { padding-top: var(--space-4); }
}
@media (max-height: 480px) {
  .opening__media { display: none; }
  .opening__close { background: var(--forest); }
  .opening__body { padding-right: 64px; }
}

/* Page head with a photograph behind it (Lotus & Lime). The scrim keeps every
   label and value at WCAG contrast over the brightest parts of the photo. */
.pagehead--photo { position: relative; isolation: isolate; overflow: hidden; padding-top: 168px; padding-bottom: 96px; }
.pagehead__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.pagehead__scrim {
  position: absolute; inset: 0; z-index: -1;
  /* Near-black green rather than --forest: the same contrast at lower opacity,
     so the photo keeps its warm light. Text columns are covered; the band
     between them is left open. */
  background:
    linear-gradient(to bottom, rgba(8, 20, 13, 0.55), rgba(8, 20, 13, 0) 40%),
    linear-gradient(to top, rgba(8, 20, 13, 0.45), rgba(8, 20, 13, 0) 35%),
    linear-gradient(90deg, rgba(8, 20, 13, 0.82) 0%, rgba(8, 20, 13, 0.74) 46%, rgba(8, 20, 13, 0.22) 61%, rgba(8, 20, 13, 0.22) 69%, rgba(8, 20, 13, 0.74) 79%, rgba(8, 20, 13, 0.80) 100%);
}
@media (max-width: 1024px) {
  .pagehead--photo { padding-top: 120px; padding-bottom: 64px; }
  .pagehead__scrim { background: linear-gradient(to bottom, rgba(8, 20, 13, 0.62), rgba(8, 20, 13, 0.78) 50%, rgba(8, 20, 13, 0.86)); }
}

/* Pre-opening bar above the ticker on every page (site.json openingPopup.bar).
   Paper on --terracotta-text reads at 5.2:1. The button opens the dialog. */
.openbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px var(--space-4);
  padding: 10px var(--gutter);
  background: var(--terracotta-text);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
/* On phones the message and its button always take a line each: on a
   borderline width the bar would otherwise change height when the fonts
   arrive and push the page down. */
@media (max-width: 480px) { .openbar { flex-direction: column; gap: 2px; } }
.openbar__text { margin: 0; }
.openbar__text strong { font-weight: 700; letter-spacing: 0.02em; }
.openbar__cta, .booking__notice-link {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.openbar__cta:hover, .openbar__cta:focus-visible { color: var(--gold); }
.openbar__cta:focus-visible, .booking__notice-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) {
  .openbar { display: block; font-size: 13px; padding: 8px var(--gutter); }
  .openbar__text { display: inline; }
  .openbar__text span { display: inline; }
  .openbar__cta { display: inline-block; min-height: 44px; padding: 12px 6px; margin: -12px 0 -12px 2px; vertical-align: baseline; }
}

/* Booking section: a notice above both columns that the sport switcher never
   rewrites. Outside the sticky intro, so the rail keeps its height. */
.booking__notice {
  max-width: var(--maxw);
  margin: 0 auto 56px;
  padding: var(--space-4) var(--space-5);
  border-left: 5px solid var(--terracotta-text);
  background: var(--paper-warm);
  color: var(--forest);
  font-size: 15px;
  line-height: 1.55;
}
/* A 44px tap area around a text-sized button, without widening the line. */
.booking__notice-link { display: inline-block; min-height: 44px; padding: 12px 4px; margin: -12px 0 -12px -4px; vertical-align: baseline; color: var(--terracotta-text); }
@media (max-width: 1100px) { .booking__notice { margin-bottom: 40px; } }
.booking__notice-link:hover { color: var(--forest); }
