/* ============================================================
   Yuva Chess Academy — site.css
   ------------------------------------------------------------
   Rebuilt on the Saint Louis Chess Club model at the client's request:
   a light page, big condensed uppercase headings, a serif reading face,
   deep navy bands in the academy's own badge colour, and gold and olive
   accents. (The bands were forest green until Sept 2026; the --forest token
   name is kept so the change was a value swap, not a rename across 8 pages.)

   What was taken: the structural language. Nothing of theirs is copied —
   no logo, no wordmark, no photography, no copy. The gold accent is kept
   close to the brass YCA already used so this reads as a restyle of this
   academy's identity rather than a lift of someone else's.

   Utopia (their body face) is a paid Adobe font. Source Serif 4 is the
   closest freely licensed analogue and is what ships here.

   Tokens are OKLCH. Never a literal #000 or #fff on screen.
   ============================================================ */

:root{
  /* ---- ground ---- */
  --paper:      oklch(0.988 0.002 100);   /* page. off-white, never #fff */
  --paper-2:    oklch(0.962 0.004 100);   /* alternating band */
  --paper-3:    oklch(0.930 0.006 100);   /* wells, table stripes */
  --ink:        oklch(0.185 0.020 265);   /* body + headings, near-black navy */
  --ink-soft:   oklch(0.430 0.018 265);   /* secondary text */
  --line:       oklch(0.878 0.006 100);   /* hairlines */
  --line-2:     oklch(0.800 0.008 100);   /* stronger rules under headings */

  /* ---- dark bands ---- */
  --forest:     oklch(0.213 0.062 265);   /* the academy's navy, from its badge — token name kept so nothing else moves */
  --forest-2:   oklch(0.268 0.062 265);   /* raised inside a dark band */
  --on-forest:  oklch(0.965 0.006 100);
  --on-forest-soft: oklch(0.780 0.012 250);

  /* ---- accents ---- */
  --gold:       oklch(0.760 0.098 78);    /* primary accent */
  /* Gold dark enough for AA on BOTH paper tones. 0.560 was chosen against
     --paper only (4.56:1) and quietly failed on --paper-2, the alternating
     band, at 4.22:1 — and most of the kickers and inline links sit on that
     band. 0.530 measures 5.18:1 on --paper and 4.79:1 on --paper-2. */
  --gold-deep:  oklch(0.530 0.090 70);    /* gold that passes AA on both papers */
  --olive:      oklch(0.700 0.155 108);   /* secondary, used sparingly */
  --brick:      oklch(0.500 0.170 30);    /* alerts, cancellations */

  /* ---- type ---- */
  --disp:'Barlow Condensed', 'Arial Narrow', sans-serif;
  --serif:'Source Serif 4', Georgia, serif;
  --sans:'Barlow', system-ui, sans-serif;

  /* ---- scale ---- */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px;
  --s6:32px; --s7:48px; --s8:64px; --s9:96px; --s10:128px;

  --pad-y:clamp(56px, 9vh, 104px);
  --pad-x:clamp(18px, 5vw, 64px);
  --maxw:1240px;
  --nav-h:118px;
}

*{margin:0;padding:0;box-sizing:border-box}
/* The browser's own [hidden] rule is display:none at the lowest specificity,
   so any component that sets display (a flex row of dots, a flex rail-nav)
   silently beats it and stays on screen after el.hidden = true. Everything
   here toggles visibility that way, so make hidden mean hidden. */
[hidden]{display:none!important}
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--nav-h) + 12px);
}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--serif);
  font-size:19px;
  line-height:1.6;
  overflow-x:clip;
  -webkit-font-smoothing:antialiased;
}

::selection{background:var(--gold);color:oklch(0.20 0.02 78)}
a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%}
strong,b{font-weight:600}
em{font-style:italic}
:focus-visible{outline:3px solid var(--gold-deep);outline-offset:2px;border-radius:2px}

.skip{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--forest);color:var(--on-forest);
  padding:var(--s3) var(--s5);font-family:var(--sans);font-size:14px;font-weight:600;
}
.skip:focus{left:var(--s4);top:var(--s4)}

/* ---------------- typography ----------------
   Condensed, uppercase, heavy. This is the loudest thing on the page and it
   is meant to be. */
h1,h2,h3,h4{
  font-family:var(--disp);font-weight:700;text-transform:uppercase;
  line-height:.95;letter-spacing:.005em;color:var(--ink);
}
h1{font-size:clamp(44px,7.4vw,86px)}
h2{font-size:clamp(32px,5.2vw,58px)}
h3{font-size:clamp(23px,2.9vw,32px);line-height:1.02}
h4{font-size:20px;line-height:1.1}


/* eyebrow / kicker */
.k{
  font-family:var(--sans);font-size:13px;font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;color:var(--gold-deep);margin-bottom:var(--s4);
  display:flex;align-items:center;gap:12px;
}
.k::after{content:'';flex:1;height:1px;background:var(--line-2);max-width:120px}
.k-plain::after{display:none}

.lede{font-size:21px;line-height:1.5;color:var(--ink-soft);max-width:60ch}
.body{max-width:66ch}
.body p + p{margin-top:var(--s5)}
.small{font-size:16px}
.tiny{font-family:var(--sans);font-size:13px;letter-spacing:.02em}
.num{font-variant-numeric:tabular-nums}
.rule{border:0;border-top:1px solid var(--line);margin:0}

/* ---------------- layout ---------------- */
section{padding:var(--pad-y) var(--pad-x);position:relative}
.wrap{max-width:var(--maxw);margin:0 auto}
.wrap-wide{max-width:1440px;margin:0 auto}
.sec-head{margin-bottom:var(--s7)}
.sec-head .lede{margin-top:var(--s4)}
.sec-head-row{display:flex;align-items:flex-end;justify-content:space-between;
  gap:var(--s6);flex-wrap:wrap;margin-bottom:var(--s7)}

/* dark band */
.band-dark{background:var(--forest);color:var(--on-forest-soft)}
.band-dark h1,.band-dark h2,.band-dark h3,.band-dark h4{color:var(--on-forest)}
/* Same trap as .btn-ghost: .k is --gold-deep, which is tuned for paper and
   drops to 3.24:1 on forest. Every dark ground gets the lighter --gold. */
.band-dark .k,
.hero .k,
.pagehead .k,
footer .k{color:var(--gold)}
.band-dark .k::after,
.hero .k::after,
.pagehead .k::after,
footer .k::after{background:oklch(0.40 0.036 265)}
.band-dark .lede{color:var(--on-forest-soft)}
.band-alt{background:var(--paper-2)}

/* ---------------- nav ---------------- */
.nav{position:sticky;top:0;z-index:60;background:var(--paper);
  border-bottom:1px solid var(--line)}
.nav-util{
  background:var(--forest);color:var(--on-forest-soft);
  display:flex;justify-content:flex-end;align-items:center;gap:var(--s5);
  padding:9px var(--pad-x);
  font-family:var(--sans);font-size:12.5px;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;
}
.nav-util a{display:inline-flex;align-items:center;gap:6px}
.nav-util a:hover{color:var(--gold)}
.nav-util .live{color:var(--gold);display:inline-flex;align-items:center;gap:8px;min-width:0}
.nav-util .dot{width:7px;height:7px;border-radius:999px;background:var(--olive);flex:none}
/* The ribbon: full sentence on wide screens, short form on phones. On a
   no-class day the dot goes quiet instead of pretending something is on. */
.nav-util .live .ut-full{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:58vw}
.nav-util .live .ut-short{display:none}
.nav-util .live.closed{color:var(--on-forest-soft)}
.nav-util .live.closed .dot{background:var(--on-forest-soft);opacity:.55}

.nav-main{display:flex;align-items:center;justify-content:space-between;
  gap:var(--s5);padding:16px var(--pad-x)}
