/* Dubai Exiles Rugby & Netball: core.css
   Tokens, base type, layout, components, utilities (spec/SPEC.md §5).
   Mobile-first. Breakpoints (min-width): 600 sm, 880 md, 1080 lg, 1280 xl (the desktop menu: 1100).
   Groups use tokens only and never redefine :root or base element styles. */

/* ------------------------------------------------------------------ fonts */
@font-face{font-family:"Barlow";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/Barlow-400.woff2) format("woff2")}
@font-face{font-family:"Barlow";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/Barlow-500.woff2) format("woff2")}
/* No Barlow 600 or Barlow Condensed 600 face: weight 600 renders with the 700 file, which keeps every
   page to six font files at most (SPEC §6.4): Barlow 400/500/700 + Condensed 700/800/900. */
@font-face{font-family:"Barlow";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/Barlow-700.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/BarlowCondensed-700.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/BarlowCondensed-800.woff2) format("woff2")}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:900;font-display:swap;src:url(../fonts/BarlowCondensed-900.woff2) format("woff2")}

/* ----------------------------------------------------------------- tokens */
:root{
  /* brand */
  --red:#D11A2A; --red-dk:#A30F1C; --red-bright:#EE1C25;
  --ink:#121212; --ink-2:#1C1C1E; --ink-3:#242021; --ink-4:#393637; --footer:#0C0C0D;
  --bone:#F5F2EC; --sand:#E7E3DA; --sand-2:#DDD6C8;
  --steel:#8A8A90; --steel-lt:#C9C9CF; --gold:#D8B45A; --white:#FFFFFF;
  --line:rgba(255,255,255,.10); --line-strong:rgba(255,255,255,.18);
  --panel:#161616;
  --error-text:#FF8A8A;
  /* signature gradients. Deep red only ever appears inside a gradient (brand rule). */
  --grad-hero:linear-gradient(110deg,rgba(18,18,18,.97) 0%,rgba(18,18,18,.78) 42%,rgba(163,15,28,.55) 100%);
  --grad-phero:linear-gradient(115deg,rgba(18,18,18,.97) 0%,rgba(18,18,18,.85) 45%,rgba(163,15,28,.55) 100%);
  --grad-band:linear-gradient(rgba(18,18,18,.86),rgba(163,15,28,.7));
  --grad-card:linear-gradient(180deg,transparent 30%,rgba(12,12,12,.92) 100%);
  --grad-red:linear-gradient(110deg,var(--red) 0%,var(--red) 35%,var(--red-dk) 100%);
  /* type */
  --ff-disp:"Barlow Condensed",system-ui,sans-serif;
  --ff-body:"Barlow",system-ui,sans-serif;
  /* spacing: 8px base, 4px half-steps for tight UI */
  --s0:4px; --s1:8px; --s2:12px; --s3:16px; --s4:24px; --s5:32px; --s6:48px; --s7:64px; --s8:96px;
  --maxw:1240px; --gutter:16px;
  --section-y:48px;
  --chamfer:10px;
  /* header: --hdr-h is its full height; --header-h is the height it occupies once stuck to the top
     (every sticky bar and scroll offset reads --header-h). Where the header condenses on scroll
     (see "header condenses"), the top --hdr-cut scrolls away and --header-h is the shorter bar. */
  --hdr-h:60px; --hdr-cut:8px; --header-h:60px; --topbar-h:0px;
  --tap:44px;
  /* motion system (see the style guide, Motion). One family of curves and durations; all of it is
     switched off under prefers-reduced-motion, and nothing is hidden without JavaScript.
     fast: press and colour · med: hover, menus · slow: drawer, panels · reveal: scroll entrances ·
     page: page-to-page view transition · count: stats counting up */
  --ease:cubic-bezier(.2,.7,.2,1);         /* standard ease-out (hover, press, menus) */
  --ease-out:cubic-bezier(.16,1,.3,1);     /* entrances: fast start, long soft landing */
  --ease-in:cubic-bezier(.55,0,.75,.2);    /* exits: leave quickly */
  --ease-in-out:cubic-bezier(.65,0,.35,1); /* moves between two resting places */
  --t-fast:.15s; --t-med:.25s; --t-slow:.4s; --t-reveal:.8s; --t-page:.3s; --t-count:1.1s;
  --stagger:.07s; --rise:24px;
  /* attention pulses (live dots, "on now" pings) stop after this many beats, about 5 seconds, so
     nothing blinks for longer than WCAG 2.2.2 allows: animation-iteration-count:var(--pulse-count) */
  --pulse-count:3;
  /* elevation (ink shadows only) */
  --shadow-1:0 1px 2px rgba(0,0,0,.24),0 4px 12px rgba(0,0,0,.18);
  --shadow-2:0 10px 30px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.25);
  --shadow-3:0 24px 48px -12px rgba(0,0,0,.55),0 4px 12px rgba(0,0,0,.3);
  --edge:inset 0 1px 0 rgba(255,255,255,.06);   /* a hairline of light along the top of raised ink */
  /* semantic surface tokens: default = dark */
  --bg:var(--ink); --fg:var(--steel-lt); --fg-strong:var(--sand); --fg-muted:var(--steel);
  --heading:var(--white); --eyebrow:var(--bone); --accent-text:var(--gold);
  --accent-display:var(--red-bright); --card-bg:var(--ink-2); --zebra:var(--ink-2);
  --field-bg:var(--ink-2); --field-line:rgba(255,255,255,.36);
  --focus:var(--gold); --tint:rgba(255,255,255,.06);
  /* a person without a photo: on ink the initials tile stays quiet (a sand tile was the brightest thing
     on /coaches/, so the eye found the gaps first); on bone it keeps the sand tile */
  --mono-bg:var(--ink-3); --mono-fg:var(--steel-lt); --mono-crest:.08;
}
@media (min-width:600px){:root{--gutter:24px;--section-y:64px;--hdr-h:64px;--header-h:64px;--topbar-h:36px}}
@media (min-width:880px){:root{--section-y:96px;--topbar-h:40px}}
@media (min-width:1080px){:root{--hdr-h:72px;--hdr-cut:12px;--header-h:72px}}
/* wide screens: a little more measure from 1600px, so 1920px desktops are not two-thirds margin */
@media (min-width:1600px){:root{--maxw:1360px}}

/* surfaces. --focus is the focus ring: gold on ink, ink on bone and white, white on red (3:1 or more). */
.surface-ink2{--bg:var(--ink-2);--card-bg:var(--ink-3);--zebra:var(--ink-3);--field-bg:var(--ink);--mono-bg:var(--ink-2)}
.surface-bone,.surface-white{
  --bg:var(--bone); --fg:var(--ink); --fg-strong:var(--ink); --fg-muted:#5F5F66;
  --heading:var(--ink); --eyebrow:var(--red); --accent-text:var(--red); --accent-display:var(--red);
  --line:var(--sand-2); --line-strong:#C9C1B0; --card-bg:var(--white); --zebra:var(--sand);
  --field-bg:var(--white); --field-line:#8F8778; --error-text:var(--red);
  --focus:var(--ink); --tint:rgba(18,18,18,.05);
  --mono-bg:var(--sand); --mono-fg:var(--ink); --mono-crest:.12;
}
.surface-white{--bg:var(--white);--card-bg:var(--bone);--zebra:var(--bone)}
.surface-bone,.surface-white{--edge:0 1px 2px rgba(18,18,18,.06),0 12px 28px -18px rgba(18,18,18,.3);--shadow-3:0 22px 40px -18px rgba(18,18,18,.4),0 3px 10px rgba(18,18,18,.08)}
.surface-red{
  --bg:var(--red); --fg:var(--white); --fg-strong:var(--white); --fg-muted:var(--white);
  --heading:var(--white); --eyebrow:var(--white); --accent-text:var(--white); --accent-display:var(--ink);
  --line:rgba(255,255,255,.18); --line-strong:rgba(255,255,255,.4); --card-bg:rgba(0,0,0,.16); --zebra:rgba(0,0,0,.12);
  --focus:var(--white); --tint:rgba(0,0,0,.12);
}
.section,.surface-ink2,.surface-bone,.surface-white,.surface-red{background:var(--bg);color:var(--fg)}

/* ------------------------------------------------------------------- base */
*,*::before,*::after{box-sizing:border-box}
html{
  font-family:var(--ff-body); font-size:100%; font-weight:400; line-height:1.65;
  -webkit-text-size-adjust:100%; text-size-adjust:100%;
  background:var(--ink); color:var(--fg); scroll-padding-top:calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;font-size:1.0625rem;background:var(--ink);color:var(--fg);overflow-x:hidden;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img,svg,video,iframe{max-width:100%}
img{height:auto;display:block;object-position:var(--pos,50% 50%)}
svg{display:inline-block;flex-shrink:0}
a{color:inherit;text-underline-offset:.18em;text-decoration-thickness:1px}
p,ul,ol,dl,figure,blockquote{margin:0}
:where(ul[role=list],ol[role=list]){list-style:none;padding:0}
h1,h2,h3,h4,h5,h6{margin:0;font-family:var(--ff-disp);font-weight:800;line-height:1;color:var(--heading);text-transform:uppercase;letter-spacing:0;text-wrap:balance}
p,li,dd,blockquote,figcaption{text-wrap:pretty}
strong,b{font-weight:700;color:var(--fg-strong)}
small{font-size:.875rem}
hr{border:0;border-top:1px solid var(--line);margin:var(--s5) 0}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a,button,summary,label,[role=tab]{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
address{font-style:normal}
::selection{background:var(--red);color:var(--white)}
[hidden]{display:none !important}
/* One focus ring everywhere: 3px, in the surface's --focus colour (gold on ink, ink on bone, white on red) */
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
:focus:not(:focus-visible){outline:none}
main:focus{outline:none}
.sprite{position:absolute;width:0;height:0;overflow:hidden}

/* ------------------------------------------------------------- typography */
.t-display,.t-h1,.t-h2,.t-h3,.t-h4{font-family:var(--ff-disp);color:var(--heading);text-transform:uppercase}
.t-display{font-weight:900;font-size:clamp(3rem,8.5vw,7.25rem);line-height:.92;letter-spacing:-.015em}
.t-h1{font-weight:900;font-size:clamp(2.6rem,6.5vw,5.25rem);line-height:.95;letter-spacing:-.015em}
.t-h2{font-weight:800;font-size:clamp(2.1rem,4.6vw,3.75rem);line-height:.95;letter-spacing:-.01em}
.t-h3{font-weight:800;font-size:clamp(1.35rem,2.2vw,1.9rem);line-height:1;letter-spacing:0}
.t-h4{font-weight:700;font-size:1.15rem;line-height:1.1;letter-spacing:.04em}
.t-title{font-family:var(--ff-disp);font-weight:800;line-height:1.05;text-transform:none;color:var(--heading);letter-spacing:0}
.accent{display:block;color:var(--accent-display)}
.eyebrow{display:flex;align-items:center;gap:12px;font-family:var(--ff-disp);font-weight:700;font-size:.875rem;line-height:1;letter-spacing:.2em;text-transform:uppercase;color:var(--eyebrow)}
.eyebrow::before{content:"";flex:0 0 28px;height:2px;background:var(--red)}
.surface-red .eyebrow::before{background:var(--white)}
.t-meta{font-family:var(--ff-disp);font-weight:600;font-size:.85rem;line-height:1.2;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-muted)}
.lead{font-size:clamp(1.125rem,1.6vw,1.3rem);line-height:1.55;color:var(--fg-strong);max-width:62ch}
.t-small{font-size:.875rem;font-weight:500;line-height:1.5}
.muted{color:var(--fg-muted)}
.mt-1{margin-top:var(--s1)}.mt-2{margin-top:var(--s2)}.mt-3{margin-top:var(--s3)}.mt-4{margin-top:var(--s4)}.mt-5{margin-top:var(--s5)}.mt-6{margin-top:var(--s6)}
.stat-n{font-family:var(--ff-disp);font-weight:900;font-size:clamp(2.6rem,5vw,3.6rem);line-height:1;color:var(--heading)}

.prose{font-size:1.125rem;line-height:1.7;max-width:68ch;color:var(--fg)}
.prose>*+*{margin-top:1.1em}
.prose h2,.prose h3,.prose h4{text-transform:none;line-height:1.1;margin-top:1.6em}
.prose h2{font-size:clamp(1.6rem,3vw,2.1rem)}
.prose h3{font-size:clamp(1.3rem,2.4vw,1.6rem)}
.prose h4{font-size:1.2rem;font-weight:700}
.prose a{color:var(--heading);text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px}
.prose a:hover{color:var(--accent-text)}
.prose ul,.prose ol{padding-left:1.3em}
.prose li+li{margin-top:.35em}
.prose li::marker{color:var(--red)}
.prose blockquote{border-left:4px solid var(--red);padding:.2em 0 .2em 1em;color:var(--fg-strong);font-size:1.2rem}
.prose img{max-width:100%;height:auto}
.prose figure img{width:100%}
.prose figcaption{font-size:.9rem;color:var(--fg-muted);margin-top:.5em}
.prose table{width:100%;border-collapse:collapse;font-size:1rem}
.prose th,.prose td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}

