/****************************************************************************************
 * styles/main.css — Apple-inspired design + typography tweaks
 *
 * • Preserves all original Apple-style resets, typography, layout, and lightbox logic.
 * • ★ MOVED from inline in index.html: overlay/hero/animations/responsive overrides.
 * • ★ No visual/behavioral changes; just centralized CSS for caching & maintainability.
 *
 * ★ NEW IN THIS VERSION (PER YOUR LATEST REQUEST):
 *   A) FIX (AUTOHIDE CONSISTENCY): Some pages were toggling .header-hidden (index behavior),
 *      while CSS was using .is-hidden. Added ALIASES so BOTH work:
 *        - .site-header.header-hidden  (alias)
 *        - .site-header.is-hidden      (existing)
 *
 *   B) FIX (AUTOHIDE MOBILE-ONLY): Header slide-away behavior is now applied ONLY on phone
 *      widths (<= 767px) to match your index intent and avoid desktop surprises.
 *
 *   C) FIX (INDEX HERO CLIPPING iPhone): Added mobile-safe hero typography + spacing using clamp()
 *      so large hero text never clips off-screen and stays readable on iPhone 12 Pro and similar.
 *
 *   D) IMPROVE (CTA CONSISTENCY): btn-primary now matches the premium CTA layout style
 *      (inline-flex / centered / pill) like secondary/tertiary, WITHOUT changing your core colors.
 *
 *   E) MOVED (MATCHPLAY INLINE CSS → MAIN.CSS): Added scoped Match Play hero + CTA layout styles:
 *      - .matchplay-page .hero-lite
 *      - .matchplay-page .hero-actions (container-safe sizing, NO vw overflow)
 *      - .cta-subline2, .cta-phone sizing
 *
 *   F) FIX (MOBILE CTA OFF-CENTER): Removed vw-based CTA widths in mobile breakpoint that were
 *      causing overflow vs .container padding. Replaced with width:100% + max-width cap.
 *
 *   G) PRESERVED: all old core logic; only extended/overrode safely with comments.
 *
 * ★ CHANGE (BUGFIX IN THIS REVISION):
 *   H) FIX (HERO VISIBILITY SCOPE): Previously `.hero { visibility:hidden; }` applied to ALL pages,
 *      which unintentionally hid any `.hero` section on non-index pages (unless JS added `.show`).
 *      Now hero-hiding is scoped ONLY to Home (index) using body flags:
 *        - body.is-home.has-intro-overlay  -> hide hero until overlay completes
 *        - body.is-home .hero.show        -> show hero after JS adds .show
 *      And default `.hero` visibility is restored for all other pages.
 ****************************************************************************************/