.brand{display:flex;align-items:center;gap:12px;flex:none}
/* The academy's badge. Its artwork is a wide oval on a square canvas, so
   the box is a little larger than the old square placeholder to give the
   same optical weight, and object-fit keeps the oval from being stretched
   into a circle. */
.brand .mark{width:40px;height:40px;flex:none;object-fit:contain}
.brand .wordmark{display:flex;flex-direction:column;line-height:1}
.brand .wordmark b{font-family:var(--disp);font-weight:700;font-size:27px;
  text-transform:uppercase;letter-spacing:.02em;color:var(--ink)}
.brand .wordmark span{font-family:var(--sans);font-size:10.5px;font-weight:600;
  letter-spacing:.19em;text-transform:uppercase;color:var(--ink-soft);margin-top:3px}

.nav-links{display:flex;align-items:center;gap:var(--s6);
  font-family:var(--sans);font-size:14.5px;font-weight:600;letter-spacing:.09em;
  text-transform:uppercase}
.nav-links a{padding:10px 0;border-bottom:3px solid transparent;transition:border-color .2s,color .2s}
.nav-links a:hover{border-bottom-color:var(--gold)}
.nav-links a[aria-current="page"]{border-bottom-color:var(--gold-deep);color:var(--gold-deep)}
/* One line per link, always: a wrapped link made the bar two lines tall. */
.nav-links a{white-space:nowrap}
/* "YCA Global Leaderboard" is the name the academy gave the page (21 Sept
   2026). The prefix is its own span so the folded menu, where each link is a
   flex row, keeps the space after "Global" instead of collapsing it. */
.nav-pre{white-space:pre}
.nav-toggle{display:none;background:var(--forest);color:var(--on-forest);border:0;
  font-family:var(--sans);font-size:13px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;padding:13px 18px;cursor:pointer;min-height:46px}

/* ---------------- buttons ---------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--sans);font-weight:700;font-size:14px;letter-spacing:.11em;
  text-transform:uppercase;padding:16px 30px;border:2px solid transparent;
  transition:background .2s,color .2s,border-color .2s;min-height:52px;
}
.btn-primary{background:var(--gold-deep);color:var(--paper)}
.btn-primary:hover{background:var(--ink)}
.btn-dark{background:var(--forest);color:var(--on-forest)}
.btn-dark:hover{background:var(--gold-deep)}
.btn-ghost{border-color:var(--ink);color:var(--ink)}
.btn-ghost:hover{background:var(--ink);color:var(--paper)}
/* A ghost button is transparent, so it takes its colour from --ink and vanishes
   on any dark ground. This used to name only .band-dark, which left the hero's
   "See this week" button at 1.07:1 — dark ink on a dark veil, effectively
   invisible. Every forest-backed context is listed here now. Measured, not
   assumed: see the contrast pass in DEPLOY.md. */
.band-dark .btn-ghost,
.hero .btn-ghost,
.pagehead .btn-ghost,
footer .btn-ghost{border-color:var(--on-forest);color:var(--on-forest)}
.band-dark .btn-ghost:hover,
.hero .btn-ghost:hover,
.pagehead .btn-ghost:hover,
footer .btn-ghost:hover{background:var(--on-forest);color:var(--forest)}
.btn-sm{padding:11px 20px;font-size:12.5px;min-height:44px}

.arrow{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;flex:none}

/* ---------------- hero ---------------- */
.hero{position:relative;min-height:min(76vh,660px);display:flex;align-items:flex-end;
  padding:0;overflow:hidden;background:var(--forest)}
.hero .media{position:absolute;inset:0}
.hero .media img,.hero .media video{width:100%;height:100%;object-fit:cover}
/* Tuned against the CURRENT hero image, not by eye: the brightest 2% patch of
   composited pixels behind the copy block measured 3.05:1 under the old stops
   (.94/.62/.30) — the window light in the photograph bled through the lede.
   These stops bring that worst patch above 4.5:1 on desktop and phone. If the
   hero image changes, re-run the veil measurement before trusting this. */
.hero .veil{position:absolute;inset:0;
  background:linear-gradient(to top, oklch(0.16 0.054 265/.96) 0%,
    oklch(0.16 0.054 265/.78) 46%, oklch(0.16 0.054 265/.34) 100%)}
/* The kicker is gold and crosses whatever the photograph puts behind it —
   measured at 1.6:1 where it crossed the window light in the current hero,
   with the veil already at full strength there. A halo makes the text carry
   its own contrast instead of borrowing it from the image, so this survives
   any future hero swap. h1 gets the same for margin. */
.hero-copy .k,
.hero-copy h1{text-shadow:0 1px 2px oklch(0.16 0.054 265/.95), 0 0 14px oklch(0.16 0.054 265/.75)}
.hero-copy{position:relative;z-index:2;width:100%;max-width:var(--maxw);
  margin:0 auto;padding:var(--s9) var(--pad-x) var(--s8)}
.hero-copy h1{color:var(--on-forest);max-width:20ch}
.hero-copy .k{color:var(--gold)}
/* The line between the motto and the welcome sentence ("Nine branches. One
   academy."). Display face so it reads as a second headline, not body copy;
   same halo as the h1 because it crosses the same photograph. */
.hero-copy .hero-sub{font-family:var(--disp);font-weight:700;text-transform:uppercase;
  font-size:clamp(22px,2.7vw,36px);line-height:1.05;letter-spacing:.02em;
  color:var(--gold);margin-top:var(--s4);
  text-shadow:0 1px 2px oklch(0.16 0.054 265/.95), 0 0 14px oklch(0.16 0.054 265/.75)}
.hero-copy .k::after{background:oklch(0.45 0.054 265)}
.hero-copy .lede{color:var(--on-forest-soft);margin-top:var(--s5);max-width:52ch}
.hero-actions{display:flex;gap:var(--s4);margin-top:var(--s6);flex-wrap:wrap}

/* inner page header */
.pagehead{background:var(--forest);color:var(--on-forest-soft);
  padding:var(--s9) var(--pad-x) var(--s8)}
.pagehead h1{color:var(--on-forest)}
.pagehead .lede{color:var(--on-forest-soft);margin-top:var(--s5)}
.crumb{font-family:var(--sans);font-size:12.5px;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--gold);margin-bottom:var(--s5);
  display:flex;flex-wrap:wrap;gap:0 8px;align-items:center}
.crumb a{display:inline-flex;align-items:center;min-height:34px}
.crumb a:hover{text-decoration:underline}

/* ---------------- weekly schedule ----------------
   The centrepiece. YCA meets on a fixed day at each branch, so the week is
   real data and this is the first thing a parent wants to see. */
.today-strip{display:flex;align-items:center;gap:var(--s4);flex-wrap:wrap;
  background:var(--forest);color:var(--on-forest);padding:16px var(--s5);
  font-family:var(--sans);font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  font-size:14px;margin-bottom:var(--s6)}
.today-strip .badge{background:var(--olive);color:oklch(0.20 0.03 108);
  padding:5px 12px;font-weight:700;font-size:12.5px;letter-spacing:.11em}
.today-strip .badge.closed{background:var(--paper-3);color:var(--ink)}
.today-strip .what{color:var(--gold);text-transform:none;letter-spacing:0;
  font-family:var(--serif);font-weight:400;font-size:17px}

.weekgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;
  background:var(--line);border:1px solid var(--line)}
.day{background:var(--paper);padding:var(--s4) var(--s3);min-height:190px;
  display:flex;flex-direction:column;gap:10px}
.day.is-today{background:oklch(0.975 0.018 108)}
.day .dname{font-family:var(--sans);font-size:12.5px;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;color:var(--ink-soft);
  padding-bottom:8px;border-bottom:2px solid var(--line-2)}