/* ----------------------------------------------------------------- layout */
.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
/* .wrap-narrow keeps the reading measure but shares .wrap's left edge, so section heads line up down
   the page instead of zigzagging between the gutter and a centred column (desktop). */
.wrap-narrow{width:100%;max-width:820px;margin-inline:max(0px,(100% - var(--maxw)) / 2) auto;padding-inline:var(--gutter)}
.section{padding-block:var(--section-y)}
.section--tight{padding-block:calc(var(--section-y) / 2)}
.section+.section:not([class*=surface-]){border-top:1px solid var(--line)}
.stack>*+*{margin-top:var(--stack,var(--s4))}
.center{text-align:center}
.nowrap{white-space:nowrap}
.center .eyebrow,.section-head--center .eyebrow{justify-content:center}
.grid{display:grid;gap:var(--s4);grid-template-columns:minmax(0,1fr)}
@media (min-width:600px){.g-2,.g-3,.g-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1080px){.g-3{grid-template-columns:repeat(3,minmax(0,1fr))}.g-4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.grid.g-tight{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s2)}
@media (min-width:600px){.grid.g-tight{gap:var(--s4)}}
@media (min-width:880px){.grid.g-tight{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1080px){.grid.g-tight{grid-template-columns:repeat(4,minmax(0,1fr))}}
.split{display:grid;gap:var(--s5);grid-template-columns:minmax(0,1fr);align-items:center}
@media (min-width:880px){.split{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:var(--s7)}.split--rev>:first-child{order:2}}
/* Main column plus an aside (a facts panel, a next-session box, related links). One column below
   1100px, the aside after the main column (reading order = source order). From 1100px the aside is a
   340px column beside it (--aside-w), and on screens at least 720px tall it stays in view under the
   header as the main column scrolls (--aside-top adds room for a page's own sticky bar). Keep a sticky
   aside shorter than the screen, or add .with-aside--static. Use a <div> or <section aria-labelledby>
   for the aside: an <aside> inside <main> is a nested landmark (axe). */
.with-aside{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s5);align-items:start}
.with-aside>*{min-width:0}
@media (min-width:1100px){.with-aside{grid-template-columns:minmax(0,1fr) var(--aside-w,340px);gap:var(--s7)}}
@media (min-width:1100px) and (min-height:720px){.with-aside:not(.with-aside--static)>.with-aside__aside{position:sticky;top:calc(var(--header-h) + var(--aside-top,24px))}}
.with-aside__aside .facts__row{grid-template-columns:minmax(0,1fr);gap:4px}  /* a narrow column: label over value */
.btn-row{display:flex;flex-wrap:wrap;gap:var(--s3);align-items:center}
.visually-hidden{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.skip-link{position:absolute;left:var(--s3);top:-100px;z-index:300;background:var(--gold);color:var(--ink);font-family:var(--ff-disp);font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:12px 18px;text-decoration:none}
.skip-link:focus{top:var(--s3);outline:3px solid var(--white);outline-offset:0}
.stretched::after{content:"";position:absolute;inset:0;z-index:2}
.stretched:focus-visible{outline:none}
.stretched:focus-visible::after{outline:3px solid var(--focus);outline-offset:-3px}
.img-ratio{width:100%;aspect-ratio:var(--ratio);object-fit:cover}

/* ---------------------------------------------------------------- buttons */
.btn{
  --btn-bg:var(--red); --btn-fg:var(--white); --btn-bg-h:var(--grad-red); --btn-fg-h:var(--white); --btn-ring:transparent;
  display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:14px 28px;
  font-family:var(--ff-disp);font-weight:700;font-size:1rem;line-height:1;letter-spacing:.08em;text-transform:uppercase;
  text-decoration:none;text-align:center;border:0;cursor:pointer;
  position:relative;background:var(--btn-bg);color:var(--btn-fg);
  clip-path:polygon(var(--chamfer) 0,100% 0,100% calc(100% - var(--chamfer)),calc(100% - var(--chamfer)) 100%,0 100%,0 var(--chamfer));
  transition:transform var(--t-fast) var(--ease),background-color var(--t-med) ease,color var(--t-med) ease,filter var(--t-fast) ease;
  -webkit-user-select:none;user-select:none;
}
/* The outline of ghost and light buttons follows the chamfer, diagonals included: a 1.5px ring cut
   from the same polygon (outer edge, then the inner edge, even-odd fill). An inset box-shadow
   would be clipped open at the two cut corners. */
.btn::before{
  content:"";position:absolute;inset:0;pointer-events:none;background:var(--btn-ring);transition:background-color .2s ease;
  clip-path:polygon(evenodd,
    var(--chamfer) 0,100% 0,100% calc(100% - var(--chamfer)),calc(100% - var(--chamfer)) 100%,0 100%,0 var(--chamfer),var(--chamfer) 0,
    calc(var(--chamfer) + .62px) 1.5px,1.5px calc(var(--chamfer) + .62px),1.5px calc(100% - 1.5px),calc(100% - var(--chamfer) - .62px) calc(100% - 1.5px),calc(100% - 1.5px) calc(100% - var(--chamfer) - .62px),calc(100% - 1.5px) 1.5px,calc(var(--chamfer) + .62px) 1.5px);
}
.btn:focus-visible::before{clip-path:none;background:transparent}
.btn:focus-visible{clip-path:none;outline:3px solid var(--focus);outline-offset:3px}
.btn__icon{width:18px;height:18px;transition:transform var(--t-fast) var(--ease)}
/* hover only where there is a pointer that hovers, so a tap never leaves a phone button stuck "hovered" */
@media (hover:hover){
  .btn:hover{background:var(--btn-bg-h);color:var(--btn-fg-h);transform:translateY(-2px)}
  .btn:hover .icon-arrow-right{transform:translateX(3px)}
  .btn:hover .icon-arrow-left{transform:translateX(-3px)}
}
/* pressed: sinks back and darkens, on touch and mouse alike */
.btn:active,.btn.is-pressed{transform:translateY(0) scale(.98);filter:brightness(.88)}
.btn[disabled],.btn[aria-disabled=true]{opacity:.45;cursor:not-allowed;transform:none;filter:none;pointer-events:none}
/* primary: Exiles red, deepening into a deep-red gradient on hover (deep red is gradient-only) */
.btn--red{--btn-bg:var(--red);--btn-fg:var(--white);--btn-bg-h:var(--grad-red)}
.btn--ghost{--btn-bg:transparent;--btn-fg:var(--heading);--btn-ring:rgba(255,255,255,.45);--btn-bg-h:rgba(255,255,255,.06);--btn-fg-h:var(--white)}
.btn--ghost:active{--btn-bg:rgba(255,255,255,.1)}
@media (hover:hover){.btn--ghost:hover{--btn-ring:var(--red-bright)}}
.surface-bone .btn--ghost,.surface-white .btn--ghost{--btn-ring:rgba(18,18,18,.5);--btn-bg-h:rgba(18,18,18,.04);--btn-fg-h:var(--ink)}
.surface-bone .btn--ghost:active,.surface-white .btn--ghost:active{--btn-bg:rgba(18,18,18,.08)}
@media (hover:hover){.surface-bone .btn--ghost:hover,.surface-white .btn--ghost:hover{--btn-ring:var(--red)}}
.surface-red .btn--ghost{--btn-ring:rgba(255,255,255,.7);--btn-bg-h:rgba(0,0,0,.15);--btn-fg-h:var(--white)}
@media (hover:hover){.surface-red .btn--ghost:hover{--btn-ring:var(--white)}}
.btn--dark{--btn-bg:var(--ink);--btn-fg:var(--white);--btn-bg-h:var(--ink-3)}
.surface-red .btn--dark{--btn-bg-h:var(--ink-4)}
.btn--light{--btn-bg:transparent;--btn-fg:var(--ink);--btn-ring:var(--ink);--btn-bg-h:var(--ink);--btn-fg-h:var(--white)}
.section:not(.surface-bone):not(.surface-white) .btn--light,.map-facade .btn--light{--btn-bg:var(--bone);--btn-ring:var(--bone);--btn-bg-h:var(--white);--btn-fg-h:var(--ink)}
.btn--sm{min-height:44px;padding:10px 18px;font-size:.9rem;--chamfer:8px}
.btn--lg{min-height:56px;padding:18px 36px;font-size:1.05rem}
.btn--block{display:flex;width:100%}
@media (max-width:599px){.btn--lg{padding-inline:28px}}

.link-arrow{display:inline-flex;align-items:center;gap:8px;font-family:var(--ff-disp);font-weight:700;font-size:.95rem;line-height:1.2;letter-spacing:.1em;text-transform:uppercase;color:var(--heading);text-decoration:none;min-height:24px;text-underline-offset:.3em}
a.link-arrow{min-height:44px;padding-block:4px}  /* touch target (SPEC §6.3) */
.link-arrow svg{color:var(--accent-display);transition:transform var(--t-fast) var(--ease)}
.link-arrow:focus-visible{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px}
@media (hover:hover){
  .link-arrow:hover{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px}
  .link-arrow:hover svg{transform:translateX(3px)}
}
a.link-arrow:active{opacity:.75}
/* plain text links inside running copy */
.text-link,:where(.lead,.notice__body,.field__hint,.t-small) a:not([class]){color:var(--heading);text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.2em}
@media (hover:hover){.text-link:hover,:where(.lead,.notice__body,.field__hint,.t-small) a:not([class]):hover{color:var(--accent-text)}}

/* ----------------------------------------------------------------- topbar */
/* Phones: no strip (it cost 36px above every page). Phone, email, directions and socials are one tap
   away in the drawer, and in the footer. */
@media (max-width:599px){.topbar{display:none}}
.topbar{--focus:var(--white);background:var(--red);color:var(--white);font-family:var(--ff-body);font-weight:600;font-size:.82rem;line-height:1}
.topbar__inner{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);min-height:36px}
.topbar ul{display:flex;align-items:center;margin:0;padding:0;list-style:none}
.topbar__contact{gap:var(--s4);min-width:0}
.topbar__social{gap:2px}
.topbar a{display:inline-flex;align-items:center;gap:7px;color:var(--white);text-decoration:none;min-height:36px;white-space:nowrap}
.topbar__social a{justify-content:center;min-width:44px}
/* the strip is 36px on phones (SPEC §4.1); each link's hit area reaches 44px */
.topbar a{position:relative}
.topbar a::after{content:"";position:absolute;left:0;right:0;top:-4px;bottom:-4px;z-index:51}
.topbar a:hover span{text-decoration:underline}
.topbar a:focus-visible{outline-color:var(--white);outline-offset:-2px}
.topbar__wide{display:none !important}
.topbar .topbar__partner{display:none}
.topbar .hp-lockup{margin-left:auto;margin-right:var(--s2);gap:8px;color:var(--white)}
.topbar .hp-lockup__label{color:var(--white);opacity:.85;font-size:.68rem}
.topbar .hp-lockup__logo{padding:3px 6px}
.topbar .hp-lockup__logo img{height:18px}
.topbar .hp-lockup:hover .hp-lockup__logo{box-shadow:0 0 0 2px var(--ink)}
@media (min-width:600px){.topbar .topbar__partner{display:inline-flex}}
@media (min-width:1280px){.topbar .topbar__partner{display:none}}
@media (min-width:880px){.topbar__inner{min-height:40px}.topbar__wide{display:flex !important}.topbar a{min-height:40px}}

/* ---------------------------------------------------------- this weekend */
/* One row at every width, 44px on phones: the label, the title and its dates (or, on a tournament's
   days, the match-day line from core.js), then the action. A follower's strip (.is-mine, set before
   first paint by the inline script in partials/weekend.html) shows its own line in place of the
   dates, so nothing moves when core.js fills it in. Long lines end in an ellipsis; the link's
   accessible name keeps every word. */
