/* Public club site. Design tokens; each club's branding overrides the colors
   and fonts at runtime (tenant.js), so components use the variables, never
   raw colors. A site style ("theme": classic, modern, bold, minimal) changes
   shape and rhythm through the --site-* variables below; the app screens
   (admin.css) never read those, so a theme can't leak into the admin.

   Layout responds to the width of <main> (a CSS container), not the window,
   so the editor's phone/tablet preview lays out exactly like a real phone. */
:root {
  --primary: #0b2545;
  --accent: #13a8e0;
  --primary-ink: #fff;   /* text on the club color: tenant.js picks white or near-black */
  --accent-ink: #111827;   /* the default accent #13a8e0 needs dark text (white is 2.7:1) */
  --link: #0a6e9c;       /* link text: the accent, darkened until it reads at 4.5:1 on white */
  --highlight: #f2b705;
  --ink: #1b1f24;
  --muted: #5b6672;
  --surface: #ffffff;
  --surface-alt: #f3f7fa;
  --border: #dde3ea;
  --danger: #b3261e;
  --ok: #1e7a3c;
  --radius: 10px;
  --font-heading: "Bitter", Georgia, serif;
  --font-body: "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;

  /* classic (default) site style */
  --site-radius: 10px;
  --site-pad: 64px;
  --site-h-weight: 700;
  --site-h-case: none;
  --site-h-track: -.01em;
  --site-card-shadow: none;
  --site-card-border: 1px solid var(--border);
  --site-btn-radius: 10px;
  --site-hero-pad: 104px;
  --site-maxw: 1120px;
}
:root[data-site-theme="modern"] {
  --site-radius: 16px; --site-pad: 80px; --site-h-weight: 800; --site-h-track: -.02em;
  --site-card-shadow: 0 6px 24px rgba(15, 23, 42, .08); --site-card-border: 1px solid transparent;
  --site-btn-radius: 999px; --site-hero-pad: 128px; --site-maxw: 1180px;
}
:root[data-site-theme="bold"] {
  --site-radius: 4px; --site-pad: 72px; --site-h-weight: 900; --site-h-case: uppercase; --site-h-track: .01em;
  --site-card-shadow: none; --site-card-border: 2px solid var(--primary);
  --site-btn-radius: 4px; --site-hero-pad: 136px; --site-maxw: 1200px;
}
:root[data-site-theme="minimal"] {
  --site-radius: 2px; --site-pad: 88px; --site-h-weight: 600; --site-h-track: -.01em;
  --site-card-shadow: none; --site-card-border: 1px solid var(--border);
  --site-btn-radius: 2px; --site-hero-pad: 120px; --site-maxw: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--surface); line-height: 1.6; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
