/* ============================================================
   Star Lit Blades — site stylesheet
   Phase 1. Single source of truth for the whole site.
   ============================================================ */

/* ═══ Brand palette ══════════════════════════════════════════
   THE ONLY PLACE AN ACCENT COLOUR IS WRITTEN DOWN.

   Everything else refers to --brand-* and never to a literal
   accent colour, so changing the club's brand colour is an edit
   to this one block — for the entire site.

   TO SWAP THE DEFAULT: replace the six values in :root with the
   ones from the alternate block below.

   TO PREVIEW WITHOUT SWAPPING: append ?palette=blue to any URL.

   Teal — inherited from the legacy Weebly stylesheet.
   Blue — sampled from the official logo,
          assets/logo/starlit-blades-full.svg
   ══════════════════════════════════════════════════════════ */

/* ── ACTIVE: teal ── */
:root {
  --brand:          #12d4c5;       /* the accent itself            */
  --brand-deep:     #0a8c82;       /* accent as text on light bg   */
  --brand-mid:      #009b8f;       /* pressed / hover, light theme */
  --brand-soft:     #0d9e92;       /* pressed / hover, dark theme  */
  --brand-contrast: #062b27;       /* text sitting ON a brand fill */
  --brand-rgb:      18, 212, 197;  /* same colour, for rgba glows  */
}

/* ── ALTERNATE: logo blue (preview only) ── */
:root[data-palette="blue"] {
  --brand:          #52AFE6;
  --brand-deep:     #0F6699;
  --brand-mid:      #2288C3;
  --brand-soft:     #3C97CE;
  --brand-contrast: #06202F;
  --brand-rgb:      82, 175, 230;
}

/* ═══ Theme tokens ═══════════════════════════════════════════
   Light is the base; dark overrides it in two places (system
   preference and explicit toggle) so the toggle wins both ways.
   ══════════════════════════════════════════════════════════ */
:root {
  --accent: var(--brand);
  --accent-contrast: var(--brand-contrast);
  --container: 1240px;
  --radius: 6px;
  --nav-h: 76px;
}

/* ── Light ── */
:root, :root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef0f4;
  --surface-3: #e6e8ee;
  --paper: #fbfbfc;
  --text: #0c0e12;
  --text-muted: #56606b;
  --text-dim: #8a929c;
  --line: #e1e3e8;
  --line-soft: #ededf1;
  --accent-ink: var(--brand-deep);
  --accent-press: var(--brand-mid);
  --accent-glow: rgba(var(--brand-rgb), .30);
  --header-bg: rgba(255,255,255,.90);
  --shadow-card: 0 14px 40px rgba(12,14,18,.12);
  --hero-scrim:
    linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.20) 50%, rgba(12,14,18,.80) 100%),
    linear-gradient(90deg, rgba(12,14,18,.55) 0%, rgba(12,14,18,0) 62%);
}

/* ── Dark (system preference) ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0c;
    --surface: #111114;
    --surface-2: #18181d;
    --surface-3: #1f1f25;
    --paper: #131318;
    --text: #f7f7fa;
    --text-muted: #9a9aa6;
    --text-dim: #6e6e78;
    --line: #25252b;
    --line-soft: #1c1c22;
    --accent-ink: var(--brand);
    --accent-press: var(--brand-soft);
    --accent-glow: rgba(var(--brand-rgb), .40);
    --header-bg: rgba(10,10,12,.78);
    --shadow-card: 0 14px 40px rgba(0,0,0,.50);
    --hero-scrim:
      radial-gradient(ellipse at 20% 80%, rgba(var(--brand-rgb), .22), transparent 50%),
      linear-gradient(90deg, rgba(10,10,12,.95) 0%, rgba(10,10,12,.60) 50%, rgba(10,10,12,.30) 100%),
      linear-gradient(180deg, rgba(10,10,12,.40) 0%, rgba(10,10,12,.85) 100%);
  }
}
/* ── Dark (explicit toggle) ── */
:root[data-theme="dark"] {
  --bg: #0a0a0c;
  --surface: #111114;
  --surface-2: #18181d;
  --surface-3: #1f1f25;
  --paper: #131318;
  --text: #f7f7fa;
  --text-muted: #9a9aa6;
  --text-dim: #6e6e78;
  --line: #25252b;
  --line-soft: #1c1c22;
  --accent-ink: var(--brand);
  --accent-press: var(--brand-soft);
  --accent-glow: rgba(var(--brand-rgb), .40);
  --header-bg: rgba(10,10,12,.78);
  --shadow-card: 0 14px 40px rgba(0,0,0,.50);
  --hero-scrim:
    radial-gradient(ellipse at 20% 80%, rgba(var(--brand-rgb), .22), transparent 50%),
    linear-gradient(90deg, rgba(10,10,12,.95) 0%, rgba(10,10,12,.60) 50%, rgba(10,10,12,.30) 100%),
    linear-gradient(180deg, rgba(10,10,12,.40) 0%, rgba(10,10,12,.85) 100%);
}