.day.is-today .dname{color:var(--ink);border-bottom-color:var(--olive)}
.day .slot{display:block;padding:9px 0;border-bottom:1px solid var(--line)}
.day .slot:last-child{border-bottom:0}
a.slot:hover .sname{color:var(--gold-deep);text-decoration:underline}
.day .sname{font-family:var(--disp);font-weight:700;font-size:18px;
  text-transform:uppercase;line-height:1;color:var(--ink);display:block}
.day .stime{font-family:var(--sans);font-size:12.5px;font-weight:600;
  color:var(--ink-soft);display:block;margin-top:4px}
.day .none{font-family:var(--sans);font-size:12.5px;color:var(--ink-soft);opacity:.6}

/* ---------------- stat band ---------------- */
.statband{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--s6)}
.stat .fig{font-family:var(--disp);font-weight:700;text-transform:uppercase;
  font-size:clamp(44px,5.6vw,74px);line-height:.9;color:var(--gold);
  font-variant-numeric:tabular-nums}
.stat .lbl{font-family:var(--sans);font-size:13px;font-weight:600;letter-spacing:.13em;
  text-transform:uppercase;margin-top:12px;color:var(--on-forest)}
.stat .note{font-size:15.5px;margin-top:8px;color:var(--on-forest-soft)}
.band-light .stat .fig{color:var(--gold-deep)}
.band-light .stat .lbl{color:var(--ink)}
.band-light .stat .note{color:var(--ink-soft)}

/* ---------------- tiles (programme tiers, three-up) ---------------- */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--s5)}
.tile{background:var(--paper);border:1px solid var(--line);padding:var(--s6);
  display:flex;flex-direction:column;gap:var(--s3);transition:border-color .2s,transform .2s}
.tile:hover{border-color:var(--gold);transform:translateY(-3px)}
.tile .ico{width:44px;height:44px;stroke:var(--gold-deep);fill:none;stroke-width:1.25}
.tile .step{font-family:var(--sans);font-size:12.5px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold-deep)}
.tile p{font-size:16.5px;color:var(--ink-soft);flex:1}
.tile .btn{align-self:flex-start;margin-top:var(--s3)}
.tile-dark{background:var(--forest-2);border-color:oklch(0.36 0.054 265);color:var(--on-forest-soft)}
.tile-dark h3{color:var(--on-forest)}

/* ---------------- programme ladder rows ---------------- */
.tiers{border-top:2px solid var(--ink)}
.tier{display:grid;grid-template-columns:64px 1fr 1.1fr 170px;gap:var(--s5);
  align-items:center;padding:22px 0;border-bottom:1px solid var(--line);
  transition:background .2s,padding-left .2s}
.tier:hover{background:var(--paper-2);padding-left:12px}
.tier .n{font-family:var(--disp);font-weight:700;font-size:26px;color:var(--gold-deep)}
.tier .t{font-family:var(--disp);font-weight:700;font-size:clamp(22px,2.5vw,29px);
  text-transform:uppercase;line-height:1}
.tier .d{font-size:16.5px;color:var(--ink-soft)}
.tier .s{text-align:right}

.chip{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;
  font-family:var(--sans);font-size:12.5px;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;border:1px solid var(--line-2);color:var(--ink);
  background:var(--paper);white-space:nowrap;transition:border-color .2s,background .2s}
a.chip:hover{border-color:var(--gold);background:var(--paper-2)}
.chip-soon{border-color:var(--gold);color:var(--gold-deep)}
.chip-live{border-color:var(--olive);color:oklch(0.42 0.10 108)}
.band-dark .chip{border-color:oklch(0.40 0.036 265);color:var(--on-forest-soft);background:transparent}

/* ---------------- cards (events, branches, news) ---------------- */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:var(--s5)}
.card{background:var(--paper);border:1px solid var(--line);display:flex;
  flex-direction:column;transition:border-color .2s,transform .2s}
a.card:hover{border-color:var(--gold);transform:translateY(-3px)}
.card .thumb{aspect-ratio:16/10;background:var(--forest-2);overflow:hidden;position:relative}
.card .thumb img{width:100%;height:100%;object-fit:cover}
.card .cbody{padding:var(--s5);display:flex;flex-direction:column;gap:10px;flex:1}
.card .meta{font-family:var(--sans);font-size:12px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:var(--gold-deep)}
.card h3{font-size:23px}
.card p{font-size:16px;color:var(--ink-soft);flex:1}
.card .go{font-family:var(--sans);font-size:12.5px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--ink);display:inline-flex;align-items:center;gap:8px;
  margin-top:auto;padding-top:var(--s3);min-height:40px}
a.card:hover .go{color:var(--gold-deep)}

/* ---------------- horizontal rail ---------------- */
.rail-nav{display:flex;gap:var(--s2)}
/* The arrows used to share their row with a one-line hint. The academy asked
   for the coach list to start straight under its heading (18 Sept 2026), so
   the hint went; alone in the row, the arrows keep to the right-hand side. */
.sec-head-row > .rail-nav:only-child{margin-left:auto}
.rail-nav button{width:48px;height:48px;border:1px solid var(--line-2);background:var(--paper);
  color:var(--ink);cursor:pointer;display:grid;place-items:center;transition:.2s}
.rail-nav button:hover{border-color:var(--gold);color:var(--gold-deep)}
.rail-nav button[disabled]{opacity:.28;cursor:default}
.rail-nav svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}
.band-dark .rail-nav button{background:transparent;border-color:oklch(0.40 0.036 265);color:var(--on-forest)}

.rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(280px,330px);
  gap:var(--s5);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:var(--s4);
  scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
.rail > *{scroll-snap-align:start}
.rail::-webkit-scrollbar{height:6px}
.rail::-webkit-scrollbar-thumb{background:var(--line-2)}

/* ---------------- honest empty state ----------------
   Used wherever the academy has not supplied content yet. The component is
   real and wired; only the data is missing, and it says so. */
/* The academy's posts, scrolling. One card at a time on a phone, two or three
   on a desk; auto-advancing every five seconds until a visitor engages.
   Dated cards in the house voice: sans uppercase date, condensed display
   title, serif body. */
.postscroll{margin-bottom:var(--s6)}
.ps-head{display:flex;align-items:center;justify-content:space-between;
  gap:var(--s5);margin-bottom:var(--s4);flex-wrap:wrap}
.ps-src{font-family:var(--sans);font-size:12.5px;font-weight:700;
  letter-spacing:.13em;text-transform:uppercase;color:var(--ink-soft);margin:0}
.band-alt .ps-src{color:var(--ink-soft)}
.ps-head .rail-nav button{width:42px;height:42px}

.ps-track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(288px,1fr);
  gap:var(--s5);overflow-x:auto;scroll-snap-type:x mandatory;
  padding-bottom:var(--s3);scrollbar-width:thin;
  scrollbar-color:var(--line-2) transparent;overscroll-behavior-x:contain}
.ps-track > *{scroll-snap-align:start}
.ps-track::-webkit-scrollbar{height:6px}
.ps-track::-webkit-scrollbar-thumb{background:var(--line-2)}
.ps-track:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

.ps-card{border:1px solid var(--line);background:var(--paper);
  padding:var(--s5) var(--s6);display:flex;flex-direction:column;
  min-height:180px}
.ps-card .ndate{font-family:var(--sans);font-size:12px;font-weight:700;
  letter-spacing:.13em;text-transform:uppercase;color:var(--gold-deep);margin:0}
.ps-card h3{margin:var(--s2) 0 var(--s3);font-size:clamp(19px,2vw,23px)}
.ps-card p{font-size:16.5px;color:var(--ink-soft);margin:0}
.ps-link{margin-top:auto;padding-top:var(--s4);font-family:var(--sans);
  font-size:12.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--gold-deep);text-decoration:underline;text-underline-offset:4px}