/* ───────── Root variables ───────── */
:root {
  /* Layer A: brand/system tokens (structural; rarely change) */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                 Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --transition-speed: 0.22s;
  --motion-fast: 160ms;
  --motion-standard: 220ms;
  --motion-panel: 260ms;
  --easing-standard: cubic-bezier(0.22, 0.61, 0.36, 1);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.2rem;
  --section-space-y: var(--space-7);

  --radius-card: 16px;
  --radius-sheet: 20px;
  --radius-pill: 999px;
  --cta-radius: var(--radius-pill);

  --surface-blur: 12px;
  --sheet-blur: 16px;
  --hero-blur: 6px;

  --cta-min-height: 48px;
  --btn-primary-height: 46px;
  --btn-secondary-height: 44px;
  --btn-outline-height: 42px;

  --button-font-size: 0.94rem;
  --button-font-weight: 620;
  --button-letter-spacing: 0.032em;

  /* Apple Typography Vars */
  --apple-body-size: 17px;
  --apple-body-line: 1.47059;
  --apple-body-tracking: -0.022em;
  --apple-heading-2-size: 24px;
  --apple-heading-2-line: 1.2;
  --apple-heading-2-tracking: -0.024em;

  /* Layer B: theme tokens (seasonal) */
  --accent-color: #377db8;            /* Overridden by JS per season */
  --btn-accent: #1e8fd5;              /* Overridden by JS per season */
  --theme-bg: #f6f5f3;
  --theme-surface: #f1f1f2;
  --theme-surface-2: #ffffff;
  --theme-text: #18181c;
  --theme-muted: #64646f;
  --theme-border: rgba(18, 22, 32, 0.08);
  --theme-border-strong: rgba(18, 22, 32, 0.12);
  --theme-shadow-rgb: 10, 14, 22;
  --theme-drawer-radial: rgba(183, 92, 38, 0.1);
  --theme-drawer-top: rgba(16, 18, 28, 0.94);
  --theme-drawer-bottom: rgba(8, 10, 18, 0.98);
  --hero-overlay-top: rgba(0, 0, 0, 0.42);
  --hero-overlay-bottom: rgba(0, 0, 0, 0.6);
  --hero-overlay-accent: rgba(188, 96, 42, 0.2);

  /* Footer tokens (theme-safe neutrals, accent only for hover) */
  --footer-bg: color-mix(in srgb, var(--theme-bg) 97%, #f9f9fb);
  --footer-border: color-mix(in srgb, var(--theme-border-strong) 34%, transparent);
  --footer-text: color-mix(in srgb, var(--theme-text) 52%, #72727a);
  --footer-muted: color-mix(in srgb, var(--theme-muted) 70%, #888893);
  --footer-link: color-mix(in srgb, var(--theme-text) 54%, #676770);
  --footer-link-hover: color-mix(in srgb, var(--btn-accent) 34%, var(--theme-text));

  /* Derived semantic aliases (existing code compatibility) */
  --primary-color: var(--theme-text);
  --text-color: var(--theme-text);
  --text-muted: var(--theme-muted);
  --bg-light: var(--theme-bg);
  --section-bg: var(--theme-surface);
  --surface-raised: var(--theme-surface-2);
  --surface-border-soft: var(--theme-border);
  --surface-border-matte: var(--theme-border-strong);

  --elevation-1: 0 8px 18px rgba(var(--theme-shadow-rgb), 0.08);
  --elevation-2: 0 24px 44px rgba(var(--theme-shadow-rgb), 0.2);
  --elevation-3: -20px 0 38px rgba(var(--theme-shadow-rgb), 0.34);

  --header-surface: rgba(247, 247, 248, 0.92);
  --header-border: rgba(18, 22, 32, 0.13);
  --drawer-backdrop: rgba(6, 8, 14, 0.34);
  --drawer-divider: rgba(255, 255, 255, 0.11);
  --drawer-text: #f4f5f6;
  --drawer-text-muted: rgba(236, 236, 242, 0.88);
  --drawer-meta: rgba(225, 228, 236, 0.5);
  --nav-link-color: #333;
  --brand-color: #bf4f24;
  --brand-color: color-mix(in srgb, var(--btn-accent) 78%, #8c3a17);
  --nav-underline-size: 1.2px;

  --gold-start: #cfab76;
  --gold-end: #b6884f;
  --gold-border: rgba(239, 218, 178, 0.68);

  /* Hero motion (set by JS from video duration) */
  --pulse-duration: 30s;

  /* ★ Header height hint (optional, used if you add body padding class) */
  --header-height: 72px;

  /* ★ Hero mobile safety padding */
  --hero-mobile-padding-top: 1.25rem;
  --hero-mobile-padding-bottom: 1.75rem;

  /* ★ NEW (MATCHPLAY CTA CAP): cap width on large phones so CTAs look premium */
  --cta-max-width: 560px;

  /* Robust viewport fallback (updated by scripts/mobile-menu.js) */
  --app-vh: 1vh;
}

/* Seasonal token overrides (same structure, different grading) */
html[data-season="AO"] {
  --theme-bg: #f2f7fc;
  --theme-surface: #edf4fb;
  --theme-surface-2: #ffffff;
  --theme-text: #172433;
  --theme-muted: #5b6c80;
  --theme-border: rgba(22, 48, 76, 0.1);
  --theme-border-strong: rgba(22, 48, 76, 0.16);
  --theme-shadow-rgb: 11, 24, 40;
  --theme-drawer-radial: rgba(39, 111, 176, 0.2);
  --theme-drawer-top: rgba(15, 26, 40, 0.94);
  --theme-drawer-bottom: rgba(7, 16, 30, 0.98);
  --hero-overlay-top: rgba(8, 20, 36, 0.46);
  --hero-overlay-bottom: rgba(4, 12, 24, 0.64);
  --hero-overlay-accent: rgba(36, 126, 197, 0.24);
}

html[data-season="RG"] {
  --theme-bg: #f8f3ef;
  --theme-surface: #f3ece7;
  --theme-surface-2: #fffdfa;
  --theme-text: #2d1b14;
  --theme-muted: #705a50;
  --theme-border: rgba(62, 29, 15, 0.1);
  --theme-border-strong: rgba(62, 29, 15, 0.16);
  --theme-shadow-rgb: 30, 16, 10;
  --theme-drawer-radial: rgba(194, 82, 35, 0.22);
  --theme-drawer-top: rgba(28, 18, 14, 0.95);
  --theme-drawer-bottom: rgba(14, 11, 10, 0.98);
  --hero-overlay-top: rgba(23, 10, 6, 0.48);
  --hero-overlay-bottom: rgba(17, 8, 6, 0.66);
  --hero-overlay-accent: rgba(203, 82, 35, 0.22);
}

html[data-season="W"] {
  --theme-bg: #f2f6ef;
  --theme-surface: #ebf2e5;
  --theme-surface-2: #fbfdf8;
  --theme-text: #1f2c1d;
  --theme-muted: #5f705a;
  --theme-border: rgba(34, 60, 28, 0.1);
  --theme-border-strong: rgba(34, 60, 28, 0.16);
  --theme-shadow-rgb: 12, 24, 12;
  --theme-drawer-radial: rgba(132, 177, 24, 0.2);
  --theme-drawer-top: rgba(16, 24, 12, 0.94);
  --theme-drawer-bottom: rgba(10, 16, 9, 0.98);
  --hero-overlay-top: rgba(10, 22, 10, 0.46);
  --hero-overlay-bottom: rgba(8, 16, 8, 0.64);
  --hero-overlay-accent: rgba(134, 178, 26, 0.22);
}

html[data-season="USO"] {
  --theme-bg: #f0f4f8;
  --theme-surface: #e8eef5;
  --theme-surface-2: #fbfcfe;
  --theme-text: #1a2531;
  --theme-muted: #58697a;
  --theme-border: rgba(27, 45, 72, 0.1);
  --theme-border-strong: rgba(27, 45, 72, 0.16);
  --theme-shadow-rgb: 10, 18, 32;
  --theme-drawer-radial: rgba(60, 99, 142, 0.2);
  --theme-drawer-top: rgba(13, 20, 32, 0.95);
  --theme-drawer-bottom: rgba(8, 14, 24, 0.98);
  --hero-overlay-top: rgba(8, 16, 30, 0.46);
  --hero-overlay-bottom: rgba(6, 12, 22, 0.64);
  --hero-overlay-accent: rgba(108, 147, 92, 0.2);
}

/* ───────── Reset & Base ───────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-family);
  font-size: var(--apple-body-size);
  line-height: var(--apple-body-line);
  letter-spacing: var(--apple-body-tracking);
  background: var(--bg-light);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-light) 95%, #ffffff) 0%,
      var(--bg-light) 42%,
      color-mix(in srgb, var(--bg-light) 90%, #f7f7f8) 100%
    );
  color: var(--text-color);
  overflow-x: hidden;
}

/* Helper for viewport-filling elements with iOS-safe fallback */
.vh-fill {
  height: calc(var(--app-vh) * 100);
}

@supports (height: 100dvh) {
  .vh-fill {
    height: 100dvh;
  }
}

/* Global link color (nav overrides below) */
a { color: var(--accent-color); text-decoration: none; transition: color var(--transition-speed); }
a:hover { color: var(--primary-color); }

/* ───────── Header & Nav ───────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.9rem;
  background: var(--header-surface);
  min-height: 86px;
  border-bottom: 1px solid var(--header-border);
  -webkit-backdrop-filter: blur(var(--surface-blur));
  backdrop-filter: blur(var(--surface-blur));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.52);

  /* keep transitions defined; auto-hide transform rules are MOBILE-ONLY below */
  transition: transform var(--motion-panel) var(--easing-standard),
              opacity var(--motion-standard) var(--easing-standard);
  will-change: transform;
  backface-visibility: hidden;
  contain: none !important;
}

/* Keep header visible and interactive when the drawer menu is open */
body.menu-open .site-header,
body.menu-open .site-header.header-hidden,
body.menu-open .site-header.is-hidden,
body.menu-open.header-is-hidden .site-header {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ★ AUTOHIDE MOBILE-ONLY (supports BOTH .is-hidden and .header-hidden) */
@media (max-width: 767px) {
  .site-header.is-hidden,
  .site-header.header-hidden {
    transform: translate3d(0, calc(-100% - 6px), 0);
    opacity: 0.98;
    transition-duration: 290ms;
    transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .site-header.is-visible {
    transform: translateY(0);
    opacity: 1;
    transition-duration: 300ms;
  }
}

/* Optional body helper if you ever switch header to fixed */
body.has-sticky-header-padding {
  padding-top: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
}
.logo-img {
  max-height: 54px;
  width: auto;
  margin-right: 0.8rem;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.brand-line {
  display: block;
  white-space: nowrap;
}

.brand-line-primary {
  font-size: clamp(1.16rem, 1.35vw, 1.34rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--brand-color);
}

.brand-line-secondary {
  margin-top: 0.12rem;
  font-size: clamp(0.78rem, 0.9vw, 0.88rem);
  font-weight: 470;
  letter-spacing: -0.01em;
  color: rgba(74, 74, 82, 0.84);
  color: color-mix(in srgb, var(--text-muted) 92%, #7d7d84);
}

.site-nav {
  margin-left: auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

/* NAV OVERRIDE: default dark, accent on hover/active */
.site-nav ul,
.site-nav .nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.12rem;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  overflow: clip;
}

.site-nav .nav-list > li {
  display: inline-flex;
  align-items: center;
}

.site-header .site-nav .nav-list > li > a,
.site-header .site-nav > ul > li > a {
  color: var(--nav-link-color);
  font-size: clamp(0.94rem, 0.98vw, 1rem);
  font-weight: 535;
  position: relative;
  padding: .5rem 0;
  line-height: 1.1;
  transition: color var(--motion-fast) ease;
}

.site-header .site-nav .nav-list > li > a::after,
.site-header .site-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.24rem;
  width: 100%;
  height: var(--nav-underline-size);
  background: var(--accent-color);
  opacity: 0.74;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-fast) cubic-bezier(0.2, 0.8, 0.2, 1), opacity var(--motion-fast) ease;
}

.site-header .site-nav .nav-list > li > a:hover,
.site-header .site-nav .nav-list > li > a.active,
.site-header .site-nav > ul > li > a:hover,
.site-header .site-nav > ul > li > a.active {
  color: var(--accent-color);
}

.site-header .site-nav .nav-list > li > a:hover::after,
.site-header .site-nav .nav-list > li > a.active::after,
.site-header .site-nav > ul > li > a:hover::after,
.site-header .site-nav > ul > li > a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: clamp(0.62rem, 0.9vw, 1rem);
  height: var(--btn-primary-height);
  min-height: var(--btn-primary-height);
  padding: 0 1.08rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-border);
  background:
    linear-gradient(180deg, var(--gold-start), var(--gold-end));
  color: rgba(255,255,255,0.96);
  font-size: 0.8rem;
  font-weight: var(--button-font-weight);
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 8px 16px rgba(var(--theme-shadow-rgb), 0.16), inset 0 0 0 1px rgba(255,255,255,0.16);
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, filter var(--motion-fast) ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 11px 20px rgba(var(--theme-shadow-rgb), 0.2), inset 0 0 0 1px rgba(255,255,255,0.18);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--surface-border-matte);
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  background: color-mix(in srgb, var(--surface-raised) 86%, transparent);
  color: #3a3a3a;
  color: color-mix(in srgb, var(--theme-text) 88%, #3a3a3a);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-icon {
  font-size: 1.72rem;
  line-height: 1;
}

.nav-toggle:focus {
  outline: none;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--btn-accent);
  outline-offset: 3px;
}

.mobile-nav-overlay[hidden],
.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  height: calc(var(--app-vh) * 100);
  background: var(--drawer-backdrop);
  -webkit-backdrop-filter: blur(10px) saturate(116%);
  backdrop-filter: blur(10px) saturate(116%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-standard) ease;
  z-index: 2100;
}

@supports (height: 100dvh) {
  .mobile-nav-overlay {
    height: 100dvh;
  }
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  margin: 0;
  height: calc(var(--app-vh) * 100);
  width: min(92vw, 420px);
  background:
    radial-gradient(circle at 18% 24%, var(--theme-drawer-radial), transparent 44%),
    linear-gradient(172deg, var(--theme-drawer-top), var(--theme-drawer-bottom));
  -webkit-backdrop-filter: blur(var(--sheet-blur)) saturate(124%);
  backdrop-filter: blur(var(--sheet-blur)) saturate(124%);
  color: var(--drawer-text);
  box-shadow: var(--elevation-3);
  border-left: 1px solid var(--drawer-divider);
  transform: translateX(100%);
  transition: transform var(--motion-panel) var(--easing-standard);
  z-index: 2200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@supports (height: 100dvh) {
  .mobile-nav {
    height: 100dvh;
  }
}

.mobile-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 34%),
    linear-gradient(0deg, rgba(0,0,0,0.26) 0%, rgba(0,0,0,0) 40%);
  pointer-events: none;
}

.mobile-nav > * {
  position: relative;
  z-index: 1;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: calc(env(safe-area-inset-top, 0px) + 0.72rem) 1rem 0.62rem;
  border-bottom: 1px solid var(--drawer-divider);
  position: relative;
}

.mobile-nav-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: rgba(0,0,0,0.3);
  pointer-events: none;
}