.wkbar{background:var(--ink-3);border-bottom:1px solid var(--line);color:var(--steel-lt)}
.wkbar__inner{display:flex;align-items:stretch;gap:4px}
.wkbar__link{flex:1;min-width:0;display:flex;align-items:center;gap:12px;min-height:44px;padding:6px 0;color:var(--steel-lt);text-decoration:none;font-size:.92rem;line-height:1.35}
/* small text on ink: gold, never red (SPEC §5.1) */
.wkbar__k{flex:none;font-family:var(--ff-disp);font-weight:800;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.wkbar__colon{display:none}
.wkbar__t{flex:0 1 auto;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-family:var(--ff-disp);font-weight:800;font-size:1.05rem;letter-spacing:.02em;text-transform:uppercase;color:var(--white)}
.wkbar__when{margin-left:6px;font-weight:700;color:var(--gold)}
.wkbar__d{flex:1 1 0;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.wkbar__d:empty{display:none}
.wkbar.is-mine .wkbar__when{display:none}
.wkbar.is-mine .wkbar__d{color:var(--white);font-weight:600}
/* on now: a red dot before the line that dims and returns --pulse-count times (none with reduced
   motion; a ring would be clipped by the ellipsis) */
.wkbar.is-live .wkbar__when::before,.wkbar.is-live.is-mine .wkbar__d::before{content:"";display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:var(--red-bright);vertical-align:1px}
@media (prefers-reduced-motion:no-preference){.wkbar.is-live .wkbar__when::before,.wkbar.is-live.is-mine .wkbar__d::before{animation:wk-dim 1.6s ease-in-out;animation-iteration-count:var(--pulse-count,3)}}
@keyframes wk-dim{50%{opacity:.3}}
.wkbar__go{flex:none;margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-family:var(--ff-disp);font-weight:700;font-size:.85rem;letter-spacing:.1em;text-transform:uppercase;color:var(--white)}
.wkbar__link:hover .wkbar__t,.wkbar__link:focus-visible .wkbar__t{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px}
.wkbar__link:focus-visible{outline-offset:2px}
.wkbar__x{flex:0 0 44px;display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:none;border:0;color:var(--steel-lt);cursor:pointer;transition:color var(--t-fast) ease}
.wkbar__x:hover{color:var(--white)}
.wkbar__x:focus-visible{outline-offset:-3px}
.wkbar__go svg{color:var(--red-bright);transition:transform var(--t-fast) var(--ease)}
@media (hover:hover){.wkbar__link:hover .wkbar__go svg{transform:translateX(3px)}}
/* under 880px the label "This weekend" is read out, not shown */
@media (max-width:879px){.wkbar__k{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
/* phones: the title (ellipsis if long) over its dates or the match-day line in small gold capitals,
   with the arrow beside them. A follower's strip: title and "Your games" on the first line, their
   own line under both. Both are 44px. */
@media (max-width:599px){
  .wkbar__link{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t go";align-items:center;gap:1px 10px;padding:4px 0}
  .wkbar__t{grid-area:t;display:flex;flex-direction:column;font-size:.98rem;line-height:1.15}
  .wkbar__t>:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .wkbar__when{margin:1px 0 0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.74rem;line-height:1.25;letter-spacing:.06em}
  .wkbar__go{grid-area:go}
  .wkbar__d,.wkbar__go>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .wkbar.is-mine .wkbar__link{grid-template-areas:"t go" "d d"}
  .wkbar.is-mine .wkbar__go{gap:4px;font-size:.78rem;letter-spacing:.08em}
  .wkbar.is-mine .wkbar__go>span,.wkbar.is-mine .wkbar__d{position:static;width:auto;height:auto;clip-path:none}
  .wkbar.is-mine .wkbar__d{grid-area:d;display:block;min-height:1.25em;font-size:.82rem;line-height:1.25}
}
/* the smallest phones (320px): a follower's own line may take two lines rather than lose its end
   ("Next knockout 4:40pm · Awards 5:35pm", WCAG 1.4.10). The strip is always two lines tall there,
   so nothing moves when core.js writes the line in. */
@media (max-width:359px){.wkbar.is-mine .wkbar__d{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;min-height:2.5em}.wkbar__when{letter-spacing:.02em}}

/* ----------------------------------------------------------------- header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(18,18,18,.92);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);transition:box-shadow var(--t-med) ease,background-color var(--t-med) ease}
/* core.js adds .is-scrolled to <html> once the page has moved: the bar lifts off the content */
.is-scrolled .site-header{background:rgba(18,18,18,.97);box-shadow:0 6px 18px rgba(0,0,0,.35)}
/* Focus never scrolls the page to the header. Header controls sit inside html's scroll-padding-top
   (the header is what that padding is for, and calendar pages add their sticky bars to it), so Chrome
   scrolled up ~430px whenever focus landed on one: closing the menu, Escape in a submenu, Shift+Tab
   back into the header. Their scroll margin box now covers the whole screen, and a box that covers
   the visible area is never scrolled to, whatever the page's scroll-padding. */
.site-header :is(a,button){scroll-margin-block:100vh}
/* Header condenses on scroll, with no script and no layout shift: it sticks at top:-8px (-12px from
   1080px), so that strip scrolls away and the bar is 52, 56 or 60px tall once stuck. A scroll-linked
   animation keeps its contents centred in what is left and eases the crest and wordmark down to 90%
   over the first 160px. Only where scroll-driven animation exists and motion is welcome; elsewhere
   the header keeps its full height, as before. */
@supports (animation-timeline:scroll()){@media (prefers-reduced-motion:no-preference){
  /* plain lengths (--hdr-h minus --hdr-cut), so scripts can read them with parseInt (calendar.js does) */
  :root{--header-h:52px}
  @media (min-width:600px){:root{--header-h:56px}}
  @media (min-width:1080px){:root{--header-h:60px}}
  .site-header{top:calc(-1 * var(--hdr-cut))}
  .header__inner{animation:mo-hdr-centre linear both;animation-timeline:scroll(root block);animation-range:var(--topbar-h) calc(var(--topbar-h) + var(--hdr-cut))}
  /* 49px tall so the home link is still 44px once scaled to 90% */
  .header__inner>.header__brand{min-height:49px}
  .header__brand{transform-origin:0 50%;animation:mo-hdr-brand linear both;animation-timeline:scroll(root block);animation-range:var(--topbar-h) calc(var(--topbar-h) + 160px)}
}}
@keyframes mo-hdr-centre{to{transform:translateY(calc(var(--hdr-cut) / 2))}}
@keyframes mo-hdr-brand{to{transform:scale(.9)}}
.header__inner{display:flex;align-items:center;gap:var(--s2);height:var(--hdr-h)}
.brand{display:inline-flex;align-items:center;gap:10px;min-height:var(--tap);text-decoration:none;color:var(--white);min-width:0;flex-shrink:1}
.brand:focus-visible{outline-offset:4px}
.brand__crest{width:auto;height:42px;flex-shrink:0}
@media (min-width:600px){.brand__crest{height:44px}}
.brand__text{display:flex;flex-direction:column;gap:4px;min-width:0}
.brand__name{font-family:var(--ff-disp);font-weight:900;font-size:1.3rem;line-height:1;letter-spacing:.02em;text-transform:uppercase;color:var(--white);white-space:nowrap}
.brand__accent{color:var(--red-bright)}
.brand__sub{display:none;font-family:var(--ff-body);font-weight:600;font-size:.62rem;line-height:1;letter-spacing:.22em;text-transform:uppercase;color:var(--steel-lt);white-space:nowrap}
@media (min-width:400px){.brand__sub{display:block}}
@media (min-width:1080px){.brand__crest{height:52px}.brand__name{font-size:1.45rem}}
.brand--sm .brand__crest{height:40px}
.brand--footer .brand__crest{height:52px}

.hp-lockup{display:inline-flex;align-items:center;gap:10px;min-height:var(--tap);text-decoration:none;color:var(--steel)}
.hp-lockup__label{font-family:var(--ff-disp);font-weight:600;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--steel)}
.hp-lockup__logo{display:inline-flex;align-items:center;background:var(--tile-bg,#fff);padding:5px 8px}
.hp-lockup__logo img{height:24px;width:auto}
.hp-lockup:hover .hp-lockup__logo{box-shadow:0 0 0 2px var(--red)}
.header__partner{display:none}
.header__partner .hp-lockup__label{display:none}
@media (min-width:1280px){.header__partner{display:inline-flex;margin-left:var(--s1);padding-left:var(--s2);border-left:1px solid var(--line-strong)}}

/* Desktop menu from 1100px, where seven items, five 44px carets and the Join button fit (club rule: every
   control 44px); from 1280px the Aldar lockup joins them, and from 1100 to 1279px it stays in the red
   strip above and the labels are set tighter (below). Below 1100px the burger and drawer carry the menu,
   so iPad landscape and a 1366px laptop at 125% get the full menu (review 20th November 2026). Each item is
   [8px][LABEL] then either a 44px caret (its chevron 11px after the label, so the two read as one) or
   15px of padding: labels and their chevrons sit about 25px apart. */
.mainnav{display:none}
@media (min-width:1100px){.mainnav{display:block;margin-left:auto}}
.mainnav__list{display:flex;align-items:center;gap:0;margin:0}
.mainnav__item{position:relative;display:flex;align-items:center}
.mainnav__link{position:relative;display:flex;align-items:center;justify-content:center;min-width:var(--tap);height:var(--hdr-h);padding:0 15px 0 8px;font-family:var(--ff-disp);font-weight:700;font-size:.9rem;letter-spacing:.06em;text-transform:uppercase;color:var(--steel-lt);text-decoration:none;white-space:nowrap}
.has-panel .mainnav__link{padding-right:0}
.mainnav__link:hover,.mainnav__item.is-active>.mainnav__link,.mainnav__link[aria-current]{color:var(--white)}
.mainnav__link[aria-current]::after{content:"";position:absolute;left:8px;right:0;bottom:18px;height:2px;background:var(--red)}
.mainnav__item:not(.has-panel) .mainnav__link[aria-current]::after{right:15px}
.mainnav__link:focus-visible{outline-offset:-6px}
.mainnav__caret{display:inline-flex;align-items:center;justify-content:flex-start;width:var(--tap);height:var(--tap);padding:0 0 0 11px;margin:0;background:none;border:0;color:var(--steel)}
.mainnav__caret svg{transition:transform .2s ease}
.mainnav__caret:hover{color:var(--white)}
/* Panels fade in (visibility keeps closed links out of the tab order, as display:none did) */
.mainnav__panel{position:absolute;top:calc(100% - 12px);left:-8px;z-index:60;min-width:240px;margin:0;padding:8px 0;list-style:none;background:var(--panel);border:1px solid rgba(255,255,255,.12);border-top:2px solid var(--red);box-shadow:var(--shadow-2);visibility:hidden;opacity:0;transform:translateY(-6px);transition:opacity var(--t-fast) ease,transform var(--t-fast) var(--ease),visibility 0s linear var(--t-fast)}
.mainnav__panel a{position:relative;display:block;padding:12px 20px;font-family:var(--ff-disp);font-weight:600;font-size:.95rem;letter-spacing:.08em;text-transform:uppercase;color:var(--steel-lt);text-decoration:none;white-space:nowrap;transition:background-color var(--t-fast) ease,color var(--t-fast) ease}
.mainnav__panel a::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;background:var(--red);transform:scaleY(0);transition:transform var(--t-fast) var(--ease)}
.mainnav__panel a:hover,.mainnav__panel a[aria-current]{background:rgba(255,255,255,.06);color:var(--white)}
.mainnav__panel a:hover::before,.mainnav__panel a[aria-current]::before{transform:none}
.mainnav__panel a:active{background:rgba(255,255,255,.1)}
.mainnav__panel a:focus-visible{outline-offset:-3px}
/* The last menus open leftwards, from their caret's right edge. A closed panel is invisible but still
   in layout, so a 240px panel hung left under "Shop" ran 24px past a 1280px window when the team chip
   took the Join button's place, and the page scrolled sideways. The header also clips anything wider
   than the window (clip, not hidden: it makes no scroller, so sticky and the open panels still work). */
.mainnav__item:nth-last-child(-n+3)>.mainnav__panel{left:auto;right:0}
.site-header{overflow-x:clip}
/* Submenus open on hover or on the caret (.is-open, which also sets aria-expanded), not on focus:
   Tab steps through the seven top links and their carets, not all 31 submenu links, and the caret
   never says "collapsed" over an open panel. Without JavaScript the carets do nothing, so there a
   panel still opens while focus is inside it. */
@media (hover:hover){.has-panel:hover>.mainnav__panel{visibility:visible;opacity:1;transform:none;transition-delay:0s}.has-panel:hover>.mainnav__caret svg{transform:rotate(180deg)}}
html:not(.js) .has-panel:focus-within>.mainnav__panel,.has-panel.is-open>.mainnav__panel{visibility:visible;opacity:1;transform:none;transition-delay:0s}
.has-panel.is-open>.mainnav__caret svg{transform:rotate(180deg)}
.has-panel.is-closed>.mainnav__panel{visibility:hidden;opacity:0;transform:translateY(-6px)}
.mainnav__link::before{content:"";position:absolute;left:8px;right:0;bottom:18px;height:2px;background:var(--steel);transform:scaleX(0);transform-origin:left;transition:transform var(--t-med) var(--ease)}
.mainnav__item:not(.has-panel) .mainnav__link::before{right:15px}
@media (hover:hover){.mainnav__link:hover::before{transform:none}}
.mainnav__link[aria-current]::before{display:none}

.header__cta{margin-left:auto;min-height:44px;padding:10px 16px;font-size:.9rem;--chamfer:8px}
.header__cta-long{display:none}
@media (min-width:1080px){.header__cta{padding:12px 20px;white-space:nowrap}.header__cta-long{display:inline}.header__cta-short{display:none}}
@media (min-width:1100px){.header__cta{margin-left:var(--s2)}}
/* 1100–1599px: the room is exact. The wordmark's "Since 1966" line is set a little tighter, and a
   visitor who follows a team gets their team chip where the Join button was (Join stays in the menu,
   as on small phones). From 1600px the labels open up to the old size. */
@media (min-width:1100px) and (max-width:1599px){
  .header__brand .brand__sub{letter-spacing:.1em}
  .has-team .header__cta,.header__inner:has(.hdr-team:not([hidden])) .header__cta{display:none}
}
/* 1100–1279px: labels a little smaller and closer, and "Partner with us" says "Partners" (header.html
   short_label from site.json), so the seven items fit beside the wordmark and Join */
.mainnav__short{display:none}
@media (min-width:1100px) and (max-width:1279px){
  .mainnav__link{padding:0 10px 0 6px;font-size:.85rem;letter-spacing:.04em}
  .mainnav__link[aria-current]::after,.mainnav__link::before{left:6px}
  .mainnav__item:not(.has-panel) .mainnav__link[aria-current]::after,.mainnav__item:not(.has-panel) .mainnav__link::before{right:10px}
  .mainnav__long{display:none}
  .mainnav__short{display:inline}
}
@media (min-width:1600px){
  .mainnav__link{padding-left:12px;font-size:.95rem;letter-spacing:.08em}
  .mainnav__link[aria-current]::after,.mainnav__link::before{left:12px}
}
@media (max-width:359px){.header__brand{flex:none}.header__cta{flex:0 0 76px;padding:6px 8px;font-size:.8rem;line-height:1.05;white-space:normal;text-align:center}}
/* "Your team" chip (filled by script; hidden until then). Expected markup inside the slot:
   <a class="hdr-team__chip" href="/calendar/?g=u11"><span class="hdr-team__dot"></span><span class="hdr-team__k">Your team</span> U11</a> */
.hdr-team{display:flex;align-items:center;flex-shrink:0;margin-left:auto}
.hdr-team:not([hidden])+.mainnav{margin-left:var(--s2)}
@media (max-width:1099px){.hdr-team:not([hidden])~.header__cta{margin-left:0}}
/* desktop: with the chip shown, the wordmark drops its "Since 1966" line to make room (Aldar stays) */
@media (min-width:1080px){.header__inner:has(.hdr-team:not([hidden])) .brand__sub,.has-team .brand__sub{display:none}}
/* phones narrower than 390px: the chip takes the Join button's place (Join stays in the menu) */
@media (max-width:389px){.hdr-team:not([hidden])~.header__cta{display:none}}
.hdr-team__chip{display:inline-flex;align-items:center;gap:7px;min-height:var(--tap);max-width:9.5rem;padding:0 12px;border:1px solid var(--line-strong);border-radius:999px;background:rgba(255,255,255,.04);font-family:var(--ff-disp);font-weight:700;font-size:.88rem;line-height:1;letter-spacing:.08em;text-transform:uppercase;color:var(--white);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:border-color var(--t-fast) ease,background-color var(--t-fast) ease}
.hdr-team__dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:var(--red-bright);box-shadow:0 0 0 3px rgba(238,28,37,.22)}
.hdr-team__k{display:none;color:var(--steel-lt);font-weight:600}
@media (min-width:600px){.hdr-team__chip{max-width:none}}
@media (min-width:600px) and (max-width:1099px){.hdr-team__k{display:inline}}
@media (hover:hover){.hdr-team__chip:hover{border-color:var(--red);background:rgba(255,255,255,.08)}}
.hdr-team__chip:active{background:rgba(255,255,255,.12)}
.burger{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:none;border:1px solid var(--line-strong);color:var(--white);flex-shrink:0;transition:border-color var(--t-fast) ease,background-color var(--t-fast) ease}
@media (hover:hover){.burger:hover{border-color:var(--steel-lt)}}
.burger:active{background:rgba(255,255,255,.08)}
.burger__bars{position:relative;display:block;width:22px;height:14px}
.burger__bars span{position:absolute;left:0;right:0;height:2px;background:currentColor;transition:transform .2s ease,opacity .2s ease}
.burger__bars span:nth-child(1){top:0}.burger__bars span:nth-child(2){top:6px}.burger__bars span:nth-child(3){top:12px}
.burger[aria-expanded=true] .burger__bars span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger[aria-expanded=true] .burger__bars span:nth-child(2){opacity:0}
.burger[aria-expanded=true] .burger__bars span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
@media (min-width:1100px){.burger{display:none}}

/* ----------------------------------------------------------------- drawer */
.drawer{position:fixed;inset:0;z-index:100;display:flex;justify-content:flex-end;background:rgba(0,0,0,.6);transition:background-color var(--t-slow) var(--ease)}
.drawer.is-entering{background:rgba(0,0,0,0)}
.drawer__panel{display:flex;flex-direction:column;gap:var(--s4);width:100%;max-width:440px;height:100%;overflow-y:auto;overscroll-behavior:contain;background:var(--ink-2);padding:0 var(--gutter) calc(var(--s5) + env(safe-area-inset-bottom,0px));transform:translateX(0);transition:transform var(--t-slow) var(--ease-out);box-shadow:var(--shadow-3)}
.drawer.is-entering .drawer__panel{transform:translateX(100%)}
/* Opening: core.js adds .is-entering for one frame, so the panel slides in and the rows follow it in,
   one after another. Closing: core.js sets [hidden]; where the browser can hold display through a
   transition, the panel slides back out and the backdrop fades instead of vanishing. */
@supports (transition-behavior:allow-discrete){
  .drawer{transition:background-color var(--t-slow) var(--ease),display var(--t-slow) allow-discrete}
  .drawer[hidden]{background:rgba(0,0,0,0);pointer-events:none;transition-duration:.26s;transition-timing-function:var(--ease-in)}
  .drawer[hidden] .drawer__panel{transform:translateX(100%);transition:transform .26s var(--ease-in)}
}
@media (prefers-reduced-motion:no-preference){
  .drawer__item,.drawer__cta-wrap,.drawer__actions>li,.drawer__social,.drawer__partner{transition:opacity .3s var(--ease),transform .55s var(--ease-out);transition-delay:calc(.08s + var(--i,8) * .035s)}
  .drawer.is-entering :is(.drawer__item,.drawer__cta-wrap,.drawer__actions>li,.drawer__social,.drawer__partner){opacity:0;transform:translateX(40px)}
  .drawer__item:nth-child(1){--i:0}.drawer__item:nth-child(2){--i:1}.drawer__item:nth-child(3){--i:2}.drawer__item:nth-child(4){--i:3}
  .drawer__item:nth-child(5){--i:4}.drawer__item:nth-child(6){--i:5}.drawer__item:nth-child(7){--i:6}.drawer__item:nth-child(8){--i:7}
  .drawer__actions>li{--i:9}.drawer__social,.drawer__partner{--i:10}
}
.drawer__head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:var(--s3);min-height:var(--hdr-h);background:var(--ink-2);border-bottom:1px solid var(--line)}
.drawer__close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:none;border:1px solid var(--line-strong);color:var(--white);transition:border-color var(--t-fast) ease,background-color var(--t-fast) ease}
.drawer__close:active{background:rgba(255,255,255,.08)}
@media (hover:hover){.drawer__close:hover{border-color:var(--steel-lt)}}
.drawer__list{margin:0;padding:0;list-style:none}
.drawer__item{border-bottom:1px solid var(--line)}
.drawer__row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:var(--s2);min-height:56px;padding:0 6px;font-family:var(--ff-disp);font-weight:800;font-size:1.3rem;letter-spacing:.04em;text-transform:uppercase;color:var(--white);text-decoration:none;cursor:pointer;list-style:none;transition:background-color var(--t-fast) ease}
.drawer__row::-webkit-details-marker{display:none}
.drawer__row:active{background:rgba(255,255,255,.06)}
.drawer__row.is-active{color:var(--white);box-shadow:inset 3px 0 0 var(--red);padding-left:14px}
.drawer__row svg{color:var(--steel-lt);transition:transform var(--t-med) var(--ease)}
.drawer__acc[open]>.drawer__row svg{transform:rotate(180deg);color:var(--red-bright)}
.drawer__row:focus-visible{outline-offset:-3px}
.drawer__sub{margin:0;padding:0 0 var(--s2);list-style:none}
.drawer__sublink{display:flex;align-items:center;min-height:48px;padding:0 6px 0 18px;font-family:var(--ff-disp);font-weight:600;font-size:1.08rem;letter-spacing:.05em;text-transform:uppercase;color:var(--steel-lt);text-decoration:none;border-left:2px solid var(--line-strong);margin-left:6px;transition:color var(--t-fast) ease,background-color var(--t-fast) ease,border-color var(--t-fast) ease}
.drawer__sublink:active{background:rgba(255,255,255,.06)}
.drawer__sublink[aria-current]{color:var(--white);border-left-color:var(--red);background:rgba(255,255,255,.04)}
@media (hover:hover){.drawer__sublink:hover{color:var(--white);border-left-color:var(--red)}}
.drawer__sublink:focus-visible{outline-offset:-3px}
.drawer__cta-wrap{margin-top:var(--s4)}
.drawer__cta{width:100%}
.drawer__actions{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.drawer__action{display:flex;align-items:center;gap:14px;min-height:56px;padding:8px 14px;background:var(--ink);border:1px solid var(--line);color:var(--white);text-decoration:none;font-family:var(--ff-disp);font-weight:700;font-size:1rem;letter-spacing:.06em;text-transform:uppercase;transition:border-color var(--t-fast) ease,background-color var(--t-fast) ease}
.drawer__action svg{color:var(--red-bright)}
.drawer__action-detail{display:block;font-family:var(--ff-body);font-weight:500;font-size:.88rem;letter-spacing:0;text-transform:none;color:var(--steel-lt)}
.drawer__action:active{background:var(--ink-3)}
@media (hover:hover){.drawer__action:hover{border-color:var(--red)}}
.drawer__partner{align-self:flex-start;margin-top:auto}
.drawer__partner .hp-lockup__logo img,.footer__partner .hp-lockup__logo img{height:32px}
/* Scroll lock while the drawer is open: on <html> only. body must not become a scroll container
   (overflow:hidden on it would), or the sticky header loses its scroller and slides away under the
   backdrop. */
html.is-locked{overflow:hidden}
html.is-locked body{overflow:visible}
@media (min-width:1100px){.drawer{display:none !important}}

.social-list{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.social-list a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line-strong);color:var(--white);text-decoration:none;transition:background-color var(--t-fast) ease,border-color var(--t-fast) ease,transform var(--t-fast) var(--ease)}
@media (hover:hover){.social-list a:hover{background:var(--red);border-color:var(--red)}}
.social-list a:active{background:var(--red);border-color:var(--red);transform:scale(.95)}

/* ---------------------------------------------------------------- tagline */
/* "One team. One family. One Exiles." on three lines, capitals by CSS, third line red */
.tagline{font-family:var(--ff-disp);font-weight:900;font-size:clamp(2rem,4.4vw,2.6rem);line-height:.92;letter-spacing:-.005em;text-transform:uppercase;color:var(--heading)}
.tagline__line{display:block}
.tagline__line--accent{color:var(--accent-display)}

/* ----------------------------------------------------------------- footer */
.site-footer{background:radial-gradient(70% 180px at 0% 0%,rgba(163,15,28,.22),rgba(163,15,28,0)),var(--footer);border-top:3px solid var(--red);padding-top:var(--s6);color:var(--steel-lt);--fg:var(--steel-lt);--fg-muted:var(--steel);--heading:var(--white)}
@media (min-width:880px){.site-footer{padding-top:var(--s7)}}
.footer__grid{display:grid;gap:var(--s5) var(--s4);grid-template-columns:repeat(2,minmax(0,1fr))}
.footer__brand,.footer__visit{grid-column:1/-1}
@media (min-width:600px){.footer__visit{grid-column:auto}}
@media (min-width:1080px){.footer__grid{grid-template-columns:1.4fr 1fr 1fr 1fr;gap:var(--s6)}.footer__brand{grid-column:auto}}
.footer__brand{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s3)}
.footer__blurb{color:var(--steel-lt);max-width:34ch;font-size:.98rem;line-height:1.6}
.footer__tagline{margin-block:var(--s1)}
.footer__h{font-family:var(--ff-disp);font-weight:700;font-size:.95rem;letter-spacing:.14em;text-transform:uppercase;color:var(--white);margin-bottom:var(--s2);display:flex;align-items:center;gap:10px}
.footer__h::before{content:"";width:18px;height:2px;background:var(--red)}
.footer__col ul{margin:0;padding:0;list-style:none;display:grid;gap:0}
.footer__col a{display:inline-flex;align-items:flex-start;gap:10px;min-width:44px;min-height:44px;padding-block:10px;color:var(--steel-lt);text-decoration:none;font-size:.98rem;line-height:1.45;text-underline-offset:.25em;transition:color var(--t-fast) ease}
@media (hover:hover){.footer__col a:hover{color:var(--white);text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px}}
.footer__col a:active{color:var(--white)}
.footer__col a svg{margin-top:3px;color:var(--red-bright)}
.footer__sub{display:block;font-family:var(--ff-disp);font-weight:700;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
.footer__sponsors{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s3) var(--s4);margin-top:var(--s6);padding-block:var(--s4);border-top:1px solid var(--line)}
/* phones: logos in a three-column grid of tiles, so none is cut off at the edge */
.footer__logos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin:0;padding:0;list-style:none}
.footer__logos li{min-width:0}
.footer__logos a{display:flex;align-items:center;justify-content:center;width:100%;height:44px;padding:6px 8px;background:var(--tile-bg,#fff);transition:box-shadow var(--t-fast) ease}
.footer__logos img{width:auto;max-width:100%;height:auto;max-height:28px;object-fit:contain}
@media (hover:hover){.footer__logos a:hover{box-shadow:0 0 0 2px var(--red)}}
.footer__logos a:focus-visible{outline-offset:2px}
@media (min-width:600px){.footer__logos{display:flex;flex-wrap:wrap;width:auto}.footer__logos a{width:auto;padding:6px 10px}.footer__logos img{height:28px;max-height:none}}
.footer__sponsors-link{margin-left:auto}
.footer__grid+:is(.footer__welfare,.footer__bottom){margin-top:var(--s6)}  /* no sponsor strip on this page (footer_sponsors: false) */
.footer__welfare{margin-bottom:0;padding-block:var(--s3);border-top:1px solid var(--line);font-size:.95rem;line-height:1.6;color:var(--steel-lt)}
.footer__welfare a{color:var(--white);text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.2em;overflow-wrap:anywhere}
.footer__welfare a[href^="tel:"]{white-space:nowrap}
.footer__bottom{display:flex;flex-wrap:wrap;align-items:center;gap:0 var(--s4);justify-content:space-between;padding-block:var(--s2) calc(var(--s4) + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);font-size:.85rem;color:var(--steel)}
.footer__bottom p{display:flex;align-items:center;min-height:44px}
.footer__bottom a{display:inline-flex;align-items:center;min-width:44px;min-height:44px;color:var(--steel-lt);text-underline-offset:.25em}
.footer__bottom a:hover{color:var(--white)}

/* ------------------------------------------------------------ breadcrumbs */
/* Separator is a small muted chevron (no slashes). Phones show only the parent: "‹ Join". */
.crumbs ol{display:flex;flex-wrap:wrap;gap:4px 0;margin:0;padding:0;list-style:none;font-family:var(--ff-disp);font-weight:600;font-size:.85rem;letter-spacing:.12em;text-transform:uppercase;color:var(--steel-lt)}
.crumbs li{display:inline-flex;align-items:center}
.crumbs li+li::before{content:"";width:6px;height:6px;margin:0 12px 0 9px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);opacity:.7}
.crumbs a{position:relative;display:inline-flex;align-items:center;min-height:var(--tap);color:var(--bone);text-decoration:none;text-underline-offset:.3em}  /* 44px targets (club rule), on every template */
.crumbs a::after{content:"";position:absolute;inset:0 -8px}  /* and 44px wide for a short one ("Home"), over the gap to the chevron */
.crumbs a:hover{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px}
.crumbs [aria-current]{color:var(--steel-lt)}
.surface-bone .crumbs a{color:var(--ink)}
.surface-bone .crumbs ol,.surface-bone .crumbs [aria-current]{color:var(--fg-muted)}
@supports selector(:has(a)){@media (max-width:599px){
  .crumbs ol:has(.crumbs__up) li:not(.crumbs__up){display:none}
  .crumbs ol:has(.crumbs__up) li.crumbs__up::before{display:none}
  .crumbs__up a{gap:8px;min-height:var(--tap)}
  .crumbs__up a::before{content:"";width:7px;height:7px;margin-left:2px;border-bottom:2px solid var(--red-bright);border-left:2px solid var(--red-bright);transform:rotate(45deg)}
  .surface-bone .crumbs__up a::before{border-color:var(--red)}
}}

/* ------------------------------------------------------------- page hero */
/* AA by construction (review F7): the title, lead and accent words always sit on at least ~90% ink,
   so red accent words hold 3:1 or more over any photo. Desktop: ink-led scrim across the text
   column, the photo opens up on the right, deep red only as a corner glow behind no text.
   Phones: the photo is a window at the top that fades into ink; the text sits below it, and the
   "‹ Parent" link rides on the photo in its own ink chip. */
.phero{position:relative;isolation:isolate;overflow:hidden;background:var(--ink);padding-block:72px 48px;--heading:var(--white);--fg:var(--sand);--fg-strong:var(--sand)}
.phero__media{position:absolute;inset:0;z-index:-2}
.phero__media img{width:100%;height:100%;object-fit:cover;filter:saturate(.9) contrast(1.05)}
/* the text column is capped at 640px (58vw on tablets); --text-end is where it ends, and the scrim opens up after it */
.phero{--text-end:calc(max(var(--gutter),(100% - var(--maxw)) / 2 + var(--gutter)) + min(670px,58vw + 30px))}
.phero::before{content:"";position:absolute;inset:0;z-index:-1;background:
  radial-gradient(40% 70% at 100% 100%,rgba(163,15,28,.6) 0%,rgba(163,15,28,.25) 45%,rgba(163,15,28,0) 100%),
  linear-gradient(90deg,rgba(18,18,18,.95) 0%,rgba(18,18,18,.91) var(--text-end),rgba(18,18,18,.76) calc(var(--text-end) + 4%),rgba(18,18,18,.5) calc(var(--text-end) + 11%),rgba(18,18,18,.28) calc(var(--text-end) + 22%),rgba(18,18,18,.12) 100%)}
.phero::after{content:none}
.phero__inner{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:var(--s3)}
.phero__inner .crumbs{margin-block:-10px -6px}  /* 44px crumb targets (club rule), same visual spacing as before */
.phero__title{max-width:min(18ch,640px,58vw);text-wrap:balance}
.phero__lead{max-width:min(62ch,640px,58vw);color:var(--sand);margin-top:var(--s1)}
.phero .btn-row{margin-top:var(--s3)}
/* The macro wraps crumbs, eyebrow and title in .phero__head, and the lead and buttons in .phero__side.
   Both are display:contents (no box), except in a split plain hero on a wide screen (below). */
.phero__head,.phero__side{display:contents}
/* Plain (no photo) means compact at every width, whatever size the page asks for: with no photo there
   is nothing to give the height to, so the content starts on the first screen. */
.phero--compact,.phero--plain{padding-block:56px 40px}
.phero--plain{background:linear-gradient(115deg,var(--ink) 0%,var(--ink-2) 58%,#2a1215 100%)}
.phero--plain::before{background:radial-gradient(circle at 92% 0%,rgba(163,15,28,.42),transparent 46%)}
.phero--compact .phero__title,.phero--plain .phero__title{font-size:clamp(2.2rem,5vw,3.75rem);max-width:min(24ch,640px,58vw)}
@media (min-width:880px){.phero{padding-block:112px 72px}.phero--compact,.phero--plain{padding-block:64px 48px}}
@media (min-width:1280px){.phero:not(.phero--compact):not(.phero--plain){padding-block:128px 88px}}
/* Compact means compact on a laptop too: on data pages (tables, matches, teams, fixtures, forms) the
   thing you came for starts in the first screen. A photo hero keeps a little more height for its photo. */
@media (min-width:1080px){
  .phero--compact,.phero--plain{padding-block:48px 40px}
  .phero--compact:not(.phero--plain){padding-block:64px 48px}
  :is(.phero--compact,.phero--plain)+.section{padding-top:var(--s6)}
  /* Split plain hero (.phero--split: no photo, with a lead or buttons): two columns, title on the left,
     lead and buttons on the right, bottoms aligned. The right half is no longer an empty ink block,
     and the first content sits about 400px from the top of a 1440 x 900 screen. */
  .phero.phero--split .phero__inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s6);align-items:end}
  .phero--split :is(.phero__head,.phero__side){display:flex;flex-direction:column;align-items:flex-start;gap:var(--s3);min-width:0}
  .phero--split .phero__title{max-width:none}
  .phero--split .phero__title .accent{display:inline}
  .phero--split .phero__lead{max-width:60ch;margin-top:0;font-size:1.15rem}
  .phero--split .phero__side .btn-row{margin-top:var(--s1)}
}
@media (min-width:1280px){.phero.phero--split .phero__inner{column-gap:var(--s7)}}
/* Desktop: the photo fills a window on the right, never wider than the text column leaves free (about
   850px at 1440, 1100px at most), and fades into ink on its left. Hero photos are 900 to 1206px wide,
   so they are shown at about their own size instead of being stretched across the full screen. */
@media (min-width:880px){
  .phero__media{left:auto;width:min(1100px,calc(100% - var(--text-end) + 220px));
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 220px);mask-image:linear-gradient(90deg,transparent 0,#000 220px)}
}
/* Phones: inner-page heroes stay compact so the content starts on the first screen */
@media (max-width:599px){
  .phero,.phero--compact{padding-block:12px 24px}
  .phero__inner{gap:var(--s1)}
  .phero__inner .crumbs{margin-bottom:0}
  .phero__title,.phero--compact .phero__title{font-size:clamp(2rem,9.5vw,2.5rem);line-height:1;max-width:none}
  .phero__title .accent{display:inline}
  .phero__lead{display:-webkit-box;max-width:none;margin-top:0;overflow:hidden;font-size:1rem;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:4}
  .phero__lead:not(:last-child){-webkit-line-clamp:3}
  .phero .btn-row{gap:8px;margin-top:var(--s2)}
  .phero .btn{flex:1 1 auto;min-height:48px;padding:12px 10px;font-size:.92rem;letter-spacing:.05em;white-space:nowrap}
  .phero .btn .icon{display:none}
  /* photo heroes: a 104px photo window above the text */
  .phero:not(.phero--plain){--win:104px;padding-top:calc(var(--win) + 4px)}
  .phero:not(.phero--plain) .phero__media{inset:0 0 auto 0;height:calc(var(--win) + 64px)}
  .phero:not(.phero--plain)::before{background:
    radial-gradient(70% 90px at 100% 0%,rgba(163,15,28,.5) 0%,rgba(163,15,28,0) 100%),
    linear-gradient(180deg,rgba(18,18,18,.05) 0px,rgba(18,18,18,.2) 44px,rgba(18,18,18,.82) calc(var(--win) - 6px),rgba(18,18,18,.93) calc(var(--win) + 14px),var(--ink) calc(var(--win) + 60px))}
}
@supports selector(:has(a)){@media (max-width:599px){
  .phero:not(.phero--plain) .phero__inner{position:static}
  .phero:not(.phero--plain) .crumbs:has(.crumbs__up){position:absolute;top:12px;left:var(--gutter);z-index:1}
  .phero:not(.phero--plain) .crumbs__up a{padding:0 14px 0 12px;background:rgba(18,18,18,.78);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:var(--white)}
}}

/* ----------------------------------------------------------- section head */
.section-head{display:flex;flex-direction:column;gap:var(--s2);margin-bottom:var(--s5);max-width:760px}
.section-head .eyebrow{margin-bottom:2px}
.section-head .lead{margin-top:var(--s1)}
.section-head--center{align-items:center;text-align:center;margin-inline:auto}
@media (min-width:880px){.section-head{gap:var(--s3);margin-bottom:var(--s6)}}
.section-head--row{max-width:none}
@media (min-width:880px){.section-head--row{flex-direction:row;align-items:flex-end;justify-content:space-between}}

/* ----------------------------------------------------------------- cards */
/* Cards lift on hover (pointer devices only) and press in on tap. The whole card is one link
   (.stretched), and its focus ring is drawn inside the card. */
.pcard{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;width:100%;min-width:0;aspect-ratio:4/5;min-height:340px;overflow:hidden;background:var(--ink-2);border:1px solid transparent;transition:transform var(--t-med) var(--ease),border-color var(--t-med) ease,box-shadow var(--t-med) ease;--heading:var(--white);--focus:var(--gold)}
.pcard__media{position:absolute;inset:0;z-index:-2}
.pcard__media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.pcard::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(12,12,12,0) 18%,rgba(12,12,12,.18) 34%,rgba(12,12,12,.74) 56%,rgba(12,12,12,.96) 100%)}
.pcard::before{content:"";position:absolute;left:0;right:0;bottom:0;z-index:1;height:3px;background:var(--red-bright);transform:scaleX(0);transform-origin:0 50%;transition:transform .5s var(--ease-out)}
.pcard__body{display:flex;flex-direction:column;gap:10px;padding:var(--s4)}
.pcard__label{font-family:var(--ff-disp);font-weight:700;font-size:.85rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.pcard__title{color:var(--white);font-size:clamp(1.6rem,2.4vw,2rem)}
.pcard__text{color:#DCD8D0;font-size:1rem;line-height:1.5}
.pcard__cta{color:var(--bone);margin-top:4px}
.pcard__cta svg{color:var(--red-bright);transition:transform var(--t-fast) var(--ease)}
@media (hover:hover){
  .pcard:hover{transform:translateY(-6px);border-color:var(--red);box-shadow:var(--shadow-3)}
  .pcard:hover::before{transform:none}
  .pcard:hover .pcard__media img{transform:scale(1.06)}
  .pcard:hover .pcard__cta svg{transform:translateX(3px)}
}
.pcard:active{transform:scale(.985);transition-duration:.08s}

.card{position:relative;display:flex;flex-direction:column;background:var(--card-bg);border:1px solid var(--line);box-shadow:var(--edge);transition:transform var(--t-med) var(--ease),border-color var(--t-med) ease,box-shadow var(--t-med) ease}
.card__media{position:relative;overflow:hidden;aspect-ratio:3/2;background:var(--ink-3)}
.card__media img.card__img{width:100%;height:100%;object-fit:cover;--pos:center 30%;transition:transform .6s var(--ease)}
.card__fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:radial-gradient(circle at 50% 45%,#2a2526 0,var(--ink) 70%)}
.card__fallback img{width:72px;opacity:.9}
.card__fallback--plain{background:var(--ink-3)}
.card__badge{position:absolute;left:12px;top:12px;z-index:3;padding:6px 10px;background:var(--red);color:var(--white);font-family:var(--ff-disp);font-weight:700;font-size:.8rem;line-height:1;letter-spacing:.1em;text-transform:uppercase}
.card__body{display:flex;flex-direction:column;gap:10px;padding:var(--s4) var(--s4) 28px}
.card__title{font-size:clamp(1.3rem,1.9vw,1.55rem);text-wrap:balance}
.card__title a{text-decoration:none;color:inherit}
.card__excerpt{color:var(--fg);font-size:1rem;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media (hover:hover){
  .card:hover{transform:translateY(-6px);border-color:var(--red);box-shadow:var(--edge),var(--shadow-3)}
  .card:hover .card__img{transform:scale(1.04)}
  .card:hover .card__title a{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.15em}
}
.card:active{transform:scale(.99);transition-duration:.08s}

.logo-tile{margin:0;display:flex;flex-direction:column;gap:10px}
.logo-tile__frame{--pad:20px;position:relative;display:block;aspect-ratio:4/3;background:var(--tile-bg,#fff);border:1px solid var(--line);overflow:hidden;transition:transform var(--t-med) var(--ease),border-color var(--t-med) ease,box-shadow var(--t-med) ease}
.logo-tile__img{position:absolute;top:var(--pad);left:var(--pad);width:calc(100% - 2 * var(--pad));height:calc(100% - 2 * var(--pad));max-width:none;max-height:none;object-fit:contain;object-position:center}
@media (hover:hover){a.logo-tile__frame:hover{transform:translateY(-4px);box-shadow:0 0 0 2px var(--red),var(--shadow-1)}}
a.logo-tile__frame:active{transform:scale(.98)}
.logo-tile__caption{font-family:var(--ff-disp);font-weight:600;font-size:.85rem;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-muted);text-align:center}

.person-card{position:relative;display:flex;flex-direction:column;background:var(--card-bg);border:1px solid var(--line);box-shadow:var(--edge);transition:transform var(--t-med) var(--ease),border-color var(--t-med) ease,box-shadow var(--t-med) ease}
.person-card__media{aspect-ratio:4/5;overflow:hidden;background:var(--mono-bg)}
.person-card__img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.person-card__body{display:flex;flex-direction:column;gap:6px;padding:var(--s3) var(--s4) var(--s4)}
.person-card__name{color:var(--heading);font-size:1.3rem}
.person-card__name a{color:inherit;text-decoration:none}
.person-card__role{color:var(--accent-text)}
.person-card__meta{font-size:.95rem;color:var(--fg);line-height:1.5}
@media (hover:hover){
  .person-card:has(a.stretched):hover{transform:translateY(-4px);border-color:var(--red);box-shadow:var(--shadow-1)}
  .person-card:has(a.stretched):hover .person-card__img{transform:scale(1.04)}
}
.person-card:has(a.stretched):active{transform:scale(.99);transition-duration:.08s}
.monogram{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--mono-bg);overflow:hidden}
.monogram::before{content:"";position:absolute;inset:12% 18%;background:url(../media/core/crest.png) center/contain no-repeat;opacity:var(--mono-crest);filter:grayscale(1)}
.monogram span{position:relative;font-family:var(--ff-disp);font-weight:900;font-size:clamp(3rem,7vw,4.5rem);line-height:1;letter-spacing:.02em;color:var(--mono-fg)}
.monogram--photo{flex-direction:column}
.monogram__photo{position:relative;z-index:1;width:auto;max-width:72%;height:auto;max-height:80%;box-shadow:0 0 0 6px var(--white),0 10px 24px rgba(0,0,0,.25)}
/* phones: a small photo (e.g. 141px wide) fills the ~170px card like every other coach (1.2x, within
   the 1.25x limit in SPEC §5.5); the framed "native" look is kept for wider cards */
@media (max-width:599px){
  .person-card--native .monogram--photo::before{display:none}
  .person-card--native .monogram__photo{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:50% 25%;box-shadow:none}
}

/* ----------------------------------------------------------- stats & bands */
.stats{background:var(--grad-red);color:var(--white)}
.stats__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:0}
@media (min-width:880px){.stats__grid{grid-template-columns:repeat(4,minmax(0,1fr));padding-inline:var(--gutter)}}
.stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:32px 12px;text-align:center;border-right:1px solid rgba(255,255,255,.18);border-bottom:1px solid rgba(255,255,255,.18)}
.stat:nth-child(2n){border-right:0}
.stat:nth-last-child(-n+2){border-bottom:0}
@media (min-width:880px){.stat{padding:40px 20px;border-bottom:0}.stat:nth-child(2n){border-right:1px solid rgba(255,255,255,.18)}.stat:last-child{border-right:0}}
.stat .stat-n{color:var(--white)}
.stat-l{font-family:var(--ff-disp);font-weight:700;font-size:.85rem;letter-spacing:.14em;text-transform:uppercase;color:var(--white)}

.cta-band{position:relative;isolation:isolate;overflow:hidden;padding-block:var(--s7)}
/* on red: the signature gradient, and the crest as a faint dark watermark at the far end */
.cta-band.surface-red{background:var(--grad-red)}
.cta-band.surface-red::after{content:"";position:absolute;z-index:-1;top:50%;right:max(-48px,calc((100% - var(--maxw)) / 2 - 24px));width:clamp(200px,30vw,380px);aspect-ratio:160/188;transform:translateY(-50%);background:url(../media/core/crest.png) center/contain no-repeat;opacity:.09;filter:grayscale(1) brightness(.15);pointer-events:none}
.cta-band__inner{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s4)}
.cta-band__title{max-width:640px}
.cta-band__text{margin-top:var(--s2);max-width:56ch;color:var(--fg-muted);font-size:1.1rem}
@media (min-width:880px){.cta-band{padding-block:80px}.cta-band__inner{flex-direction:row;align-items:center;justify-content:space-between;gap:var(--s6)}.cta-band__inner .btn{flex-shrink:0}}

.photo-band{position:relative;isolation:isolate;overflow:hidden;padding-block:72px;background:var(--ink);--heading:var(--white);--fg:var(--sand);--fg-strong:var(--sand);color:var(--sand);--text-end:calc(max(var(--gutter),(100% - var(--maxw)) / 2 + var(--gutter)) + min(780px,100% - 2 * var(--gutter)))}
.photo-band__media{position:absolute;inset:0;z-index:-2}
.photo-band__media img{width:100%;height:100%;object-fit:cover}
/* same rule as the page hero: text on ~90% ink, deep red as a glow away from the text */
.photo-band::before{content:"";position:absolute;inset:0;z-index:-1;background:
  radial-gradient(45% 80% at 100% 100%,rgba(163,15,28,.6) 0%,rgba(163,15,28,0) 100%),
  linear-gradient(90deg,rgba(18,18,18,.94) 0%,rgba(18,18,18,.9) var(--text-end),rgba(18,18,18,.45) calc(var(--text-end) + 16%),rgba(18,18,18,.2) 100%)}
.photo-band__inner{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s3)}
.photo-band__inner>*{max-width:760px}
.photo-band .btn-row{margin-top:var(--s2)}
@media (min-width:880px){.photo-band{padding-block:110px}}