/* Container widens on large displays so wide monitors aren't mostly empty. */
@media (min-width: 1500px) { :root { --container: 1400px; } }
@media (min-width: 1800px) { :root { --container: 1620px; } }
@media (min-width: 2200px) { :root { --container: 1860px; } }
@media (min-width: 2600px) { :root { --container: 2080px; } }

/* ═══ Base ═════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
  /* Sticky footer: pages awaiting content are shorter than the viewport, and
     without this the footer floats mid-screen with dead space beneath it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* Skip link — keyboard users shouldn't tab the whole nav on every page. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-contrast);
  padding: 12px 20px; font-family: 'Oswald', sans-serif;
  letter-spacing: .12em; text-transform: uppercase; font-size: .82rem;
}
.skip-link:focus { left: 0; }

/* ═══ Type ═════════════════════════════════════════════════ */
h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; font-weight: 700; line-height: 1.05; letter-spacing: .005em; }
h1 { font-size: clamp(2.5rem, 6.5vw, 5.25rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .03em; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.eyebrow {
  font-family: 'Oswald', sans-serif; font-weight: 500;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .28em;
  color: var(--accent-ink);
}
/* Prose blocks cap their own measure so wide containers stay readable. */
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }
.prose p { color: var(--text-muted); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-muted); max-width: 58ch; }

/* ═══ Announcement bar ═════════════════════════════════════
   Time-sensitive notices live here, not in page bodies, so they
   can't rot in place. Phase 2 makes this one editable string.
   ═══════════════════════════════════════════════════════ */
.announce {
  background: var(--accent); color: var(--accent-contrast);
  font-family: 'Oswald', sans-serif; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.announce .container { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.announce p { flex: 1; }
.announce a { text-decoration: underline; text-underline-offset: 3px; }
.announce button {
  background: none; border: 0; cursor: pointer; color: inherit;
  font-size: 1.15rem; line-height: 1; padding: 2px 6px; opacity: .7;
}
.announce button:hover { opacity: 1; }
.announce[hidden] { display: none; }

/* ═══ Header / nav ═════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease, border-color .25s ease;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* The mark is ~1.3:1, not square — set width and let height follow, or it
   letterboxes inside a square box and renders smaller than the space allows.
   Sized up from the old 30px placeholder because the blade-over-star mark
   carries more detail and needs the room to stay legible. */
.brand-mark { width: 44px; height: auto; color: var(--accent); flex-shrink: 0; transition: filter .25s ease; }
.brand:hover .brand-mark { filter: drop-shadow(0 0 14px var(--accent-glow)); }
.brand-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.brand-name {
  font-family: 'Oswald', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: 1rem; color: var(--text);
}
.brand-sub {
  font-family: 'Oswald', sans-serif; font-weight: 500;
  text-transform: uppercase; letter-spacing: .28em;
  font-size: .58rem; color: var(--text-muted);
}

.nav-links { display: none; gap: 28px; }
.nav-links a {
  font-family: 'Oswald', sans-serif; font-weight: 500;
  font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted); transition: color .2s ease;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--accent-ink); }
.nav-links a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }
/* Nav visibility rules live in one block after the button components —
   see "Nav visibility" below. .btn and .icon-btn both set `display` at the
   same specificity, so anything declared here would lose on source order. */