.mobile-nav-head-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.mobile-nav-logo {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
}

.mobile-nav-brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.mobile-nav-brand-top {
  color: color-mix(in srgb, var(--brand-color) 92%, #f4c89d);
  font-size: 1.34rem;
  font-weight: 620;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.mobile-nav-brand-bottom {
  margin-top: 0.16rem;
  color: var(--drawer-text-muted);
  font-size: 0.78rem;
  font-weight: 440;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.mobile-nav-brand::after {
  content: "Delray • Boca • West Palm";
  margin-top: 0.26rem;
  color: var(--drawer-meta);
  font-size: 0.54rem;
  font-weight: 520;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile-nav-close {
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
  color: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mobile-nav-close::before,
.mobile-nav-close::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 1.15px;
  border-radius: 2px;
  background: rgba(255,255,255,0.84);
}

.mobile-nav-close::before {
  transform: rotate(45deg);
}

.mobile-nav-close::after {
  transform: rotate(-45deg);
}

.mobile-nav-close:hover {
  background: rgba(255,255,255,0.09);
}

.mobile-nav-close:focus {
  outline: none;
}

.mobile-nav-close:focus-visible {
  outline: 2px solid var(--btn-accent);
  outline-offset: 3px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  gap: 0;
  margin: 0 0.85rem;
  padding: 0.62rem 1.04rem 0.24rem;
  border: 1px solid var(--drawer-divider);
  border-bottom: 0;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: rgba(255,255,255,0.035);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  align-content: start;
}

.mobile-nav-links::before {
  content: "Navigation";
  display: block;
  margin-bottom: 0.24rem;
  color: rgba(233, 237, 245, 0.52);
  font-size: 0.62rem;
  font-weight: 530;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-nav-links a {
  color: rgba(255,255,255,0.95);
  font-size: 22px;
  line-height: 1;
  font-weight: 540;
  letter-spacing: -0.012em;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 0 0 0 0.08rem;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--motion-fast) ease, transform var(--motion-standard) cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.mobile-nav-links a:nth-child(-n+4) {
  font-size: 22px;
  font-weight: 540;
}

.mobile-nav-links a:nth-child(5) {
  margin-top: 0.26rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.48rem;
}

.mobile-nav-links a:nth-child(n+5) {
  font-size: 20px;
  font-weight: 525;
  color: rgba(247, 249, 252, 0.92);
}

.mobile-nav.is-open .mobile-nav-links a {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-links a:nth-child(1) { transition-delay: 30ms; }
.mobile-nav-links a:nth-child(2) { transition-delay: 60ms; }
.mobile-nav-links a:nth-child(3) { transition-delay: 90ms; }
.mobile-nav-links a:nth-child(4) { transition-delay: 120ms; }
.mobile-nav-links a:nth-child(5) { transition-delay: 150ms; }
.mobile-nav-links a:nth-child(6) { transition-delay: 180ms; }
.mobile-nav-links a:nth-child(7) { transition-delay: 210ms; }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-links a {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mobile-nav-overlay,
  .mobile-nav,
  .header-cta,
  .mobile-nav-cta,
  .btn-primary,
  a.btn-secondary,
  a.btn-tertiary {
    transition: none !important;
  }
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: color-mix(in srgb, var(--gold-start) 84%, #fff);
}

.mobile-nav-actions {
  margin: 0 0.85rem 0.8rem;
  margin-top: auto;
  padding: 0.56rem 1rem calc(env(safe-area-inset-bottom, 0px) + 0.66rem);
  border: 1px solid var(--drawer-divider);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: rgba(5, 8, 15, 0.76);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 420px) {
  .mobile-nav {
    width: 100vw;
    max-width: 100vw;
    border-left: none;
  }
}

.mobile-nav-actions::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.16);
  margin-bottom: 0.18rem;
}

.mobile-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-primary-height);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform var(--motion-fast) ease, filter var(--motion-fast) ease;
}

.mobile-nav-cta--primary {
  border: 1px solid var(--gold-border);
  background: linear-gradient(180deg, var(--gold-start), var(--gold-end));
  color: rgba(255,255,255,0.97);
  font-size: 0.76rem;
  font-weight: var(--button-font-weight);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
}

.mobile-nav-cta--secondary {
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(7, 10, 18, 0.22);
  color: rgba(238, 241, 247, 0.88);
  font-size: 0.84rem;
  font-weight: 520;
  letter-spacing: -0.005em;
  min-height: var(--btn-secondary-height);
}

@media (min-width: 1200px) {
  .site-header {
    flex-wrap: nowrap;
  }

  .nav-toggle,
  .mobile-nav,
  .mobile-nav-overlay {
    display: none !important;
  }

  .site-nav {
    display: block !important;
  }

  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1101px) and (max-width: 1199px) {
  .site-header {
    flex-wrap: nowrap;
    padding: 0.9rem 1.45rem;
    min-height: 84px;
  }

  .nav-toggle,
  .mobile-nav,
  .mobile-nav-overlay {
    display: none !important;
  }

  .site-nav {
    display: block !important;
  }

  .site-nav ul,
  .site-nav .nav-list {
    gap: 0.98rem;
  }

  .site-header .site-nav .nav-list > li > a,
  .site-header .site-nav > ul > li > a {
    font-size: 0.92rem;
  }

  .header-cta {
    display: inline-flex;
    min-height: var(--btn-primary-height);
    padding: 0 0.98rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .site-header {
    flex-wrap: nowrap;
    gap: 0.7rem;
    padding: 0.84rem 1.2rem;
    min-height: 78px;
  }

  .logo {
    max-width: calc(100% - 190px);
  }

  .logo-img {
    max-height: 46px;
    margin-right: 0.66rem;
  }

  .brand-line-primary {
    font-size: clamp(1.06rem, 1.9vw, 1.2rem);
  }

  .brand-line-secondary {
    margin-top: 0.08rem;
    font-size: 0.74rem;
  }

  .site-nav {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .nav-toggle-icon {
    font-size: 1.5rem;
  }

  .header-cta {
    order: 2;
    display: inline-flex;
    margin-left: auto;
    margin-right: 0.2rem;
    height: var(--btn-primary-height);
    min-height: var(--btn-primary-height);
    padding: 0 0.9rem;
    font-size: 0.76rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    box-shadow: var(--elevation-1), inset 0 0 0 1px rgba(255,255,255,0.16);
  }

  .mobile-nav {
    width: min(92vw, 420px);
  }
}

@media (min-width: 769px) and (max-width: 899px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    padding: 0.78rem 1.05rem;
    min-height: 76px;
  }

  .logo {
    max-width: calc(100% - 56px);
  }

  .logo-img {
    max-height: 42px;
    margin-right: 0.6rem;
  }

  .brand-line-primary {
    font-size: clamp(1.1rem, 2.3vw, 1.24rem);
    letter-spacing: -0.02em;
  }

  .brand-line-secondary {
    margin-top: 0.08rem;
    font-size: 0.78rem;
  }

  .site-nav,
  .header-cta {
    display: none !important;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--surface-border-matte);
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
    color: #2d2f35;
    color: color-mix(in srgb, var(--theme-text) 86%, #2d2f35);
    padding: 0;
  }

  .nav-toggle-icon {
    font-size: 1.9rem;
  }

  .mobile-nav {
    width: min(92vw, 420px);
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    padding: 0.72rem 1rem;
    min-height: 74px;
  }

  .logo {
    max-width: calc(100% - 56px);
  }

  .logo-img {
    max-height: 40px;
    margin-right: 0.58rem;
  }

  .brand-line-primary {
    font-size: clamp(1.08rem, 4.1vw, 1.2rem);
    letter-spacing: -0.02em;
  }

  .brand-line-secondary {
    margin-top: 0.08rem;
    font-size: 0.76rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--surface-border-matte);
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
    color: #2d2f35;
    color: color-mix(in srgb, var(--theme-text) 86%, #2d2f35);
    padding: 0;
  }

  .nav-toggle-icon {
    font-size: 1.95rem;
  }

  .site-nav,
  .header-cta {
    display: none !important;
  }

  .mobile-nav {
    width: min(92vw, 420px);
  }

  .mobile-nav-links a {
    font-size: 20px;
  }

  .mobile-nav-links a:nth-child(-n+4) {
    font-size: 21px;
  }

  .mobile-nav-links a:nth-child(n+5) {
    font-size: 19px;
  }

  .mobile-nav-cta--secondary {
    font-size: 0.86rem;
  }
}

/* Prevent background scroll when mobile menu is open */
html.menu-lock-active,
body.menu-lock-active {
  overflow: hidden;
  height: 100%;
}

body.menu-lock-active {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* iPad/tablet safety: never keep page locked in compact mode */
@media (min-width: 768px) {
  html.menu-lock-active,
  body.menu-lock-active {
    overflow-y: auto !important;
    height: auto !important;
  }

  body.menu-lock-active {
    position: static !important;
    width: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
  }
}

/* ───────── Layout / Cards ───────── */
.container { max-width: 980px; margin: 0 auto; padding: 2rem 1rem; }
section {
  margin-bottom: var(--section-space-y);
  padding: clamp(1.6rem, 2.8vw, 2.38rem);
  background: var(--section-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--surface-border-soft);
  box-shadow: var(--elevation-1);
}

/* Shared serving-area strip (index/about/contact) */
.service-areas {
  max-width: 1120px;
  margin: 0 auto 1.25rem;
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.78);
  background: transparent;
  box-shadow: none;
}

.service-areas p {
  margin: 0;
}
.booking, .updates, .about, .contact, .note {
  background: var(--surface-raised);
  padding: clamp(1.18rem, 2.2vw, 1.5rem);
  border-radius: var(--radius-card);
  border: 1px solid var(--surface-border-soft);
  box-shadow: 0 6px 14px rgba(var(--theme-shadow-rgb), 0.065);
}

/* Highlight callouts */
.callout {
  display: block; margin: 0.5em 0; padding: 0.5em 0.75em;
  background: color-mix(in srgb, var(--gold-start) 22%, #fff9ea);
  border-left: 4px solid color-mix(in srgb, var(--gold-end) 88%, #946630);
  border-radius: var(--radius-card);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  section,
  .booking,
  .updates,
  .about,
  .contact,
  .note,
  .matchplay-page .card,
  .faq details {
    transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, border-color var(--motion-fast) ease;
  }

  section:hover,
  .booking:hover,
  .updates:hover,
  .about:hover,
  .contact:hover,
  .note:hover,
  .matchplay-page .card:hover,
  .faq details:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(var(--theme-shadow-rgb), 0.12);
    border-color: color-mix(in srgb, var(--surface-border-matte) 82%, #10131b);
  }
}

/* Small fixes */
#schedule-service ul { margin-top: 4px; margin-bottom: 12px; }

/* ───────── Headings & Text ───────── */
h1 {
  font-size: 2.32rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.026em;
}

h2 {
  font-size: var(--apple-heading-2-size);
  line-height: var(--apple-heading-2-line);
  letter-spacing: var(--apple-heading-2-tracking);
  font-weight: 650;
  margin-bottom: 0.9rem;
}
h3 { font-size: 1.18rem; font-weight: 560; margin-top: 1.4rem; letter-spacing: -0.014em; }
p, li { margin-bottom: 12px; }

/* Lists */
ul { list-style: none; }
ul.facts-list li { display: flex; align-items: flex-start; }
ul.facts-list li + li { margin-top: .75rem; }
ul.facts-list li::before { content: "•"; color: var(--accent-color); margin-right: .5rem; }

/* Footer */
footer {
  padding: clamp(2rem, 4.1vw, 2.75rem) clamp(1rem, 3vw, 2rem) clamp(1.95rem, 4vw, 2.6rem);
  border-top: 1px solid var(--footer-border);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 0.82rem;
  line-height: 1.55;
  letter-spacing: 0.012em;
}

/* Shared editorial colophon footer (index/services/matchplay/about/contact/news/facts) */
.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.02rem 1.9rem;
}

.site-footer .footer-copy {
  margin: 0;
  color: var(--footer-text);
  opacity: 0.78;
  font-size: 0.67rem;
  font-weight: 410;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-footer .footer-links {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  align-self: baseline;
  gap: 0.9rem 1.45rem;
  max-width: min(640px, 100%);
}

.site-footer .footer-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.site-footer .footer-item a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 0.05rem 0;
  color: var(--footer-link);
  text-decoration: none;
  opacity: 0.8;
  font-weight: 395;
  letter-spacing: 0.016em;
  line-height: 1.2;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 calc(100% - 0.02em);
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color var(--motion-standard) var(--easing-standard),
              opacity var(--motion-standard) var(--easing-standard),
              background-size var(--motion-panel) var(--easing-standard);
}

.site-footer .footer-item a:hover,
.site-footer .footer-item a:focus-visible {
  color: var(--footer-link-hover);
  opacity: 1;
  background-size: 100% 1px;
}

.site-footer .footer-item a::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 0.8rem;
  background-color: currentColor;
  opacity: 0.5;
  transform: translateY(-0.02rem);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.site-footer .footer-item-phone a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.site-footer .footer-item-email a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

.site-footer .footer-item-social a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M17.5 6.5h.01'/%3E%3C/svg%3E");
}

.site-footer .footer-meta {
  grid-column: 1;
  justify-self: start;
  margin: 0.62rem 0 0;
  color: var(--footer-muted);
  opacity: 0.5;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer .footer-ghost-link {
  color: inherit;
  opacity: 0.55;
  text-decoration: none;
  margin-left: 0.7rem;
  letter-spacing: 0.22em;
  transition: opacity var(--motion-standard) var(--easing-standard),
              color var(--motion-standard) var(--easing-standard);
}

.site-footer .footer-ghost-link:hover,
.site-footer .footer-ghost-link:focus-visible {
  opacity: 0.92;
  color: var(--footer-link-hover);
}

.site-footer .footer-sep {
  display: none;
}

.site-footer .instagram-icon {
  display: none;
}

@media (max-width: 760px) {
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.98rem;
  }

  .site-footer .footer-links {
    justify-content: center;
  }

  .site-footer .footer-meta {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 0.3rem;
  }
}

@media (max-width: 560px) {
  footer {
    padding: 1.9rem clamp(1rem, 3vw, 1.55rem) 2.05rem;
  }

  .site-footer {
    gap: 0.82rem;
  }

  .site-footer .footer-links {
    gap: 0.58rem 1.05rem;
  }
}

/* Hidden club access page */
.club-access-page {
  background:
    radial-gradient(circle at top right, rgba(207, 171, 118, 0.15), transparent 34%),
    radial-gradient(circle at bottom left, rgba(30, 143, 213, 0.12), transparent 36%),
    var(--theme-bg);
}

.club-access-main {
  padding-top: 2rem;
  padding-bottom: 3.2rem;
}

.club-access-hero {
  display: grid;
  gap: 1.15rem;
  margin: 0 auto 1.3rem;
  padding: 1.3rem;
  border: 1px solid var(--theme-border-strong);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 243, 236, 0.82)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 40px rgba(var(--theme-shadow-rgb), 0.12);
}

.club-access-kicker {
  margin: 0;
  color: var(--brand-color);
  letter-spacing: 0.18em;
  font-size: 0.73rem;
  text-transform: uppercase;
}

.club-access-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.club-access-hero p {
  margin: 0;
  max-width: 48rem;
  color: var(--theme-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.club-access-process {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.club-access-process article {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--theme-border);
  background: rgba(255, 255, 255, 0.72);
}

.club-access-process strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme-text);
}

.club-access-process span {
  display: block;
  color: var(--theme-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.club-access-layout {
  display: grid;
  gap: 1rem;
}

.club-access-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--theme-border-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 34px rgba(var(--theme-shadow-rgb), 0.08);
}

.club-access-panel-head {
  display: grid;
  gap: 0.35rem;
}

.club-access-panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.club-access-panel-head p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.club-access-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.club-access-tab {
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  padding: 0.72rem 0.78rem;
  background: rgba(255, 255, 255, 0.62);
  color: var(--theme-text);
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: transform var(--motion-standard) var(--easing-standard),
              background var(--motion-standard) var(--easing-standard),
              border-color var(--motion-standard) var(--easing-standard);
}

.club-access-tab.is-active {
  background: linear-gradient(135deg, rgba(191, 79, 36, 0.12), rgba(30, 143, 213, 0.12));
  border-color: rgba(191, 79, 36, 0.24);
  transform: translateY(-1px);
}

.club-access-view {
  display: none;
}

.club-access-view.is-active {
  display: grid;
  gap: 0.9rem;
}

.club-access-form {
  display: grid;
  gap: 0.85rem;
}

.club-access-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.club-access-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--theme-text);
  font-size: 0.88rem;
  font-weight: 600;
}

.club-access-form input,
.club-access-form select,
.club-access-form textarea {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 22, 32, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--theme-text);
  font: inherit;
}

.club-access-form textarea {
  min-height: 120px;
  resize: vertical;
}

.club-access-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.club-access-status-card,
.club-access-note-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--theme-border);
  background: rgba(247, 249, 252, 0.86);
}

