/* Beyond the Shift /beta — design system + homepage. Calendar page adds calendar/calendar.css. */
:root {
  /* LIVE-SITE THEME (James, 12 Nov 2026: beta must look like beyondtheshift.co.uk).
     Values copied from the live styles.css. Light sections (white / mist) with navy feature
     sections; any element inside a dark scope (see "Dark scope" below) gets the dark token set,
     so components only ever use tokens and work on both. Red only for deadlines/warnings. */
  color-scheme: light;
  --navy-950: #03132e;        /* live: hero, navy sections, footer */
  --navy-900: #061a3a;
  --navy-800: #0b2a59;
  --navy: var(--navy-800);    /* legacy names */
  --navy-deep: var(--navy-900);
  --blue-600: #2463eb;        /* live primary button + kicker on light */
  --blue-500: #3977f6;        /* live nav underline */
  --ice: #eef4fb;
  --mist: #f6f8fc;
  --red: #d92d3f;
  --accent: #2463eb;
  --accent-hover: #174dc4;
  --blue-300: #2463eb;        /* "accent text" (kickers, links, numbers): blue-600 on light, #8fb5ff on dark */
  --blue: #2463eb;            /* links + focus */
  --serif-accent: #2463eb;    /* Georgia italic line (live: #7ea8ff on navy) */
  --bg: #fff;                 /* page */
  --bg-2: var(--mist);        /* alternate section (live .section-tint) */
  --surface: #fff;            /* cards, panels */
  --surface-2: var(--ice);    /* raised / hover / chips */
  --grey: var(--surface-2);   /* legacy names */
  --grey-2: var(--mist);
  --line: #d8e1ee;
  --line-strong: #bfd0ee;
  --ink: #0a1830;             /* body text */
  --ink-2: #26374f;           /* long-form paragraphs */
  --heading: #0a1830;
  --muted: #52627a;
  --white: #fff;
  --overlay: rgba(255, 255, 255, .94);     /* frosted sticky bars */
  --shadow: 0 16px 44px rgba(5, 24, 55, .12);
  --shadow-sm: 0 4px 14px rgba(5, 24, 55, .05);
  /* status text + soft fills (each pair AA on its own scope) */
  --ok-tx: #0b7a55;   --ok-bg: #e3f7ef;
  --warn-tx: #8a5a00; --warn-bg: #fff3d6;
  --info-tx: #1f55c9; --info-bg: #e7efff;
  --violet-tx: #6b3fc4; --violet-bg: #f1eaff;
  --orange-tx: #a24a00;
  --radius: 12px;             /* cards/panels: softer than live's 6px (James 12 Nov: venue guide "sharp around the edges") */
  --radius-sm: 7px;           /* buttons, controls */
  /* Montserrat (Google Fonts, loaded on every beta page) for body + all small text: James found the
     system/Arial Narrow mix "too sharp, 2012 Mac OS" at small sizes. Condensed display = big type only. */
  --font: "Montserrat", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Arial Narrow", "Roboto Condensed", Impact, ui-sans-serif, sans-serif;
  --gutter: 20px;             /* live .container: 100% - 40px */
  --max: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);   /* the BTS ease: fast out, long settle */
  --ease-in: cubic-bezier(.4, 0, 1, 1);  /* exits only */
  /* Motion tokens (POLISH-AUDIT #2): interface motion stays under 300 ms, exits faster than entrances.
     Scroll reveals and decorative motion can be slower and keep their own values. */
  --dur-fast: 120ms;   /* presses, toggles, things you use a lot */
  --dur: 200ms;        /* hovers, colour/border changes */
  --dur-slow: 400ms;   /* panels, sheets, bigger moves */
  --nav-h: 68px;

  /* event colours: saturated so the calendar reads at a glance on dark.
     --tx = text colour on that fill (all pairs WCAG AA, most AAA). */
  --t-bts: #2f6df6;   --t-bts-tx: #fff;
  --t-no: #22c993;    --t-no-tx: #04241a;
  --t-champ: #ffc531; --t-champ-tx: #2a1d00;
  --t-gold: #ffc531;
  --t-train: #ff8a3d; --t-train-tx: #2b1200;
  --t-intl: #b98cff;  --t-intl-tx: #1d0b3d;
  --t-opt: #ff7ac6;
  --t-dl: #e5364a;    --t-dl-fill: #fff0f2; --t-dl-tx: #b4192e;

  /* calendar grid on light (homepage teaser) */
  --cell: #fff;
  --cell-we: #f2f5fa;
  --cell-num: #26374f;
  --cell-num-we: #52627a;
  --cell-num-past: #8090a6;
}

/* ---------- Dark scope ----------
   DARK IS THE DEFAULT AGAIN (James, 12 Nov 2026 late: "I prefer the dark theme of what we had before").
   :root is in this list, so every page is dark; the light set above is kept only as a reference /
   fallback for a future light section (give it class="on-light" and copy the :root light values).
   Same token names in both, so components never hard-code colours. */