.ps-dots{display:flex;gap:8px;justify-content:center;margin-top:var(--s4)}
.ps-dot{position:relative;width:9px;height:9px;padding:0;border-radius:999px;
  cursor:pointer;border:1px solid var(--line-2);background:transparent;
  transition:.2s}
.ps-dot.on{background:var(--gold-deep);border-color:var(--gold-deep);
  transform:scale(1.25)}
.ps-dot:hover{border-color:var(--gold)}
/* A 9px dot is a 9px target. The visible dot stays small; an invisible box
   around it gives a thumb something to actually hit, bounded horizontally by
   the gap so neighbouring dots never overlap. */
.ps-dot::after{content:'';position:absolute;left:-4px;right:-4px;top:-15px;bottom:-15px}

@media(max-width:640px){
  .ps-track{grid-auto-columns:minmax(240px,88vw)}
  .ps-head{gap:var(--s3)}
  .ps-src{font-size:11.5px;flex:1;min-width:0}
  .ps-head .rail-nav button{width:44px;height:44px}
  /* Wider pitch on phones so the enlarged hit areas stay separate. */
  .ps-dots{gap:16px}
  .ps-dot{width:11px;height:11px}
  .ps-dot::after{left:-8px;right:-8px;top:-16px;bottom:-16px}
}

.emptystate{border:2px dashed var(--line-2);background:var(--paper-2);
  padding:var(--s8) var(--s6);text-align:center}
.band-dark .emptystate{border-color:oklch(0.38 0.036 265);background:oklch(0.25 0.054 265)}
.emptystate .tagline{font-family:var(--sans);font-size:12.5px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--gold-deep)}
.band-dark .emptystate .tagline{color:var(--gold)}
.emptystate h3{margin:var(--s3) 0 var(--s4)}
.emptystate p{max-width:58ch;margin:0 auto;color:var(--ink-soft);font-size:17px}
.band-dark .emptystate p{color:var(--on-forest-soft)}
.emptystate .btn{margin-top:var(--s5)}

/* ---------------- branch blocks ---------------- */
.branches-list{display:flex;flex-direction:column;gap:var(--s9)}
.branch{scroll-margin-top:calc(var(--nav-h) + 20px)}
.branch-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(28px,4vw,64px);
  align-items:start}
.branch.flip .branch-media{order:-1}
.branch-head{border-bottom:2px solid var(--ink);padding-bottom:var(--s4);margin-bottom:var(--s5);
  display:flex;align-items:baseline;justify-content:space-between;gap:var(--s4);flex-wrap:wrap}
.branch-head h2{font-size:clamp(28px,3.8vw,44px)}
.est{font-family:var(--sans);font-size:13px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:var(--gold-deep)}
.story{font-size:18px;line-height:1.55;max-width:62ch}
.story + .story{margin-top:var(--s4)}

.detail{margin-top:var(--s6);border-top:1px solid var(--line)}
.detail .row2{display:grid;grid-template-columns:130px 1fr;gap:var(--s4);
  padding:15px 0;border-bottom:1px solid var(--line);align-items:baseline}
.detail dt{font-family:var(--sans);font-size:12px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-soft)}
.detail dd{font-size:17px}
.detail dd a{color:var(--gold-deep);text-decoration:underline;text-underline-offset:3px}
.who{font-family:var(--sans);font-size:13px;color:var(--ink-soft)}
.tbc{font-family:var(--sans);font-size:13.5px;font-weight:600;color:var(--brick);
  text-transform:uppercase;letter-spacing:.08em}

figure.media{position:relative;overflow:hidden;background:var(--forest-2)}
figure.media img,figure.media video{width:100%;height:auto}
figure.media .cap{position:absolute;left:0;bottom:0;right:0;padding:14px var(--s4);
  background:linear-gradient(to top, oklch(0.16 0.054 265/.9), transparent);
  font-family:var(--sans);font-size:12px;font-weight:600;letter-spacing:.13em;
  text-transform:uppercase;color:var(--on-forest)}

/* ---------------- offers (online, scheme) ---------------- */
.duo{display:grid;grid-template-columns:1fr 1fr;gap:var(--s5);align-items:start}
.offer{border:1px solid var(--line);background:var(--paper);padding:var(--s7) var(--s6)}
.offer.featured{border:2px solid var(--gold);background:var(--paper-2)}
.offer .price{font-family:var(--disp);font-weight:700;font-size:60px;line-height:.9;
  color:var(--ink);margin:var(--s5) 0 4px;font-variant-numeric:tabular-nums}
.offer .per{font-family:var(--sans);font-size:12.5px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:var(--ink-soft)}
.offer .fine{font-size:15px;color:var(--ink-soft);margin-top:var(--s4)}
.offer .btn{margin-top:var(--s6)}

/* ---------------- premium (YCA Premium) ----------------
   The academy's top option, dressed as one: a warm gold field instead of
   plain paper, a gold edge, a star row and a PREMIUM eyebrow. Used on the
   homepage branch card and on the branch's own entry, so the same thing
   looks the same in both places. */
.stars{display:inline-flex;align-items:center;gap:3px;line-height:0}
.stars svg{width:15px;height:15px;fill:var(--gold-deep);stroke:none;flex:none}
.band-dark .stars svg{fill:var(--gold)}
.stars .lbl{font-family:var(--sans);font-size:11.5px;font-weight:700;
  letter-spacing:.15em;text-transform:uppercase;color:var(--gold-deep);
  margin-left:7px;line-height:1}
.band-dark .stars .lbl{color:var(--gold)}

.premium{position:relative;border:2px solid var(--gold);
  background:linear-gradient(160deg,oklch(0.975 0.021 88) 0%,var(--paper) 62%)}
a.card.premium:hover{border-color:var(--gold-deep)}
.premium .pbadge{position:absolute;top:0;right:0;z-index:1;
  background:var(--gold-deep);color:var(--paper);
  font-family:var(--sans);font-size:10.5px;font-weight:700;letter-spacing:.17em;
  text-transform:uppercase;padding:6px 12px}
.premium .cbody{padding-top:var(--s6)}
.premium .stars{margin-bottom:10px}

/* The branch's own entry: a gold rule and the star row under the heading,
   without repainting a whole full-width section gold. */
.branch.premium-entry{border:0;background:none;position:relative;
  padding-left:var(--s5);border-left:3px solid var(--gold)}
.branch.premium-entry .branch-head{align-items:center}

/* offers: the featured card already carries the gold edge; premium adds the
   field and the stars so a paid tier reads as the better one at a glance. */
.offer.premium{padding-top:var(--s8)}

@media(max-width:640px){
  .premium .pbadge{font-size:9.5px;padding:5px 10px}
  .branch.premium-entry{padding-left:var(--s4)}
}

/* accent-bulleted list */
.law{list-style:none;display:flex;flex-direction:column;gap:12px;margin-top:var(--s5)}
.law li{display:flex;gap:14px;font-size:17px;align-items:baseline}
.law li::before{content:'';width:9px;height:9px;background:var(--gold);flex:none;
  transform:translateY(1px)}
.band-dark .law li::before{background:var(--gold)}

/* numbered steps */
.steps{border-top:2px solid var(--ink)}
.step{display:grid;grid-template-columns:78px 1fr 1.25fr;gap:var(--s5);
  padding:var(--s6) 0;border-bottom:1px solid var(--line);align-items:start}
.step .sn{font-family:var(--disp);font-weight:700;font-size:34px;color:var(--gold-deep)}
.step h3{margin-bottom:10px}
.step .body{font-size:17px;color:var(--ink-soft)}

/* ---------------- coaches ----------------
   A horizontal rail, like the other rails on the site: the roster grows as
   the academy sends more coaches, and a rail keeps that from pushing the rest
   of the page down. Driven by touch, the arrow buttons, or a keyboard —
   never on a timer, because a face that slides away mid-read is worse than
   one that waits. */