.club-access-status-card strong,
.club-access-note-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.club-access-status-card p,
.club-access-note-card p,
.club-access-note-card li {
  margin: 0;
  color: var(--theme-muted);
  line-height: 1.55;
}

.club-access-note-card ul {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
}

.club-access-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--theme-muted);
}

.club-access-mini-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.club-access-mini-links a:hover,
.club-access-mini-links a:focus-visible {
  color: var(--brand-color);
  border-bottom-color: currentColor;
}

.club-access-auth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.club-access-turnstile {
  min-height: 72px;
}

.club-access-empty {
  color: var(--theme-muted);
  font-size: 0.92rem;
}

.club-access-page button.btn-secondary,
.club-access-page a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-secondary-height);
  padding: 0.72rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--theme-border-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--theme-text);
  text-decoration: none;
  font-weight: 600;
  transition: transform var(--motion-standard) var(--easing-standard),
              border-color var(--motion-standard) var(--easing-standard),
              background var(--motion-standard) var(--easing-standard);
}

.club-access-page button.btn-secondary:hover,
.club-access-page button.btn-secondary:focus-visible,
.club-access-page a.btn-secondary:hover,
.club-access-page a.btn-secondary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(191, 79, 36, 0.25);
  background: rgba(255, 255, 255, 0.96);
}