/* ------------------------------------------------------------ small parts */
.notice{display:flex;gap:var(--s3);align-items:flex-start;padding:var(--s4);background:var(--card-bg);border:1px solid var(--line);border-left:4px solid var(--red);color:var(--fg)}
.notice--warning{border-left-color:var(--gold)}
.notice__icon{color:var(--accent-text);margin-top:2px}
.notice--info .notice__icon,.notice--archive .notice__icon{color:var(--red-bright)}
.surface-bone .notice--info .notice__icon,.surface-bone .notice--archive .notice__icon{color:var(--red)}
.notice__content{display:flex;flex-direction:column;gap:6px;min-width:0}
.notice__title{font-family:var(--ff-disp);font-weight:700;font-size:1.05rem;letter-spacing:.08em;text-transform:uppercase;color:var(--heading)}
.notice__body a{color:var(--heading);text-decoration-color:var(--red);text-decoration-thickness:2px}
.notice__body p+p{margin-top:.6em}
.notice__body{max-width:75ch}   /* a readable line on a wide screen */
/* The closure notice (join/_sessions.html) on a phone: the icon sits in the title row, so the words use
   the full width, and with JavaScript all but the dates fold behind "More" (sessions.js). */
.closure-acts{display:flex;flex-wrap:wrap;align-items:center;gap:4px 20px}
.closure-toggle{display:none}
@media (max-width:599px){
  [data-closures] .notice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 10px;align-items:center}
  [data-closures] .notice__content{display:contents}
  [data-closures] .notice__icon{margin-top:0}
  [data-closures] .notice__body{grid-column:1/-1}
  .js [data-closures]:not(.is-open) .closure-more{display:none}
  .js .closure-toggle{display:inline-flex;align-items:center;min-height:var(--tap,44px);padding:0;background:none;border:0;font:inherit;font-weight:600;color:var(--heading);text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.2em;cursor:pointer}
}

.chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--line-strong);border-radius:999px;background:transparent;color:var(--heading);font-family:var(--ff-disp);font-weight:700;font-size:.9rem;line-height:1;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;white-space:nowrap;scroll-snap-align:start;transition:background-color var(--t-fast) ease,border-color var(--t-fast) ease,color var(--t-fast) ease,transform var(--t-fast) var(--ease)}
@media (hover:hover){.chip:hover{border-color:var(--red);background:var(--tint)}}
.chip:active{transform:scale(.96);background:var(--tint)}
.chip.is-active,.chip[aria-pressed=true],.chip[aria-current]{background:var(--red);border-color:var(--red);color:var(--white)}
.chip:focus-visible{outline-offset:2px}
.chip__count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:rgba(255,255,255,.12);font-size:.78rem;letter-spacing:0}
.surface-bone .chip__count{background:rgba(18,18,18,.08)}
.chip.is-active .chip__count{background:rgba(0,0,0,.2)}
/* phones: one scrolling row that fades out at the right edge, so it is clear there is more */
.chip-rail{position:relative;display:flex;gap:8px;margin:0;padding:2px 2px 8px;list-style:none;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding-inline:2px;scrollbar-width:none}
.chip-rail::-webkit-scrollbar{display:none}
/* core.js marks a rail that overflows (.is-overflowing) and one scrolled to its end (.at-end) */
.chip-rail.is-overflowing:not(.at-end){-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent)}
@media (min-width:880px){.chip-rail{flex-wrap:wrap;overflow:visible}}
/* Wide screens: when a row of chips wraps, the lines are balanced (text-wrap:balance over inline
   blocks), so a row of ten reads 6 + 4, not 9 + 1, and no chip is left alone on the last line.
   Browsers without balance wrap as before. The 8px gaps are margins (font-size 0 removes the spaces
   between the items; each chip sets its own size in rem). */