/* Theme toggle — visible but unobtrusive, per spec. */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--line); background: transparent;
  color: var(--text-muted); cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.icon-btn:hover { color: var(--accent-ink); border-color: var(--accent); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ── Mobile navigation ──────────────────────────────────────
   The prototype had none: nav links simply vanished under
   900px with no alternative. A real site needs a drawer.
   ─────────────────────────────────────────────────────── */
.nav-toggle span {
  display: block; width: 17px; height: 2px; background: currentColor;
  position: relative; transition: background .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 2px;
  background: currentColor; transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  /* `top` is set by JS to the header's actual bottom edge: the announcement
     bar sits above the header and is dismissible, so the offset is not a
     constant. The value here is only a no-JS fallback. */
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow-y: auto;
  padding: 24px 0 56px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.mobile-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav .group + .group { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.mobile-nav .group > a,
.mobile-nav .group > span {
  display: block;
  font-family: 'Oswald', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  font-size: 1.05rem; color: var(--text); margin-bottom: 10px;
}
.mobile-nav .sub { display: grid; gap: 8px; padding-left: 2px; }
.mobile-nav .sub a { color: var(--text-muted); font-size: .95rem; }
.mobile-nav .sub a:hover { color: var(--accent-ink); }
.mobile-nav .btn { margin-top: 28px; width: 100%; justify-content: center; }
body.nav-open { overflow: hidden; }

/* ═══ Buttons ══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Oswald', sans-serif; font-weight: 500;
  font-size: .88rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 26px; border: 1px solid var(--accent);
  background: transparent; color: var(--text);
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent); color: var(--accent-contrast);
  transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-glow);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-fill { background: var(--accent); color: var(--accent-contrast); }
.btn-fill:hover { background: var(--text); color: var(--bg); border-color: var(--text); box-shadow: 0 8px 28px rgba(0,0,0,.20); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: var(--text); color: var(--bg); box-shadow: none; }
/* On photographic surfaces text is white in both themes. */
.btn-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: #0c0e12; border-color: #fff; box-shadow: none; }
.btn-sm { padding: 11px 18px; font-size: .78rem; }
.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ═══ Nav visibility ═══════════════════════════════════════
   MUST stay after .btn and .icon-btn. Those set `display` at the
   same specificity (one class), so the cascade is decided purely
   by source order — declaring these up in the header section
   silently loses and the mobile controls leak onto desktop.
   ═══════════════════════════════════════════════════════ */
.nav-links { display: none; }
.nav-cta   { display: none; }
.nav-toggle { display: inline-flex; }
@media (min-width: 1080px) {
  .nav-links  { display: flex; }
  .nav-cta    { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ═══ Hero (home) ══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: clamp(480px, 62vh, 640px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
  background: var(--bg);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; background: #06070a center / cover no-repeat; filter: contrast(1.05); }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: var(--hero-scrim); transition: background .25s ease; }
.hero .container { padding-top: 90px; padding-bottom: 36px; width: 100%; }
.hero h1 { max-width: 16ch; color: #fff; }
.hero h1 .accent { color: var(--accent); display: block; }
.hero-lede { max-width: 52ch; margin-top: 22px; font-size: clamp(1rem, 1.35vw, 1.15rem); color: rgba(255,255,255,.88); }
.hero-ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-eyebrow { margin-bottom: 20px; color: var(--accent); }

/* ═══ Page header (interior pages) ═════════════════════════ */
.page-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0 48px; }
.page-header h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 20ch; }
.page-header .lede { margin-top: 18px; }
.page-header .eyebrow { display: block; margin-bottom: 14px; }
.breadcrumb {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-family: 'Oswald', sans-serif; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb .sep { opacity: .5; }

/* ═══ Sections ═════════════════════════════════════════════ */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head p { color: var(--text-muted); max-width: 52ch; margin-top: 14px; }
.section-link {
  font-family: 'Oswald', sans-serif; font-size: .82rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 5px; border-bottom: 1px solid var(--accent);
}
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ═══ Task router ══════════════════════════════════════════
   Modeled on skylinerssynchro.com: the actions a visitor came
   for, above the narrative. Not a brochure.
   ═══════════════════════════════════════════════════════ */
.tasks { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .tasks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tasks { grid-template-columns: repeat(4, 1fr); } }
.task {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.task:hover { transform: translateY(-3px); background: var(--surface-2); box-shadow: var(--shadow-card); }
.task h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.task p { color: var(--text-muted); font-size: .92rem; }
.task .arrow { color: var(--accent-ink); }

/* ═══ Stats strip ══════════════════════════════════════════ */
.stats { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 0; padding: 30px 0; }
@media (min-width: 700px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.stat { padding: 4px 22px; border-left: 3px solid var(--accent); }
.stat-num { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--text); }
.stat-label { color: var(--text-muted); font-size: .78rem; margin-top: 10px; font-family: 'Oswald', sans-serif; letter-spacing: .15em; text-transform: uppercase; }

/* ═══ Team cards (home preview) ════════════════════════════ */
.card-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card {
  background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--surface-2); box-shadow: var(--shadow-card), 0 0 0 1px var(--accent-glow); }
.team-photo { aspect-ratio: 4 / 3; background: var(--surface-3) center / cover no-repeat; filter: brightness(.94); transition: filter .3s ease; }
.team-card:hover .team-photo { filter: brightness(1); }
.team-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.team-tag { font-family: 'Oswald', sans-serif; font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; color: var(--accent-ink); margin-bottom: 8px; }
.team-name { margin-bottom: 10px; color: var(--text); }
.team-desc { color: var(--text-muted); font-size: .95rem; margin-bottom: 18px; }
.team-link {
  margin-top: auto;
  font-family: 'Oswald', sans-serif; font-size: .82rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 4px; border-bottom: 1px solid var(--accent); width: max-content;
  transition: color .2s ease, gap .2s ease;
}
.team-link:hover { color: var(--accent-ink); gap: 12px; }
@media (min-width: 1800px) { .team-photo { aspect-ratio: 3 / 2; } }

/* ═══ Eligibility grid (teams index) ═══════════════════════
   Modeled on teamselite.com. Answers "which team is my skater
   eligible for?" in three bullets instead of a paragraph.
   ═══════════════════════════════════════════════════════ */
.elig-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .elig-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .elig-grid { grid-template-columns: repeat(3, 1fr); } }
.elig {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 24px 24px 22px; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.elig:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.elig h3 { margin-bottom: 6px; }
.elig dl { margin: 14px 0 18px; display: grid; gap: 9px; }
.elig dt {
  font-family: 'Oswald', sans-serif; font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim);
}
.elig dd { font-size: .93rem; color: var(--text-muted); margin-bottom: 2px; }
.elig .team-link { margin-top: auto; }

/* Team state — supports the active / dormant / retired lifecycle. */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Oswald', sans-serif; font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid currentColor; border-radius: 999px;
}
/* The card is a column flex container, so a badge would otherwise stretch
   to the full card width. */
.elig .badge { align-self: flex-start; margin-bottom: 12px; }
.badge-active  { color: var(--accent-ink); }
.badge-dormant { color: var(--text-dim); }
.badge-retired { color: var(--text-dim); opacity: .85; }
.elig.is-dormant, .elig.is-retired { border-top-color: var(--line); opacity: .82; }
.elig.is-dormant:hover, .elig.is-retired:hover { opacity: 1; }

/* ═══ Split (photo + list) ═════════════════════════════════ */
.split-grid { display: grid; gap: 56px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split-grid { grid-template-columns: 1.05fr 1fr; gap: 88px; } }
@media (min-width: 1500px) { .split-grid { grid-template-columns: minmax(0, 560px) 1fr; } }
@media (min-width: 2200px) { .split-grid { grid-template-columns: minmax(0, 620px) 1fr; } }
.split-photo {
  overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--surface-2) center / cover no-repeat;
  position: relative; isolation: isolate;
}
.split-photo::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 45%);
  z-index: -1; opacity: .85;
}
.num-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.num-list li { display: flex; gap: 18px; align-items: flex-start; }
.num-list .num {
  flex: 0 0 38px; height: 38px;
  border: 1px solid var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1rem;
  box-shadow: 0 0 14px var(--accent-glow) inset;
}
.num-list strong {
  display: block; font-family: 'Oswald', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.05rem; color: var(--text); margin-bottom: 4px;
}
.num-list div > div { color: var(--text-muted); font-size: .95rem; }

/* ═══ Events / schedule ════════════════════════════════════ */
.event-list { display: grid; gap: 14px; }
.event {
  display: grid; grid-template-columns: 92px 1fr auto;
  gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  padding: 22px 28px;
  transition: border-color .25s ease, background .25s ease, transform .2s ease;
}
.event:hover { border-color: var(--accent); background: var(--surface-2); transform: translateX(4px); }
.event-date { font-family: 'Oswald', sans-serif; text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.event-date .month { font-size: .72rem; letter-spacing: .22em; color: var(--accent-ink); text-transform: uppercase; }
.event-date .day { font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--text); }
.event-title { font-family: 'Oswald', sans-serif; font-size: 1.18rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text); }
.event-meta { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }
.event-cta { font-family: 'Oswald', sans-serif; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 640px) {
  .event { grid-template-columns: 76px 1fr; }
  .event-cta { grid-column: 1 / -1; }
}