@media (min-width: 860px) {
  .club-access-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.82fr);
    align-items: start;
  }

  .club-access-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .club-access-process {
    grid-template-columns: 1fr;
  }

  .club-access-tabs {
    grid-template-columns: 1fr;
  }
}

/* ───────── Lightbox (StringLab) ───────── */
#stringlab-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: 1rem 0; }
@supports (overscroll-behavior-x: contain) { #stringlab-carousel { overscroll-behavior-x: contain; } }
#stringlab-carousel .carousel-item { flex: 0 0 auto; scroll-snap-align: start; }
#stringlab-carousel img { display: block; height: 160px; border-radius: 4px; object-fit: cover; cursor: pointer; }
#lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 1000; overflow: hidden; }
#lightbox-overlay.visible { display: flex; }
.lightbox-content { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox-content img { width: auto; height: auto; max-width: 100vw; max-height: 100vh; object-fit: contain; border-radius: 4px; }
.lightbox-close,.lightbox-prev,.lightbox-next {
  position: absolute; background: rgba(0,0,0,0.5); color: #fff; border: none; padding: .5rem .8rem;
  font-size: 1.4rem; cursor: pointer; border-radius: 4px;
}
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev  { top: 50%; left: 10px; transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 10px; transform: translateY(-50%); }

/* Mobile lightbox fallback */
@media (max-width: 768px) {
  #lightbox-overlay { display: none !important; }
  #stringlab-carousel img { cursor: default; pointer-events: none; }
}

/* Accessibility helper */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ───────── MOVED from inline: Overlay + Hero + Animations ───────── */

/* =====================================================================================
   ★ CHANGE (BUGFIX): Hero visibility scoping so overlay logic affects INDEX ONLY
   -------------------------------------------------------------------------------------
   OLD (BUG): `.hero { visibility:hidden; }` hid heroes on every page unless JS added `.show`
   NEW (FIX): hide ONLY when index explicitly marks overlay active:
              body.is-home.has-intro-overlay .hero
   REQUIRED: index.html should add:
              <body class="... is-home has-intro-overlay">
             and JS should remove 'has-intro-overlay' when overlay completes.
   ===================================================================================== */

/* ★ CHANGE (BUGFIX): Restore default visibility for all pages (non-index safe) */
.hero { visibility: visible; } /* ★ CHANGE: previously hidden globally; now visible by default */

/* ★ CHANGE (BUGFIX): Only hide hero on HOME while intro overlay is active */
body.is-home.has-intro-overlay .hero { visibility: hidden; } /* ★ CHANGE: scoped to index only */

/* ★ CHANGE (BUGFIX): Home hero becomes visible when JS adds .show (preserves old core logic) */
body.is-home .hero.show { visibility: visible; } /* ★ CHANGE: scoped show rule */

/* 2) Full-screen intro overlay: flow→shrink→grow (9s total) */
#introOverlay {
  position: fixed; top:0; left:0; width:100vw; height:100vh;
  background:#000; overflow:hidden; z-index:2000;
  clip-path: circle(150% at 50% 50%);
  animation: intro-flow 7s ease-in-out forwards;
}
@keyframes intro-flow {
  0%,50% { clip-path: circle(150% at 50% 50%); opacity:1; }
  77%,80% { clip-path: circle(8px at 50% 50%); opacity:1; }
  100% { clip-path: circle(150% at 50% 50%); opacity:0; }
}

/* 3) Accent-colored 3D dot pop */
#introOverlay::after {
  content:""; position:absolute; width:16px; height:16px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-color), #000);
  top:50%; left:50%; transform:translate(-50%,-50%) scale(0);
  opacity:0; animation: dot-pop 9s ease-in-out forwards;
}
@keyframes dot-pop {
  0%,76% { transform:translate(-50%,-50%) scale(0); opacity:0; }
  77%,80% { transform:translate(-50%,-50%) scale(1); opacity:1; }
  100% { transform:translate(-50%,-50%) scale(150); opacity:0; }
}