@media (min-width:1080px){
  .chip-rail{display:block;font-size:0;line-height:0;text-wrap:balance;padding-bottom:0}
  .chip-rail>li{display:inline-block;vertical-align:top;margin:0 8px 8px 0}
  .chip-rail>li>.chip{vertical-align:top}
}

.date-badge{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:64px;padding:10px 8px;background:var(--card-bg);border:1px solid var(--line);border-top:3px solid var(--red);text-align:center;line-height:1}
.date-badge__wd{font-family:var(--ff-disp);font-weight:700;font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--fg-muted)}
.date-badge__d{font-family:var(--ff-disp);font-weight:900;font-size:1.65rem;color:var(--heading)}
.date-badge__m{font-family:var(--ff-disp);font-weight:700;font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;color:var(--accent-text)}

.facts{display:grid;grid-template-columns:minmax(0,1fr);margin:0}
.facts__row{display:grid;gap:4px;padding:14px 0;border-top:1px solid var(--line)}
.facts__row:last-child{border-bottom:1px solid var(--line)}
.facts dt{font-family:var(--ff-disp);font-weight:700;font-size:.85rem;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-muted)}
.facts dd{margin:0;min-width:0;color:var(--fg-strong);overflow-wrap:anywhere}  /* a long email in a narrow column wraps, never pushes the page sideways */
.facts dt code{text-transform:none;letter-spacing:0}  /* tokens and code keep their case */
.facts dd a{position:relative;color:var(--heading);text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:.2em}
.facts dd a::after{content:"";position:absolute;inset:-12px -4px}  /* 44px tall to a finger (rows have 14px of padding), no change to the layout */
/* an unconfirmed fact: quiet, never red (red reads as an error) */
.tbc{color:var(--fg-muted);font-weight:500}
@media (min-width:600px){.facts__row{grid-template-columns:200px minmax(0,1fr);gap:var(--s4);align-items:baseline}}