/* ═══ CTA band ═════════════════════════════════════════════ */
.cta-band {
  background:
    radial-gradient(ellipse at 80% 20%, var(--accent-glow), transparent 50%),
    radial-gradient(ellipse at 15% 75%, var(--accent-glow), transparent 55%),
    var(--bg);
  border-top: 1px solid var(--line);
  padding: 104px 0;
}
.cta-band h2 { max-width: 18ch; color: var(--text); margin-bottom: 16px; }
.cta-band p { max-width: 50ch; color: var(--text-muted); margin-bottom: 32px; }

/* ═══ Placeholder — marks unwritten copy ═══════════════════
   Phase 1 ships structure before the coaches' copy arrives.
   This makes unwritten sections obvious rather than shipping
   lorem ipsum that reads as finished.
   ═══════════════════════════════════════════════════════ */
.placeholder {
  border: 1px dashed var(--line);
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 9px,
    var(--surface-2) 9px, var(--surface-2) 18px);
  padding: 22px 24px; color: var(--text-dim);
  font-size: .9rem;
}
.placeholder strong {
  display: block; font-family: 'Oswald', sans-serif;
  letter-spacing: .16em; text-transform: uppercase;
  font-size: .68rem; color: var(--text-muted); margin-bottom: 6px;
}

/* ═══ Footer ═══════════════════════════════════════════════
   Carries the full sitemap. This is what satisfies the spec's
   "viewers must be able to visit any page from any other page"
   without turning the header into a directory.
   ═══════════════════════════════════════════════════════ */