/* 4) Intro video cover */
#introOverlay video { width:100vw; height:100vh; object-fit:cover; }

/* 5) Overlay text block & drift */
#introOverlay .introText {
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; color:#fff; animation: blockSlideUp 4.5s linear forwards;
}
@keyframes blockSlideUp { from{transform:translateY(0);} to{transform:translateY(-96px);} }

/* 6) Staggered reveals */
#introOverlay .introText .line1,
#introOverlay .introText .line2,
#introOverlay .introText .phrase1,
#introOverlay .introText .phrase2 { opacity:0; transform:translateY(20px); display:inline-block; }
.line1   { animation: fadeUp .8s ease-out  .5s   forwards; }
.line2   { animation: fadeUp .8s ease-out  1.625s forwards; }
.phrase1 { animation: fadeUp .8s ease-out  2.75s forwards; }
.phrase2 { animation: fadeUp .8s ease-out  3.875s forwards; }
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }

/* 7) Hero video container */
.hero {
  position:relative; overflow:hidden;
  height:65vh;
  max-height:680px;
  margin-bottom:2.15rem;
  border-radius: var(--radius-card);
  border: 1px solid color-mix(in srgb, var(--surface-border-matte) 74%, #fff);
  box-shadow: var(--elevation-2);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 14% 18%, var(--hero-overlay-accent), transparent 42%),
    linear-gradient(180deg, var(--hero-overlay-top) 0%, var(--hero-overlay-bottom) 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.36) 50%, transparent 100%);
  pointer-events: none;
}

/* Mobile hero safety */
@media (max-width: 768px) {
  .hero {
    height: 72vh;
    max-height: none;
    min-height: 520px;
  }
}

.hero video {
  position:absolute; top:50%; left:50%; min-width:100%; min-height:100%;
  transform:translate(-50%,-50%); object-fit:cover; z-index:0;
}

/* 8) Hero content + pulse */
.hero-content {
  position:relative;
  z-index:3;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  height:100%; padding:0 1.5rem; text-align:center; color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,0.6); transform-origin:center;
  animation: hero-pulse var(--pulse-duration) ease-in-out infinite;
  backdrop-filter: blur(var(--hero-blur));
  -webkit-backdrop-filter: blur(var(--hero-blur));
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: var(--hero-mobile-padding-top);
    padding-bottom: var(--hero-mobile-padding-bottom);
    gap: 0.6rem;
  }
}

@keyframes hero-pulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.02); } }

/* 9) Scroll-triggered fade-ins */
.fade-in { opacity:0; transform:translateY(30px); transition:opacity var(--motion-panel) ease-out, transform var(--motion-panel) ease-out; }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* 10) Dynamic accents for buttons & nav underline */

/* btn-primary: premium CTA layout */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 0.9rem 2.2rem;
  border-radius: var(--cta-radius);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  color: #fff;
  background: var(--btn-accent);
  box-shadow: 0 8px 16px rgba(var(--theme-shadow-rgb), 0.13);
  transition: transform var(--motion-fast) ease, filter var(--motion-fast) ease, box-shadow var(--motion-fast) ease;

  min-height: var(--btn-primary-height);
  line-height: 1.2;
  letter-spacing: var(--button-letter-spacing);
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover { transform: translateY(-1px); filter:brightness(1.06); box-shadow: 0 10px 20px rgba(var(--theme-shadow-rgb), 0.16); }

/* Shared CTA helper */
.btn-primary span,
.btn-secondary span,
.btn-tertiary span {
  display: block;
}
.cta-subline { font-weight: 700; }

/* Secondary button */
a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 0.75rem 2rem;
  border-radius: var(--cta-radius);
  font-size: 0.92rem;
  font-weight: 610;
  min-height: var(--btn-secondary-height);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  background: rgba(255,255,255,0.92);
  color: #111 !important;
  box-shadow: 0 4px 11px rgba(var(--theme-shadow-rgb), 0.1);
  transition: transform var(--motion-fast) ease, background var(--motion-fast) ease, box-shadow var(--motion-fast) ease, border-color var(--motion-fast) ease, opacity var(--motion-fast) ease;
}
a.btn-secondary * { color: inherit !important; }
a.btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.98);
  color: #111 !important;
  box-shadow: 0 7px 15px rgba(var(--theme-shadow-rgb), 0.13);
}
a.btn-secondary:hover * { color: inherit !important; }
a.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25), 0 8px 20px rgba(0,0,0,0.18);
  color: #111 !important;
}
a.btn-secondary:focus-visible * { color: inherit !important; }

/* Tertiary button */
a.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 0.7rem 1.9rem;
  border-radius: var(--cta-radius);
  font-size: 0.86rem;
  font-weight: 590;
  min-height: var(--btn-outline-height);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(244,246,250,0.88) !important;
  box-shadow: none;
  transition: transform var(--motion-fast) ease, background var(--motion-fast) ease, border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, opacity var(--motion-fast) ease;
}
a.btn-tertiary * { color: inherit !important; }
a.btn-tertiary:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
  color: rgba(248,249,251,0.92) !important;
  box-shadow: 0 7px 14px rgba(var(--theme-shadow-rgb), 0.18);
}
a.btn-tertiary:hover * { color: inherit !important; }
a.btn-tertiary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18), 0 8px 20px rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.95) !important;
}
a.btn-tertiary:focus-visible * { color: inherit !important; }

/* Ensure no underline on hover for CTA buttons */
a.btn-primary:hover,
a.btn-secondary:hover,
a.btn-tertiary:hover {
  text-decoration: none !important;
}

.btn-primary:active,
a.btn-secondary:active,
a.btn-tertiary:active,
.header-cta:active,
.mobile-nav-cta:active {
  transform: translateY(1px) scale(0.99);
}

/* Hero responsive typography */
section.hero .hero-content > h1 {
  font-size: clamp(2.12rem, 5.9vw, 3.86rem);
  line-height: 0.98;
  letter-spacing: -0.027em;
}
section.hero .hero-content > p {
  font-size: clamp(1.00rem, 2.6vw, 1.35rem);
  max-width: 72%;
  line-height: 1.38;
}
section.hero .hero-content > h2 {
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  line-height: 1.2;
  font-weight: 650;
}

/* Intro overlay text sizes */
#introOverlay .introText h2.line1,
#introOverlay .introText h2.line2 { font-size: 3.4rem; }
#introOverlay .introText p.phrase1,
#introOverlay .introText p.phrase2 { font-size: 1.9rem; }