/* ----------------------------------------------------------------- tables */
.table-scroll{position:relative;max-width:100%}
.table-scroll__inner{position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch}  /* relative: absolute children (visually-hidden text) stay inside the scroller */
.table-scroll__inner:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.table-scroll::after{content:"";position:absolute;top:0;right:0;bottom:0;width:40px;pointer-events:none;background:linear-gradient(90deg,transparent,var(--bg));opacity:0;transition:opacity .2s ease}
.table-scroll.is-overflowing:not(.at-end)::after{opacity:1}
.table{width:100%;border-collapse:collapse;font-size:1rem;line-height:1.45;color:var(--fg)}
.table caption{caption-side:top;text-align:left;padding-bottom:var(--s2);font-family:var(--ff-disp);font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--heading)}
.table th,.table td{padding:12px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.table thead th{font-family:var(--ff-disp);font-weight:700;font-size:.85rem;letter-spacing:.1em;text-transform:uppercase;color:var(--heading);border-bottom:2px solid var(--red);white-space:nowrap}
.table tbody tr{--row-bg:var(--bg)}
.table tbody tr:nth-child(even){--row-bg:var(--zebra)}
.table tbody td,.table tbody th{background:var(--row-bg)}
.table tbody th{font-weight:600;color:var(--fg-strong)}
.table .is-exiles td,.table .is-exiles th{color:var(--heading);font-weight:700}
.table .is-exiles>:first-child{box-shadow:inset 4px 0 0 var(--red)}
.table .num{text-align:right;font-variant-numeric:tabular-nums}
.table td.is-warn{color:var(--gold)}
.table a{color:var(--heading)}
@media (max-width:879px){.table-scroll .table tr>:first-child{position:sticky;left:0;z-index:1}.table-scroll .table thead th:first-child{background:var(--bg)}}

/* ---------------------------------------------------------- fixture row */
.fixture{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr);gap:var(--s3);align-items:start;padding:var(--s3);background:var(--card-bg);border:1px solid var(--line);transition:border-color .2s ease}
.fixture:hover{border-color:var(--red)}
.fixture__main{display:flex;flex-direction:column;gap:6px;min-width:0}
.fixture__team{font-family:var(--ff-disp);font-weight:700;font-size:.85rem;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-text)}
.fixture__match{font-family:var(--ff-disp);font-weight:800;font-size:clamp(1.25rem,2.2vw,1.6rem);line-height:1.05;text-transform:uppercase;color:var(--heading);overflow-wrap:anywhere}
.fixture__match a{color:inherit;text-decoration:none}
.fixture:hover .fixture__match a,.fixture__match a:focus-visible{text-decoration:underline;text-decoration-color:var(--red);text-decoration-thickness:2px;text-underline-offset:4px}
.fixture__meta .fixture__comp{display:block}
.fixture__comp abbr.badge{display:inline-flex;vertical-align:1px;min-height:20px;padding:0 6px;margin-left:2px;font-size:.72rem;text-decoration:none;cursor:help}
.fixture__pending{font-family:var(--ff-disp);font-weight:700;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--fg-muted)}
.fixture__v{color:var(--fg-muted);font-weight:700;margin:0 .3em}
.fixture__tbc{color:var(--fg-muted)}
.fixture__meta{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.95rem;color:var(--fg)}
.fixture__meta span{display:inline-flex;align-items:center;gap:6px}
.fixture__meta svg{color:var(--fg-muted)}
.fixture__side{display:flex;flex-wrap:wrap;gap:8px;align-items:center;grid-column:2}
.fixture__result{font-family:var(--ff-disp);font-weight:900;font-size:1.4rem;color:var(--heading)}
.badge{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border:1px solid var(--line-strong);font-family:var(--ff-disp);font-weight:700;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-strong)}
.badge--home{background:var(--red);border-color:var(--red);color:var(--white)}
.badge--gold{border-color:rgba(216,180,90,.5);color:var(--accent-text)}
abbr[title]{text-decoration:underline dotted;text-underline-offset:.2em;cursor:help}
@media (min-width:600px){.fixture{grid-template-columns:72px minmax(0,1fr) auto;padding:var(--s4)}.fixture__side{grid-column:auto;flex-direction:column;align-items:flex-end}}

/* ------------------------------------------------------------------ forms */
.form{display:grid;gap:var(--s4)}
.field{display:grid;gap:6px}
.field__label,.fieldset__legend{font-family:var(--ff-disp);font-weight:700;font-size:.95rem;letter-spacing:.08em;text-transform:uppercase;color:var(--heading)}
.field__req{color:var(--accent-text);margin-left:2px}
.field__hint{font-size:.92rem;line-height:1.45;color:var(--fg-muted)}
.input,.select,.textarea{width:100%;min-height:48px;padding:12px 14px;background:var(--field-bg);color:var(--heading);border:1px solid var(--field-line);border-radius:0;font-family:var(--ff-body);font-size:1rem;line-height:1.4;transition:border-color var(--t-fast) ease,box-shadow var(--t-fast) ease}
.textarea{min-height:140px;resize:vertical}
.select{appearance:none;-webkit-appearance:none;padding-right:44px;cursor:pointer;background-image:linear-gradient(45deg,transparent 50%,var(--red-bright) 50%),linear-gradient(135deg,var(--red-bright) 50%,transparent 50%);background-position:calc(100% - 22px) 52%,calc(100% - 16px) 52%;background-size:6px 6px;background-repeat:no-repeat}
.surface-bone .select,.surface-white .select{background-image:linear-gradient(45deg,transparent 50%,var(--red) 50%),linear-gradient(135deg,var(--red) 50%,transparent 50%)}
.input::placeholder,.textarea::placeholder{color:var(--fg-muted);opacity:1}
@media (hover:hover){.input:hover,.select:hover,.textarea:hover{border-color:var(--fg-muted)}}
.input:focus,.select:focus,.textarea:focus{outline:2px solid var(--focus);outline-offset:0;border-color:var(--focus)}
.input:disabled,.select:disabled,.textarea:disabled{opacity:.55;cursor:not-allowed}
.input[aria-invalid=true],.select[aria-invalid=true],.textarea[aria-invalid=true]{border-color:var(--red-bright);box-shadow:inset 3px 0 0 var(--red-bright)}
.surface-bone [aria-invalid=true]:is(.input,.select,.textarea),.surface-white [aria-invalid=true]:is(.input,.select,.textarea){border-color:var(--red);box-shadow:inset 3px 0 0 var(--red)}
.field__error{display:flex;align-items:center;gap:6px;font-size:.92rem;font-weight:600;color:var(--error-text)}
.fieldset{border:0;margin:0;padding:0;display:grid;gap:10px;min-width:0}
.check{display:flex;align-items:flex-start;gap:12px;min-height:48px;padding:12px 14px;border:1px solid var(--line-strong);background:var(--field-bg);cursor:pointer;line-height:1.45;transition:border-color var(--t-fast) ease,background-color var(--t-fast) ease,box-shadow var(--t-fast) ease}
.check input{width:22px;height:22px;margin:1px 0 0;flex-shrink:0;accent-color:var(--red);cursor:pointer}
@media (hover:hover){.check:hover{border-color:var(--fg-muted)}}
.check:active{background:var(--tint)}
.check:has(input:checked){border-color:var(--red);box-shadow:inset 3px 0 0 var(--red)}
@supports selector(:has(a)){.check:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}.check input:focus-visible{outline:none}}
.error-summary{padding:var(--s4);border:2px solid var(--red-bright);background:var(--card-bg)}
.error-summary__title{font-family:var(--ff-disp);font-weight:800;font-size:1.25rem;text-transform:uppercase;color:var(--heading);margin-bottom:var(--s2)}
.error-summary ul{margin:0;padding-left:1.2em}
.error-summary a{display:inline-flex;align-items:center;min-height:var(--tap);color:var(--error-text);font-weight:600}  /* a 44px target per error (they only exist after a failed submit) */
.form-actions{display:flex;flex-wrap:wrap;gap:var(--s3);justify-content:space-between;align-items:center;padding-top:var(--s3);border-top:1px solid var(--line)}
.preview-result{padding:var(--s4);border:1px solid var(--gold);background:var(--card-bg)}
.preview-result dl{display:grid;gap:4px;margin-top:var(--s3);font-size:.95rem}
.preview-result dt{font-weight:700;color:var(--heading)}
.preview-result dd{margin:0 0 8px;color:var(--fg)}

/* stepper */
.stepper{display:grid;gap:var(--s2)}
.stepper__label{font-family:var(--ff-disp);font-weight:700;font-size:.9rem;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-muted)}
.stepper__bar{height:4px;background:var(--line-strong)}
.stepper__bar span{display:block;height:100%;width:var(--progress,0%);background:var(--red);transition:width .3s ease}
.stepper__steps{display:none;margin:0;padding:0;list-style:none;counter-reset:step}
@media (min-width:600px){.stepper__bar{display:none}.stepper__steps{display:flex;gap:4px}}
.stepper__steps li{flex:1;counter-increment:step;display:flex;align-items:center;gap:8px;padding:10px 12px;border-top:3px solid var(--line-strong);font-family:var(--ff-disp);font-weight:700;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-muted)}
.stepper__steps li::before{content:counter(step);display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:2px solid currentColor;font-size:.8rem}
.stepper__steps .is-done{border-top-color:rgba(209,26,42,.5);color:var(--fg)}
.stepper__steps .is-current{border-top-color:var(--red);color:var(--heading)}

/* tabs */
.tabs__list{display:flex;gap:4px;margin:0 0 var(--s4);padding:0;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.tabs__tab{position:relative;min-height:48px;padding:0 18px;background:none;border:0;font-family:var(--ff-disp);font-weight:700;font-size:1rem;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-muted);white-space:nowrap;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.tabs__tab{transition:color var(--t-fast) ease,background-color var(--t-fast) ease}
@media (hover:hover){.tabs__tab:hover{color:var(--heading);background:var(--tint)}}
.tabs__tab:active{background:var(--tint)}
.tabs__tab[aria-selected=true]{color:var(--heading)}
.tabs__tab[aria-selected=true]::after{content:"";position:absolute;left:10px;right:10px;bottom:-1px;height:3px;background:var(--red)}
.tabs__tab:focus-visible{outline-offset:-3px}
.tabs__panel:focus-visible{outline-offset:6px}

/* accordion */
.acc{border-top:1px solid var(--line)}
.acc:last-of-type{border-bottom:1px solid var(--line)}
.acc__sum{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);min-height:56px;padding:12px 4px;font-family:var(--ff-disp);font-weight:800;font-size:1.25rem;letter-spacing:.02em;text-transform:uppercase;color:var(--heading);cursor:pointer;list-style:none}
.acc__sum::-webkit-details-marker{display:none}
.acc__sum::after{content:"";width:10px;height:10px;margin-right:6px;border-right:2.5px solid var(--accent-display);border-bottom:2.5px solid var(--accent-display);transform:rotate(45deg) translateY(-3px);transition:transform var(--t-med) var(--ease);flex-shrink:0}
.acc[open]>.acc__sum::after{transform:rotate(-135deg) translateY(-3px)}
.acc__sum:focus-visible{outline-offset:-3px}
@media (hover:hover){.acc__sum:hover{color:var(--accent-display)}}
.acc__sum:active{background:var(--tint)}
.acc__body{padding:0 4px var(--s4)}

/* -------------------------------------------------------------- todo marker */
.todo{display:none}
.flavour-review .todo{display:inline-flex;align-items:baseline;gap:6px;max-width:100%;padding:6px 10px;margin:2px 0;outline:2px dashed var(--gold);outline-offset:-2px;background:rgba(216,180,90,.10);color:var(--accent-text);font-family:var(--ff-body);font-size:.9rem;font-weight:500;line-height:1.4;letter-spacing:0;text-transform:none;text-align:left}
.flavour-review .todo strong{flex-shrink:0;white-space:nowrap;color:inherit;font-weight:800;letter-spacing:.06em}
.surface-bone .todo,.surface-white .todo{color:#6B5210;background:rgba(216,180,90,.22)}
.surface-red .todo{color:var(--white);outline-color:var(--white);background:rgba(0,0,0,.18)}

/* ---------------------------------------------------------------- share etc */
.share{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2)}
.share__list{display:flex;gap:8px;margin:0;padding:0;list-style:none}
.share__btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--line-strong);background:transparent;color:var(--heading);text-decoration:none;transition:background-color var(--t-fast) ease,border-color var(--t-fast) ease,color var(--t-fast) ease,transform var(--t-fast) var(--ease)}
@media (hover:hover){.share__btn:hover{background:var(--red);border-color:var(--red);color:var(--white)}}
.share__btn:active{background:var(--red);border-color:var(--red);color:var(--white);transform:scale(.95)}
.share__btn.is-copied{background:var(--gold);border-color:var(--gold);color:var(--ink)}
.map-link svg:first-child{color:var(--red-bright)}