.footer { background: #06070a; color: rgba(255,255,255,.72); padding: 68px 0 30px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.10); }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
/* Brand + five link columns (Teams, Programs, About, Support, More). Counting
   four here wrapped "More" onto its own row under the brand. */
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr repeat(5, 1fr); } }
.footer h4 { font-size: .74rem; letter-spacing: .22em; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer a { color: rgba(255,255,255,.60); font-size: .9rem; }
.footer a:hover { color: var(--accent); }
.footer .brand-mark { width: 52px; height: auto; color: var(--accent); }
.footer .brand-name { color: #fff; font-size: 1.1rem; }
.footer .brand-sub { color: rgba(255,255,255,.55); }
.footer-brand p { margin-top: 14px; max-width: 34ch; font-size: .88rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-family: 'Oswald', sans-serif;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 12px;
}

/* ═══ Schedule ═════════════════════════════════════════════
   "An event is a date and a button, not a description" — the
   spec's content rule, applied as layout: date and kind in a
   fixed left column, the essentials in the middle, the action
   on the right. Scannable down the date column.
   ═══════════════════════════════════════════════════════ */
.schedule-subscribe {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  padding: 28px; margin-bottom: 48px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.schedule-subscribe-title { font-size: 1.25rem; margin-bottom: 10px; }
.schedule-subscribe p { color: var(--text-muted); font-size: .95rem; max-width: 60ch; }
.schedule-subscribe-note { font-size: .85rem !important; color: var(--text-dim) !important; margin-top: 10px; }
.schedule-subscribe-actions { display: flex; flex-direction: column; gap: 10px; align-self: center; }

.schedule-list { list-style: none; padding: 0; margin: 0; }

.event {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.event:last-child { border-bottom: 1px solid var(--line); }

/* Past events stay listed — the season's record is useful — but recede,
   and lose their "add to calendar" link. */
.event-past { opacity: .55; }

.event-when { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.event-date {
  font-family: 'Oswald', sans-serif; font-weight: 500;
  font-size: 1.05rem; letter-spacing: .04em; color: var(--text);
  white-space: nowrap;
}
.event-kind {
  font-family: 'Oswald', sans-serif; font-size: .64rem;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px; white-space: nowrap;
  background: var(--surface-2); color: var(--text-muted);
}
/* The accent marks competitions — the events most people are looking for. */
.event-kind-competition { background: var(--accent); color: var(--accent-contrast); }

.event-what h3 { font-size: 1.15rem; margin-bottom: 7px; text-transform: none; letter-spacing: 0; }
.event-where { color: var(--text-muted); font-size: .92rem; }
.event-notes { color: var(--text-dim); font-size: .88rem; margin-top: 7px; }
.event-teams { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.event-teams a {
  font-family: 'Oswald', sans-serif; font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  border-bottom: 1px solid transparent;
}
.event-teams a:hover { border-bottom-color: var(--accent); }
/* A team with no page of its own - usually a typo in the editor. Shown,
   not hidden, so whoever typed it can see what they typed. */
.event-team-unknown {
  font-family: 'Oswald', sans-serif; font-size: .7rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim);
}

.event-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.event-add {
  font-size: .85rem; color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.event-add:hover { color: var(--accent-ink); }

.schedule-empty {
  padding: 48px 0; color: var(--text-muted);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.schedule-empty a { color: var(--accent-ink); text-decoration: underline; }

@media (min-width: 760px) {
  .schedule-subscribe { grid-template-columns: 1fr auto; gap: 40px; padding: 32px 36px; }
  .event { grid-template-columns: 190px 1fr auto; gap: 32px; align-items: start; }
  .event-when { flex-direction: column; gap: 9px; align-items: flex-start; }
  .event-actions { justify-content: flex-end; }
}

/* ═══ 404 ══════════════════════════════════════════════════ */
.notfound { padding: 96px 0 112px; }
.notfound .lede { margin-top: 18px; }
.notfound-links { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.notfound-common { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.notfound-common h4 { color: var(--text-muted); margin-bottom: 16px; }
.notfound-common ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
}
.notfound-common a { color: var(--accent-ink); font-size: .95rem; }
.notfound-common a:hover { text-decoration: underline; }

/* ═══ Staff sign-in ════════════════════════════════════════
   The one authenticated surface in Phase 1. Deliberately quiet:
   the spec asks for login to be unobtrusive, so this reads as a
   utility page rather than a second front door.
   ═══════════════════════════════════════════════════════ */
.footer-signin { color: rgba(255,255,255,.35) !important; letter-spacing: .2em; }
.footer-signin:hover { color: var(--accent) !important; }

.auth-section { padding: 72px 0 104px; }
.auth-container { display: flex; justify-content: center; }

.auth-card {
  width: 100%; max-width: 460px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 40px 36px;
}

.auth-title { font-size: 1.75rem; margin-bottom: 12px; }
.auth-lede { color: var(--text-muted); font-size: .92rem; margin-bottom: 28px; }
.auth-lede a { color: var(--accent-ink); text-decoration: underline; }

.auth-step { color: var(--text-muted); font-size: .92rem; margin-bottom: 22px; }
.auth-pending { color: var(--text-dim); font-size: .85rem; margin: 16px 0 22px; }
.auth-groups {
  font-family: 'Oswald', sans-serif; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 4px;
}

.auth-form .field { margin-bottom: 20px; }
.auth-form label {
  display: block; margin-bottom: 8px;
  font-family: 'Oswald', sans-serif; font-weight: 500;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted);
}
.auth-form input {
  width: 100%; padding: 13px 14px;
  font-family: 'Inter', sans-serif; font-size: 1rem;
  color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-form input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }
.auth-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-alt { margin-top: 18px; text-align: center; }

/* A button, not a link, because it changes a panel rather than
   navigating — but it should read as a link. */
.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: .88rem;
  color: var(--text-muted); text-decoration: underline;
  text-underline-offset: 3px;
}
.linkish:hover { color: var(--accent-ink); }
.linkish:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.auth-rules {
  list-style: none; padding: 14px 16px; margin: 0 0 20px;
  background: var(--surface-2); border-radius: var(--radius);
  font-size: .82rem; color: var(--text-muted); display: grid; gap: 6px;
}
.auth-rules li::before { content: "·"; margin-right: 8px; color: var(--accent-ink); }

.auth-alert {
  padding: 13px 15px; margin-bottom: 22px;
  border-radius: var(--radius); font-size: .88rem;
  border-left: 3px solid var(--text-dim); background: var(--surface-2);
  color: var(--text);
}
/* Colour is reinforced by the border AND the text, never colour alone —
   these are the messages a user most needs to be able to read. */
.auth-alert-error { border-left-color: #d64545; background: rgba(214, 69, 69, .09); }
.auth-alert-warn  { border-left-color: #c98a1e; background: rgba(201, 138, 30, .10); }
.auth-alert-info  { border-left-color: var(--accent); background: rgba(var(--brand-rgb), .10); }

@media (max-width: 520px) {
  .auth-card { padding: 30px 22px; }
  .auth-section { padding: 48px 0 72px; }
}

/* ═══ Motion ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