.coaches{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(178px,196px);
  gap:var(--s5);overflow-x:auto;scroll-snap-type:x proximity;
  padding-bottom:var(--s4);scrollbar-width:thin;
  scrollbar-color:var(--line-2) transparent;
  overscroll-behavior-x:contain}
.coaches > *{scroll-snap-align:start}
.coaches::-webkit-scrollbar{height:6px}
.coaches::-webkit-scrollbar-thumb{background:var(--line-2)}
/* Fewer coaches than fit: centre them instead of hugging the left edge. */
.coaches{justify-content:start}
.coach{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.coach .disc{width:158px;height:158px;border-radius:999px;overflow:hidden;
  background:var(--forest-2);display:grid;place-items:center;
  border:3px solid transparent;transition:border-color .2s,transform .2s}
.coach:hover .disc{border-color:var(--gold);transform:translateY(-4px)}
.coach .disc img{width:100%;height:100%;object-fit:cover}
.coach .disc .initials{font-family:var(--disp);font-weight:700;font-size:44px;
  color:var(--gold);text-transform:uppercase}
.coach .cname{font-family:var(--disp);font-weight:700;font-size:21px;text-transform:uppercase;
  line-height:1}
.coach .cach{font-size:15px;color:var(--ink-soft);max-width:24ch;line-height:1.4}
/* The Coaching Circle: the towns this coach travels to. Set smaller and in the
   sans face so it reads as a fact about availability, not as another
   achievement line. */
.coach .ccircle{font-family:var(--sans);font-size:12.5px;line-height:1.45;max-width:24ch;
  color:var(--ink-soft);letter-spacing:.01em}
.coach .cfee{font-family:var(--sans);font-size:13.5px;font-weight:700;color:var(--gold-deep);
  letter-spacing:.05em}

/* ---------------- tables ---------------- */
.tbl{width:100%;border-collapse:collapse;font-size:16.5px}
.tbl th{font-family:var(--sans);font-size:12px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:var(--ink-soft);text-align:left;
  padding:12px 14px;border-bottom:2px solid var(--ink)}
.tbl td{padding:15px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.tbl tr:hover td{background:var(--paper-2)}
.tbl a{color:var(--gold-deep);text-decoration:underline;text-underline-offset:3px}
.scroller{overflow-x:auto}

/* ---------------- forms ---------------- */
.form{display:grid;grid-template-columns:1fr 1fr;gap:var(--s5)}
.field{display:flex;flex-direction:column;gap:8px}
.field.full{grid-column:1/-1}
.field label{font-family:var(--sans);font-size:12.5px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:var(--ink-soft)}
.field input,.field select,.field textarea{
  font-family:var(--serif);font-size:17px;padding:14px 16px;min-height:52px;
  border:1px solid var(--line-2);background:var(--paper);color:var(--ink);
  border-radius:0;transition:border-color .2s}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold-deep)}
.field .hint{font-size:14.5px;color:var(--ink-soft)}
.form .btn{grid-column:1/-1;justify-self:start}
.formnote{grid-column:1/-1;font-size:15px;color:var(--ink-soft)}

/* facts card */
.facts{border:1px solid var(--line);background:var(--paper-2);padding:var(--s6)}
.facts h4{margin-bottom:var(--s4);padding-bottom:var(--s3);border-bottom:2px solid var(--ink)}
.facts dl{display:grid;grid-template-columns:1fr auto;gap:12px var(--s4);font-size:16px}
.facts dt{color:var(--ink-soft)}
.facts dd{text-align:right;font-weight:600}
.facts .bignum{font-family:var(--disp);font-weight:700;font-size:34px;color:var(--gold-deep);
  display:block;line-height:1.1}
.facts .fine{font-size:14.5px;color:var(--ink-soft);margin-top:var(--s4)}

/* ---------------- FAQ ---------------- */
.faq{border-top:2px solid var(--ink);max-width:900px}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{padding:22px 0;cursor:pointer;list-style:none;display:flex;
  justify-content:space-between;gap:var(--s5);align-items:center;min-height:64px;
  font-family:var(--disp);font-weight:700;font-size:22px;text-transform:uppercase;line-height:1.05}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';font-family:var(--sans);font-weight:400;font-size:26px;
  color:var(--gold-deep);flex:none}
.faq details[open] summary::after{content:'\2013'}
.faq details > div{padding:0 0 26px;max-width:70ch;font-size:17px;color:var(--ink-soft)}

/* ---------------- apply dialog ---------------- */
dialog.apply{border:0;padding:0;max-width:560px;width:calc(100% - 32px);
  background:var(--paper);color:var(--ink);box-shadow:0 24px 70px oklch(0.16 0.054 265/.35)}
dialog.apply::backdrop{background:oklch(0.16 0.054 265/.72)}
dialog.apply .dhead{background:var(--forest);color:var(--on-forest);
  padding:var(--s5) var(--s6);display:flex;justify-content:space-between;
  align-items:flex-start;gap:var(--s4)}
dialog.apply .dhead h3{color:var(--on-forest)}
dialog.apply .dsub{font-family:var(--sans);font-size:13px;font-weight:600;
  letter-spacing:.09em;text-transform:uppercase;color:var(--gold);margin-top:8px}
dialog.apply .dclose{background:transparent;border:1px solid oklch(0.45 0.054 265);
  color:var(--on-forest);width:46px;height:46px;cursor:pointer;font-size:20px;flex:none}
dialog.apply .dclose:hover{border-color:var(--gold);color:var(--gold)}
dialog.apply form{padding:var(--s6);display:grid;gap:var(--s5)}
dialog.apply .btn{width:100%}
dialog.apply .dnote{font-size:14.5px;color:var(--ink-soft)}
.applied{padding:var(--s8) var(--s6);text-align:center}
.applied h4{margin-bottom:var(--s3);font-size:26px}
.applied p{color:var(--ink-soft)}

/* ---------------- newsletter band ---------------- */
.subscribe{display:grid;grid-template-columns:1fr 1fr;gap:var(--s7);align-items:center}
.subscribe form{display:flex;gap:12px;flex-wrap:wrap;margin-top:var(--s5)}
.subscribe input{flex:1;min-width:220px;min-height:54px;padding:14px 16px;
  border:1px solid oklch(0.42 0.054 265);background:transparent;color:var(--on-forest);
  font-family:var(--serif);font-size:17px}
.subscribe input::placeholder{color:oklch(0.62 0.036 265)}

/* ---------------- footer ---------------- */
footer{background:var(--forest);color:var(--on-forest-soft);
  padding:var(--s9) var(--pad-x) var(--s6)}
.fgrid{max-width:var(--maxw);margin:0 auto;display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;gap:var(--s7)}
.fgrid h2{color:var(--gold);font-size:15px;letter-spacing:.1em;margin-bottom:var(--s4);
  padding-bottom:10px;border-bottom:1px solid oklch(0.36 0.036 265)}
.fgrid ul{list-style:none;display:flex;flex-direction:column;gap:2px;font-size:16px}
.fgrid ul a{display:flex;align-items:center;min-height:38px}
.fgrid ul a:hover{color:var(--gold)}
.fbrand p{max-width:36ch;margin-top:var(--s4);font-size:16px}
/* TWO LOCKUPS, one per ground — the ordinary way a badge like this is
   handled, and it needs no backing plate at all.

     light grounds  yca-logo-256.png     the full badge, navy field and all.
                                         Measures 17.6:1 on paper.
     dark grounds   yca-logo-ondark.png  the same badge with the navy field
                                         knocked out, so the white artwork
                                         sits straight on the band.

   An earlier build put the navy badge on a white coin in the footer. That was
   compensating for the wrong asset: the navy field measured 1.05:1 against
   the band, and the coin was doing all the work. The knockout removes the
   cause, so the coin is gone. */