:root, .theme-dark, .on-dark, .bg-navy, .hero, .g-hero, .nav, .footer, .coach, .takeaways, .bk-camp, .bk-loader-stage {
  color-scheme: dark;
  --blue-300: #8fb5ff;
  --blue: #8fb5ff;
  --serif-accent: #7ea8ff;
  --accent: #2463eb;
  --accent-hover: #174dc4;
  --bg: #050e22;              /* page (the 11 Nov dark beta) */
  --bg-2: #081631;            /* alternate section */
  --surface: #0c1d3d;         /* cards, panels */
  --surface-2: #122650;       /* raised / hover / chips */
  --grey: var(--surface-2);
  --grey-2: var(--surface);
  --line: rgba(143, 181, 255, .18);
  --line-strong: rgba(143, 181, 255, .34);
  --ink: #e6edf7;
  --ink-2: #c9d5e6;
  --heading: #fff;
  --muted: #a3b3cb;
  --overlay: rgba(3, 19, 46, .92);
  --shadow: 0 18px 40px rgba(0, 0, 0, .4);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .3);
  --ok-tx: #6ee7b7;   --ok-bg: rgba(34, 201, 147, .16);
  --warn-tx: #ffd36b; --warn-bg: rgba(255, 197, 49, .14);
  --info-tx: #a9cbff; --info-bg: rgba(90, 160, 255, .18);
  --violet-tx: #d4b8ff; --violet-bg: rgba(185, 140, 255, .18);
  --orange-tx: #ffc98a;
  --t-dl: #ff4d5e;    --t-dl-fill: #2a0a10; --t-dl-tx: #ff8a95;
  --cell: #0c1d3d;
  --cell-we: #091631;
  --cell-num: #c3d0e3;
  --cell-num-we: #7d90ad;
  --cell-num-past: #7488a6;   /* 4.6:1 on --cell (AA); weight 400 keeps it apart from weekends */
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html:has(body.cal-page) { scrollbar-gutter: auto; } /* the calendar page never scrolls; don't reserve an empty strip */
/* #4 anchors land below the fixed nav */
:where([id]) { scroll-margin-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
/* #1 our own pressed states instead of the grey tap flash; no double-tap zoom delay */
a, button, summary, label, [role="button"], input, select { -webkit-tap-highlight-color: transparent; }
a, button, summary, [role="button"] { touch-action: manipulation; }
/* #11 focus ring: outline follows each control's border-radius, 2 px off the edge */
:focus-visible { outline: 3px solid #ffca3a; outline-offset: 3px; } /* live: yellow focus ring */
:focus:not(:focus-visible) { outline: none; }
/* #3 electric-blue selection + caret */
::selection { background: var(--accent); color: #fff; }
input, textarea, [contenteditable] { caret-color: var(--blue); }
/* #5 typographic care */
h1, h2, h3, h4, .quote { text-wrap: balance; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }
time, .tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* live headings: condensed, heavy, uppercase, tight */
h1, h2, h3, h4 { color: var(--heading); font-family: var(--font-display); font-weight: 800; line-height: .98; letter-spacing: -.025em; text-transform: uppercase; margin: 0; }
/* small headings: Montserrat, normal case (condensed caps only read well big) */
h3, h4 { font-family: var(--font); font-weight: 750; line-height: 1.2; letter-spacing: -.01em; text-transform: none; }
/* live .section-kicker */
.eyebrow { font-size: .77rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-300); margin: 0 0 16px; }
.h2 { font-size: clamp(2.45rem, 5vw, 4.75rem); font-weight: 800; }
.lede { font-size: 1.07rem; color: var(--muted); max-width: 610px; }
/* live .hero-class: Georgia italic accent line ("ILCA 4 & 6") */
.serif-accent { font-family: Georgia, serif; font-style: italic; font-weight: 400; color: var(--serif-accent); line-height: 1; text-transform: none; letter-spacing: 0; }

/* live .button: condensed uppercase, 5px corners */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 22px; border: 1px solid transparent; border-radius: var(--radius-sm); font-family: var(--font); font-size: .8rem; font-weight: 700; letter-spacing: .06em; line-height: 1; text-transform: uppercase; text-decoration: none; transition: transform var(--dur) var(--ease), background-color var(--dur), border-color var(--dur), color var(--dur), box-shadow var(--dur); cursor: pointer; user-select: none; }
.btn:active { transform: scale(.97); transition-duration: var(--dur-fast); }
.btn-accent { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.btn-ghost { background: transparent; border-color: color-mix(in srgb, currentColor 55%, transparent); }
.btn-white { background: #fff; border-color: #fff; color: var(--navy-950); }
.arrow::after { content: "→"; display: inline-block; transition: transform var(--dur) var(--ease); }
/* hover only where there is a real pointer, so phones never keep a stuck hover */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-accent:hover { background: #174dc4; border-color: #174dc4; box-shadow: 0 10px 24px rgba(36, 99, 235, .28); }
  .btn-ghost:hover { border-color: currentColor; }
  a:hover .arrow::after, .btn:hover.arrow::after { transform: translateX(4px); }
}
/* "bear away" on press: the arrow drops off the wind a few degrees */
.btn.arrow:active::after, a:active .arrow::after { transform: translate(3px, 1px) rotate(14deg); transition-duration: var(--dur-fast); }

/* ---------- Nav ---------- */
/* live .site-header: navy fade over the hero, solid navy once scrolled */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background var(--dur-slow), box-shadow var(--dur-slow), color var(--dur); color: #fff; background: linear-gradient(to bottom, rgba(3, 19, 46, .82), rgba(3, 19, 46, .08)); }
.nav.is-solid { background: rgba(3, 19, 46, .97); color: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, .18); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
/* live .brand: tracked caps, light-blue accent */
.logo { font-weight: 800; letter-spacing: .11em; text-transform: uppercase; font-size: 1.05rem; line-height: 1; text-decoration: none; margin-right: auto; white-space: nowrap; padding-block: 8px; }
.logo b { color: var(--blue-300); font-weight: 400; }
/* live .primary-nav links: small caps, blue underline that wipes in */
.nav-links { display: flex; align-items: center; gap: clamp(15px, 2vw, 28px); list-style: none; margin: 0; padding: 0; font-size: .73rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.nav-links a:not(.btn) { position: relative; text-decoration: none; display: inline-block; padding-block: 10px; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: var(--blue-500); transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; } }
.nav-cta { min-height: 42px; padding: 11px 17px; font-size: .78rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; margin-right: -10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform var(--dur) var(--ease); content: ""; }
.nav-toggle span::before { position: absolute; top: -7px; } .nav-toggle span::after { position: absolute; top: 7px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0; background: var(--bg-2); color: #fff; padding: 8px var(--gutter) 20px; box-shadow: 0 16px 30px rgba(0, 0, 0, .45); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease-in), transform var(--dur-fast) var(--ease-in); }
  .nav-links a { display: block; padding: 14px 0; font-size: .95rem; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
  .nav-links { align-items: stretch; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a[aria-current] { color: var(--blue-300); }
  .nav.is-open .nav-links { transform: none; opacity: 1; pointer-events: auto; transition: opacity var(--dur) var(--ease), transform var(--dur-slow) var(--ease); }
  .nav.is-open { background: var(--bg-2); color: #fff; }
  .nav-cta { display: none; }
  .nav-links .mobile-only { display: block; }
}
.nav-links .mobile-only { display: none; }

/* ---------- Hero (ported from the live styles.css hero + "scroll flow" + motion system) ---------- */
.hero { position: relative; display: grid; align-items: stretch; min-height: min(920px, 100svh); overflow: hidden; color: #fff; background: var(--navy-950); }
.hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 60% 50%; }
.hero-overlay { background: linear-gradient(90deg, rgba(3, 19, 46, .93) 0%, rgba(3, 19, 46, .68) 36%, rgba(3, 19, 46, .14) 72%, rgba(3, 19, 46, .26) 100%), linear-gradient(0deg, rgba(3, 19, 46, .55), transparent 45%); }
.hero-content { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-h) + 36px); padding-bottom: clamp(28px, 5vh, 52px); }
.hero h1 { max-width: 760px; margin-bottom: 8px; font-size: clamp(3.4rem, 7vw, 6.4rem); line-height: .79; letter-spacing: -.045em; }
.hero h1::after { content: ""; display: block; width: min(240px, 46%); height: 3px; margin-top: 18px; background: var(--blue-500); transform-origin: left center; }
.hero h1 .hero-kicker { display: block; margin: 0 0 16px; font-size: clamp(.78rem, 1.4vw, .9rem); font-weight: 800; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; color: #dbe6f6; }
.title-line { display: block; overflow: hidden; padding: .1em .06em .04em 0; margin: -.1em 0 -.04em; }
.title-line > span { display: block; }
.hero-class { margin: 14px 0 18px; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.hero-text { max-width: 540px; margin: 0 0 26px; font-size: clamp(1rem, 1.8vw, 1.18rem); line-height: 1.55; color: #dbe6f6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-actions .btn span[aria-hidden] { display: inline-block; transition: transform .3s var(--ease); }
@media (hover: hover) { .hero-actions .btn:hover span[aria-hidden] { transform: translate(2px, -2px); } }
.hero-badge {
  width: fit-content; display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 8px 12px 8px 8px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 4px; color: #fff; background: rgba(3, 19, 46, .64); backdrop-filter: blur(8px);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: border-color .2s, transform .3s var(--ease);
}
.hero-badge span { padding: 5px 8px; border-radius: 3px; color: var(--navy-950); background: #ffdf27; font-size: .64rem; letter-spacing: .1em; }
.hero-badge b { color: #ffdf27; font-size: 1rem; transition: transform .3s var(--ease); }
@media (hover: hover) { .hero-badge:hover { border-color: #ffdf27; transform: translateY(-1px); } .hero-badge:hover b { transform: translateX(3px); } }
/* next camps docked at the foot of the hero (live .next-camps) */
.next-camps { width: 100%; max-width: 820px; min-width: 0; margin: clamp(30px, 6vh, 64px) 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.next-camps[hidden] { display: none; }
.next-camps-label { margin: 0 0 10px; color: var(--blue-300); font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.next-camps-label::before { display: inline-block; width: 22px; height: 2px; margin-right: 10px; background: currentColor; content: ""; vertical-align: middle; }
.next-camps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.next-camp {
  position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 11px 14px 11px 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); border-left: 3px solid var(--blue-500); border-radius: 3px;
  color: #fff; background: rgba(3, 19, 46, .62); backdrop-filter: blur(8px); text-decoration: none;
  transition: border-color .25s, background .25s, transform .35s var(--ease);
}
.next-camp::after { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(143, 181, 255, .14) 50%, transparent 70%); content: ""; transform: translateX(-100%); transition: transform .7s var(--ease); pointer-events: none; }
@media (hover: hover) { .next-camp:hover { border-color: rgba(143, 181, 255, .55); background: rgba(11, 42, 89, .78); transform: translateY(-3px); } .next-camp:hover::after { transform: translateX(100%); } }
.next-camp:first-child { border-left-color: #ffdf27; }
.next-camp-date { display: grid; padding-right: 10px; border-right: 1px solid rgba(255, 255, 255, .18); color: var(--blue-300); font-size: .6rem; font-weight: 800; letter-spacing: .1em; line-height: 1.1; text-align: center; text-transform: uppercase; }
.next-camp-date b { margin-top: 3px; color: #fff; font-size: .92rem; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.next-camp-body { min-width: 0; }
.next-camp-body strong { display: block; overflow: hidden; font-size: .78rem; letter-spacing: .02em; line-height: 1.25; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.next-camp-body small { display: block; margin-top: 3px; color: #c5d4ea; font-size: .7rem; line-height: 1.3; }
@media (max-width: 860px) {
  .hero { min-height: 100svh; }
  .next-camps-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .next-camps-row::-webkit-scrollbar { display: none; }
  .next-camp { scroll-snap-align: start; }
}
@media (max-width: 620px) {
  .hero-image { object-position: 67% 50%; }
  .hero-overlay { background: linear-gradient(90deg, rgba(3, 19, 46, .94) 0%, rgba(3, 19, 46, .7) 60%, rgba(3, 19, 46, .3)); }
  .hero-content { justify-content: flex-end; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(2.9rem, 13.5vw, 4.4rem); }
  .hero-class { margin: 10px 0 12px; font-size: 1.6rem; }
  .hero-text { margin-bottom: 20px; font-size: .98rem; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 0; padding-inline: 12px; }
  .hero-badge { margin-bottom: 15px; font-size: .64rem; letter-spacing: .055em; }
  .next-camps { margin-top: 24px; padding-top: 14px; }
}
/* live motion: image settles, title lines slide up from a mask, copy rises in sequence, start-line rule draws.
   Skipped when the page opens on an anchor (html.no-intro), so jumping from another page never flashes the hero. */
.js:not(.no-intro) .hero-image { animation: hero-settle 2.2s var(--ease) backwards; }
.js:not(.no-intro) .hero-in { animation: rise-in .9s var(--ease) backwards; animation-delay: calc(120ms + var(--d, 0) * 70ms); }
.js:not(.no-intro) .title-line > span { animation: line-up 1s var(--ease) backwards; animation-delay: calc(120ms + var(--d, 0) * 70ms); }
.js:not(.no-intro) .hero h1::after { animation: draw-line 1.1s var(--ease) .55s backwards; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes draw-line { from { transform: scaleX(0); } }
@keyframes hero-settle { from { transform: scale(1.07); filter: brightness(.7); } }

/* ---------- Coaches (live .coach-card: photo 4:3 with name over a navy fade, bio + highlights below) ---------- */
.coach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.coach-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.coach-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-950); }
.coach-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 30%);
  transform: scale(calc(var(--fit, 1) * var(--zoom, 1))); transform-origin: var(--focus, 50% 30%); transition: transform 1.4s var(--ease);
}
.coach-card:not(.in) .coach-photo img { --zoom: 1.12; }
/* Hover glitch fix (James, 15 Nov: white line under Kai's photo on hover). While the card lifts and the photo zooms, the
   photo's GPU layer can round 1px past the fade, showing Kai's white studio background. Clip the box, keep the photo on
   its own stable layer, and run the fade 2px past every edge. */
.coach-photo { isolation: isolate; clip-path: inset(0); }
.coach-photo img { will-change: transform; backface-visibility: hidden; }
.coach-photo::after { z-index: 0; }
.coach-photo::after { position: absolute; inset: -2px; pointer-events: none; content: ""; background: linear-gradient(0deg, rgba(3, 19, 46, .92) 0%, rgba(3, 19, 46, .55) 26%, rgba(3, 19, 46, 0) 52%); }
.coach-caption { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 0 clamp(20px, 2.6vw, 30px) clamp(18px, 2.2vw, 26px); color: #fff; }
.coach-role { margin: 0 0 8px; color: #8fb5ff; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.coach-caption h3 { margin: 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.025em; font-size: clamp(2rem, 3.4vw, 3rem); line-height: .95; color: #fff; }
.coach-caption h3::after { display: block; width: 72px; height: 3px; margin-top: 14px; background: var(--blue-500); content: ""; transform-origin: left center; transition: transform .6s var(--ease); }
.coach-card-body { flex: 1; padding: clamp(22px, 2.6vw, 30px); }
.coach-card-body > p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.coach-card-body h4 { margin: 22px 0 4px; color: var(--blue-300); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.coach-card-body ul { margin: 0; padding: 0; list-style: none; }
.coach-card-body li { position: relative; padding: 9px 0 9px 20px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .86rem; font-weight: 600; line-height: 1.4; }
.coach-card-body li:last-child { padding-bottom: 0; border-bottom: 0; }
.coach-card-body li::before { position: absolute; top: 18px; left: 0; width: 9px; height: 2px; background: var(--blue-500); content: ""; }
@media (hover: hover) and (pointer: fine) {
  .coach-card { transition: opacity .9s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
  .coach-card.in:hover { transform: translateY(-6px); }
  .coach-card.in:hover .coach-photo img { --zoom: 1.05; transition-duration: .9s; }
  .coach-card:hover .coach-caption h3::after { transform: scaleX(1.6); }
}
@media (max-width: 760px) { .coach-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
/* live .section / .section-tint / .section-navy */
.section { padding: clamp(64px, 7vw, 96px) 0; background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 42px); }
.section-head .lede { margin: 14px 0 0; }
.section-head .h2 { margin: 0; }
/* live .text-link: caps, underline in light blue */
.link-more { font-size: .84rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--blue-300); text-underline-offset: 5px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; }
.bg-grey { background: var(--bg-2); }
.bg-navy { background: var(--navy-950); color: #fff; }
.bg-navy .lede { color: var(--ink-2); }

/* Next trainings */
.trainings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.training { display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding var(--dur-slow) var(--ease), background-color var(--dur); }
@media (hover: hover) { a.training:hover { padding-left: 12px; } }
a.training:active { background: rgba(255, 255, 255, .05); transition-duration: var(--dur-fast); }
.training-date { font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; line-height: 1; }
.training-name { font-weight: 700; font-size: 1.05rem; }
.training-venue { color: var(--muted); font-size: .9rem; }
.training .arrow { font-weight: 700; }
@media (max-width: 640px) { .training { grid-template-columns: 1fr auto; gap: 4px 16px; } .training-date { grid-column: 1 / -1; } }

/* Cards (advice + venues) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease), border-color var(--dur); }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
  }
.card { box-shadow: var(--shadow-sm); }
.card:active { transform: scale(.985); transition-duration: var(--dur-fast); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-num { font-size: .75rem; font-weight: 800; letter-spacing: .08em; color: var(--blue-300); }
.card h3 { font-size: 1.4rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }
.card .arrow { margin-top: auto; padding-top: 10px; font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-300); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.tag { align-self: flex-start; font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; background: var(--info-bg); color: var(--info-tx); padding: 3px 8px; border-radius: 3px; }
@media (max-width: 640px) {
  .cards.scroll-x { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; scrollbar-width: none; }
  .cards.scroll-x::-webkit-scrollbar { display: none; }
  .cards.scroll-x .card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Calendar teaser */
.teaser { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); }
.teaser-scroll { overflow-x: auto; overscroll-behavior-x: contain; --day-w: 34px; scrollbar-width: thin; }
.teaser-head { display: flex; }
.teaser-month { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-300); padding: 10px 8px 4px; border-left: 1px solid var(--line); white-space: nowrap; flex: none; width: calc(var(--span) * var(--day-w)); }
.teaser-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); }

/* Philosophy */
.quote { font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 6.2rem); font-weight: 800; line-height: .92; letter-spacing: -.035em; text-transform: uppercase; color: var(--heading); max-width: 15ch; }
.quote .w { display: inline-block; opacity: .15; }
.quote em { font-style: normal; color: var(--blue-300); }

/* CTA + footer */
.cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }
.footer { background: var(--navy-950); border-top: 1px solid var(--line); color: #c9d5e6; padding: 48px 0 32px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { text-decoration: none; display: inline-block; padding-block: 12px; transition: color var(--dur); } .footer a:hover { color: #fff; }
.footer ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
/* Nav: hides on the way down, back on the first scroll up (homepage; James 15 Nov) */
.nav { transition: transform var(--dur-slow) var(--ease), background var(--dur-slow), box-shadow var(--dur-slow), color var(--dur); }
body.nav-hid .nav:not(.is-open) { transform: translateY(-100%); box-shadow: none; }
/* Phones/narrow windows: on a scroll up the menu titles ride back in as a swipeable row under the bar (James, 15 Nov) */
@media (max-width: 820px) {
  body.nav-up .nav:not(.is-open) .nav-links {
    inset: 68px 0 auto; flex-direction: row; align-items: center; gap: 2px; height: 46px; padding: 0 calc(var(--gutter) - 10px);
    overflow-x: auto; scrollbar-width: none; opacity: 1; transform: none; pointer-events: auto; box-shadow: 0 10px 20px rgba(0, 0, 0, .35);
    border-top: 1px solid var(--line); transition: opacity var(--dur) var(--ease);
  }
  body.nav-up .nav:not(.is-open) .nav-links::-webkit-scrollbar { display: none; }
  body.nav-up .nav:not(.is-open) .nav-links a { border: 0; padding: 12px 10px; font-size: .74rem; white-space: nowrap; }
}

/* ---------- Training dates (live #dates section, dark) ---------- */
.schedule { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr); align-items: start; gap: 32px; }
.event-list { display: grid; gap: 10px; }
.event-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color var(--dur), transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow); }
@media (hover: hover) { .event-card:hover { border-color: var(--line-strong); transform: translateX(3px); } .event-card:hover .event-arrow { transform: translateX(4px); } }
.event-card.is-next:not(.is-selected) { box-shadow: inset 4px 0 0 var(--blue-600), var(--shadow-sm); }
.event-card.is-selected { border-color: var(--blue-600); }
.event-trigger { width: 100%; min-height: 84px; display: grid; grid-template-columns: 74px minmax(0, 1fr) auto 26px; align-items: center; gap: 18px; padding: 10px 18px 10px 10px; border: 0; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.event-trigger:active { background: rgba(255, 255, 255, .04); }
.event-card.is-selected .event-trigger { color: #fff; background: var(--blue-600); }
.event-date { display: grid; align-content: center; height: 64px; border-right: 1px solid var(--line); font-weight: 850; line-height: 1.05; text-align: center; font-variant-numeric: tabular-nums; color: var(--heading); }
.event-date small { display: block; margin-bottom: 4px; color: var(--blue-300); font-size: .63rem; letter-spacing: .1em; }
.event-main { min-width: 0; }
.event-main strong { display: block; font-size: .96rem; letter-spacing: .02em; text-transform: uppercase; color: var(--heading); }
.event-main small { display: block; margin-top: 4px; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.event-places { display: block; margin-top: 6px; font-size: .74rem; font-weight: 800; color: var(--ink); }
.event-places.is-low, .camp-venue .is-low { color: #ff9b9b; }
.next-label { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: 8px; padding: 4px 9px 4px 8px; border-radius: 3px; color: #fff; background: var(--navy-950); font-size: .62rem; font-weight: 900; letter-spacing: .09em; line-height: 1.3; text-transform: uppercase; }
.next-label::before { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-300); content: ""; }
.is-selected .event-date { border-color: rgba(255, 255, 255, .28); }
.is-selected .event-date small, .is-selected .event-main small, .is-selected .event-places { color: #e2ebff; }
.is-selected .event-places.is-low { color: #ffd1d1; }
.event-price { font-weight: 850; color: var(--heading); }
.event-arrow { font-size: 1.2rem; transition: transform var(--dur-slow) var(--ease); }
.event-card.is-pinged { animation: card-ping 1.4s var(--ease) .35s backwards; }
@keyframes card-ping { 0% { box-shadow: 0 0 0 0 rgba(143, 181, 255, .7); } 100% { box-shadow: 0 0 0 14px rgba(143, 181, 255, 0); } }
.mobile-event-detail { display: none; overflow: hidden; }
.winter-divider { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 4px; padding: 13px 16px; border-left: 4px solid var(--blue-600); background: var(--surface-2); text-transform: uppercase; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.winter-divider span { font-size: .78rem; font-weight: 850; letter-spacing: .08em; color: var(--heading); }
.winter-divider strong { color: var(--blue-300); font-size: .72rem; letter-spacing: .08em; }
.completed-strip { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.completed-strip-label { margin: 0 0 8px; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.completed-strip-label span { color: var(--blue-300); }
.completed-strip ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.completed-strip li { display: inline-flex; align-items: baseline; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); background: var(--bg-2); font-size: .7rem; line-height: 1.3; }
.done-date { font-weight: 850; letter-spacing: .04em; }
.done-name { font-weight: 700; text-decoration: line-through; text-decoration-color: rgba(163, 179, 203, .5); }
.camp-panel { position: sticky; top: calc(var(--nav-h) + 22px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
body.nav-hid .camp-panel { top: 22px; }
.camp-photo { position: relative; margin: 0; }
.camp-photo img { display: block; width: 100%; height: 200px; object-fit: cover; background: var(--surface-2); }
.camp-photo .credit { position: absolute; right: 8px; bottom: 6px; padding: 2px 6px; border-radius: 3px; background: rgba(3, 19, 46, .7); color: #dbe6f6; font-size: .62rem; letter-spacing: .02em; }
.camp-panel-body { padding: 24px; }
.camp-topline { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; color: var(--blue-300); font-size: .78rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.camp-panel h3 { margin: 0 0 6px; font-size: 2rem; }
.camp-panel h4, .mobile-event-detail h4 { margin: 18px 0 7px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); }
.camp-panel p, .camp-panel li, .mobile-event-detail p, .mobile-event-detail li { font-size: .88rem; line-height: 1.55; color: var(--ink-2); }
.camp-venue { color: var(--blue-300) !important; font-weight: 800; text-transform: uppercase; }
.camp-panel ul, .mobile-event-detail ul { margin: 10px 0 20px; padding-left: 18px; }
.camp-suitable, .camp-deadline { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted) !important; }
.camp-deadline { font-size: .78rem !important; }
.camp-book { width: 100%; margin-top: 6px; }
.camp-alt { display: block; margin-top: 10px; text-align: center; font-size: .8rem; color: var(--muted); padding-block: 8px; }
@media (max-width: 860px) {
  .schedule { display: block; }
  .camp-panel { display: none; }
  .event-trigger { grid-template-columns: 66px minmax(0, 1fr) auto 22px; }
  .event-card.is-selected .event-trigger { color: inherit; background: transparent; }
  .is-selected .event-date { border-color: var(--line); }
  .is-selected .event-date small { color: var(--blue-300); }
  .is-selected .event-main small, .is-selected .event-places { color: var(--muted); }
  .is-selected .event-places.is-low { color: #ff9b9b; }
  .event-card.is-selected .mobile-event-detail { display: block; padding: 22px 18px 20px; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .event-trigger { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 11px; padding-right: 12px; }
  .event-date { height: 58px; }
  .event-main strong { font-size: .82rem; }
  .event-main small { font-size: .7rem; }
  .event-price { font-size: .86rem; }
  .event-arrow { display: none; }
  .winter-divider { align-items: flex-start; flex-direction: column; gap: 2px; }
  .next-label { font-size: .56rem; }
  .done-venue { display: none; }
}

/* Light, like the live site's dates section (James, 15 Nov: "I still prefer the list of dates from the previous version") */
.section.dates {
  color-scheme: light;
  --bg: #f4f7fb; --surface: #fff; --surface-2: #eaf1fe; --bg-2: #f4f7fb;
  --line: #d9e2ee; --line-strong: #a6bce1; --ink: #0b1b33; --ink-2: #2b3a52; --heading: #03132e; --muted: #52627a;
  --blue-300: #2463eb; --shadow-sm: 0 4px 14px rgba(5, 24, 55, .05); --shadow: 0 18px 40px rgba(5, 24, 55, .12);
  color: var(--ink);
}
.dates .event-card { border-radius: 5px; }
.dates .event-card.is-next:not(.is-selected) { box-shadow: inset 4px 0 0 var(--blue-600), var(--shadow-sm); }
.dates .event-places.is-low, .dates .camp-venue .is-low { color: #c62828; }
.dates .is-selected .event-date small, .dates .is-selected .event-main small, .dates .is-selected .event-places, .dates .event-card.is-selected .event-main strong, .dates .event-card.is-selected .event-price, .dates .event-card.is-selected .event-date { color: #fff; }
.dates .is-selected .event-date small, .dates .is-selected .event-main small { color: #e2ebff; }
.dates .is-selected .event-places.is-low { color: #ffd1d1; }
.dates .next-label { background: var(--navy-950); color: #fff; }
.dates .camp-panel { border-radius: 6px; }
.dates .done-name { text-decoration-color: rgba(82, 98, 122, .45); }
.dates .completed-strip li { background: #eef2f7; color: #5c6b82; }
@media (max-width: 860px) {
  .dates .event-card.is-selected .event-main strong, .dates .event-card.is-selected .event-price, .dates .event-card.is-selected .event-date { color: var(--heading); }
  .dates .is-selected .event-date small { color: var(--blue-600); }
  .dates .is-selected .event-main small, .dates .is-selected .event-places { color: var(--muted); }
  .dates .is-selected .event-places.is-low { color: #c62828; }
}

/* ---------- Final CTA (live "Ready to take the next step?") ---------- */
.final-cta { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 110px) 0; color: #fff; background: var(--navy-950); }
.final-cta > picture img, .final-cta-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.final-cta > picture img { object-fit: cover; object-position: 50% 52%; }
.final-cta-overlay { background: linear-gradient(90deg, rgba(3, 19, 46, .96), rgba(3, 19, 46, .8) 55%, rgba(3, 19, 46, .66)); }
.final-cta-grid { position: relative; display: grid; grid-template-columns: 1.15fr .7fr; gap: clamp(36px, 5vw, 60px); align-items: end; }
.final-cta .h2 { max-width: 700px; margin: 0 0 18px; }
.final-cta p:not(.eyebrow) { max-width: 600px; color: #d2ddec; margin: 0 0 24px; }
.connected-card { padding: 30px; border-left: 3px solid var(--blue-500); border-radius: 0 var(--radius) var(--radius) 0; background: rgba(3, 19, 46, .6); backdrop-filter: blur(8px); }
.connected-card h3 { margin: 0 0 12px; font-size: 1.7rem; color: #fff; }
.connected-card p:not(.eyebrow) { margin-bottom: 8px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: #fff; font-size: .84rem; font-weight: 800; letter-spacing: .06em; text-decoration: underline; text-decoration-color: var(--blue-300); text-underline-offset: 5px; text-transform: uppercase; }
@media (max-width: 860px) { .final-cta-grid { grid-template-columns: 1fr; align-items: start; } .connected-card { max-width: 560px; } }

/* ---------- Footer (live 3 columns) ---------- */
.site-footer { padding: 46px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 60px; }
.footer-logo { display: inline-block; margin-bottom: 14px; font-size: 1.15rem; color: #fff; }
.footer-grid p { font-size: .84rem; margin: 0; }
.footer-grid h2 { margin: 0 0 10px; color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font); }
.footer-grid > div > a:not(.logo), .footer-grid address a { display: block; width: fit-content; padding-block: 8px; color: #c9d5e6; font-size: .84rem; font-style: normal; text-decoration: underline; text-decoration-color: rgba(201, 213, 230, .3); text-underline-offset: 3px; }
.footer-grid address { font-style: normal; }
.footer-grid address strong { color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 30px; margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .13); color: #8a9bb3; font-size: .72rem; }
.footer-base p { margin: 0; }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } .footer-base { flex-direction: column; gap: 8px; } }

/* ---------- Legal pages (beta/privacy, terms, cancellation, photography) ---------- */
.legal { padding: calc(var(--nav-h) + 32px) 0 72px; background: var(--bg); }
.legal-wrap { max-width: 820px; }
.legal-crumbs { margin-bottom: 18px; font-size: .8rem; color: var(--muted); }
.legal-crumbs a { color: var(--blue-300); padding-block: 12px; }
.legal-card { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-card h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 10px; }
.legal-card h2 { margin: 34px 0 10px; font-size: 1.3rem; font-family: var(--font); font-weight: 800; text-transform: none; letter-spacing: 0; }
.legal-card h3 { margin: 22px 0 6px; font-size: 1rem; color: var(--blue-300); }
.legal-card p, .legal-card li { color: var(--ink-2); line-height: 1.65; font-size: .96rem; }
.legal-card ul { padding-left: 20px; }
.legal-card li { margin-bottom: 8px; }
.legal-card a { color: var(--blue-300); }
.legal-updated { color: var(--muted) !important; font-size: .82rem !important; }
.legal-draft { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn-tx) !important; font-size: .86rem !important; }
.legal-draft strong { color: var(--warn-tx); }
/* Changed / new wording, yellow until James approves (remove the <mark> to approve) */
mark.legal-new { background: rgba(255, 223, 39, .16); color: inherit; box-shadow: inset 0 -2px 0 rgba(255, 223, 39, .55); padding: 0 2px; border-radius: 2px; }
mark.legal-todo { background: #ffdf27; color: #03132e; font-weight: 800; padding: 0 4px; border-radius: 3px; }
.legal-more { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .86rem; }
.legal-more a { color: var(--ink-2); padding-block: 12px; }
.legal-more a[aria-current] { color: var(--blue-300); font-weight: 800; text-decoration: none; }

.beta-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .22); color: inherit; padding: 2px 7px; border-radius: 3px; line-height: 1.4; }
.places { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; white-space: nowrap; }
.places.is-full { color: #ffb4b4; }
.beta-flag { position: fixed; z-index: 60; left: 12px; bottom: 12px; background: var(--navy-950); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; opacity: .85; pointer-events: none; }

/* reveal helper (JS adds .in) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Calendar rows (shared by teaser + calendar page)
   ============================================================ */
.cal-row { display: flex; --head: 20px; --lane: 21px; }
.cal-track { position: relative; flex: none; width: var(--track-w, calc(var(--n) * var(--day-w, 32px))); }
.cal-cells { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); min-height: calc(var(--head) + var(--lanes) * var(--lane) + 8px); }
.cal-cell { position: relative; background: var(--cell); border-left: 1px solid var(--line); min-width: 0; }
.cal-cell.is-we { background: var(--cell-we); }
.cal-cell.is-pad { background: transparent; border-left-color: transparent; }
.cal-cell.is-pad + .cal-cell:not(.is-pad) { border-left-color: var(--line); }
.cal-num { display: block; font-size: 11px; font-weight: 600; color: var(--cell-num); line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.cal-cell.is-we .cal-num { color: var(--cell-num-we); }
.cal-cell.is-past .cal-num { color: var(--cell-num-past); font-weight: 400; }
.cal-cell.is-today .cal-num { background: var(--accent); color: #fff; border-radius: 4px; margin: 1px 2px 0; line-height: 18px; }
.cal-bars { position: absolute; inset: 0; pointer-events: none; }
.cal-bar {
  position: absolute; pointer-events: auto; cursor: pointer;
  left: calc(var(--c) * 100% / var(--n) + 2px); width: calc(var(--s) * 100% / var(--n) - 4px);
  top: calc(var(--head) + var(--l) * var(--lane) + 2px); height: calc(var(--lane) - 3px);
  border: 0; border-radius: 4px; padding: 0 5px; color: var(--bar-tx, #fff); background: var(--bar, var(--navy));
  font-size: 11px; font-weight: 700; line-height: 1; text-align: center; display: flex; align-items: center; justify-content: center; min-width: 0;
  transition: filter var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
}
.cal-bar:active { transform: scale(.96); transition-duration: var(--dur-fast); }
.cal-bar { container-type: inline-size; }
.cal-bar .short { display: none; }
@container (max-width: 130px) { .cal-bar .full { display: none; } .cal-bar .short { display: block; } }
@container (max-width: 44px) { .cal-bar .short { display: none; } }
.cal-bar.t-deadline { padding: 0 2px; }
.cal-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (hover: hover) { .cal-bar:hover { filter: brightness(1.12); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 6px 18px rgba(0, 0, 0, .5); z-index: 2; } }
.cal-bar.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; left: calc(var(--c) * 100% / var(--n)); width: calc(var(--s) * 100% / var(--n) - 2px); }
.cal-bar.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; width: calc(var(--s) * 100% / var(--n) - 2px); }
.cal-bar.cont-l.cont-r { width: calc(var(--s) * 100% / var(--n)); }
.cal-bar.is-past { opacity: .4; filter: saturate(.55); }
.cal-bar.is-prov { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .28) 0 5px, transparent 5px 10px); }
.t-bts-camp { --bar: var(--t-bts); --bar-tx: var(--t-bts-tx); }
.t-national-open { --bar: var(--t-no); --bar-tx: var(--t-no-tx); }
.t-championship { --bar: var(--t-champ); --bar-tx: var(--t-champ-tx); }
.t-ilca-uk-training { --bar: var(--t-train); --bar-tx: var(--t-train-tx); }
.t-international { --bar: var(--t-intl); --bar-tx: var(--t-intl-tx); }
.t-deadline { --bar: var(--t-dl); }
/* BTS training is ours: always on the top lane (cal-core pack) and the most prominent bar */
.cal-bar.t-bts-camp { background: linear-gradient(180deg, #4a82ff, var(--t-bts)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 14px rgba(47, 109, 246, .55); z-index: 1; }
.cal-bar.t-championship { font-weight: 800; }
.cal-bar.t-deadline { background: var(--t-dl-fill); color: var(--t-dl-tx); box-shadow: inset 0 0 0 1.5px var(--t-dl); font-weight: 700; }
.cal-bar.t-deadline::before { content: "!"; font-weight: 800; margin-right: 3px; flex: none; }
.animate .cal-bar { animation: bar-in .6s var(--ease) both; animation-delay: calc(var(--i) * 30ms + var(--rd, 0ms)); transform-origin: left center; }
@keyframes bar-in { from { transform: scaleX(.2); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .quote .w { opacity: 1; }
  .coach-card .coach-photo img { --zoom: 1 !important; }
  .btn:active, .card:active, .cal-bar:active { transform: none; }
}

/* Site is live: the "Beta preview" flag stays hidden (kept in the HTML so a peer session's files need no edit). */
.beta-flag { display: none !important; }