main#app, .site-preview { container-type: inline-size; container-name: site; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary); line-height: 1.15; margin: 0 0 .5em; font-weight: var(--site-h-weight); letter-spacing: var(--site-h-track); }
main h1, main h2, .site-preview h1, .site-preview h2 { text-transform: var(--site-h-case); }
h1 { font-size: clamp(2rem, 6cqi, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4cqi, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--site-maxw); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* ---- buttons ---- */
.btn {
  display: inline-block; background: var(--highlight); color: var(--ink); border: 0; cursor: pointer;
  padding: 13px 24px; border-radius: var(--site-btn-radius); font: inherit; font-weight: 700; text-decoration: none;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(.95); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-light { background: #fff; color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--border); font-weight: 500; padding: 8px 14px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { padding: 7px 14px; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---- header / nav ---- */
.site-header { background: var(--primary); color: var(--primary-ink); position: sticky; top: 0; z-index: 20; }
.site-header.hdr-static { position: relative; }
.site-header a, .site-header .nav-parent { color: var(--primary-ink); text-decoration: none; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.brand-logo { height: 44px; width: auto; display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav a, .nav-parent { display: block; padding: 10px 12px; border-radius: 8px; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; }
.main-nav a:hover, .nav-parent:hover, .main-nav a.active { background: color-mix(in srgb, var(--primary-ink) 14%, transparent); }
.has-menu { position: relative; }
.nav-parent::after { content: " \25BE"; font-size: .8em; }
.nav-menu { display: none !important; position: absolute; top: 100%; left: 0; min-width: 200px; background: var(--primary); border-radius: 8px; padding: 6px; flex-direction: column; align-items: stretch; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.has-menu.open > .nav-menu { display: flex !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; content: ""; position: relative; }
.nav-toggle span::before { top: -7px; position: absolute; }
.nav-toggle span::after { top: 7px; position: absolute; }
.site-header .nav-toggle { color: var(--primary-ink); }
/* Light header: white bar, club color for text. */
.site-header.hdr-light { background: var(--surface); color: var(--primary); border-bottom: 1px solid var(--border); }
.site-header.hdr-light a, .site-header.hdr-light .nav-parent, .site-header.hdr-light .nav-toggle { color: var(--primary); }
.site-header.hdr-light .main-nav a:hover, .site-header.hdr-light .nav-parent:hover, .site-header.hdr-light .main-nav a.active { background: var(--surface-alt); }
.site-header.hdr-light .nav-menu, .site-header.hdr-light .main-nav.open { background: var(--surface); }
/* Transparent header: floats over a banner that starts the page. */
.site-header.hdr-transparent.over-hero { position: absolute; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.35), transparent); }
.site-header.hdr-transparent.over-hero.hdr-sticky-on { position: fixed; }
.site-header.hdr-transparent.scrolled { background: var(--primary); }
.over-hero-page .sec-hero:first-child { padding-top: calc(var(--site-hero-pad) + 68px); }
/* Logo in the middle: logo row on top, menu centered under it. */
.site-header.logo-center .nav-wrap { flex-direction: column; justify-content: center; padding: 12px 0 4px; gap: 4px; }
.site-header.logo-center .main-nav ul { justify-content: center; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--primary); padding: 8px 16px 16px; }
  .main-nav.open { display: block; border-top: 1px solid rgba(255,255,255,.25); box-shadow: 0 14px 24px rgba(0,0,0,.3); }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .nav-menu { position: static; box-shadow: none; padding-left: 12px; }
  .site-header.logo-center .nav-wrap { flex-direction: row; justify-content: space-between; padding: 0; }
}

/* ---- sections ---- */
.sec { padding: var(--site-pad) 0; }
.sec.pad-compact { padding: calc(var(--site-pad) * .5) 0; }
.sec.pad-roomy { padding: calc(var(--site-pad) * 1.5) 0; }
@container site (max-width: 600px) { .sec { padding: calc(var(--site-pad) * .65) 0; } }
/* Backgrounds a club can pick per section. */
.sec.bg-plain { background: var(--surface); color: var(--ink); }
.sec.bg-alt { background: var(--surface-alt); color: var(--ink); }
.sec.bg-brand { background: var(--primary); color: var(--primary-ink); }
.sec.bg-accent { background: var(--accent); color: var(--accent-ink); }
.sec.bg-dark { background: #111418; color: #f1f3f5; }
.sec.bg-brand h1, .sec.bg-brand h2, .sec.bg-brand h3, .sec.bg-accent h1, .sec.bg-accent h2, .sec.bg-accent h3,
.sec.bg-dark h1, .sec.bg-dark h2, .sec.bg-dark h3 { color: inherit; }
.sec.bg-brand a:not(.btn), .sec.bg-accent a:not(.btn), .sec.bg-dark a:not(.btn) { color: inherit; }
.sec.bg-brand .card, .sec.bg-accent .card, .sec.bg-dark .card,
.sec.bg-brand .event-card, .sec.bg-dark .event-card, .sec.bg-brand .coach-card, .sec.bg-dark .coach-card { color: var(--ink); }
.sec.bg-brand .card h3, .sec.bg-dark .card h3, .sec.bg-accent .card h3 { color: var(--primary); }

.sec-hero { background: var(--primary); color: var(--primary-ink); padding: var(--site-hero-pad) 0; text-align: center; background-size: cover; background-position: center; }
.sec-hero h1 { color: inherit; font-size: clamp(2.2rem, 7cqi, 3.8rem); }
.sec-hero .lead { font-size: clamp(1.1rem, 2.4cqi, 1.35rem); max-width: 640px; margin: 0 auto 1.6em; opacity: .95; }
.sec-hero.hero-img, .sec-hero.hero-img h1 { color: #fff; }   /* a photo has a dark overlay, so keep white text on it */
.sec-hero.hero-left { text-align: left; }
.sec-hero.hero-left .lead { margin-left: 0; }
.sec-hero.hero-left h1 { max-width: 760px; }
.sec-hero.hero-full { min-height: 86vh; display: flex; align-items: center; }
.sec-hero.hero-full > .container { width: 100%; }
.site-preview .sec-hero.hero-full { min-height: 560px; }
.sec-hero.hero-split { text-align: left; padding: calc(var(--site-hero-pad) * .6) 0; }
.hero-split-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-split-grid .lead { margin-left: 0; }
.hero-split-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--site-radius); display: block; }
.sec-hero.image-right .hero-split-media { order: 2; }
@container site (max-width: 760px) {
  .hero-split-grid { grid-template-columns: 1fr; gap: 28px; }
  .sec-hero.image-right .hero-split-media { order: 0; }
  .sec-hero { padding: calc(var(--site-hero-pad) * .6) 0; }
}

.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1em 1.4em; padding: 0; }
.prose li { margin-bottom: .3em; }
.prose blockquote { margin: 0 0 1em; padding: 12px 18px; border-left: 3px solid var(--highlight); background: var(--surface-alt); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose img { border-radius: var(--site-radius); }
.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.image-text .prose { margin: 0; }
.image-text.image-right .it-image { order: 2; }
.it-image img { width: 100%; display: block; border-radius: var(--site-radius); aspect-ratio: 4 / 3; object-fit: cover; }
@container site (max-width: 760px) { .image-text { grid-template-columns: 1fr; gap: 24px; } .image-text.image-right .it-image { order: 0; } }
.sec-cards { background: var(--surface-alt); }
.sec-cards h2 { text-align: center; margin-bottom: 1em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container site (max-width: 900px) { .cards.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container site (max-width: 600px) { .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: var(--site-card-border); box-shadow: var(--site-card-shadow); border-radius: var(--site-radius); padding: 26px; color: var(--ink); text-decoration: none; display: block; overflow: hidden; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--muted); }
.card-img { display: block; width: calc(100% + 52px); max-width: none; margin: -26px -26px 20px; aspect-ratio: 16 / 10; object-fit: cover; }
a.card-link { transition: transform .15s ease, box-shadow .15s ease; }
a.card-link:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
/* Card list: one per row, photo beside the text. */
.cards.cards-list { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; gap: 16px; }
.cards-list .card { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; align-items: center; }
.cards-list .card > :not(.card-img) { grid-column: 2; }
.cards-list .card-img { grid-row: 1 / span 3; width: 180px; margin: -26px 0 -26px -26px; height: calc(100% + 52px); aspect-ratio: auto; }
@container site (max-width: 600px) { .cards-list .card { display: block; } .cards-list .card-img { width: calc(100% + 52px); height: auto; margin: -26px -26px 18px; aspect-ratio: 16 / 10; } }
.sec-cta { background: var(--primary); color: var(--primary-ink); text-align: center; }
.sec-cta h2 { color: inherit; }
.sec-cta p { max-width: 620px; margin-left: auto; margin-right: auto; }
.contact-wrap { max-width: 640px; margin: 0 auto; }
.is-hidden-section { opacity: .45; outline: 2px dashed var(--muted); outline-offset: -2px; }
.draft-banner { background: var(--highlight); color: var(--ink); text-align: center; padding: 8px 16px; font-weight: 700; }

/* ---- forms ---- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 500; margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="tel"], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; background: var(--surface); color: var(--ink);
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; margin: 12px 0 0; color: var(--muted); }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--ok); }

/* ---- footer ---- */
.site-footer { background: var(--primary); color: var(--primary-ink); padding: 48px 0 24px; margin-top: 0; }
.site-footer a { color: var(--primary-ink); }
/* A quiet button in the club-colored footer (the Español switch) takes the footer's text color: the default navy text vanished on the navy footer. */
.site-footer:not(.ftr-light) .btn-ghost { color: var(--primary-ink); border-color: currentColor; }
.site-footer ul { list-style: none; margin: 8px 0 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-bottom: 28px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; font-size: .9rem; }
.social-icons { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.social-icons a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255,255,255,.12); }
.social-icons a:hover { background: rgba(255,255,255,.24); }
.social-icons svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer.ftr-simple { padding: 28px 0 20px; }
.site-footer.ftr-simple .footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.site-footer.ftr-simple .footer-grid p { display: none; }
.site-footer.ftr-centered { text-align: center; }
.site-footer.ftr-centered .footer-grid { grid-template-columns: 1fr; justify-items: center; }
.site-footer.ftr-centered .social-icons, .site-footer.ftr-centered .footer-bottom { justify-content: center; }
.site-footer.ftr-light { background: var(--surface-alt); color: var(--ink); }
.site-footer.ftr-light a { color: var(--primary); }
.site-footer.ftr-light .footer-bottom { border-top-color: var(--border); }
.site-footer.ftr-light .social-icons a { background: var(--surface); border: 1px solid var(--border); }

[data-tenant="missing"] main, [data-tenant="missing"] .site-header, [data-tenant="missing"] .site-footer { display: none; }
/* First visit, club not known yet (tenant.js markPending): no empty sign-in card, a loading line instead. */
[data-tenant="pending"] body.login-page > main.login-card { display: none; }
[data-tenant="pending"] body.login-page::before { content: "Loading..."; display: block; margin: 30vh auto 0; text-align: center; color: var(--muted, #5b6672); }
#tenant-missing { padding: 96px 16px; text-align: center; }
#tenant-missing .doors { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 720px; margin: 24px auto; text-align: left; }
#tenant-missing .door { border: 1px solid var(--border, #d8dee6); border-radius: 12px; padding: 20px; background: #fff; }
#tenant-missing .door h2 { margin-top: 0; font-size: 1.15rem; }
#tenant-missing .door .btn { display: inline-block; margin: 4px 8px 4px 0; }
#tenant-missing .find-club input { width: 100%; max-width: 100%; box-sizing: border-box; }

/* ---- coaches and team pages ---- */
.coach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.coach-card { background: var(--surface); border: var(--site-card-border); box-shadow: var(--site-card-shadow); border-radius: var(--site-radius); padding: 24px; text-align: center; }
.sponsor-logo { display: block; max-width: 100%; max-height: 90px; width: auto; height: auto; object-fit: contain; margin: 0 auto 12px; }   /* logos are never cropped */
.coach-photo { width: 104px; height: 104px; object-fit: cover; border-radius: 50%; margin-bottom: 10px; }
.coach-title { color: var(--muted); margin-bottom: .6em; }
.schedule { width: 100%; border-collapse: collapse; }
.schedule th, .schedule td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.schedule th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap { overflow-x: auto; }

.event-list { display: grid; gap: 16px; }
.event-card { border: var(--site-card-border); box-shadow: var(--site-card-shadow); border-radius: var(--site-radius); padding: 18px 20px; background: var(--surface); }
.event-card h3 { margin: 0 0 4px; }
.event-when { font-weight: 600; margin: 0 0 6px; }

/* ---- results and standings sections ---- */
.results-list { display: grid; gap: 10px; max-width: 760px; }
.result-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: var(--site-card-border); box-shadow: var(--site-card-shadow); border-radius: var(--site-radius); background: var(--surface); color: var(--ink); }
.result-badge { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--surface-alt); color: var(--muted); }
.result-badge.result-w { background: var(--primary); color: var(--primary-ink); }
.result-badge.result-l { background: var(--surface-alt); color: var(--ink); }
.result-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.result-score { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.standings td:not(:first-child), .standings th:not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }

/* ---- gallery, embeds, documents, news, lightbox ---- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .gallery.cols-3, .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); } }
.gallery-fig { margin: 0; }
.gallery-fig figcaption { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { display: block; max-width: 96vw; max-height: 90vh; margin: auto; border-radius: 6px; }
.lightbox-close { position: absolute; top: -8px; right: -8px; width: 44px; height: 44px; border-radius: 50%; border: 0; font-size: 28px; line-height: 1; cursor: pointer; background: #fff; color: #111; }
.embed-frame { width: 100%; max-width: 900px; margin: 0 auto; }
.embed-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.embed-video { aspect-ratio: 16 / 9; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-list li { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.doc-link { font-weight: 600; }
.news-list { display: grid; gap: 16px; }
.post-card { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.post-card h3 { margin: 0 0 4px; }
.post-card p { margin: 6px 0 0; }
.post-img { width: 140px; height: 100px; object-fit: cover; border-radius: 8px; flex: none; }
.post-hero { max-width: 100%; border-radius: 8px; margin: 12px 0; }
@media (max-width: 560px) { .post-card { flex-direction: column; } .post-img { width: 100%; height: 160px; } }

/* ---- faq, alert, members-only, custom code, calendar ---- */
.faq { display: grid; gap: 8px; max-width: 760px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 4px 14px; }
.faq-item summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.sec-alert { padding: 10px 0; text-align: center; font-weight: 600; background: #e8f1ff; color: #0b2a55; }
.sec-alert.alert-warn { background: #fff3cd; color: #5a4300; }
.sec-alert.alert-urgent { background: #b3261e; color: #fff; }
.sec-alert .alert-link { color: inherit; text-decoration: underline; }
.members-only { max-width: 760px; margin: 0 auto; }
.custom-frame { width: 100%; border: 0; display: block; }
.cal { max-width: 960px; margin: 0 auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
.cal-grid th { font-size: .8rem; color: var(--muted); padding: 4px; }
.cal-grid td { border: 1px solid var(--border); vertical-align: top; height: 84px; padding: 4px; font-size: .8rem; overflow: hidden; }
.cal-day { display: block; font-weight: 600; color: var(--muted); }
.cal-has { background: var(--surface-alt); }
.cal-item { overflow-wrap: anywhere; margin-top: 2px; }
.cal-empty { background: transparent; border-color: transparent !important; }
.cal-agenda { display: none; list-style: none; margin: 12px 0 0; padding: 0; }
.cal-agenda li { padding: 6px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .cal-grid td { height: 44px; font-size: .75rem; }
  .cal-grid .cal-item { display: none; }
  .cal-grid td.cal-has { position: relative; }
  .cal-grid td.cal-has::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: var(--primary); }
  .cal-agenda { display: block; }
}

/* ===== Platform pack: header and hero spacing pass (appended; tokens only) =====
   A little more air in the header and hero, a soft edge under the bar, and a hero that does not
   tower over a phone. Colors still come from the club's tokens, so contrast is whatever the
   club's color checker already enforces. */
.site-header { box-shadow: 0 1px 10px rgba(0, 0, 0, .1); }
.site-header.hdr-light { box-shadow: 0 1px 8px rgba(16, 24, 40, .06); }
.site-header.hdr-transparent.over-hero { box-shadow: none; }
.nav-wrap { min-height: 72px; gap: 20px; }
.main-nav a, .nav-parent { padding: 10px 14px; transition: background .15s ease; }
.main-nav a.active { font-weight: 600; }
.over-hero-page .sec-hero:first-child { padding-top: calc(var(--site-hero-pad) + 72px); }
.sec-hero h1 { line-height: 1.08; margin-bottom: .4em; }
.sec-hero .lead { line-height: 1.5; margin-bottom: 1.9em; }
.sec-hero .btn + .btn { margin-left: 10px; }
@container site (max-width: 600px) {
  .sec-hero { padding: calc(var(--site-hero-pad) * .55) 0; }
  .sec-hero .btn + .btn { margin-left: 0; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .main-nav a, .nav-parent { transition: none; } }

/* A photo behind a section (the section is also .bg-dark, so its text is light) and the donation thermometer. */
.sec.bg-photo { background-size: cover; background-position: center; }
.thermo-wrap { margin-top: 10px; }
.thermo { height: 16px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border); overflow: hidden; }
.thermo-fill { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.thermo-text { margin: 6px 0 0; font-size: .95rem; }
.team-facts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 0; }
.demo-banner { background: #fff3cd; color: #5c4400; border-bottom: 2px solid #e0a800; text-align: center; padding: 8px 12px; font-weight: 700; font-size: .95rem; }
:root[data-theme="dark"] .demo-banner { background: #4a3a00; color: #ffe9a6; border-bottom-color: #b38600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .demo-banner { background: #4a3a00; color: #ffe9a6; border-bottom-color: #b38600; } }

/* ---- design controls (Design screen): button style, corner style, spacing, dark mode ---- */
:root[data-site-buttons="pill"] { --site-btn-radius: 999px; }
:root[data-site-buttons="rounded"] { --site-btn-radius: 10px; }
:root[data-site-buttons="square"] { --site-btn-radius: 2px; }
:root[data-site-buttons="outline"] .btn:not(.btn-ghost):not(.btn-light):not(.btn-danger) { background: transparent; color: inherit; border: 2px solid currentColor; padding: 11px 22px; }
:root[data-site-corners="sharp"] { --site-radius: 2px; }
:root[data-site-corners="soft"] { --site-radius: 10px; }
:root[data-site-corners="round"] { --site-radius: 22px; }
:root[data-site-space="compact"] { --site-pad: 44px; --site-hero-pad: 76px; }
:root[data-site-space="roomy"] { --site-pad: 104px; --site-hero-pad: 160px; }
:root[data-site-mode="dark"] { --surface: #0f1419; --surface-alt: #171e26; --ink: #e8edf2; --muted: #a8b3be; --border: #2b3641; color-scheme: dark; }
:where(:root[data-site-mode="dark"]) :is(h1, h2, h3, h4) { color: var(--ink); }
:root[data-site-mode="dark"] .site-header.hdr-light a, :root[data-site-mode="dark"] .site-header.hdr-light .nav-parent, :root[data-site-mode="dark"] .site-header.hdr-light .nav-toggle,
:root[data-site-mode="dark"] .btn-ghost, :root[data-site-mode="dark"] .site-footer.ftr-light a { color: var(--ink); }
:root[data-site-mode="dark"] .sec .card h3 { color: var(--ink); }
:root[data-site-mode="dark"] .site-footer.ftr-light { background: var(--surface-alt); color: var(--ink); }

/* ---- newer sections: slideshow banner, logos, people, quotes, numbers, prices, countdown, social, sign-up, bracket, announcement ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-slides { position: relative; padding: 0; text-align: center; overflow: hidden; }
.hero-slides .hs-track { position: relative; }
.hs-slide { display: none; position: relative; align-items: center; background-size: cover; background-position: center; background-color: var(--primary); color: #fff; padding: var(--site-hero-pad) 0 calc(var(--site-hero-pad) + 24px); min-height: 420px; }
.hs-tall .hs-slide { min-height: 560px; } .hs-full .hs-slide { min-height: 86vh; } .hs-medium .hs-slide { min-height: 340px; }
.hs-slide.is-active { display: flex; }
.hs-slide .hs-text { position: relative; z-index: 1; width: 100%; }
.hs-slide h1, .hs-slide h2 { color: #fff; font-size: clamp(2.2rem, 7cqi, 3.8rem); }
.hs-slide .lead { font-size: clamp(1.1rem, 2.4cqi, 1.35rem); max-width: 640px; margin: 0 auto 1.6em; }
.hs-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; z-index: 0; }
.hs-slide::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, var(--dim, .45)); }
.hs-ui { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 10px; }
.hs-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1rem; cursor: pointer; line-height: 1; }
.hs-btn:hover { background: rgba(0, 0, 0, .75); }
.hs-btn:focus-visible, .hs-dot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hs-dots { display: flex; gap: 8px; }
.hs-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hs-dot[aria-current="true"] { background: #fff; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 36px; }
.logo-item { display: inline-flex; align-items: center; color: var(--muted); font-weight: 700; text-decoration: none; }
.logo-item img { height: 56px; width: auto; max-width: 200px; object-fit: contain; }
.logos-small .logo-item img { height: 36px; } .logos-large .logo-item img { height: 88px; max-width: 280px; }
.sec-logos h2, .sec-stats h2, .sec-testimonials h2, .sec-pricing h2, .sec-social h2, .sec-countdown h2 { text-align: center; }
.people-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .people-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .people-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container site (max-width: 760px) { .people-grid.cols-3, .people-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container site (max-width: 460px) { .people-grid.cols-2, .people-grid.cols-3, .people-grid.cols-4 { grid-template-columns: 1fr; } }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.quotes-single { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.quote { margin: 0; background: var(--surface); border: var(--site-card-border); box-shadow: var(--site-card-shadow); border-radius: var(--site-radius); padding: 24px; border-left: 5px solid var(--highlight); color: var(--ink); }
.quote blockquote { margin: 0 0 12px; font-size: 1.1rem; } .quote blockquote p { margin: 0; }
.quote figcaption { color: var(--muted); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; text-align: center; }
.stat-value { display: block; font-family: var(--font-heading); font-weight: var(--site-h-weight); font-size: clamp(2.2rem, 7cqi, 3.4rem); color: var(--primary); line-height: 1.1; }
.stat-label { display: block; color: var(--muted); font-weight: 600; }
.bg-brand .stat-value, .bg-accent .stat-value, .bg-dark .stat-value { color: inherit; } .bg-brand .stat-label, .bg-accent .stat-label, .bg-dark .stat-label { color: inherit; opacity: .9; }
:root[data-site-mode="dark"] .stat-value { color: var(--ink); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-items: stretch; }
.price-card { position: relative; overflow: visible;   /* the "Most popular" badge sits over the top edge (.card clips) */ display: flex; flex-direction: column; gap: 8px; text-align: center; }
.price-card.is-featured { border: 3px solid var(--accent); transform: translateY(-6px); }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; white-space: nowrap; }
.price-amount { font-size: 2rem; margin: 0; } .price-amount strong { font-family: var(--font-heading); color: var(--primary); } .price-intro { text-align: center; max-width: 620px; margin: 0 auto 1.5em; }
.price-features { list-style: none; margin: 0 0 8px; padding: 0; text-align: left; } .price-features li { padding: 5px 0 5px 1.4em; position: relative; } .price-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price-card .btn { margin-top: auto; align-self: center; }
.sec-countdown { text-align: center; } .countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 96px)); justify-content: center; gap: 10px; margin: 18px 0; }
.cd-cell { min-width: 0; padding: 14px 6px; border-radius: var(--site-radius); background: var(--surface-alt); color: var(--ink); }
.bg-brand .cd-cell, .bg-accent .cd-cell, .bg-dark .cd-cell { background: rgba(255, 255, 255, .16); color: inherit; }
.cd-num { display: block; font-family: var(--font-heading); font-weight: var(--site-h-weight); font-size: 2.2rem; line-height: 1.1; font-variant-numeric: tabular-nums; } .cd-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.social-link:hover { border-color: var(--accent); } .social-link svg { width: 20px; height: 20px; fill: currentColor; }
.signup-form { display: grid; gap: 4px; } .signup-form .btn { justify-self: start; }
.sec-announcement { padding: 10px 0; font-weight: 600; background: var(--primary); color: var(--primary-ink); z-index: 15; }
.sec-announcement.ann-info { background: #e8f1ff; color: #0b2a55; } .sec-announcement.ann-warn { background: #fff3cd; color: #5a4300; } .sec-announcement.ann-urgent { background: #b3261e; color: #fff; }
.ann-sticky { position: sticky; top: var(--hdr-h, 0px); }
.ann-row { display: flex; align-items: center; justify-content: center; gap: 14px; } .ann-body { text-align: center; }
.ann-link { color: inherit; text-decoration: underline; } .ann-close { background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: 6px; } .ann-close:focus-visible { outline: 2px solid currentColor; }
.bracket { display: flex; gap: 28px; overflow-x: auto; padding-bottom: 8px; } .bracket-round { display: flex; flex-direction: column; justify-content: space-around; gap: 16px; min-width: 200px; }
.bracket-round h4 { margin: 0; text-align: center; font-size: 1rem; } .bracket-game { border: 1px solid var(--border); border-radius: var(--site-radius); background: var(--surface); overflow: hidden; }
.bracket-team { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; } .bracket-team + .bracket-team { border-top: 1px solid var(--border); } .bracket-team.is-winner { font-weight: 700; background: var(--surface-alt); }
.bracket-game small { display: block; padding: 4px 12px; }
@media (prefers-reduced-motion: reduce) { .price-card.is-featured { transform: none; } }

/* Skip link (a11y.js): the first tab stop on every page; hidden until it has focus. */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 10000; background: var(--primary); color: var(--primary-ink); padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; outline: 3px solid var(--highlight); outline-offset: 2px; }
main:focus, [role="main"]:focus { outline: none; }
/* Optional text-size control in the site header (the club switches it on in Admin > Accessibility). */
.a11y-size { background: transparent; color: inherit; border: 1px solid currentColor; border-radius: 6px; padding: 4px 10px; font: inherit; cursor: pointer; margin-left: 8px; }
.a11y-size:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }

/* Club text with no spaces (a very long word, a pasted address) wraps inside its card instead of running out of it
   or being cut off. Tables keep their own sizing (they scroll inside .table-wrap). */
.sec h1, .sec h2, .sec h3, .sec p, .sec li, .sec summary, .sec figcaption, .sec blockquote, .sec dd,
.card, .coach-card, .event-card, .price-card, .post-card, .quote, .hs-title { overflow-wrap: anywhere; }