/* Breakpoints */
@media (max-width: 768px) {
  .mobile-nav {
    width: min(92vw, 420px);
  }

  .mobile-nav-head {
    padding-left: 1.1rem;
    padding-right: 1rem;
  }

  .mobile-nav-brand-top {
    font-size: 1.34rem;
  }

  .mobile-nav-brand-bottom {
    font-size: 0.78rem;
  }

  .mobile-nav-links a {
    font-size: 21px;
  }

  .mobile-nav-links a:nth-child(-n+4) {
    font-size: 21px;
  }

  .mobile-nav-actions {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mobile-nav-cta {
    min-height: var(--btn-primary-height);
  }

  section.hero .hero-content > p { max-width: 92%; }

  #introOverlay .introText h2.line1,
  #introOverlay .introText h2.line2 { font-size: 2.6rem; }
  #introOverlay .introText p.phrase1,
  #introOverlay .introText p.phrase2 { font-size: 1rem; }

  h1 { font-size: 1.75rem; }

  /* ★ FIX (IMPORTANT): remove vw-based CTA widths that caused overflow vs .container padding
     Replaced with container-safe sizing. */
  .hero-content a.btn-primary,
  .hero-content a.btn-secondary,
  .hero-content a.btn-tertiary {
    width: 100%;                                           /* ★ CHANGED */
    max-width: var(--cta-max-width);                       /* ★ NEW */
    margin-left: auto;                                     /* ★ NEW */
    margin-right: auto;                                    /* ★ NEW */
    box-sizing: border-box;                                /* ★ NEW */
  }
}

/* =====================================================================================
   ★ MATCH PLAY PAGE (MOVED FROM matchplay.html INLINE CSS)
   Scope all rules to .matchplay-page to avoid affecting other pages.
   ===================================================================================== */

.matchplay-page .hero-lite {
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(0,0,0,0.78), rgba(0,0,0,0.90)),
    url("/images/backgrounds/net-court.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.matchplay-page .hero-lite::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 1;
}

.matchplay-page .hero-lite > * { position: relative; z-index: 1; }

.matchplay-page .hero-lite h1 {
  font-size: clamp(1.55rem, 4.6vw, 2.65rem);
  line-height: 1.12;
  margin-bottom: 0.75rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.matchplay-page .hero-lite p {
  max-width: 52rem;
  font-size: clamp(1.00rem, 2.6vw, 1.08rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

.matchplay-page .atp-hero-note {
  margin-top: 0.85rem;
  max-width: 52rem;
  font-size: 1.00rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 2px 10px rgba(0,0,0,0.26);
}

.matchplay-page .micro { font-size: 0.95rem; color: rgba(255,255,255,0.92); }

/* ★ MATCHPLAY CTA STACK (container-safe sizing; NO vw overflow) */
.matchplay-page .hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.70rem;
  margin-top: 1.15rem;
  width: 100%;
  max-width: var(--cta-max-width);
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: stretch;
}

.matchplay-page .hero-actions a.btn-primary,
.matchplay-page .hero-actions a.btn-secondary,
.matchplay-page .hero-actions a.btn-tertiary {
  width: 100%;
  max-width: var(--cta-max-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
}

/* Matchplay CTA typography */
.matchplay-page .cta-subline {
  display: block;
  font-weight: 750;
  letter-spacing: -0.01em;
  font-size: clamp(1.02rem, 3.8vw, 1.12rem);
}
.matchplay-page .cta-subline2 {
  display: block;
  font-size: clamp(0.92rem, 3.4vw, 1.00rem);
  opacity: 0.92;
}
.matchplay-page .cta-phone {
  display: block;
  font-size: clamp(0.98rem, 3.6vw, 1.06rem);
  letter-spacing: 0.01em;
  opacity: 0.95;
}

/* Ensure matchplay CTAs are vertically centered and not “too tall” on iPhone */
.matchplay-page .hero-lite .hero-actions a.btn-primary,
.matchplay-page .hero-lite .hero-actions a.btn-secondary,
.matchplay-page .hero-lite .hero-actions a.btn-tertiary {
  min-height: clamp(54px, 12vw, 66px);
  padding: clamp(0.70rem, 2.2vw, 0.95rem) 1.15rem;
  gap: 0.16rem;
}

/* Desktop: three buttons in a row */
@media (min-width: 768px) {
  .matchplay-page .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    max-width: 1040px;
  }
  .matchplay-page .hero-actions a.btn-primary,
  .matchplay-page .hero-actions a.btn-secondary,
  .matchplay-page .hero-actions a.btn-tertiary {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Matchplay cards + badges + helpers (moved from inline) */
.matchplay-page .grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.matchplay-page .card {
  background: var(--bg-light);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}
.matchplay-page .card h3 { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.15rem; font-weight: 650; }

.matchplay-page .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  background: rgba(0,0,0,0.06);
  margin-bottom: 0.75rem;
}
.matchplay-page .badge.free {
  background: rgba(0, 160, 90, 0.12);
  color: #0b5a36;
  border: 1px solid rgba(0, 160, 90, 0.18);
}
.matchplay-page .badge.paid {
  background: rgba(194, 59, 34, 0.12);
  color: #7c1e12;
  border: 1px solid rgba(194, 59, 34, 0.18);
}

.matchplay-page .keyline {
  height: 2px;
  width: 72px;
  background: var(--accent-color);
  border-radius: 2px;
  margin: 0.75rem 0 1rem 0;
}

.matchplay-page .note-box {
  background: #fff7c0;
  border-left: 4px solid #f5b700;
  border-radius: var(--radius-card);
  padding: 0.85rem 1rem;
  font-weight: 600;
  margin-top: 0.75rem;
}

.matchplay-page .fineprint { color: #6e6e73; font-size: 0.95rem; margin-top: 0.5rem; }

.matchplay-page .disclaimer-box {
  background: color-mix(in srgb, var(--surface-raised) 80%, transparent);
  border: 1px solid var(--surface-border-soft);
  border-left: 4px solid var(--surface-border-matte);
  border-radius: var(--radius-card);
  padding: 1rem 1.05rem;
  margin-top: 1rem;
  color: color-mix(in srgb, var(--theme-muted) 90%, #555);
  font-size: 0.95rem;
  line-height: 1.55;
}
.matchplay-page .disclaimer-box strong { color: var(--theme-text); }

@media (min-width: 768px) {
  .matchplay-page .hero-lite { padding: 2.5rem; }
  .matchplay-page .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Shared FAQ/disclosure base styling (uniform across pages) */
.faq {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
}
.faq details {
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-card);
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  background: color-mix(in srgb, var(--surface-raised) 82%, transparent);
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq details p {
  margin-top: 0.6rem;
  color: var(--text-color);
  line-height: 1.55;
}

/* Shared FAQ/disclosure hover + pin interaction (desktop only; JS-gated) */
.faq details {
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background-color var(--motion-fast) ease;
}
.faq summary.has-pin {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.faq summary.has-pin::after {
  display: none;
}
.faq .about-disclosure-pin {
  appearance: none;
  margin-left: auto;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
  position: relative;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  color: color-mix(in srgb, var(--btn-accent, #cb5223) 70%, #5c5c66);
  background: color-mix(in srgb, var(--btn-accent, #cb5223) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--btn-accent, #cb5223) 35%, #cccbd4);
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.22s ease;
  transform: rotate(0deg);
  flex-shrink: 0;
}
.faq .about-disclosure-pin:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn-accent, #cb5223) 28%, #fff);
}
.faq details:hover:not([open]) .about-disclosure-pin,
.faq .about-disclosure-pin:hover {
  border-color: color-mix(in srgb, var(--btn-accent, #cb5223) 56%, #b9b9c3);
  background: color-mix(in srgb, var(--btn-accent, #cb5223) 14%, #fff);
  transform: translateY(-1px);
}
.faq details:hover {
  border-color: color-mix(in srgb, var(--btn-accent, #cb5223) 45%, #c8c8d0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.faq details[open] {
  border-color: color-mix(in srgb, var(--btn-accent, #cb5223) 52%, #bebec7);
  background: color-mix(in srgb, var(--btn-accent, #cb5223) 3%, #fff);
}
.faq details[open]:not([data-pinned="true"]) .about-disclosure-pin {
  color: color-mix(in srgb, var(--btn-accent, #cb5223) 92%, #25252e);
  background: color-mix(in srgb, var(--btn-accent, #cb5223) 24%, #fff);
  border-color: color-mix(in srgb, var(--btn-accent, #cb5223) 62%, #b6b6c1);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--btn-accent, #cb5223) 18%, transparent);
  transform: rotate(180deg);
}
.faq details[data-pinned="true"] {
  border-color: color-mix(in srgb, var(--btn-accent, #cb5223) 62%, #9f9fac);
  background: color-mix(in srgb, var(--btn-accent, #cb5223) 6%, #fff);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.faq details[data-pinned="true"] .about-disclosure-pin {
  color: #fff;
  background: color-mix(in srgb, var(--btn-accent, #cb5223) 92%, #24242c);
  border-color: transparent;
  transform: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--btn-accent, #cb5223) 30%, #fff), 0 10px 20px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* Premium 2026 hierarchy calibration */
body.is-home {
  --hero-cta-fill: #d0ad78;
  --hero-cta-hover: #b8884f;
  --btn-primary-height: 48px;
  --home-radius-shell: 28px;
  --home-radius-card: 20px;
}

body.is-home .hero.hero-v2 {
  border-radius: var(--home-radius-shell);
  border: 1px solid color-mix(in srgb, var(--surface-border-matte) 72%, #ffffff);
  box-shadow: var(--elevation-2);
}

.matchplay-page .hero-lite {
  border-radius: var(--radius-card);
  border: 1px solid color-mix(in srgb, var(--surface-border-matte) 72%, #ffffff);
  box-shadow: var(--elevation-2);
}

body.is-home .hero.hero-v2::before {
  background:
    radial-gradient(circle at 16% 20%, color-mix(in srgb, var(--hero-overlay-accent) 100%, transparent), transparent 42%),
    linear-gradient(118deg, color-mix(in srgb, var(--hero-overlay-bottom) 92%, #000) 0%, var(--hero-overlay-top) 45%, color-mix(in srgb, var(--hero-overlay-bottom) 84%, #000) 100%);
}

body.is-home .hero-main-col h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.86rem);
  line-height: 0.98;
  letter-spacing: -0.026em;
}

body.is-home .hero-season-card {
  border-radius: var(--home-radius-card);
  border: 1px solid color-mix(in srgb, var(--surface-border-matte) 62%, rgba(255, 255, 255, 0.32));
  box-shadow: var(--elevation-2), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

body.is-home .home-main {
  gap: 1.32rem;
  padding-top: 0.52rem;
}

body.is-home .home-start {
  display: grid;
  row-gap: 1rem;
  align-content: start;
  padding: 1.5rem;
}

body.is-home .home-start h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

body.is-home .home-start p {
  margin: 0 auto;
  max-width: 48ch;
  line-height: 1.45;
}

body.is-home .home-main section,
body.is-home .home-start {
  border-radius: var(--home-radius-shell);
}

body.is-home .home-bento-card,
body.is-home .home-update-card {
  border-radius: var(--home-radius-card);
}

body.is-home .home-main section,
body.is-home .home-bento-card,
body.is-home .home-start,
.matchplay-page .card {
  border: 1px solid var(--surface-border-soft);
  box-shadow: var(--elevation-1);
}

body.is-home .home-main section,
body.is-home .home-bento-card,
body.is-home .home-start {
  box-shadow: 0 5px 12px rgba(var(--theme-shadow-rgb), 0.06);
}

body.is-home .home-update-card {
  border: 1px solid var(--surface-border-matte);
  background: color-mix(in srgb, var(--surface-raised) 94%, #f9f9fb);
  box-shadow: none;
}

body.is-home .home-start-actions {
  margin-top: 0.5rem;
  gap: 1rem;
}

body.is-home .home-start-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  min-height: var(--btn-primary-height);
  line-height: 1;
}

body.is-home .home-start-link,
body.is-home .season-actions a.season-cta {
  border-radius: var(--radius-pill);
}

body.is-home .home-start-link--primary {
  min-height: var(--btn-primary-height);
}

body.is-home .season-actions a.season-cta.season-cta-primary {
  min-height: var(--btn-primary-height);
}

body.is-home .season-actions a.season-cta.season-cta-secondary,
body.is-home .season-actions a.season-cta.season-cta-tertiary {
  min-height: var(--btn-secondary-height);
}

@media (min-width: 769px) {
  body.is-home .home-start-link {
    height: var(--btn-primary-height);
  }

  body.is-home .season-actions a.season-cta.season-cta-primary {
    height: var(--btn-primary-height);
  }
}

body.is-home footer {
  border-radius: var(--home-radius-shell) var(--home-radius-shell) 0 0;
}

body.is-home .season-actions a.season-cta.season-cta-primary {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 9px 18px rgba(var(--theme-shadow-rgb), 0.28);
}

body.is-home .season-actions a.season-cta.season-cta-primary:hover {
  box-shadow: 0 12px 24px rgba(var(--theme-shadow-rgb), 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .faq details,
  .faq summary,
  .faq .about-disclosure-pin {
    transition: none;
  }
}

/* MatchPlay widget modal launcher + dialog */
.matchplay-widget-open-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.35rem;
  color: var(--btn-accent);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.matchplay-widget-open-link:hover {
  filter: brightness(1.06);
}

html.matchplay-widget-modal-open,
body.matchplay-widget-modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.matchplay-widget-modal[hidden] {
  display: none;
}

.matchplay-widget-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overscroll-behavior: none;
  overflow: hidden;
  touch-action: pan-y;
}

.matchplay-widget-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.matchplay-widget-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.matchplay-widget-dialog {
  position: relative;
  width: min(1120px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  height: auto;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #0b1222;
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.38);
  overscroll-behavior: contain;
}

.matchplay-widget-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.matchplay-widget-dialog-head h3 {
  margin: 0;
  color: #e2e8f0;
  font-size: 1rem;
}

.matchplay-widget-close-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(30, 41, 59, 0.7);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.matchplay-widget-dialog-body {
  padding: 0.75rem;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
  scroll-padding-top: 4.25rem;
  scroll-padding-bottom: 1rem;
}

.matchplay-widget-dialog-body #matchplay-widget-root {
  width: 100%;
  min-width: 0;
  min-height: 100%;
}

.matchplay-widget-dialog-body #matchplay-widget-root .mpw {
  margin: 0;
  border-radius: 12px;
  box-shadow: none;
  min-height: 100%;
}

@media (min-width: 1201px) {
  .matchplay-widget-dialog {
    width: min(1680px, calc(100vw - 1.25rem));
    height: calc(100vh - 1.25rem);
    max-height: calc(100vh - 1.25rem);
  }

  .matchplay-widget-dialog-head {
    padding: 0.6rem 0.85rem;
  }

  .matchplay-widget-dialog-head h3 {
    font-size: 0.96rem;
  }

  .matchplay-widget-dialog-body {
    padding: 0.55rem;
    overflow: hidden;
    display: flex;
  }

  .matchplay-widget-dialog-body #matchplay-widget-root,
  .matchplay-widget-dialog-body #matchplay-widget-root .mpw {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 1024px) {
  .matchplay-widget-modal {
    inset: 0;
    align-items: flex-start;
    padding: 0;
  }

  .matchplay-widget-dialog {
    width: 100vw;
    height: min(var(--mpw-screen-h, 100dvh), 100dvh);
    max-height: min(var(--mpw-screen-h, 100dvh), 100dvh);
    min-height: min(var(--mpw-screen-h, 100dvh), 100dvh);
    border-radius: 0;
    border: 0;
    margin: 0;
  }

  .matchplay-widget-dialog-head {
    padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 0.75rem 0.5rem;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #0b1222;
  }

  .matchplay-widget-dialog-body {
    padding: 0.35rem;
    overflow: hidden;
    display: flex;
    overscroll-behavior: contain;
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .matchplay-widget-dialog-body #matchplay-widget-root,
  .matchplay-widget-dialog-body #matchplay-widget-root .mpw {
    min-height: 0;
    height: 100%;
  }

  .matchplay-widget-modal.is-keyboard-open .matchplay-widget-dialog-body #matchplay-widget-root .mpw .mpw-mobile-sticky-bar,
  .matchplay-widget-modal.is-keyboard-open .matchplay-widget-dialog-body #matchplay-widget-root .mpw .mpw-mobile-sticky-actions,
  .matchplay-widget-modal.is-keyboard-open .matchplay-widget-dialog-body #matchplay-widget-root .mpw .mpw-mobile-nav {
    position: static !important;
    bottom: auto !important;
    padding-top: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}