.fbrand .brand .wordmark b{color:var(--on-forest)}
.fbrand .brand .wordmark span{color:var(--on-forest-soft)}
.fsocial{display:flex;gap:12px;margin-top:var(--s5)}
.fsocial a{width:42px;height:42px;border:1px solid oklch(0.36 0.036 265);
  display:grid;place-items:center}
.fsocial a:hover{border-color:var(--gold);color:var(--gold)}
.fsocial svg{width:17px;height:17px;fill:currentColor}
.fpolicy{max-width:var(--maxw);margin:var(--s8) auto 0;padding-top:var(--s5);
  border-top:1px solid oklch(0.32 0.036 265);font-size:15px;line-height:1.6}
.fpolicy h2{color:var(--gold);border:0;padding:0;margin-bottom:12px}
.fbase{max-width:var(--maxw);margin:var(--s6) auto 0;padding-top:var(--s5);
  border-top:1px solid oklch(0.32 0.036 265);display:flex;justify-content:space-between;
  gap:var(--s5);flex-wrap:wrap;font-family:var(--sans);font-size:12.5px;
  letter-spacing:.08em;text-transform:uppercase}

/* ---------------- reveal ---------------- */
.reveal{opacity:0;transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1)}
.reveal.in{opacity:1;transform:none}
.no-js .reveal{opacity:1;transform:none;transition:none}

/* ---------------- ratings leaderboard ----------------
   Styled on lichess.org/player, at the academy's request, and measured off
   the live page rather than guessed: their dark ground is rgb(22,21,18),
   body text rgb(186,186,186), the accent blue rgb(54,146,231), rows compact
   with the name left and the rating right, zebra striping, no borders.
   Reproduced here in OKLCH (never literal #000/#fff), with our own type
   stack, and rows kept ≥44px because this site's audience taps, not clicks.
   Built by js/site.js from the ratings feed. */
/* Rebuilt Sept 2026 to the academy's own mock-up: a WHITE board (it was dark
   navy), a rank column where the top three glow gold, silver and bronze, a
   portrait beside each player, and the branch set under the name rather than
   in its own column. Four columns: Rank, Player & Branch, YCA Unique Code,
   Live Rating.

   The three medal colours are the only place on this site where a value is
   not a palette token: they are what gold, silver and bronze are. Each is
   paired with a text colour measured against its own tint, so the rank digit
   stays legible rather than glowing illegibly. */
.lboard{background:var(--paper);border:1px solid var(--line);border-radius:8px;
  padding:6px 0 4px;box-shadow:0 1px 3px oklch(0.15 0.018 265 / .08)}
.lb-table{width:100%;border-collapse:collapse}
.lb-table caption.lb-title{font-family:var(--sans);font-size:19px;font-weight:600;
  letter-spacing:.02em;text-align:left;color:var(--ink);padding:16px 20px 10px}
.lb-table th{font-family:var(--sans);font-size:11px;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;text-align:left;
  color:var(--ink-soft);padding:8px 20px;border-bottom:1px solid var(--line-2)}
.lb-table td{padding:10px 20px;font-family:var(--sans);font-size:15.5px;
  color:var(--ink);height:56px;vertical-align:middle;
  border-bottom:1px solid var(--line)}
.lb-table tbody tr:last-child td{border-bottom:0}
.lb-table tbody tr:hover td{background:var(--paper-2)}
.lb-table th:last-child,.lb-table td:last-child{text-align:right}

/* Rank. A tinted disc, so first place reads as first place at a glance. */
.lb-rank{width:1%;white-space:nowrap}
.lb-rank .n{display:inline-flex;align-items:center;justify-content:center;
  min-width:30px;height:30px;padding:0 7px;border-radius:999px;
  font-weight:700;font-size:14.5px;letter-spacing:.01em;
  background:var(--paper-3);color:var(--ink-soft)}
.lb-rank-1 .lb-rank .n{background:oklch(0.845 0.145 88);color:oklch(0.30 0.075 75);
  box-shadow:0 0 0 1px oklch(0.70 0.13 82),0 0 14px oklch(0.845 0.145 88 / .55)}
.lb-rank-2 .lb-rank .n{background:oklch(0.855 0.009 250);color:oklch(0.34 0.012 250);
  box-shadow:0 0 0 1px oklch(0.73 0.010 250),0 0 12px oklch(0.855 0.009 250 / .5)}
.lb-rank-3 .lb-rank .n{background:oklch(0.760 0.085 55);color:oklch(0.28 0.060 45);
  box-shadow:0 0 0 1px oklch(0.63 0.090 50),0 0 12px oklch(0.760 0.085 55 / .5)}

/* Player cell: portrait, then name over branch. */
.lb-player{display:flex;align-items:center;gap:12px}
.lb-avatar{width:40px;height:40px;flex:none;border-radius:999px;overflow:hidden;
  background:var(--paper-3);border:1px solid var(--line);
  display:grid;place-items:center}
.lb-avatar img{width:100%;height:100%;object-fit:cover}
/* No photograph supplied: a pawn, at the academy's instruction, rather than
   initials or an empty disc. */
.lb-avatar svg{width:22px;height:22px;fill:var(--ink-soft);opacity:.55}
.lb-who{display:flex;flex-direction:column;gap:2px;min-width:0}
a.lb-name{color:var(--ink);font-weight:700;line-height:1.2}
a.lb-name:hover{color:var(--gold-deep)}
.lb-branch-sub{font-size:12px;letter-spacing:.04em;color:var(--ink-soft);line-height:1.2}
.lb-id{font-size:12.5px;letter-spacing:.04em;color:var(--ink-soft)}
.lb-rating{font-size:17px;font-weight:700;color:var(--ink)}
.lb-unrated{font-size:12.5px;font-weight:400;letter-spacing:.06em;
  color:var(--ink-soft)}
.lb-id-sub{display:none}

/* ---------------- the event calendar ----------------
   The "YCA Year Calendar": a month grid with the selected day's class routine
   beside it (branch, time, each section and its coach). The academy asked for
   its officials-site calendar "without class synopsis" — that drops the
   after-class reports line, not the routine. A date carrying an event glows
   gold and, where a PDF exists, downloads it on click. Drawn by js/site.js
   from data/routine.js and data/events.js.

   Three date states, and they stack:
     today    — 2px ink ring and a dot under the number
     selected — navy fill, light number
     event    — gold fill with a halo, dark gold ink
   Selected + event turns the fill navy and the number gold while keeping the
   gold halo, so both facts stay visible and the number stays legible (gold
   on navy is far above 4.5:1). Today keeps its dot in every combination. */
[data-calendar]{min-width:0}
.cal{border:1px solid var(--line);border-radius:8px;background:var(--paper);
  padding:var(--s4) var(--s4) var(--s5)}
.cal-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s4);
  padding:4px 4px var(--s4)}
.cal-month{font-family:var(--disp);font-weight:700;text-transform:uppercase;
  font-size:clamp(20px,2.4vw,26px);letter-spacing:.02em;margin:0}
.cal-head button{width:40px;height:40px;flex:none;border:1px solid var(--line-2);
  border-radius:999px;background:transparent;color:var(--ink);cursor:pointer;
  display:grid;place-items:center;transition:border-color .15s,background .15s}
.cal-head button:hover{border-color:var(--gold);background:var(--paper-2)}
.cal-head button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;
  stroke-linecap:round;stroke-linejoin:round}
.cal-grid{width:100%;border-collapse:collapse;table-layout:fixed}
.cal-grid th{font-family:var(--sans);font-size:11px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--ink-soft);padding:6px 0 10px}
.cal-grid th abbr{text-decoration:none}
.cal-grid td{text-align:center;padding:3px}
/* Every date is a <button>, or an <a download> when its event has a PDF;
   both are reset to the same tile. */