.yt{position:relative;aspect-ratio:16/9;background:radial-gradient(circle at 50% 50%,var(--ink-4),var(--ink) 75%);overflow:hidden}
.yt__link,.yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.yt__thumb{width:100%;height:100%;object-fit:cover;opacity:.85;transition:opacity .2s ease}
.yt__play{position:absolute;left:50%;top:50%;display:flex;align-items:center;justify-content:center;width:72px;height:52px;transform:translate(-50%,-50%);background:var(--red);color:var(--white);clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);transition:background-color .2s ease}
.yt__link:hover .yt__thumb{opacity:1}
.yt__link:hover .yt__play{background:var(--grad-red)}
/* keyboard focus on the dark thumbnail: a gold ring with an ink ring inside it, so it shows against light
   and dark frames alike (WCAG 2.4.7, 1.4.11), and the play button lights as it does on hover. Inside the
   box, which clips anything outside it. */
.yt__link:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.yt__link:focus-visible::after{content:"";position:absolute;inset:3px;box-shadow:inset 0 0 0 3px var(--ink);pointer-events:none}
.yt__link:focus-visible .yt__thumb{opacity:1}
.yt__link:focus-visible .yt__play{background:var(--grad-red)}

.map-facade{position:relative;display:grid;grid-template-rows:minmax(220px,1fr) auto;width:100%;min-width:0;aspect-ratio:16/10;min-height:300px;background:var(--ink-2);border:1px solid var(--line);overflow:hidden}
.map-facade__placeholder{position:relative;background-color:var(--ink-2);background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:40px 40px;display:flex;align-items:center;justify-content:center}
.map-facade__pin{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:var(--red);color:var(--white);box-shadow:0 0 0 12px rgba(209,26,42,.25)}
.map-facade__actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s3);padding:var(--s3);border-top:1px solid var(--line);background:var(--ink)}
.map-facade__note{position:absolute;left:var(--s3);top:var(--s3);padding:6px 10px;background:rgba(12,12,13,.85);color:var(--steel-lt)}
.map-facade iframe{width:100%;height:100%;border:0;grid-row:1}

/* ----------------------------------------------------------------- motion */
/* The motion system. Tokens are in :root (--ease*, --t-*, --stagger, --rise); behaviour that needs a
   script is in motion.js (deferred, optional). Rules:
   - transform and opacity only, so nothing ever shifts the layout (CLS stays 0);
   - nothing is hidden unless motion.js is running and the visitor has not asked for reduced motion,
     and anything already on screen at load is never hidden;
   - the hero photo (usually the largest paint) is never faded, only settled, so LCP is not delayed;
   - one family of curves: --ease-out for things arriving, --ease-in for things leaving. */

/* Scroll reveal. core.js [data-reveal] uses .reveal/.is-in; motion.js reveals section heads, grid
   items, cards, bands and stats with .mo-pre/.mo-in, staggered by --mo-d, then removes both classes
   so each component's own hover and press transitions take over again. */
.reveal{opacity:0;transform:translate3d(0,var(--rise),0);transition:opacity .6s var(--ease),transform var(--t-reveal) var(--ease-out)}
.reveal.is-in{opacity:1;transform:none}
.mo-pre{opacity:0;transform:translate3d(0,var(--rise),0)}
.mo-pre.mo-in{opacity:1;transform:none;transition:opacity .6s var(--ease) var(--mo-d,0s),transform var(--t-reveal) var(--ease-out) var(--mo-d,0s)}
/* an arriving section head draws its red rule in */
.mo-pre .eyebrow::before{transform:scaleX(0);transform-origin:0 50%}
.mo-pre.mo-in .eyebrow::before{transform:none;transition:transform .9s var(--ease-out) calc(var(--mo-d,0s) + .2s)}

/* Lazy images fade in as they arrive (motion.js marks the ones still loading). Their box is already
   sized by width/height or aspect-ratio, so this is opacity only. */
.mo-img:not(.is-loaded){opacity:0}
.mo-img.is-loaded{animation:mo-fade .6s var(--ease) backwards}
@keyframes mo-fade{from{opacity:0}}

/* Stats: true quantities ("22", "600+") count up once as they come into view, from about 70% of the
   figure with an ease-out (motion.js); years never count. Tabular figures and the same number of
   digits throughout, so nothing shifts. The counting copy is aria-hidden and cannot be selected; the
   real figure stays in the text, and the plain text returns when the count lands. */
.stat-n{font-variant-numeric:tabular-nums}
.count{-webkit-user-select:none;user-select:none}

/* Live dot ("on now", "entries open"): a red dot whose ring pulses --pulse-count times (3, about five
   seconds) and then rests, never endlessly (WCAG 2.2.2); still under reduce motion. Groups with their
   own dot use the same rule: animation-iteration-count:var(--pulse-count,3). */
.live-dot{display:inline-block;flex:0 0 auto;width:8px;height:8px;border-radius:50%;background:var(--red-bright);vertical-align:middle}
@media (prefers-reduced-motion:no-preference){.live-dot{animation:mo-pulse 1.6s var(--ease-out) var(--pulse-count,3)}}
@keyframes mo-pulse{0%{box-shadow:0 0 0 0 rgba(238,28,37,.6)}100%{box-shadow:0 0 0 10px rgba(238,28,37,0)}}

@media (prefers-reduced-motion:no-preference){
  /* Page heroes: the photo settles (it is never faded) and the eyebrow's red rule draws in */
  .phero__img,.mo-settle{animation:mo-settle 1.8s var(--ease-out) both}
  .phero .eyebrow::before{transform-origin:0 50%;animation:mo-rule .9s var(--ease-out) .25s both}
  /* Page to page: same-origin links cross-fade, the new page rising a touch, while the header stays
     put (browsers with cross-document view transitions; others simply load the page) */
  @view-transition{navigation:auto}
  .site-header{view-transition-name:site-header}
  ::view-transition-old(root){animation:var(--t-page) var(--ease-in) both mo-page-out}
  ::view-transition-new(root){animation:calc(var(--t-page) + .14s) var(--ease-out) .06s both mo-page-in}
  ::view-transition-group(site-header){animation-duration:var(--t-page);animation-timing-function:var(--ease-in-out)}
}
@keyframes mo-settle{from{transform:scale(1.07)}}
@keyframes mo-rule{from{transform:scaleX(0)}}
@keyframes mo-page-out{to{opacity:0}}
@keyframes mo-page-in{from{opacity:0;transform:translate3d(0,14px,0)}}
/* Depth on scroll: a band's photo drifts slower than the page (scroll-linked, so it costs no script
   and stops the moment scrolling stops). The photo box is 12% taller at each end, so no edge shows. */
@supports (animation-timeline:view()){@media (prefers-reduced-motion:no-preference){
  .photo-band{overflow:clip}  /* hidden would make the band its own scroll container and freeze the timeline */
  .photo-band__media{inset:-12% 0;animation:mo-drift linear both;animation-timeline:view();animation-range:cover}
}}
@keyframes mo-drift{from{transform:translate3d(0,-9%,0)}to{transform:translate3d(0,9%,0)}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important}
  .reveal,.mo-pre,.mo-img{opacity:1 !important;transform:none !important}
  .mo-pre .eyebrow::before{transform:none}
  .btn:hover,.card:hover,.pcard:hover,.person-card:hover,a.logo-tile__frame:hover,.btn:active,.card:active,.pcard:active,.person-card:active,a.logo-tile__frame:active,.chip:active,.social-list a:active,.share__btn:active{transform:none}
  .mainnav__panel{transform:none}
  .pcard:hover .pcard__media img,.card:hover .card__img,.person-card:hover .person-card__img{transform:none}
}

/* ---------------------------------------------------------- review pages */
.review-nav{display:flex;flex-wrap:wrap;gap:8px;margin:var(--s2) 0 0;padding:0;list-style:none}
.review-list{margin:0;padding-left:1.2em;display:grid;gap:4px}
.review-list--mono{font-family:ui-monospace,Menlo,monospace;font-size:.82rem;color:var(--fg-muted)}

/* -------------------------------------------------------------- style guide */
.sg-swatches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s2)}
@media (min-width:600px){.sg-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1080px){.sg-swatches{grid-template-columns:repeat(6,minmax(0,1fr))}}
.sg-swatch{border:1px solid var(--line)}
.sg-swatch__chip{height:72px;background:var(--sw)}
.sg-swatch__body{padding:10px 12px;font-size:.85rem;line-height:1.4}
.sg-swatch__body strong{display:block;font-family:var(--ff-disp);font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.sg-swatch__body code{color:var(--fg-muted)}
.sg-surface{padding-block:var(--s4)}
.sg-block{display:grid;gap:var(--s4);padding-block:var(--s5);border-top:1px solid var(--line)}
.sg-block>h2{font-size:1rem;letter-spacing:.14em;color:var(--fg-muted);font-weight:700}
.sg-code{display:block;padding:var(--s2) var(--s3);background:var(--ink-3);border-left:3px solid var(--gold);color:var(--sand);font-size:.82rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.surface-bone .sg-code{background:var(--white);color:var(--ink)}
.sg-toc{flex-wrap:wrap;overflow:visible;margin:0;list-style:none}  /* a .chip-rail that wraps on phones too */
.sg-type>*+*{margin-top:var(--s3)}
.sg-type__row{display:grid;gap:4px}
.sg-type__row .t-meta{color:var(--fg-muted)}
.sg-space{display:grid;gap:6px;margin:0;padding:0}
.sg-space li{display:grid;grid-template-columns:52px minmax(0,1fr) 44px;align-items:center;gap:12px}
.sg-space__bar{display:block;width:var(--w);max-width:100%;height:12px;background:var(--red)}
.sg-rules{display:grid;gap:10px;margin:0;padding:0;font-size:.98rem;line-height:1.5}
.sg-focus .sg-surface{padding-block:var(--s3)}
.sg-focus__demo{clip-path:none;outline:3px solid var(--focus);outline-offset:3px}
.sg-focus__demo::before{background:transparent}
.sg-mockbar{display:flex;align-items:center;min-height:64px;padding:0 var(--s3);background:rgba(18,18,18,.92);border:1px solid var(--line)}
.sg-crumbs{padding:var(--s3);background:var(--ink-2);border:1px solid var(--line)}
.sg-ease{display:grid;gap:8px}
.sg-ease__row{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;width:100%;min-height:var(--tap);padding:10px 12px;background:var(--card-bg);border:1px solid var(--line);color:var(--fg);text-align:left;cursor:pointer}
@media (min-width:600px){.sg-ease__row{grid-template-columns:128px minmax(0,1fr);align-items:center;column-gap:16px}.sg-ease__use{grid-column:2}}
.sg-ease__row code{color:var(--heading)}
.sg-ease__track{position:relative;display:block;height:24px;background:var(--tint);container-type:inline-size}
.sg-ease__dot{position:absolute;left:2px;top:2px;width:20px;height:20px;background:var(--red-bright);transition:transform var(--t-slow) var(--curve)}
.sg-ease__row:hover .sg-ease__dot,.sg-ease__row:focus-visible .sg-ease__dot,.sg-ease__row:active .sg-ease__dot{transform:translateX(calc(100cqw - 24px))}
.sg-ease__use{color:var(--fg-muted)}
.sg-tile{display:grid;gap:8px;padding:var(--s4);background:var(--card-bg);border:1px solid var(--line);border-top:3px solid var(--red);box-shadow:var(--edge)}
.sg-tile__n{font-family:var(--ff-disp);font-weight:900;font-size:2.4rem;line-height:1;color:var(--accent-display)}

/* ------------------------------------------------------------------ print */
@media print{
  .topbar,.site-header,.drawer,.footer__grid,.footer__sponsors,.share,.btn,.burger,.skip-link,.map-facade,.yt,.todo{display:none !important}
  html,body,.section,.surface-ink2,.surface-red,.phero,.photo-band,.site-footer{background:#fff !important;color:#000 !important}
  .phero::before,.phero::after,.phero__media,.photo-band::before,.photo-band__media,.pcard::after{display:none !important}
  h1,h2,h3,h4,.t-h1,.t-h2,.t-h3,.t-h4,.t-title,.lead,.prose,.prose a{color:#000 !important}
  .prose a[href^="http"]::after{content:" (" attr(href) ")";font-size:.85em}
  .section{padding-block:16px}
  .card,.pcard,.person-card,.notice{break-inside:avoid;border-color:#999}
  .reveal,.mo-pre,.mo-img{opacity:1 !important;transform:none !important}
}