.cal-day{display:grid;place-items:center;position:relative;width:100%;aspect-ratio:1;max-height:48px;
  margin:0;padding:0;border:0;border-radius:8px;background:transparent;
  font-family:var(--sans);font-size:15px;line-height:1;color:var(--ink-soft);
  text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:background .15s,box-shadow .15s,color .15s}
.cal-day:hover{background:var(--paper-3);color:var(--ink)}
/* Outline clear of the event halo and the selected ring. */
.cal-day:focus-visible{outline-offset:3px}
/* Today: a ring plus a dot, so it survives being filled navy or gold. */
.cal-today .cal-day{box-shadow:inset 0 0 0 2px var(--ink);font-weight:700;color:var(--ink)}
.cal-today .cal-day::after{content:'';position:absolute;left:50%;bottom:5px;width:4px;height:4px;
  margin-left:-2px;border-radius:999px;background:currentColor}
/* The event state. Gold field, dark ink on it — the glow is the halo, not the
   text colour, so the date stays readable rather than shimmering. */
.cal-day.cal-event{background:oklch(0.845 0.145 88);
  color:oklch(0.30 0.075 75);font-weight:700;
  box-shadow:0 0 0 1px oklch(0.70 0.13 82),0 0 16px oklch(0.845 0.145 88 / .6)}
.cal-day.cal-event:hover{
  background:oklch(0.885 0.150 88);box-shadow:0 0 0 1px oklch(0.62 0.13 82),0 0 22px oklch(0.845 0.145 88 / .85)}
.cal-today .cal-day.cal-event{box-shadow:inset 0 0 0 2px oklch(0.30 0.075 75),
  0 0 0 1px oklch(0.70 0.13 82),0 0 16px oklch(0.845 0.145 88 / .6)}
/* Selected: navy, as on the officials site. Listed after today and event so
   it wins at equal specificity. */
.cal-day.is-selected,.cal-day.is-selected:hover{background:var(--forest);color:var(--on-forest);
  font-weight:700;box-shadow:none}
.cal-today .cal-day.is-selected{box-shadow:inset 0 0 0 2px var(--forest),inset 0 0 0 4px var(--on-forest)}
.cal-day.cal-event.is-selected,.cal-day.cal-event.is-selected:hover{background:var(--forest);
  color:oklch(0.845 0.145 88);
  box-shadow:0 0 0 2px oklch(0.845 0.145 88),0 0 18px oklch(0.845 0.145 88 / .75)}
.cal-today .cal-day.cal-event.is-selected{box-shadow:inset 0 0 0 2px var(--forest),
  inset 0 0 0 4px oklch(0.845 0.145 88),0 0 0 2px oklch(0.845 0.145 88),0 0 18px oklch(0.845 0.145 88 / .75)}

.cal-legend{list-style:none;margin:var(--s4) 0 0;padding:0;display:flex;flex-wrap:wrap;
  gap:6px var(--s5);font-family:var(--sans);font-size:13.5px;font-weight:600;color:var(--ink-soft)}
.cal-legend li{display:inline-flex;align-items:center;gap:8px}
.cal-key{width:14px;height:14px;flex:none;border-radius:4px}
.cal-key-sel{background:var(--forest)}
.cal-key-today{box-shadow:inset 0 0 0 2px var(--ink)}
.cal-key-event{background:oklch(0.845 0.145 88);
  box-shadow:0 0 0 1px oklch(0.70 0.13 82),0 0 10px oklch(0.845 0.145 88 / .6)}
.cal-note{margin-top:var(--s3);font-size:14.5px;line-height:1.55;color:var(--ink-soft)}

/* The selected day's routine. Empty until js/site.js fills it, and hidden
   while empty so a no-JS visitor never sees a blank box. */
.cal-panel{border:1px solid var(--line);border-radius:8px;background:var(--paper);
  padding:var(--s5);min-width:0;overflow-wrap:anywhere}
.cal-panel:empty{display:none}
.cal-panel-date{font-size:clamp(22px,2.6vw,30px);line-height:1.05;margin:0 0 var(--s4);
  padding-bottom:var(--s3);border-bottom:2px solid var(--line-2)}
.cal-events{list-style:none;margin:0 0 var(--s5);padding:0;display:grid;gap:var(--s3)}
.cal-ev{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s3);
  padding:var(--s3) var(--s4);border-radius:8px;
  background:oklch(0.845 0.145 88);color:oklch(0.30 0.075 75);
  box-shadow:0 0 0 1px oklch(0.70 0.13 82),0 0 14px oklch(0.845 0.145 88 / .45)}
.cal-ev-tag{font-family:var(--sans);font-size:11.5px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase}
.cal-ev-title{font-family:var(--sans);font-size:16.5px;font-weight:700;line-height:1.3;flex:1 1 12ch}
.cal-ev-pdf{display:inline-flex;align-items:center;min-height:40px;padding:0 var(--s4);
  border-radius:6px;background:var(--forest);color:var(--on-forest);font-family:var(--sans);
  font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  text-decoration:none;white-space:nowrap}
.cal-ev-pdf:hover{background:var(--ink)}
.cal-routine{list-style:none;margin:0;padding:0}
.cal-branch{padding:var(--s4) 0;border-top:1px solid var(--line)}
.cal-branch:first-child{border-top:0;padding-top:0}
.cal-branch:last-child{padding-bottom:0}
.cal-branch-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;
  gap:2px var(--s3)}
.cal-branch-name{font-size:21px;line-height:1.1;letter-spacing:.01em;margin:0}
.cal-branch-name a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-2);
  text-decoration-thickness:1px;text-underline-offset:3px}
.cal-branch-name a:hover{color:var(--gold-deep);text-decoration-color:currentColor}
.cal-branch-time{font-family:var(--sans);font-size:14px;font-weight:600;color:var(--ink-soft);
  white-space:nowrap}
.cal-sections{list-style:none;margin:var(--s2) 0 0;padding:0;font-family:var(--sans);
  font-size:15.5px;line-height:1.45;color:var(--ink-soft)}
.cal-sections li{position:relative;padding:3px 0 3px 16px}
.cal-sections li::before{content:'';position:absolute;left:0;top:.8em;width:6px;height:6px;
  border-radius:999px;background:var(--gold-deep)}
.cal-sec{font-weight:600;color:var(--ink)}
.cal-none{font-size:15.5px;color:var(--ink-soft)}
.cal-none a{color:var(--gold-deep);text-decoration:underline;text-underline-offset:3px}

@media(max-width:520px){
  .cal{padding:var(--s3) var(--s3) var(--s4)}
  .cal-grid td{padding:2px}
  .cal-day{font-size:13.5px;border-radius:6px}
  .cal-today .cal-day::after{bottom:4px}
  .cal-head button{width:36px;height:36px}
  .cal-panel{padding:var(--s4)}
  .cal-branch-name{font-size:19px}
}

/* The three standing rules under the board — monthly rewards, the physical
   board rule, how to join. Three equal columns that become one on a phone. */
.lb-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s6);
  margin-top:var(--s7);padding-top:var(--s6);border-top:1px solid var(--line)}
.lb-rules h3{font-family:var(--disp);font-weight:700;text-transform:uppercase;
  font-size:21px;letter-spacing:.02em;margin-bottom:8px}
.lb-rules p{font-size:15.5px;line-height:1.55;color:var(--ink-soft)}
.lb-rules a{color:var(--gold-deep);text-decoration:underline;text-underline-offset:3px}
@media(max-width:860px){.lb-rules{grid-template-columns:1fr;gap:var(--s5)}}

/* Tablets and phones: the code folds under the name. The branch is already
   there, so nothing is lost and nothing scrolls sideways. */
@media(max-width:760px){
  .lb-id-cell{display:none}
  .lb-id-sub{display:block;font-size:11px;letter-spacing:.05em;
    color:var(--ink-soft)}
}

@media(max-width:520px){
  .lb-table th,.lb-table td{padding-left:14px;padding-right:14px}
  .lb-table td{font-size:15px}
  .lb-player{gap:10px}
  .lb-avatar{width:34px;height:34px}
  .lb-rank .n{min-width:26px;height:26px;font-size:13px}
  a.lb-name{display:inline-block;min-height:22px}
  .lb-table caption.lb-title{font-size:17px;padding:14px 14px 8px}
  .lb-rating{font-size:16px}
}

/* ============================================================
   MOBILE. Around nine in ten visitors are on a phone.
   ============================================================ */
.callbar{display:none}

/* The desktop menu, on one line at every width.
   Seven links plus the Join button need about 1425px. Narrower than that, the
   bar used to wrap two of its links and push the Join button past the
   right-hand edge, so from 861px to about 1240px the whole page scrolled
   sideways (tablets in landscape, small laptops). It now tightens first, then
   shortens "YCA Global Leaderboard" to "Leaderboard", then folds into the
   Menu button. The Join button stays at every step. Widths measured in the
   browser: 1425 roomy, 1280 compact, 1195 compact with the short label. */
@media(max-width:1479px){
  .nav-links{gap:20px;font-size:13px;letter-spacing:.07em}
}
@media(min-width:1240px) and (max-width:1339px){
  .nav-links .nav-pre{display:none}
}
/* Between the phone layout (860px and down, further below) and the desktop
   bar: the Menu button, with Join beside it. Opened, the links drop to a row
   of their own under the bar and the button stays where it was. The folded
   menu has room for the full "YCA Global Leaderboard". */
@media(min-width:861px) and (max-width:1239px){
  .nav-links{display:none}
  .nav-toggle{display:inline-flex;align-items:center;flex:none}
  .nav-main > .btn{margin-left:auto}
  .nav.menu-open .nav-main{flex-wrap:wrap}
  .nav.menu-open .nav-links{display:flex;flex-direction:column;align-items:stretch;gap:0;
    order:3;width:100%;padding:var(--s3) 0 var(--s4);font-size:16px;letter-spacing:.09em}
  .nav.menu-open .nav-links a{padding:15px 0;min-height:52px;display:flex;align-items:center;
    border-bottom:1px solid var(--line)}
}

@media(max-width:1080px){
  .branch-grid,.branch.flip .branch-grid{grid-template-columns:1fr;gap:var(--s6)}
  .branch.flip .branch-media{order:0}
  .duo,.subscribe{grid-template-columns:1fr}
  .statband{grid-template-columns:repeat(2,1fr);gap:var(--s7)}
  .weekgrid{grid-template-columns:repeat(4,1fr)}
  .fgrid{grid-template-columns:1fr 1fr;gap:var(--s6)}
}

@media(max-width:860px){
  :root{--nav-h:72px}
  body{font-size:17.5px}
  .lede{font-size:18.5px}
  .story,.body{font-size:17px}

  .nav{position:sticky}
  .nav-util{justify-content:space-between;font-size:11.5px;gap:var(--s3);padding:0 var(--pad-x)}
  .nav-util .hide-sm{display:none}
  .nav-util a{min-height:42px;display:inline-flex;align-items:center}
  /* Phones get the short ribbon: "is there class today?" is the number-one
     visitor question, so it stays even where space is tight. */
  .nav-util .live .ut-full{display:none}
  .nav-util .live .ut-short{display:inline}
  .brand{min-height:46px;align-items:center}
  /* a phone number in a definition list or a facts card is a primary action,
     so it gets a real target. Inline links inside a sentence are exempt: they
     cannot be 44px tall without wrecking the line. */
  .detail dd a[href^="tel:"],
  .facts a[href^="tel:"],
  /* Every link in a data table, not just the phone numbers. A link in a table
     cell is a standalone target, so WCAG 2.2's exception for inline links in
     running text does not cover it, and the Directions links were landing at
     23px. */
  .tbl td a{min-height:42px;display:inline-flex;align-items:center}

  /* The wordmark, the Join button and the Menu toggle together are wider than a
     375px viewport, which pushed the whole document sideways. The Join button
     moves inside the open menu; calling is already a thumb away on the callbar. */
  .nav-main{padding:12px var(--pad-x);gap:var(--s3)}
  .brand{min-width:0}
  .brand .mark{width:33px;height:33px}
  .brand .wordmark{min-width:0}
  .brand .wordmark b{font-size:20px}
  .brand .wordmark span{font-size:9.5px;letter-spacing:.15em}
  .nav-main > .btn{display:none}
  .nav.menu-open .nav-main > .btn{
    display:inline-flex;order:3;width:100%;margin-top:var(--s3);
  }
  .nav-links{display:none}
  .nav-toggle{display:inline-flex;align-items:center;flex:none}
  .nav.menu-open .nav-links{display:flex;flex-direction:column;align-items:stretch;
    gap:0;width:100%;padding:0 var(--pad-x) var(--s5);font-size:16px}
  .nav.menu-open .nav-links a{padding:15px 0;min-height:52px;display:flex;align-items:center;
    border-bottom:1px solid var(--line)}
  .nav.menu-open .nav-main{flex-wrap:wrap}

  h1{font-size:clamp(34px,10vw,52px)}
  h2{font-size:clamp(26px,7.4vw,38px)}
  h3{font-size:clamp(20px,5.4vw,25px)}

  .hero{min-height:auto}
  .hero-copy{padding:var(--s8) var(--pad-x) var(--s7)}

  .weekgrid{grid-template-columns:1fr;border:0}
  .day{min-height:0;border:1px solid var(--line);margin-bottom:-1px}
  .day:not(.has-slot) .none{opacity:.55}
  .tier{grid-template-columns:52px 1fr;row-gap:8px}
  .tier .d,.tier .s{grid-column:2;text-align:left}
  .step{grid-template-columns:56px 1fr;row-gap:10px}
  .step .body{grid-column:2}
  .statband{grid-template-columns:1fr;gap:var(--s6)}
  .form{grid-template-columns:1fr}
  .detail .row2{grid-template-columns:1fr;gap:4px;padding:13px 0}
  .rail{grid-auto-columns:minmax(250px,86vw)}
  .coaches{grid-auto-columns:minmax(150px,46vw);gap:var(--s5)}
  .coach .disc{width:126px;height:126px}
  .fgrid{grid-template-columns:1fr}

  .field input,.field select,.field textarea{font-size:16px}

  /* tap-to-call bar: for this academy the conversion is a phone call */
  .callbar{
    position:fixed;left:0;right:0;bottom:0;z-index:70;display:grid;
    grid-template-columns:1fr 1fr;gap:1px;background:oklch(0.36 0.036 265);
    padding-bottom:env(safe-area-inset-bottom,0);
  }
  .callbar a{display:flex;align-items:center;justify-content:center;gap:8px;
    min-height:54px;background:var(--forest);color:var(--on-forest);
    font-family:var(--sans);font-size:14px;font-weight:700;letter-spacing:.06em}
  .callbar a.primary{background:var(--gold-deep);color:var(--paper)}
  .callbar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
  body{padding-bottom:55px}

  dialog.apply{max-height:calc(100dvh - 24px);margin:12px auto;
    display:flex;flex-direction:column}
  dialog.apply form{overflow-y:auto}
}

@media(max-width:420px){
  h1{font-size:clamp(30px,9.4vw,40px)}
  .offer{padding:var(--s6) var(--s5)}
  .offer .price{font-size:46px}
  .coaches{grid-auto-columns:minmax(136px,52vw)}
  .coach .disc{width:112px;height:112px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important;transition-duration:.001ms !important}
  .reveal{opacity:1 !important;transform:none !important}
}

@media(prefers-reduced-data:reduce){
  .hero .media video{display:none}
}

@media print{
  .nav,.callbar,footer::before{display:none}
  body{background:#fff;color:#111;font-size:12pt}
}
