/* League site: one small stylesheet, mobile first.  brand-tokens.css comes
   first (D-253): the Carbonyl family's colours, fonts, space and status
   colours, light and dark.  This file keeps the neutrals a club's pages
   use; a club's pages set their own --accent/--brand in the page head,
   after both files, and our own pages (body.svc) and the admin
   (body.admin) read the brand through part 4 of the tokens. */
:root {
  /* A club's page and card (our pages and the admin map these to the brand). */
  --bg: #f6f7f9; --card: #ffffff; --text: var(--ink);
  /* --line is decoration (dividers, card edges); a control's edge is
     --field-border (the tokens), at 3:1 or more (WCAG 1.4.11). */
  --line: #e3e6eb;
  /* An admin table's name column at its narrowest (D-367). */
  --name-col: 8em;
  /* A sheet holding rows with long words, on a computer (D-367). */
  --sheet-wide: 400px;
  --info: #1d4f91; --info-bg: #e5eefb;
  /* D-343, Design System v2 (docs/DESIGN.md): the one set of tokens.
     Rules below this block use these names, never a raw size, corner,
     colour or width; tests/architecture counts what is left (DESIGN_DEBT).

     Type: one scale.  12 caps, 14 small, 16 body, 18 lead and h3, 22 h2,
     28-34 h1, then the figures.  The older names are aliases of these. */
  --t-cap: .75rem; --t-sm: .875rem; --t-body: 1rem; --t-lead: 1.125rem;
  --t-h2: 1.375rem; --t-h1: clamp(1.75rem, 1.4rem + 1.2vw, 2.125rem);
  --t-figure: clamp(1.75rem, 4vw, 2.5rem); --t-score: clamp(3rem, 12vw, 5rem);
  --t-display: clamp(2.25rem, 7vw, 4rem);
  --fs-12: var(--t-cap); --fs-14: var(--t-sm); --fs-16: var(--t-body); --fs-18: var(--t-lead);
  --fs-22: var(--t-h2); --fs-28: 1.75rem; --fs-36: 2.25rem; --fs-48: 3rem;
  --lh-body: 1.5; --lh-display: 1.15;
  /* Space: brand-tokens' 4-point --s-1 (4px) to --s-24 (96px), and 80px. */
  --s-20: 80px;
  /* Corners: five.  6 a chip in a row, 10 a control or button, 14 a card,
     20 a sheet or the hero, and a pill (a circle on a square).  --radius is
     a card's, which our own pages (square) and the app (6px) change. */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px; --radius: var(--r-lg);
  --shadow-sm: 0 1px 2px rgba(15,27,45,.06);
  --shadow-md: 0 4px 12px rgba(15,27,45,.08), 0 1px 3px rgba(15,27,45,.06);
  --shadow-lg: 0 18px 40px rgba(15,27,45,.14), 0 4px 10px rgba(15,27,45,.06);
  /* Breakpoints: 600 (phone), 1000 (tablet to computer), 1280 (wide).
     CSS cannot read a variable in @media, so these are the numbers to use. */
  --bp-phone: 600px; --bp-desk: 1000px; --bp-wide: 1280px;
  /* Motion (inside prefers-reduced-motion: no-preference only). */
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 280ms;
  /* A sunken row or field, from the card: right in light and dark. */
  --surface-2: color-mix(in srgb, var(--text) 5%, var(--card));
  /* Fixed colours, named once.  White and black that stay so in dark mode
     (text on a solid colour, a code to scan); the fallback title band. */
  --white: #fff; --black: #000; --band: #1b1f27; --qr-bg: #fff;
  --on-brand: var(--white); --highlight: var(--white); --on-accent: var(--white);
  /* Gold for stars and a shirt clash: 3:1 for a star, 4.5:1 as text. */
  --gold: #9a6b00; --gold-text: #8a5a00; --clash: #9a5b00;
  /* A referee's cards, the form guide, a live pass (each with its word). */
  --card-yellow: #c99a00; --card-red: #c62828;
  --form-w: #2e7d32; --form-d: #5d6470; --form-l: var(--card-red);
  --pass-ok: #1b7f3b; --pass-out: #b3261e;
  /* Drawings: the field plan, the heat map, a still's marks, the phases. */
  --turf: #2f7d32; --turf-dark: #1b5e20; --turf-zone: #fff59d; --turf-mound: #d7ccc8;
  --cone: #ff8f00; --cone-edge: #3e2723; --heat-grass: #2f7d3a; --heat-cell: #ffd23f;
  --mark-ok: #1e7b4f; --mark-bad: #b42318; --mark-aim: #f5c400;
  --ph-1: #2f6fbf; --ph-2: #2e8b57; --ph-3: #8e44ad; --ph-4: #7f8c8d;
  /* People's avatars: six quiet colours, white letters at 4.5:1+
     (services/theme.PEOPLE_PALETTE, the same values). */
  --people-1: #5b6472; --people-2: #6d5b8a; --people-3: #3d6b7a;
  --people-4: #7a5c48; --people-5: #4f6b4a; --people-6: #8a4f5f;
  /* Our front page's drawing of a club's phone (a made-up club's green). */
  --mock-club: #0f6e5a;
}
/* The hidden attribute wins over any display set below. */
[hidden] { display: none !important; }
/* Read by screen readers, not shown. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #111317; --card: #1a1d23; --text: #eceef2; --line: #2b3038; --info: #9cc2ff; --info-bg: #182a44;
    --gold: #f3c969; --gold-text: #f3c969; --clash: #f0b44c; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Anchored headings and sections land below the sticky header, not under it (D-230). */
[id] { scroll-margin-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: var(--t-body)/var(--lh-body) var(--font, var(--body));
  /* D-2125 (walk r735-b): a 120-letter name ran past a phone's edge. */
  overflow-wrap: break-word;
}
h1, h2, h3, .brand, .btn, .hero h1 { font-family: var(--heading-font, inherit); }
a { color: var(--link, var(--accent)); font-weight: 500; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 32%, transparent); text-underline-offset: .24em; }
/* A link reads as a link, not a 1995 one (D-957): a fine underline in the
   link's own colour, full on hover; still not colour alone (WCAG 1.4.1). */
a:hover { text-decoration-color: currentColor; }
@media (prefers-color-scheme: dark) { a { color: var(--link-dark, var(--accent)); } }
/* Every text in the club's colour reads in dark mode too (D-259): the
   colour lightened for a dark card, never the light-mode one (2.7:1). */
@media (prefers-color-scheme: dark) { body:not(.svc):not(.admin) { --link: var(--link-dark, var(--accent)); } }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* The top bar (D-348): brand-coloured, or white with brand-coloured links.
   The club's mark and name, the five tabs from 1000 px, the bell and one
   action ("Register" while a form is open); 56 px on a phone, where the
   tabs sit at the bottom instead. */
header.top { position: sticky; top: 0; z-index: 20; background: var(--brand, var(--accent)); color: var(--on-brand); box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.06); }
.header-light header.top { background: var(--card); color: var(--text); }
header.top .bar { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; }
header.top a { color: inherit; text-decoration: none; }
header.top .brand { font-weight: 800; font-size: var(--t-body); display: flex; align-items: center; gap: 10px; letter-spacing: .01em; min-width: 0; flex-shrink: 1; margin-right: auto; }
header.top .brand .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
header.top .brand img { height: 32px; width: auto; max-width: 52vw; object-fit: contain; object-position: left center; display: block; }
header.top .btn.cta { flex: none; background: var(--on-brand); color: var(--brand, var(--accent)); border-radius: var(--r-pill); padding: 8px 18px; font-size: var(--t-sm); }
.header-light header.top .btn.cta { background: var(--brand, var(--accent)); color: var(--on-brand); }
header.top .lang-switch { flex: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; font-weight: 700; font-size: var(--t-sm); }
header.top .bell { position: relative; flex: none; display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--r-pill); }
header.top .bell svg.i { width: 22px; height: 22px; }
header.top .bell .count { position: absolute; top: 4px; right: 2px; min-width: 18px; padding: 0 4px; border-radius: var(--r-pill); background: var(--live, var(--bad)); color: var(--white); font-size: var(--t-cap); line-height: 18px; text-align: center; }
@media (min-width: 1000px) {
  header.top .bar { min-height: 68px; gap: var(--s-4); }
  header.top .brand { font-size: var(--t-lead); }
  header.top .brand img { height: 40px; }
}

/* The dock (D-348): one component, two skins.  A row of destinations, an
   icon over a word, the last "More" a <details> sheet: the club site's tab
   bar (phones) and top tabs (computers), and the admin's phone dock (D-248). */
.dock { display: none; }
.dock > a, .dock summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; min-width: var(--tap); padding: 4px 2px; font-size: var(--t-cap); font-weight: 700; color: var(--muted); text-decoration: none; border-radius: var(--r-md); list-style: none; text-align: center; cursor: pointer; }
.dock summary::-webkit-details-marker { display: none; }
.dock span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock svg.i { width: 24px; height: 24px; }
.dock > a[aria-current="page"], .dock summary[aria-current], .dock details[open] > summary { color: var(--link, var(--accent)); }
.dock > a[aria-current="page"] svg.i, .dock summary[aria-current] svg.i { stroke-width: 2.4; }
/* The club's skin: a pill in the club's soft colour behind the current icon. */
.tab-bar > a[aria-current="page"] svg.i, .tab-bar summary[aria-current] svg.i { box-sizing: content-box; padding: 3px 14px; border-radius: var(--r-pill); background: var(--club-soft, var(--surface-2)); }
.more-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-4); }
.more-links a { display: flex; align-items: center; min-height: var(--tap); padding: 0 var(--s-1); border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; text-decoration: none; }
.more-fine { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); margin: var(--s-2) 0 0; font-size: var(--t-sm); }
.more-fine a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--link, var(--accent)); }
@media (max-width: 999px) {
  .dock.tab-bar, .dock.admin-dock { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15,27,45,.08); padding: 2px 4px env(safe-area-inset-bottom); }
  .dock details[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 1; background: color-mix(in srgb, var(--black) 40%, transparent); }
  .dock .dock-sheet { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 2; max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; background: var(--card); color: var(--text); text-align: left; border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg); padding: var(--s-5) var(--s-4) var(--s-2); }
  /* The page ends above the bar, never under it. */
  body.with-tabs { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* The page's own tabs scroll sideways; the cut edge fades, "more this way". */
  .tabs { scroll-snap-type: x proximity; scrollbar-width: none; padding-right: var(--s-8); mask-image: linear-gradient(to right, var(--black) calc(100% - 32px), transparent); }
  .tabs a { scroll-snap-align: start; }
}
@media (min-width: 1000px) {
  .dock.top-tabs { display: flex; align-items: center; gap: var(--s-1); position: relative; }
  .top-tabs > a, .top-tabs summary { flex-direction: row; min-height: var(--tap); padding: 0 var(--s-3); font-size: var(--t-sm); color: inherit; border-radius: var(--r-pill); }
  .top-tabs > a:hover, .top-tabs summary:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
  .top-tabs svg.i { display: none; }
  .top-tabs > a[aria-current="page"], .top-tabs summary[aria-current], .top-tabs details[open] > summary { color: inherit; box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
  .header-light .top-tabs > a, .header-light .top-tabs summary { color: var(--link, var(--brand, var(--accent))); }
  .top-tabs .dock-sheet { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 300px; background: var(--card); color: var(--text); border-radius: var(--r-lg); box-shadow: var(--e3, var(--shadow-lg)); padding: var(--s-2) var(--s-4); }
  .top-tabs .more-links { grid-template-columns: 1fr; }
}

/* The front page's hero and bands. */
.hero { background: var(--brand-dark); color: var(--white); text-align: center; padding: 72px 0 80px; background-size: cover; background-position: center; }
.hero:not(.has-image), .masthead { background: var(--art, none) right -30px center / auto 125% no-repeat, linear-gradient(120deg, var(--hero-from, var(--brand-dark)) 20%, var(--hero-to, var(--brand-dark))); background-color: var(--brand-dark); color: var(--on-brand-dark); }
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 2; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.5)); }
.hero.tinted .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.3) 30%, color-mix(in srgb, var(--hero-tint) 70%, transparent) 100%); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero h1 { font-size: var(--t-display); line-height: var(--lh-display); margin: 0 auto 14px; max-width: 20ch; color: var(--highlight); font-weight: 850; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p { font-size: var(--t-lead); max-width: 60ch; margin: 0 auto 24px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero .btn.big { font-size: var(--t-body); padding: 12px 28px; border-radius: var(--r-pill); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.band { padding: 36px 0; }
.band.about { background: var(--card); border-bottom: 1px solid var(--line); text-align: center; font-size: var(--t-lead); }
.band.about .prose { margin: 0 auto; max-width: 70ch; }
/* Cards in the home page's text use the page's width, not the text's. */
.band.about .prose .block-cards { width: min(1040px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); }
.join { margin: 26px 0; padding: 28px; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--brand-dark), var(--black)); color: var(--white); }
.join h2 { margin: 0 0 16px; font-size: var(--t-h1); color: var(--white); }
.join-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.join-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-lg); background: rgba(255,255,255,.08); border: 2px solid var(--brand, var(--accent)); color: var(--white); text-decoration: none; transition: transform .12s ease, background .12s ease; }
.join-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
/* Status cards under a hero keep apart from it (D-235). */
.status-strip:first-child { margin-top: var(--s-6); }
.join-card .kind { color: var(--highlight); font-weight: 800; text-transform: uppercase; font-size: var(--t-cap); letter-spacing: .06em; }
.starts { font-weight: 800; color: var(--link, var(--brand, var(--accent))); margin: 2px 0; }
.find label { flex: 0 1 340px; }
.find input { min-height: 44px; }
@media (min-width: 1000px) { .find input { min-height: 36px; } }

main { padding: 34px 0 56px; min-height: calc(100vh - 420px); }
.prose h2, .prose h3 { margin-top: 1.4em; margin-bottom: .4em; line-height: 1.25; }
.site-footer { background: var(--brand, var(--accent)); color: var(--on-brand); margin-top: 20px; }
.site-footer a { color: inherit; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: 1fr 2fr auto; padding-top: 40px; padding-bottom: 28px; }
.site-footer .foot-brand { font-weight: 900; font-size: var(--t-h2); }
.site-footer .foot-brand img { max-height: 44px; width: auto; }
.site-footer .tagline { font-weight: 700; font-size: var(--t-body); max-width: 34ch; }
/* Footer links: sentence case, each at least 24px tall (WCAG 2.5.8); only
   the group headings are eyebrow capitals. */
.site-footer .foot-links { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-content: start; font-weight: 600; font-size: var(--t-sm); }
.site-footer .foot-links > div { display: grid; gap: 2px; align-content: start; }
.site-footer .foot-head { margin: 0 0 4px; font-size: var(--t-cap); letter-spacing: .08em; text-transform: uppercase; color: var(--on-brand-soft, var(--on-brand)); }
.site-footer .foot-links a { text-decoration: none; display: flex; align-items: center; min-height: 32px; }
.site-footer .foot-links a:hover { text-decoration: underline; }
.site-footer .fine a { display: inline-block; padding: 4px 0; min-height: 24px; }
.site-footer .powered, .site-footer .fine a.powered { display: block; width: fit-content; margin-top: 6px; color: var(--on-brand-soft, var(--on-brand)); font-size: var(--t-cap); }
.site-footer .foot-social { display: flex; gap: 8px; flex-wrap: wrap; align-content: start; }
.site-footer .foot-social a.social { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-pill); border: 2px solid currentColor; padding: 0; }
.site-footer .foot-social a.social:hover { background: rgba(255,255,255,.12); }
.site-footer .social { border: 2px solid currentColor; border-radius: var(--r-pill); padding: 4px 12px; text-decoration: none; font-weight: 700; font-size: var(--t-sm); }
.site-footer .fine { border-top: 1px solid rgba(255,255,255,.25); padding-top: 14px; padding-bottom: 22px; font-size: var(--t-sm); }
/* On a phone the footer is its fine line (D-348): the links are in More. */
@media (max-width: 999px) { .site-footer .cols { display: none; } .site-footer .fine { border-top: 0; padding-top: var(--s-4); } }
/* In dark mode, the club's dark colour: the bright one glares (D-348). */
@media (prefers-color-scheme: dark) { .site-footer { background: var(--brand-dark, var(--band)); color: var(--on-brand-dark, var(--white)); --on-brand-soft: var(--on-brand-dark, var(--white)); } }
footer:not(.site-footer) { color: var(--muted); font-size: var(--t-sm); padding: 24px 0 40px; border-top: 1px solid var(--line); }
h1 { font-size: var(--t-h1); margin: 6px 0 6px; line-height: var(--lh-display); }
/* Each page's title sits on a full-width band in the club's dark colour. */
/* (A shadow, not a wider box, so phones do not scroll sideways.) */
body:not(.embed):not(.admin):not(.svc) main > :is(h1, .hub) { position: relative; color: var(--highlight); background: var(--brand-dark, var(--band)); box-shadow: 0 0 0 100vmax var(--brand-dark, var(--band)); clip-path: inset(0 -100vmax); padding: 30px 0 26px; margin: 0 0 18px; font-size: var(--t-h1); font-weight: 800; letter-spacing: var(--tracking-display); }
/* D-332: the band is the club's gradient with its sport's drawing, the
   width of the window (body clips the overflow: no sideways scroll). */
body:not(.embed):not(.admin):not(.svc) main > :is(h1, .hub)::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--art, none) right max(16px, calc(50vw - 600px)) center / auto 150% no-repeat, linear-gradient(110deg, var(--hero-from, var(--brand-dark)) 35%, var(--hero-to, var(--brand-dark))); }
body:not(.svc):not(.admin) { overflow-x: clip; }
body:not(.embed):not(.admin):not(.svc) main > :is(h1, .hub):first-child { margin-top: 0; }
body:not(.embed):not(.admin):not(.svc) main > h1 + .muted, body:not(.embed):not(.admin):not(.svc) main > h1 + p.muted { margin-top: -6px; }
h2 { font-size: var(--t-h2); margin: 30px 0 12px; line-height: 1.25; }
h3 { font-size: var(--t-body); margin: 18px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.league-grid { gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.league-card { display: block; text-decoration: none; color: inherit; }
.league-card { transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.league-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.league-card .title { font-weight: 650; }
.pill { display: inline-block; font-size: var(--t-cap); font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.s-final { background: var(--info-bg); color: var(--info); }
.s-confirmed, .s-on { background: var(--good-bg); color: var(--good); }
/* A little darker than --muted: 4.5:1 on --line in both themes (D-320, R14 #6). */
.s-scheduled { background: var(--line); color: color-mix(in srgb, var(--muted) 85%, var(--text)); }
.s-watch, .s-delayed, .s-postponed { background: var(--warn-bg); color: var(--warn); }
.s-cancelled { background: var(--bad-bg); color: var(--bad); }
.storm { background: var(--warn-bg); color: var(--warn); }
.banner { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; border: 1px solid transparent; }
.banner strong { display: block; }
.banner.news { background: var(--info-bg); color: var(--info); }
.banner.weather { background: var(--warn-bg); color: var(--warn); }
.banner.cancellation { background: var(--bad-bg); color: var(--bad); }
.banner p { margin: 4px 0 0; color: var(--text); white-space: pre-line; }
.status-strip { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.status-strip .card { flex: 1 1 200px; padding: 10px 14px; }
.day { margin: 0 0 14px; }
.day-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 20px 0 8px; }
/* A heading one level under the title that looks like an h3 (D-320: no h1 to h3 skip). */
h2.as-h3 { font-size: var(--t-body); margin: 18px 0 8px; line-height: inherit; }
.day-head :is(h2, h3) { margin: 0; }
table.games, table.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.games td, table.games th, table.table td, table.table th { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.games tr:last-child :is(td, th), table.table tr:last-child td, table.table tr:last-child th[scope=row] { border-bottom: 0; }
table.table th { font-size: var(--t-cap); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
/* Row headers (a game's time, a team, a price's name) look like the cells beside them (D-320). */
:is(table.games, table.table) th[scope=row] { font-size: inherit; text-transform: none; letter-spacing: normal; color: inherit; font-weight: 400; }
table.games th.time { font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.time { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.teams a { color: inherit; text-decoration: none; }
.teams a:hover { text-decoration: underline; }
/* The heading's own colour, dimmed: readable on a light page and on a dark band. */
.vs { color: inherit; opacity: .72; padding: 0 4px; }
/* A team's name wraps as a whole ("Soccer Mon 1", then "vs Soccer Mon 6"). */
.side { display: inline-block; }
/* Power rankings (D-117): places moved, a team's season as a line. */
.moved { font-size: var(--t-cap); font-weight: 700; margin-left: 4px; white-space: nowrap; }
.moved.up { color: var(--good); }
.moved.down { color: var(--bad); }
svg.trail { vertical-align: middle; overflow: visible; }
svg.trail polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.favorite { color: var(--muted); }
.grid.records { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: start; }
.power-row { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.score { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.where { color: var(--muted); font-size: var(--t-sm); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 14px 0 12px; overflow-x: auto; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--text); border-color: var(--accent); font-weight: 600; }
/* Buttons (D-235): primary (.btn), .secondary, destructive (.danger:
   outlined, as in a row of many; filled only on a confirm screen,
   .danger.confirm) and .ghost. 44px tall on phones, 36px on computers. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; background: var(--accent-strong, var(--accent)); color: var(--on-accent, var(--on-brand)); border: 1px solid transparent; border-radius: var(--r-md); padding: 9px 16px; font: inherit; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { box-shadow: inset 0 0 0 100vmax rgba(0,0,0,.12); }
.btn.secondary { background: var(--card); color: var(--text); border-color: var(--field-border); }
.btn.secondary:hover, .btn.ghost:hover { box-shadow: inset 0 0 0 100vmax rgba(127,127,127,.12); }
.btn.ghost { background: transparent; color: var(--link, var(--accent)); border-color: transparent; }
.btn.danger { background: var(--card); color: var(--bad); border-color: currentColor; }
.btn.danger.confirm { background: var(--bad); color: var(--white); border-color: transparent; }
/* Small buttons too: 44px touch targets on phones (the brand's rule; they
   were 32px, D-275), compact on computers. */
.btn.small { padding: 5px 10px; font-size: var(--t-sm); min-height: 44px; }
.btn svg.i { flex: none; }
@media (min-width: 1000px) { .btn { min-height: 36px; } .btn.small { min-height: 30px; } }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin: 10px 0; }
form.stack { display: grid; gap: 10px; max-width: 520px; }
/* A group's heading inside a form sits on its own line above the group. */
form.stack > div > strong:first-child { display: block; margin-bottom: 6px; }
/* In a form, a box sits under its label's words, whatever its width. */
form.stack label:not(.check) > :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { display: block; margin-top: 4px; }
form.stack > div > strong:first-child + .small.muted { display: block; margin: -4px 0 6px; }
label { font-weight: 600; font-size: var(--t-sm); }
label .muted { font-weight: 400; }
input[type=text], input[type=tel], input[type=search], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--field-border); border-radius: var(--r-sm); background: var(--card); color: var(--text);
}
::placeholder { color: var(--muted); opacity: 1; }
/* D-393: under 1000 px every field is a full tap tall (DESIGN.md), on every
   page, not only the app's (a pickup form, check-in, a camp's enrolment). */
@media (max-width: 999px) { :is(input[type=text], input[type=tel], input[type=search], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], select) { min-height: var(--tap); } }
/* A file box like the other fields, its button like a secondary one (D-275). */
input[type=file] { width: 100%; max-width: 100%; font: inherit; font-size: var(--t-sm); padding: 6px; border: 1px dashed var(--field-border); border-radius: var(--r-sm); background: var(--card); color: var(--text); }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; min-height: 36px; margin-right: 10px; padding: 6px 12px; border: 1px solid var(--field-border); border-radius: var(--r-md); background: var(--card); color: var(--text); cursor: pointer; }
input[type=number].score-in { width: 4.2em; text-align: center; }
textarea { min-height: 90px; }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
/* A box or a dot keeps its size beside a long label, and is a 24px
   target in the club's colour (WCAG 2.5.8). */
input[type=checkbox], input[type=radio] { flex: none; width: 22px; height: 22px; margin: 1px; accent-color: var(--accent-strong, var(--accent)); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 6px 16px; }
legend { font-weight: 600; font-size: var(--t-sm); padding: 0; margin-bottom: 6px; }
/* A group of choices under a bold word ("Where"), named for screen readers (D-320). */
fieldset.group > legend { font-weight: 700; font-size: inherit; margin: 0 0 6px; }
/* The registration editor's questions (D-382): a row each; from 600 px
   the words, the choices and "Must answer" side by side. */
ol.q-list > li.q-row { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4); }
ol.q-list .field { margin: 0; }
@media (min-width: 600px) { ol.q-list > li.q-row { grid-template-columns: 2fr 3fr auto; align-items: end; } }
/* Controls beside a row's buttons stay as small as the buttons. */
.table td.num :is(select, input[type=text]) { width: auto; padding: 5px 8px; font-size: var(--t-sm); }
/* A demo's every page (D-207). */
.demo-strip { background: var(--warn-bg); color: var(--warn); text-align: center; padding: 6px 12px; font-size: var(--t-sm); font-weight: 600; }
.flash { border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; background: var(--card); border: 1px solid var(--line); }
.flash.due { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.flash.ok { background: var(--good-bg); color: var(--good); border-color: transparent; }
.flash.error { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: var(--t-sm); color: var(--muted); margin: 8px 0; }
.record { font-size: var(--t-body); font-weight: 650; }
.stack-sm > * + * { margin-top: 6px; }
.nowrap { white-space: nowrap; }
/* D-2585: names each with its own control, wrapped by gaps, never commas */
.names-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); }
.ta-right { text-align: right; }
.embed main { padding-top: 8px; }
@media (max-width: 600px) {
  table.games .where-col { display: none; }
  table.games :is(td, th) { padding: 8px; }
  .hide-sm { display: none; }
}

/* Pages the owner writes (Markdown). */
.prose { line-height: 1.6; max-width: 72ch; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose table { border-collapse: collapse; margin: 12px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.prose blockquote { margin: 12px 0; padding: 4px 14px; border-left: 4px solid var(--accent); color: var(--muted); }
.intro { margin-bottom: 18px; }
.intro h1:first-child, .intro h2:first-child { margin-top: 0; }
.late { color: var(--bad); font-weight: 700; }

/* On phones, wide tables scroll inside themselves, not the whole page;
   an admin table whose cells carry their column's name in the markup
   (class "cards", D-360) becomes one card per row instead. */
@media (max-width: 999px) {
  body:not(.admin) table.table, table.games { display: block; overflow-x: auto; }
  /* ...and still as wide as the card when its rows are short */
  body:not(.admin) table.table > tbody, table.games > tbody { display: table; width: 100%; }
  body.admin table.table:not(.keep):not(.cards) { display: block; overflow-x: auto; }
  body.admin table.table.cards, body.admin table.table.cards tbody { display: block; border: 0; background: none; }
  body.admin table.table.cards tr { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; }
  /* A heading row is hidden; a row headed by its name (th scope=row) is a
     card like any other, its name the card's title (D-394). */
  body.admin table.table.cards :is(thead, tr:has(> th):not(:has(> td))) { display: none; }
  body.admin table.table.cards th[scope="row"] { display: block; border: 0; padding: 3px 0; text-align: left; background: none; font-weight: 600; }
  body.admin table.table.cards td { display: block; border: 0; padding: 3px 0; text-align: left; }
  body.admin table.table.cards td.num form { justify-content: flex-start !important; }
}
.card .big { font-size: var(--t-h1); font-weight: 800; line-height: 1.2; }
@media (max-width: 999px) {
  body.admin table.table td .score-in { display: inline-block; width: 7.5em; margin-right: 6px; }
}
.toolbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 -4px; }
.toolbar[hidden], [data-insert][hidden] { display: none !important; }

/* Page blocks (web.content.BLOCKS): a photo gallery, sponsor logos, buttons. */
.block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.block-gallery figure { margin: 0; }
.prose .block-gallery img, .block-gallery video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.block-gallery figcaption { font-size: var(--t-sm); color: var(--muted); margin-top: 4px; }
.block-sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 16px 0; }
.block-sponsors > a, .block-sponsors > span { display: flex; align-items: center; justify-content: center; height: 110px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.block-sponsors > a:hover { border-color: var(--accent); }
.prose .block-sponsors img { max-width: 100%; max-height: 80px; object-fit: contain; border-radius: 0; }
.block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.prose .block-buttons a { text-decoration: none; }
.block-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0; }
.block-card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prose .block-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 0; }
.prose .block-card h3 { margin: 14px 16px 6px; font-size: var(--t-lead); line-height: 1.3; }
.prose .block-card p { margin: 0 16px 16px; font-size: var(--t-body); line-height: 1.55; color: var(--muted); }
.live-preview { margin-top: 8px; max-height: 60vh; overflow: auto; }
.live-preview[hidden] { display: none; }
.attention { border-left: 4px solid var(--accent); }
.checklist { list-style: none; padding: 0; margin: 8px 0 0; }
.checklist li { padding: 3px 0; }
.checklist li.done { color: var(--muted); }
/* Second sign-in step: the QR code to scan and the backup codes. */
.qr { width: 200px; max-width: 100%; padding: 10px; background: var(--qr-bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.qr svg { display: block; width: 100%; height: auto; }
ol.codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 36px; margin: 4px 0; padding: 0; list-style: none; counter-reset: code; font-size: var(--t-body); }
ol.codes li { counter-increment: code; display: flex; gap: 10px; align-items: baseline; }
ol.codes li::before { content: counter(code) "."; min-width: 1.6em; text-align: right; color: var(--muted); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
ol.codes code { letter-spacing: .06em; background: none; padding: 0; }
@media (max-width: 430px) { ol.codes { grid-template-columns: max-content; } }
/* A card that opens with a heading does not add the heading's top margin. */
.card > h2:first-child, .card > h3:first-child, .card > p:first-child { margin-top: 0; }
/* A form button that reads as a quiet link (an action that opens a confirmation). */
button.as-link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-weight: 400; }
button.as-link:hover, button.as-link:focus-visible { color: var(--link, var(--accent)); }
/* Cards placed one after another on a page keep apart. */
main > .card + .card { margin-top: 14px; }
/* Are you coming? Two big answers side by side. */
.going-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.going-choice .btn { padding: 14px 10px; font-size: var(--t-body); }
.side-count { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.side-count .short { color: var(--bad); font-weight: 700; }
.answer-in { color: var(--good); font-weight: 700; }
.answer-out { color: var(--muted); }
/* Stat tiles and the visits chart. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile-label { font-size: var(--t-sm); color: var(--muted); }
.tile-value { font-size: var(--t-figure); font-weight: 700; line-height: 1.2; font-variant-numeric: proportional-nums; }
/* Field layout (admin): a turf drawing, the same in light and dark. */
.layout-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 14px; }
.layout-form .actions { grid-column: 1 / -1; }
svg.field-plan { display: block; width: 100%; height: auto; background: var(--turf); border-radius: var(--r-md); }
svg.field-plan .big { fill: none; stroke: var(--white); stroke-width: 2; stroke-dasharray: 6 5; opacity: .75; }
svg.field-plan .line { stroke: var(--white); stroke-width: 2; }
svg.field-plan .mark { stroke: var(--white); stroke-width: 1; stroke-dasharray: 3 4; opacity: .8; }
svg.field-plan .zone { fill: rgba(255, 255, 255, .14); stroke: var(--turf-zone); stroke-width: 2; stroke-dasharray: 4 3; }
svg.field-plan .end-zone { fill: rgba(255, 255, 255, .12); stroke: none; }
svg.field-plan .mound { fill: rgba(141, 110, 99, .55); stroke: var(--turf-mound); stroke-width: 1; }
svg.field-plan .goal { stroke: var(--white); stroke-width: 6; stroke-linecap: round; }
svg.field-plan .cone { fill: var(--cone); stroke: var(--cone-edge); stroke-width: 1; }
svg.field-plan .origin { fill: var(--white); stroke: var(--turf-dark); stroke-width: 2; }
svg.field-plan .field-number { fill: var(--white); font-size: 28px; font-weight: 700; opacity: .85; }
.cone-table td:nth-child(2) { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) { .cone-table .delta { display: none; } .cone-table { font-size: var(--t-sm); } }
@media print {
  .admin-nav, .dock, .crumbs, .tabbar, .save-bar, .skip-link, .no-print, header, footer { display: none !important; }
  body.signed-in { padding-bottom: 0; }
  .tabpanel { display: block !important; }
  details.card { break-inside: avoid; }
  details.card > *:not(summary) { display: revert; }
}
svg.chart { display: block; width: 100%; height: auto; margin: 6px 0 4px; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
svg.chart .bar { fill: var(--accent); }
svg.chart .hit { fill: transparent; }
svg.chart .col:hover .bar { opacity: .75; }
/* On a phone the chart is drawn smaller: its words are drawn bigger to match. */
@media (max-width: 600px) { svg.chart .tick { font-size: 22px; } }
/* A front page without a hero still names the club. */
/* A field only robots fill in (hidden from people and screen readers). */
.trap { position: absolute; left: -5000px; }
/* Two fields side by side (first game and lights out, from and until);
   fields shrink with their column instead of pushing out of the card. */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pair > * { min-width: 0; }
/* D-394: a pair whose fields need the room (a time zone's long name) is one
   above the other on a phone. */
@media (max-width: 600px) { .pair.one-on-phone { grid-template-columns: minmax(0, 1fr); } }
input, select, textarea { min-width: 0; max-width: 100%; }

/* The admin and the operators' console (D-248): calm chrome in the
   service's neutrals, the club's colour only as an accent. Five areas in
   a sidebar on computers; on phones a bar at the bottom of the screen
   (Today, the three pages this person opens most, and Menu: the same
   areas in a sheet that rises from the bar). */
body.admin { --admin-top: 56px; }
body.admin header.top { background: var(--card); color: var(--text); box-shadow: 0 1px 0 var(--line); }
body.admin header.top .bar { min-height: var(--admin-top); gap: var(--s-4); }
body.admin header.top .wrap { max-width: 1320px; }
.tabset.narrow .tabpanel { max-width: 880px; }
body.admin header.top .brand { font-size: var(--t-body); font-weight: 750; letter-spacing: 0; gap: var(--s-2); }
body.admin header.top .brand::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: var(--r-sm); background: var(--accent-strong, var(--accent)); }
body.admin header.top a.top-link { margin-left: auto; font-size: var(--t-sm); font-weight: 600; color: var(--link, var(--accent)); padding: 10px 0; white-space: nowrap; }
body.admin header.top :focus-visible { outline-color: var(--link, var(--accent)); box-shadow: none; }
.admin-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: var(--s-10); align-items: start; max-width: 1320px; }
.admin-main { padding: var(--s-6) 0 var(--s-16); min-width: 0; }
.admin-nav.side { position: sticky; top: var(--admin-top); max-height: calc(100vh - var(--admin-top)); overflow-y: auto; padding: var(--s-6) var(--s-1) var(--s-8) 0; scrollbar-width: thin; }
.admin-nav .group { display: grid; gap: 1px; margin-bottom: var(--s-5); }
.admin-nav .group-title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-cap); font-weight: 700; letter-spacing: .02em; color: var(--muted); padding: 0 var(--s-2) var(--s-1); }
.admin-nav .group-title svg.i { width: 16px; height: 16px; flex: none; }
.admin-nav a { display: block; color: var(--text); text-decoration: none; padding: 6px var(--s-2) 6px 32px; border-radius: var(--r-sm); font-size: var(--t-sm); line-height: 1.45; }
.admin-nav a:hover { background: rgba(127,127,127,.1); }
.admin-nav a[aria-current="page"] { background: var(--card); color: var(--text); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent-strong, var(--accent)), var(--shadow-sm); }
.admin-nav a.add { color: var(--muted); }
/* The menu's closed "More": trial-only pages, parts switched off, a paid plan's (D-275). */
.admin-nav details.more > summary { cursor: pointer; list-style: none; min-height: 32px; }
.admin-nav details.more > summary::-webkit-details-marker { display: none; }
.admin-nav details.more[open] { display: grid; gap: 1px; }
/* An area's less-used pages, folded in the area (D-2236). */
.admin-nav details.group-more > summary { cursor: pointer; color: var(--muted); padding: 6px var(--s-2) 6px 32px; min-height: 32px; }
.admin-nav details.group-more[open] { display: grid; gap: 1px; }
.admin-nav .group.extra { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.admin-nav .group.extra a { padding-left: var(--s-2); color: var(--muted); }
/* The page's place: its area, and on a deeper page the way back. */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s-2); margin: 0 0 var(--s-2); font-size: var(--t-sm); color: var(--muted); }
.crumbs a { color: var(--link, var(--accent)); font-weight: 600; text-decoration: none; padding: 2px 0; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--field-border); }
/* Page headers: one size of title, words under it at reading width. */
body.admin main > h1 { font-size: var(--t-h1); line-height: var(--lh-display); letter-spacing: -.01em; margin: 0 0 var(--s-3); overflow-wrap: anywhere; }
body.admin main > h1 + :is(p.muted, p.small, div.small, .lead) { margin-top: 0; max-width: 75ch; }
body.admin main h2 { font-size: var(--t-lead); font-weight: 700; margin: var(--s-8) 0 var(--s-3); }
body.admin main .card > h2:first-child { margin-top: 0; }
.lead { color: var(--muted); max-width: 75ch; margin: 0 0 var(--s-4); }
/* A form's fields laid out like form.stack, in a block that is not the
   form itself (Settings: one form across its parts). */
.stack-form { display: grid; gap: var(--s-4); max-width: 640px; }
.stack-form label:not(.check) > :is(input:not([type=checkbox]):not([type=radio]), select, textarea, .pair) { display: block; margin-top: 6px; }
.stack-form .pair { display: grid; }
.save-bar { position: sticky; bottom: var(--dock-h, 0px); z-index: 4; display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; margin-top: calc(-1 * var(--s-2)); background: linear-gradient(to bottom, transparent, var(--bg) 35%); }
/* Cards, tables and forms. */
body.admin .card { border-radius: var(--r-md); padding: var(--s-5); }
body.admin main > .card, body.admin main > form.card, body.admin main > details.card { margin-bottom: var(--s-4); }
body.admin main > .card + .card { margin-top: 0; }
body.admin table.table { border-radius: var(--r-md); overflow: clip; box-shadow: var(--shadow-sm); margin-bottom: var(--s-4); }
body.admin table.table th { background: var(--bg); font-size: var(--t-cap); letter-spacing: .04em; padding: 10px var(--s-3); }
/* A long table keeps its column names in view (not inside a box that
   scrolls sideways, where sticking would only push them down). */
body.admin :is(main, .tabpanel, .card, form) > table.table th { position: sticky; top: var(--th-top, var(--admin-top)); z-index: 1; }
.tabset { --th-top: calc(var(--admin-top) + 45px); }
body.admin table.table td { padding: 10px var(--s-3); }
/* Numbers line up on the right (the plain left rule above outranked .num). */
@media (min-width: 1000px) { body.admin table.table :is(td, th).num { text-align: right; } }
body.admin table.table.keep :is(td, th).num { text-align: right; }
body.admin .card > h2:first-of-type { margin-top: 0; }
@media (max-width: 999px) { body.admin table.table.cards td:first-child :is(.small, .muted) { font-weight: 400; } }
body.admin table.table tr:nth-child(even) > td { background: rgba(127,127,127,.04); }
body.admin table.table tr:hover > td { background: rgba(127,127,127,.08); }
body.admin :is(.card, .scroll-x, details) table.table { box-shadow: none; }
body.admin .card table.table { margin-bottom: 0; }
body.admin :where(.actions, .row) > :where(input:not([type=checkbox]):not([type=radio]), select) { width: auto; flex: 0 1 auto; }
body.admin .actions > input[type=search] { flex: 1 1 16em; }
body.admin form.stack { gap: var(--s-4); max-width: 640px; }
body.admin form.stack .small.muted, body.admin .help { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-sm); }
body.admin :is(input[type=text], input[type=tel], input[type=search], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], select) { min-height: var(--field-h); }
body.admin :is(input, select, textarea):focus-visible { border-color: var(--link, var(--accent)); outline-offset: 0; }
body.admin details > summary { font-weight: 600; }
body.admin details.card > summary { margin: -4px 0; }
body.admin .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: var(--s-3); }
.tabset [id] { scroll-margin-top: calc(var(--admin-top) + 64px); }
body.admin .tile { padding: var(--s-4) var(--s-5); }
body.admin .tile-value { font-size: var(--t-h1); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { body.admin .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } body.admin .tile { padding: var(--s-3); } body.admin .tile-value { font-size: var(--t-h2); } }
body.admin .league-card .record { font-size: var(--t-h1); font-weight: 750; line-height: 1.2; margin-top: var(--s-1); font-variant-numeric: tabular-nums; }
body.admin .grid { gap: var(--s-3); margin-bottom: var(--s-4); }
body.admin .checklist li { padding: 6px 0; border-bottom: 1px solid var(--line); }
body.admin .checklist li:last-child { border-bottom: 0; }
body.admin .checklist a { font-weight: 600; text-decoration: none; }
body.admin .checklist a::after { content: " →"; }
body.admin .next { color: var(--text); }
body.admin .muted .next a, body.admin .next a { font-weight: 600; }
footer.admin-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-5) 20px var(--s-10); color: var(--muted); font-size: var(--t-sm); border-top: 1px solid var(--line); max-width: 1320px; }
footer.admin-foot a { padding: 4px 0; }
/* Sign-in pages and the operator console: room under the top bar. */
body.admin main.wrap { padding-top: var(--s-6); padding-bottom: var(--s-16); }
/* Tabs on one page (Settings, the console): plain links to each part's
   anchor, so an old link to a part still lands on it. Without script the
   part named in the address shows (or the page's first); admin.js swaps
   parts without a jump and keeps the address. */
.tabbar { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: var(--s-2) 0 var(--s-6); position: sticky; top: var(--admin-top); z-index: 5; background: var(--bg); }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar a { flex: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-3); color: var(--muted); font-size: var(--t-sm); font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabbar a:hover { color: var(--text); }
.tabbar a[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent-strong, var(--accent)); }
.tabbar .pill { font-size: var(--t-cap); }
/* The console's tabs on a phone (D-324, Ops Console R15 #15): short names,
   on two rows if need be, so no tab is cut off at the screen's edge. */
.tabbar .tab-short { display: none; }
@media (max-width: 600px) {
  body.ops .tabbar { flex-wrap: wrap; overflow-x: visible; }
  body.ops .tabbar .tab-long { display: none; }
  body.ops .tabbar .tab-short { display: inline; }
  body.ops .tabbar a { padding: 0 var(--s-2); }
}
.tabpanel { display: none; }
[data-told]:not(:has(*)) { display: none; } /* D-1657: no word to say, no gap */
.tabpanel > h2:first-child { margin-top: 0; }
.tabset:not(.js) .tabpanel.default, .tabset:not(.js) .tabpanel:target, .tabset:not(.js) .tabpanel:has(:target) { display: block; }
.tabset:not(.js):has(.tabpanel:target, .tabpanel :target) .tabpanel.default:not(:target):not(:has(:target)) { display: none; }
.tabset.js .tabpanel.on { display: block; }
@media (max-width: 999px) {
  .admin-shell { display: block; }
  .admin-nav.side { display: none; }
  /* The top bar scrolls away on a phone; the bar at the bottom stays. */
  body.signed-in { --admin-top: 0px; --dock-h: calc(64px + env(safe-area-inset-bottom)); padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.signed-in header.admin-top { position: static; }
  .admin-nav.in-menu { columns: 2 150px; column-gap: var(--s-4); }
  .admin-nav.in-menu .group { break-inside: avoid; margin-bottom: var(--s-4); }
  .admin-nav.in-menu .group-title { padding-left: 0; }
  .admin-nav.in-menu a { padding: 9px var(--s-2); margin-left: -8px; font-size: var(--t-body); }
  .admin-nav.in-menu .group.extra { column-span: all; display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
  .tabbar { margin-left: -20px; margin-right: -20px; padding: 0 20px; }
}
@media (max-width: 600px) {
  body.admin header.top a.top-link { font-size: var(--t-cap); }
  body.admin main > h1 { font-size: var(--t-h2); }
  .admin-main { padding-top: var(--s-4); }
}
/* On phones, each cell of a "cards" table says which column it is: the
   name is in the markup (``span.cell-label``, D-360), not added by script. */
.cell-label { display: none; }
@media (max-width: 999px) {
  body.admin table.table.cards td:not(:first-child) { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
  body.admin table.table.cards .cell-label { display: inline; flex: none; color: var(--muted); font-size: var(--t-cap); font-weight: 600; }
  body.admin table.table.cards td:first-child { font-weight: 600; }
  body.admin table.table.cards { box-shadow: none; overflow: visible; }
  body.admin table.table.cards tr:nth-child(even) > td, body.admin table.table.cards tr:hover > td { background: none; }
  body.admin table.table.cards tr { box-shadow: var(--shadow-sm); }
}
/* Layout helpers in place of inline styles (D-248). */
.row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.row.middle { align-items: center; }
.row.end { justify-content: flex-end; }
.row.bottom { align-items: flex-end; }
/* Fields side by side start at the top: a hint under one does not push its neighbour's box down (D-382). */
.row > .field { align-self: flex-start; }
.inline { display: inline; }
.self-center { align-self: center; }
.measure { max-width: 640px; }
.measure-wide { max-width: 999px; }
/* The money page's account names (D-266): room for a chart of accounts' names. */
.books-name { min-width: 18em; width: 100%; }
:is(input, select, textarea, div, label, span).w-xs { width: 5em; } :is(input, select, textarea, div, label, span).w-s { width: 7em; } :is(input, select, textarea, div, label, span).w-m { width: 9em; }
.mw-xs { max-width: 7em; } .mw-s { max-width: 9em; } .mw-m { max-width: 14em; } .mw-l { max-width: 18em; }
.fit-s { max-width: 160px; } .fit-m { max-width: 260px; } .fit-l { max-width: 420px; } .fit-xl { max-width: 520px; }
.min-m { min-width: 16em; } .min-l { min-width: 18em; }
.cols-140 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.cols-160 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.cols-180 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.cols-200 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.cols-220 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.cols-240 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
#join + .add-players { margin-top: var(--s-2); } /* D-2436: the join link first, the typed-in form after it */
.mb-3 { margin-bottom: var(--s-3); } .m-0 { margin: 0; } .my-2 { margin: var(--s-2) 0; }
.ml-3 { margin-left: var(--s-3); }
.grow { flex: 1 1 220px; min-width: 0; } .grow-2 { flex: 2 1 240px; min-width: 0; }
.full { flex-basis: 100%; }
.edge-bad { border-color: var(--bad); }
.mono { font-family: var(--mono); }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.upper { text-transform: uppercase; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.list-tight { padding-left: 1.2em; margin: var(--s-1) 0; }
.thumb { max-width: 100%; max-height: 140px; }
.thumb.sm { max-height: 100px; }
.qr-box { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
.qr-box .qr-code { flex: none; width: 180px; height: 180px; background: var(--qr-bg); padding: 6px; border-radius: var(--r-sm); }
.qr-box .qr-code svg { display: block; width: 100%; height: 100%; }
.text-left { text-align: left; }
.still-frame { position: relative; max-width: 100%; }
.still-frame img { display: block; width: 100%; height: auto; cursor: crosshair; }
/* Check-in on a phone, one-handed (D-248): each player a row with a big
   button on the right, where the thumb is. */
.checkin-roster td.num form { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
@media (max-width: 999px) {
  body.admin table.table.checkin-roster, body.admin table.table.checkin-roster tbody { display: block; border: 0; box-shadow: none; background: none; overflow: visible; }
  body.admin table.table.checkin-roster tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2); align-items: center; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
  body.admin table.table.checkin-roster tr:last-child { border-bottom: 0; }
  body.admin table.table.checkin-roster tr:nth-child(n) > td { display: block; padding: 0; border: 0; background: none; }
  body.admin table.table.checkin-roster td.num form { justify-content: flex-end; }
  body.admin table.table.checkin-roster .btn { min-height: 48px; min-width: 112px; font-size: var(--t-body); }
  body.admin table.table.checkin-roster .btn.secondary { min-width: 0; }
  .checkin-find { position: sticky; top: 0; z-index: 6; background: var(--bg); padding: var(--s-2) 0; margin: 0 0 var(--s-2); }
  .checkin-find input { font-size: var(--t-body); }
}
.checkin-tools[open] > summary { margin-bottom: var(--s-3); }
.checkin-find .grow { flex: 1 1 14em; max-width: 420px; }
/* The operators' console (D-248). */
body.ops .wrap { max-width: 1320px; }
/* One navigation (D-346): five places as tabs in the bar; a dock at the
   bottom on a phone, like the admin's.  Sign-in security and Sign out
   stay in the bar, never off the screen. */
body.ops header.top .bar { gap: var(--s-4); }
body.ops header.top .brand .muted { font-weight: 600; }
body.ops .ops-nav { display: flex; align-items: stretch; gap: var(--s-1); align-self: stretch; }
body.ops .ops-nav a { display: flex; align-items: center; gap: 6px; padding: 0 var(--s-3); color: var(--muted); font-size: var(--t-sm); font-weight: 600; border: 0; border-bottom: 2px solid transparent; }
body.ops .ops-nav a:hover { color: var(--text); }
body.ops .ops-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent-strong, var(--accent)); }
body.ops .ops-nav svg.i { width: 18px; height: 18px; }
body.ops .ops-me { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-sm); white-space: nowrap; }
body.ops .ops-me a { color: var(--link, var(--accent)); font-weight: 600; }
body.ops .as-h1 { font-size: var(--t-h1); margin-top: 0; }
body.ops .tabpanel > .lead { margin-bottom: var(--s-4); }
.band { border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin: 0 0 var(--s-3); border: 1px solid transparent; }
.band.ok { background: var(--good-bg); color: var(--good); }
.band.bad { background: var(--bad-bg); color: var(--bad); }
.band-list { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.band-list li { display: flex; gap: var(--s-3); justify-content: space-between; align-items: flex-start; background: var(--card); color: var(--text); border-radius: var(--r-md); padding: var(--s-3); }
.band-list li > div { min-width: 0; }
details.server { margin-top: var(--s-1); }
details.server summary { cursor: pointer; color: var(--muted); }
details.server pre { margin: var(--s-1) 0 0; padding: var(--s-2) var(--s-3); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); white-space: pre-wrap; overflow-wrap: anywhere; }
details.server code { user-select: all; }
a.card.tile { color: inherit; text-decoration: none; }
body.ops .owner-set { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
body.ops .owner-set input { min-width: 170px; }
body.ops .bad { color: var(--bad); font-weight: 700; }
body.ops tr.late-step > td { background: var(--bad-bg); }
.needs { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.needs li { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: var(--s-3) var(--s-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.needs li.ok { color: var(--muted); }
body.ops .num { font-variant-numeric: tabular-nums; }
body.ops .tabpanel > .tiles:first-child { margin-top: 0; }
@media (max-width: 999px) {
  body.ops { --admin-top: 0px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.ops header.top { position: static; }
  body.ops header.top .bar { gap: var(--s-2); }
  body.ops header.top .who, body.ops .ops-me .wide { display: none; }
  body.ops .ops-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(15,27,45,.08); padding: 2px 4px env(safe-area-inset-bottom); gap: 0; }
  body.ops .ops-nav a { flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; padding: 4px 2px; font-size: var(--t-cap); border-bottom: 0; border-radius: var(--r-md); }
  body.ops .ops-nav a[aria-current="page"] { color: var(--link, var(--accent)); }
  body.ops .ops-nav svg.i { width: 22px; height: 22px; }
  .band-list li { flex-wrap: wrap; }
}
/* Tabs fit a phone's width. */
@media (max-width: 430px) { .tabs a { padding: 8px 9px; font-size: var(--t-sm); } }
/* A "back" link above a page's title sits on the title's band. */
body:not(.embed):not(.admin):not(.svc) main > div.small:first-child { color: var(--highlight); background: var(--brand-dark, var(--band)); box-shadow: 0 0 0 100vmax var(--brand-dark, var(--band)); clip-path: inset(0 -100vmax); padding: 16px 0 0; margin: 0; }
body:not(.embed):not(.admin):not(.svc) main > div.small:first-child a { color: inherit; text-decoration: none; }
body:not(.embed):not(.admin):not(.svc) main > div.small:first-child a:hover { text-decoration: underline; }
body:not(.embed):not(.admin):not(.svc) main > div.small:first-child + h1 { padding-top: 8px; }
/* Keyboard focus: always visible, in the club's readable colour; on the
   club's coloured surfaces, in the text colour. */
:focus-visible { outline: 3px solid var(--link, var(--accent)); outline-offset: 2px; border-radius: var(--r-sm); }
/* On coloured surfaces (where currentColor can be the surface's own colour,
   as on the bar's button) the ring is the text colour on a card-coloured
   halo: two tones, one of which always reads. */
header.top :focus-visible, .site-footer :focus-visible, .join :focus-visible, .hero :focus-visible, .svc-top :focus-visible { outline-color: var(--text); box-shadow: 0 0 0 2px var(--card); }
/* "Skip to content": the first thing a keyboard reaches, shown only then. */
.skip { position: absolute; left: 12px; top: 12px; z-index: 50; background: var(--card); color: var(--text); padding: 8px 14px; border-radius: var(--r-md); font-weight: 700; box-shadow: var(--shadow-lg); }
/* Unfocused it takes no room and draws nothing (no shadow at the top edge). */
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; box-shadow: none; }

/* Marks on a camera's still (D-107) */
.still-wrap{overflow:hidden}
.still-wrap .mark-dot{position:absolute;transform:translate(-50%,-50%);min-width:1.4em;height:1.4em;border-radius: var(--r-pill);background:var(--mark-ok);color:var(--white);font-size: var(--t-cap);line-height:1.4em;text-align:center;pointer-events:none;box-shadow:0 0 0 2px var(--white)}
.still-wrap .mark-dot.bad{background:var(--mark-bad)}
.still-wrap .mark-cross{position:absolute;width:22px;height:22px;transform:translate(-50%,-50%);border:2px solid var(--mark-aim);border-radius: var(--r-pill);pointer-events:none}

/* Star ratings (D-126): five radio buttons; a chosen or hovered star and
   the ones before it fill. */
fieldset.stars { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.stars legend { font-weight: 600; padding: 0; margin-bottom: 2px; }
.stars-row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* An unchosen star reads at 3:1 (no fading); a chosen one is darker gold. */
form .stars-row label { display: inline-block; font-size: var(--t-h1); line-height: 1; color: var(--field-border); cursor: pointer; padding: 2px; min-width: 32px; text-align: center; }
.stars-row input:checked ~ label, .stars-row label:hover, .stars-row label:hover ~ label { color: var(--gold); }
.stars-row input:focus-visible + label { outline: 2px solid var(--text); outline-offset: 2px; border-radius: var(--r-sm); }
.star-avg { color: var(--gold-text); font-weight: 700; white-space: nowrap; }

/* Shirt colours (D-129): a dot before a team's name; a clash note. */
.kit { display: inline-block; width: .7em; height: .7em; border-radius: var(--r-pill); margin-right: .3em; vertical-align: baseline; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.clash { color: var(--clash); font-weight: 600; }
@media (prefers-color-scheme: dark) { .kit { box-shadow: 0 0 0 1px rgba(255,255,255,.45); } }

/* The standings' form guide: each of the last five results. */
.form-chip { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 3px; border-radius: var(--r-sm); font-size: var(--t-cap); font-weight: 700; line-height: 1; color: var(--white); vertical-align: middle; }
.form-chip.f-W { background: var(--form-w); }
.form-chip.f-D { background: var(--form-d); }
.form-chip.f-L { background: var(--form-l); }

/* Team heat maps on a game's page (D-146). */
.heat-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 8px 0; }
.heat { margin: 0; }
.heat figcaption { margin-bottom: 6px; }
.heat svg { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.heat-grass { fill: var(--heat-grass); }
.heat-cell { fill: var(--heat-cell); }
.heat-lines * { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: .35; }
.mail-preview { white-space: pre-wrap; font: inherit; font-size: var(--t-sm); margin: 0; }

/* Games on phones: the time and the night's status on one line, the
   teams and details on the full width below (a long status pill no
   longer squeezes the teams into a narrow column). */
@media (max-width: 600px) {
  table.games.stacked, table.games.stacked > tbody { display: block; overflow: visible; }
  table.games.stacked tr { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "time pill" "teams teams"; border-bottom: 1px solid var(--line); }
  table.games.stacked tr:last-child { border-bottom: 0; }
  table.games.stacked :is(td, th) { border-bottom: 0; }
  table.games.stacked :is(td, th).time { grid-area: time; padding-bottom: 0; }
  table.games.stacked td.num { grid-area: pill; justify-self: end; padding-bottom: 0; text-align: right; }
  table.games.stacked td.teams { grid-area: teams; padding-top: 4px; }
}
/* A tab bar wider than the phone fades at its right edge: more to swipe. */
@media (max-width: 600px) {
  .tabs { -webkit-mask-image: linear-gradient(to right, var(--black) 82%, transparent); mask-image: linear-gradient(to right, var(--black) 82%, transparent); padding-right: 24px; }
}
/* A team's games on phones: the date and the status chip on one line,
   the opponent and score on the full width below. */
@media (max-width: 600px) {
  table.games.team-games, table.games.team-games > tbody { display: block; overflow: visible; }
  table.games.team-games tr { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "when pill" "teams teams"; border-bottom: 1px solid var(--line); }
  table.games.team-games tr:last-child { border-bottom: 0; }
  table.games.team-games :is(td, th) { border-bottom: 0; }
  table.games.team-games :is(td, th):first-child { grid-area: when; padding-bottom: 0; }
  table.games.team-games td.num { grid-area: pill; justify-self: end; padding-bottom: 0; }
  table.games.team-games td.teams, table.games.team-games td.muted { grid-area: teams; padding-top: 4px; }
}

/* Register (D-356): each league's offers as cards, the price the figure, one button each. */
.reg-league { margin: 0 0 var(--s-8); }
.reg-league > h2 { margin: 0; }
.reg-league > p { margin: 0 0 var(--s-3); }
ul.offer-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.card.offer-card { display: grid; align-content: start; gap: var(--s-1); border-top: 4px solid var(--club-line, var(--accent)); box-shadow: var(--e1); }
.offer-card p { margin: 0; }
.offer-card-price .price { font: 800 var(--t-figure)/1.1 var(--figures-display); }
.offer-card > .btn { margin-top: var(--s-2); }

/* A player's season card (D-151). */
.season-card { max-width: 600px; }
.season-card img { width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
/* D-464: a player's result card on the game's page. */
.result-card { width: 100%; height: auto; border-radius: var(--r-lg); }
.live-pass { max-width: 420px; margin: 0 auto; }
.live-pass .pass-band { margin: -16px -18px 0; padding: 8px 18px; background: var(--accent); color: var(--white); font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.live-pass .pass-body { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: start; }
.live-pass .pass-body h1 { font-size: var(--t-h2); margin: 0; }
.live-pass .pass-face { width: 110px; height: 140px; object-fit: cover; border-radius: var(--r-md); background: var(--line); display: flex; align-items: center; justify-content: center; text-align: center; }
.live-pass .pass-num { font-size: var(--t-figure); font-weight: 800; line-height: 1; }
.live-pass .pass-status { padding: .75rem 1rem; border-radius: var(--r-md); font-size: var(--t-lead); font-weight: 700; color: var(--white); }
.live-pass .pass-status.ok { background: var(--pass-ok); }
.live-pass .pass-status.out { background: var(--pass-out); }
.live-pass .pass-qr { max-width: 180px; margin: 0 auto; }
.live-pass .pass-qr svg { width: 100%; height: auto; }

/* Game intelligence (D-153). */
.intel-title { margin-top: 28px; }
.intel-phases { display: grid; gap: 10px; margin: 14px 0; }
.phase-bar { display: flex; height: 14px; border-radius: var(--r-md); overflow: hidden; background: var(--line); margin-top: 4px; }
.phase-bar span { display: flex; align-items: center; justify-content: center; font-size: var(--t-cap); color: var(--white); white-space: nowrap; overflow: hidden; }
.phase-key { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 6px 0 0; padding: 0; }
.phase-key i { display: inline-block; width: 10px; height: 10px; border-radius: var(--r-sm); margin-right: 5px; }
.phase-bar .ph-0, .phase-key .ph-0 { background: var(--accent); }
.phase-bar .ph-1, .phase-key .ph-1 { background: var(--ph-1); }
.phase-bar .ph-2, .phase-key .ph-2 { background: var(--ph-2); }
.phase-bar .ph-3, .phase-key .ph-3 { background: var(--ph-3); }
.phase-bar .ph-4, .phase-key .ph-4 { background: var(--ph-4); }
.intel-boards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 14px 0; }
.intel-boards ol { margin: 0; padding-left: 20px; }
.intel-boards li .num { float: right; font-weight: 700; }

/* Team kit (D-154) */
.kit-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.kit-price { font-weight: 800; font-size: var(--t-lead); white-space: nowrap; }
.kit-order { display: grid; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.kit-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem .75rem; }
.kit-fields input, .kit-fields select { width: 100%; }
.kit-totals { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin: 1rem 0; }
.kit-totals .card { text-align: center; }
.kit-sizes { display: flex; flex-wrap: wrap; gap: .4rem; }
.kit-size { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.kit-size span { font-size: var(--t-cap); color: var(--muted); font-weight: 700; }
.kit-size strong { font-size: var(--t-h2); }
.kit-size.total { border-color: var(--accent); }
.kit-shirt { white-space: nowrap; }
.kit-method { width: auto; max-width: 7.5em; }

/* Sponsors' perks (D-155) */
.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.perk { display: flex; flex-direction: column; gap: .35rem; }
.perk-logo { max-height: 56px; max-width: 160px; object-fit: contain; align-self: flex-start; margin-bottom: .25rem; }
.perk-sponsor { font-size: var(--t-cap); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.perk-offer { font-size: var(--t-lead); font-weight: 800; line-height: 1.25; }
.perk-code { font: 700 var(--t-h2)/1.2 var(--mono); letter-spacing: .12em; padding: .5rem .75rem; border: 2px dashed var(--accent); border-radius: var(--r-lg); text-align: center; }
.perk .actions { margin-top: auto; }
.perk-report { max-width: 720px; }

/* Coaches and trainers (D-156) */
.pro-card { display: flex; flex-direction: column; gap: .3rem; color: inherit; text-decoration: none; }
.pro-photo { width: 72px; height: 72px; border-radius: var(--r-pill); object-fit: cover; }
.pro-photo.big { width: 112px; height: 112px; }
.pro-head { display: flex; gap: 1rem; align-items: center; margin: .5rem 0 1rem; flex-wrap: wrap; }
.pro-head h1 { margin: .1rem 0; }
/* Where we play (D-159) */
.place-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin-top: 14px; }
.place-card h2 { margin: 0 0 4px; font-size: var(--t-lead); }
.place-list { margin: 8px 0; padding-left: 18px; }
.place-list li { margin: 2px 0; }
.place-card .btn { margin-top: 6px; }

/* The soccer match sheet (D-164): timeline and lineups. */
.timeline { list-style: none; padding: 0; margin: 8px 0; border-left: 2px solid var(--line); }
.timeline li { padding: 6px 10px; }
.timeline .tl-min { display: inline-block; min-width: 3.2em; font-variant-numeric: tabular-nums; font-weight: 600; }
.timeline .tl-away { background: color-mix(in srgb, var(--line) 35%, transparent); }
.lineups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lineups ul { list-style: none; padding: 0; margin: 6px 0 0; }
.lineups .num { display: inline-block; min-width: 1.8em; color: var(--muted, inherit); font-variant-numeric: tabular-nums; }

/* A player's photo beside their name (D-175): front table, referee sheet. */
img.face { width: 40px; height: 40px; border-radius: var(--r-pill); object-fit: cover; vertical-align: middle; }
img.face.big { width: 96px; height: 96px; }

/* Publishing asks once more (D-221): the button opens what it will do. */
details.publish-confirm { margin-top: 8px; }
details.publish-confirm > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; }
details.publish-confirm > summary::-webkit-details-marker { display: none; }
details.publish-confirm[open] > summary { opacity: .7; }
details.publish-confirm > form { margin-top: 8px; }
/* D-290: a draft's Publish sits above it and stays in view while the
   owner reads it (under the top bar on a computer, at the top on a phone,
   where the bar scrolls away); on a phone each team is one line. */
.publish-bar { position: sticky; top: var(--admin-top, 0px); z-index: 6; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; margin: var(--s-3) -18px; padding: var(--s-2) 18px; background: var(--card); border-bottom: 1px solid var(--line); }
.publish-bar details.publish-confirm { margin-top: 0; }
ul.draft-team-lines { display: none; list-style: none; margin: 0 0 var(--s-4); padding: 0; }
ul.draft-team-lines li { padding: 7px 0; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 999px) { #draft-teams { display: none; } ul.draft-team-lines { display: block; } }
/* "Share your league" after a launch moment (D-290). */
.launch-card { margin-bottom: var(--s-6); border-color: var(--link, var(--accent)); }
.launch-body { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.launch-qr { width: 132px; height: 132px; flex: none; background: var(--qr-bg); padding: 6px; border-radius: var(--r-sm); }
.launch-qr svg { width: 100%; height: 100%; display: block; }
.launch-card input[readonly] { width: 100%; }
/* On a phone the link and its buttons first; the code (for another phone) after. */
@media (max-width: 600px) { .launch-qr { order: 2; } }

/* Small line icons (_icons.html): the text's size and colour. */
svg.i { width: 1.1em; height: 1.1em; vertical-align: -.17em; flex: none; }
svg.i.card-yellow { color: var(--card-yellow); }
svg.i.card-red { color: var(--card-red); }
/* An empty page says why, and what to do (D-235). */
.empty { display: grid; justify-items: center; gap: var(--s-2); text-align: center; padding: var(--s-10) var(--s-6); }
.empty .empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--bg); color: var(--link, var(--accent)); }
.empty .empty-icon svg.i { width: 28px; height: 28px; }
.empty h2 { margin: var(--s-2) 0 0; font-size: var(--t-lead); }
.empty p { margin: 0; max-width: 46ch; color: var(--muted); }
.empty .actions { justify-content: center; margin-top: var(--s-2); }
/* A list with nothing in it, written as a grey card (110 places, design
   audit R1, D-651): drawn as an empty state in one rule. A soft dashed
   panel with an empty ring (no picture to load), the words, and the next
   step on its own line. */
.card.muted { position: relative; padding-left: calc(var(--s-4) + 30px); background: transparent; border: 1px dashed var(--field-border, var(--line)); box-shadow: none; color: var(--muted); }
.card.muted::before { content: ""; position: absolute; left: var(--s-4); top: calc(var(--s-4) + 1px); width: 14px; height: 14px; border: 2px dashed currentColor; border-radius: var(--r-pill); opacity: .7; }
.card.muted .next { display: block; margin-top: var(--s-1); }

/* Game night (D-235): a check-in or referee page in the club's name only,
   no menu and no footer. */
.kiosk-top { background: var(--brand, var(--accent)); color: var(--on-brand); }
.kiosk-top .bar { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; font-weight: 800; font-size: var(--t-lead); }
.kiosk-top img { height: 32px; width: auto; }
.kiosk-top :focus-visible { outline-color: var(--text); box-shadow: 0 0 0 2px var(--card); }
body.kiosk main.wrap { padding-bottom: var(--s-12); }
/* A referee's games on phones: one card each, the buttons under the teams. */
@media (max-width: 600px) {
  table.games.ref-games, table.games.ref-games > tbody { display: block; overflow: visible; border: 0; background: none; }
  table.games.ref-games tr { display: grid; gap: var(--s-2); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-3); }
  table.games.ref-games td { display: block; padding: 0; border: 0; text-align: left; }
  table.games.ref-games td.num { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  table.games.ref-games td.num form { display: contents; }
  table.games.ref-games td.nowrap br { display: none; }
  table.games.ref-games td.nowrap .time { margin-left: var(--s-2); }
}

/* Reduced motion: no smooth scrolling, nothing lifts or slides. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .league-card:hover, .join-card:hover { transform: none; }
}

.swatch { display: inline-block; width: 14px; height: 14px; border-radius: var(--r-pill); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.presets .actions { margin: 6px 0 0; }
.kiosk-top .kiosk-lang { margin-left: auto; font-size: var(--t-sm); font-weight: 600; }
.kiosk-top .kiosk-lang a { color: inherit; display: inline-block; padding: 10px 0; }
/* A labelled field in a row of buttons: its words above it (D-235). */
.actions > label:not(.check) { display: grid; gap: 4px; }

/* Our own pages (D-253): front page, prices, sign-up, legal, the demo's
   door, the schedule maker, "Get this for your league".  The company's
   look, as carbonyl.org: the paper ground and its faint grid, ink lines,
   Spectral titles, Hanken Grotesk text, JetBrains Mono labels and prices,
   one blue for doing, square corners.  Brand System §5-7. */
body.svc { font-size: var(--fs-read); line-height: 1.6; background-color: var(--ground); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; --r-sm: 2px; --r-md: 2px; --r-lg: 0px; --radius: 0px; }
.svc .wrap { max-width: var(--wrap); padding: 0 var(--gutter); }
.svc :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-control); box-shadow: none; }
.svc h1, .svc h2, .svc h3 { font-family: var(--display); font-weight: 600; line-height: var(--lh-tight); text-wrap: balance; letter-spacing: 0; }
.svc h1 { font-size: var(--fs-h1); letter-spacing: var(--track-display); margin: 0 0 var(--s-4); }
.svc main.narrow > h1, .svc main.stack > h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
.svc h2 { font-size: var(--fs-h2); margin: 0 0 var(--s-3); }
.svc h3 { font-size: var(--fs-h3); margin: 0 0 var(--s-2); }
.svc .card h2, .svc form h2, .svc .faq h2 { font-size: var(--t-h2); }
.svc p { max-width: var(--measure); }
.svc a { color: var(--accent); }
.svc .muted, .svc .small.muted { color: var(--muted); }
.svc .small { font-size: var(--t-sm); }
.label { font: 500 var(--t-cap)/1.3 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); margin: 0; }
.svc .eyebrow { font: 500 var(--t-cap)/1.3 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s-3); }
.svc .lede { font-size: var(--fs-lede); color: var(--muted); max-width: 60ch; margin: 0; }
.svc main.wrap { padding-top: var(--s-10); padding-bottom: var(--s-16); min-height: 0; }
.svc .narrow { max-width: calc(44rem + 2 * var(--gutter)); }
/* Frames: square, 1px ink, on the surface. */
.svc .card { background: var(--surface); border: 1px solid var(--ink); border-radius: 0; box-shadow: none; padding: var(--s-6); }
.svc .flash { border-radius: 0; }
.svc .stack > * + * { margin-top: var(--s-4); }
.svc main.stack > :first-child { margin-top: 0; }
.svc main.stack > h1 + p { color: var(--muted); font-size: var(--fs-lede); }
/* Buttons: square, 44px on phones; one primary a screen. */
.svc .btn { border-radius: var(--r-control); font: 600 var(--t-body)/1.2 var(--body); padding: 12px 18px; min-height: 44px; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); transition: background-color var(--ease), border-color var(--ease); }
.svc .btn:not(.secondary):not(.ghost):not(.tonal):not(.quiet):hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: none; }
.svc .btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.svc .btn.secondary:hover { background: var(--ground); box-shadow: none; }
.svc .btn.ghost { background: transparent; color: var(--accent); border-color: transparent; padding-inline: 4px; }
.svc .btn.ghost:hover { text-decoration: underline; box-shadow: none; }
.svc .btn.small { min-height: 44px; padding: 8px 14px; font-size: var(--t-sm); }
@media (min-width: 1000px) { .svc .btn { min-height: 40px; } .svc .btn.small { min-height: 36px; } }
.svc .btn.big { min-height: 48px; padding: 13px 22px; font-size: var(--t-body); white-space: nowrap; }
/* Fields: labels above, 44px, a 2px corner, the control edge. */
.svc label { font: 500 var(--t-sm)/1.4 var(--body); }
.svc :is(input[type=text], input[type=email], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=time], select, textarea) { background: var(--raised); border: 1px solid var(--field-border); border-radius: var(--r-control); min-height: 44px; padding: 10px 12px; color: var(--ink); }
.svc .table-scroll { overflow-x: auto; }
.svc table.table { background: var(--surface); border: 1px solid var(--ink); border-radius: 0; box-shadow: none; }
.svc table.table th { font: 500 var(--t-cap)/1.3 var(--mono); letter-spacing: var(--track-label); }
.svc table.table th[scope=row] { font: inherit; letter-spacing: normal; }
.svc table.table th[scope=row].num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.svc table.table td.num, .svc .num, .price { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* Long words and addresses wrap instead of pushing the page sideways
   (the privacy page scrolled 51-68px sideways on a phone). */
.svc main :is(p, li, dd, h1, h2, h3, a, code) { overflow-wrap: anywhere; }
.svc main :is(td, th), .svc main :is(td, th) :is(p, a, code) { overflow-wrap: break-word; }
.svc .prose { max-width: 72ch; line-height: 1.65; }
.svc .prose table { display: block; overflow-x: auto; max-width: 100%; }
.svc .prose table td, .svc .prose table th { min-width: 8em; }
.svc .prose h2 { font-size: var(--t-h2); }
.svc .prose h3 { font-size: var(--fs-h3); }

/* The lockup in live text, CARBONYL = LEAGUES (Brand System §3). */
.lockup { display: inline-flex; align-items: center; min-height: 24px; gap: .55em; font: 600 .95rem/1 var(--body); letter-spacing: .18em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.svc a.lockup { color: var(--ink); }
.lockup .bond { flex: none; width: 1.15em; height: .38em; border-top: 1.5px solid var(--mark); border-bottom: 1.5px solid var(--mark); }
.lockup .grp { color: var(--mark); letter-spacing: .12em; }
.mark-icon { display: block; flex: none; }
/* Header: sticky, the ground at 94% with a blur, one rule under it. */
.svc-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 94%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.svc-top .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; }
.svc-top nav { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.svc-top nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--t-sm); padding: 12px 8px; }
.svc-top nav a:not(.btn):hover { text-decoration: underline; }
/* D-1713: "Sign in" joined the bar; each link on one line, the links under the name on the narrowest phones. */
.svc-top nav a:not(.btn) { white-space: nowrap; }
.svc-top .bar { flex-wrap: wrap; row-gap: 0; }
.svc-top .btn { white-space: nowrap; min-height: 40px; padding: 9px 14px; font-size: var(--t-sm); }
@media (max-width: 600px) { .lockup { font-size: var(--t-cap); letter-spacing: .14em; gap: .45em; } .svc-top .hide-phone { display: none; } .svc-top nav { gap: 0; } .svc-top .btn { padding: 8px 12px; } }
/* A phone fits the lockup, Pricing, the language and the longer Spanish
   "Empieza gratis" in one row (the Spanish front page scrolled 29px sideways
   at 390px, D-275). */
/* D-382 (DW-343a): the smallest phones are one width, 430 (360 is gone): the lockup at its smallest. */
@media (max-width: 430px) { .svc-top .bar { gap: var(--s-2); } .lockup { font-size: .62rem; letter-spacing: .08em; gap: .35em; } .svc-top nav a:not(.btn) { padding: 12px 5px; } .svc-top .btn { padding: 8px; } }

/* The cover: the front page's hero, framed like a drawing sheet. */
.cover { position: relative; border: 1px solid var(--ink); background: var(--surface); margin-top: var(--s-2); }
.cover::before, .cover::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--ink); }
.cover::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.cover::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }
.cover-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.cover-main { padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; align-content: start; }
.cover-main h1 { margin: 0; font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.cover .actions { margin: 0; gap: 10px; align-items: center; }
.cover-main > p { margin: 0; }
.fp-for { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; margin: 0; font: 500 var(--t-cap)/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cover-fig { margin: 0; border-left: 1px solid var(--ink); display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.cover-fig > .label { padding: 14px 18px; border-bottom: 1px solid var(--ink); }
.cover-fig .stage { padding: clamp(16px, 3vw, 28px); display: grid; place-items: center; background: var(--ground); }
.cover-fig figcaption { border-top: 1px solid var(--ink); padding: 10px 14px; display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: var(--t-sm); color: var(--muted); align-items: baseline; }
.cover-fig figcaption b { font: 500 var(--t-cap)/1 var(--mono); letter-spacing: .1em; color: var(--mark); white-space: nowrap; }
/* The trust strip: what we can show, nothing we can't. */
.cover-foot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin: 0; padding: 0; list-style: none; font: 500 var(--t-cap)/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.cover-foot li { padding: 10px 14px; display: grid; gap: 4px; }
.cover-foot li + li { border-left: 1px solid var(--ink); }
.cover-foot b { font-weight: 500; color: var(--muted); font-size: var(--t-cap); letter-spacing: .12em; }
/* Fig. 1: the product drawn in its app variant (a club's colours). */
.phone-mock { --r: 6px; font-size: var(--t-body); width: 100%; max-width: 360px; background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--shadow-float); overflow: hidden; }
.phone-mock .club { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--mock-club); color: var(--white); font-weight: 600; font-size: var(--t-body); }
.phone-mock .club .reg { font-size: var(--t-cap); background: var(--white); color: var(--mock-club); border-radius: var(--r-pill); padding: 4px 10px; flex: none; }
.phone-mock .body { padding: 14px; display: grid; gap: 10px; }
.phone-mock .day { font: 500 var(--t-cap)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.phone-mock .game { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--raised); }
.phone-mock .t { font: 500 var(--t-sm)/1.3 var(--mono); }
.phone-mock .m { font-weight: 600; font-size: var(--t-body); line-height: 1.3; }
.phone-mock .w { grid-column: 2; font-size: var(--t-sm); color: var(--muted); }
.phone-mock .chip { display: inline-flex; border-radius: var(--r-pill); padding: 2px 9px; font: 600 var(--t-cap)/1.3 var(--body); }
.phone-mock .chip.warn { background: var(--warn-bg); color: var(--warn); }
.phone-mock .chip.good { background: var(--good-bg); color: var(--good); }
.phone-mock .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-mock .row2 span { display: grid; place-items: center; min-height: 44px; border-radius: var(--r-sm); font-weight: 600; font-size: var(--t-sm); border: 1px solid var(--ink); }
.phone-mock .row2 span.in { background: var(--mock-club); border-color: var(--mock-club); color: var(--white); }

/* Sheets: a mono label over a Spectral heading, content on an ink line. */
.sheet { padding-block: clamp(56px, 8vw, 92px); border-bottom: 1px solid var(--rule); }
.sheet:last-child { border-bottom: 0; }
.sheet-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 46rem; }
.sheet-head h2 { margin: 0; }
.sheet-head p { color: var(--muted); margin: 0; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.cols3 > * { padding: 22px 22px 26px 0; display: grid; gap: 10px; align-content: start; }
.cols3 > * + * { padding-left: 22px; border-left: 1px solid var(--rule); }
.cols3 > :nth-child(3n+1) { padding-left: 0; border-left: 0; } /* a second row starts flush (D-345) */
.cols3 .code { font: 500 var(--t-cap)/1 var(--mono); color: var(--mark); letter-spacing: .08em; }
.cols3 h3 { margin: 0; }
.cols3 p { color: var(--muted); font-size: var(--t-body); margin: 0; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--surface); }
.cols2 > * { padding: clamp(20px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.cols2 > * + * { border-left: 1px solid var(--ink); }
.cols2 h3, .cols2 p { margin: 0; }
.cols2 p { color: var(--muted); }
/* The price teaser and the plans. */
.teaser { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1.4fr) auto; align-items: end; border-top: 1px solid var(--ink); padding-top: var(--s-6); }
.teaser p { color: var(--muted); margin: 0 0 var(--s-3); }
.teaser .actions { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); background: var(--surface); margin: var(--s-8) 0 var(--s-4); }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: var(--s-6); min-width: 0; }
.plans > .plan + .plan { border-left: 1px solid var(--ink); }
.plan.featured { outline: 2px solid var(--accent); outline-offset: -2px; }
.plan .label { color: var(--muted); }
.plan.featured .label.pick { color: var(--accent); }
.plan h3 { margin: 0; font-size: var(--t-h1); }
.plan .for { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.plan .price { margin: var(--s-2) 0 0; font: 500 var(--t-figure)/1.1 var(--mono); letter-spacing: -.02em; white-space: nowrap; }
.plan .price small { font-size: var(--t-sm); color: var(--muted); letter-spacing: 0; font-weight: 400; }
.plan .billing { margin: 0; font-size: var(--t-sm); color: var(--muted); }
.plan ul { margin: 4px 0 8px; padding: var(--s-3) 0 0; border-top: 1px solid var(--rule); list-style: none; display: grid; gap: 6px; font-size: var(--t-body); }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 9px; height: 5px; border-left: 1.5px solid var(--good); border-bottom: 1.5px solid var(--good); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; width: 100%; }
.plans.talk { grid-template-columns: repeat(2, minmax(0, 1fr)); background: transparent; border-style: solid; border-color: var(--rule); margin-top: 0; }
.plans.talk > .plan + .plan { border-left-color: var(--rule); }
.plans.talk .plan h3 { font-size: var(--fs-h3); }
.plans.talk .btn { width: auto; align-self: flex-start; }
.fine-print { display: grid; gap: var(--s-6); grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); padding-top: var(--s-6); }
.fine-print > div { display: grid; gap: var(--s-2); align-content: start; }
.fine-print h3 { margin: 0; }
.fine-print p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.fine-print p strong { color: var(--ink); }
.svc .split { display: grid; gap: var(--s-8); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.svc .split h2 { margin-top: 0; }
.founding-band { margin: var(--s-6) 0; border-left: 4px solid var(--accent) !important; }
.founding-band h2 { font-family: var(--body); font-size: var(--t-lead) !important; margin: 0 0 var(--s-2); }
/* Questions: details on rules, a mono plus. */
.faq { max-width: 46rem; border-top: 1px solid var(--ink); }
.faq > h2 { margin: var(--s-6) 0 var(--s-3); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 var(--s-4); color: var(--muted); max-width: 64ch; }
.faq > p { margin-top: var(--s-4); }
/* Footer: legal links in a row (no dots), the family line, the company. */
.svc-foot { border-top: 1px solid var(--rule); padding: var(--s-8) 0 var(--s-10); font-size: var(--t-sm); color: var(--muted); }
.svc-foot .wrap { display: grid; gap: 14px; }
.svc-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.svc-foot nav a { color: var(--muted); display: inline-block; min-height: 24px; padding: 2px 0; }
.svc-foot p { margin: 0; }
.svc-foot .family { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.svc-foot .family a { color: var(--accent); }
@media (max-width: 999px) {
  .cover-body { grid-template-columns: 1fr; }
  .cover-fig { border-left: 0; border-top: 1px solid var(--ink); }
  .cover-foot { grid-template-columns: 1fr 1fr; }
  .cover-foot li:nth-child(3) { border-left: 0; }
  .cover-foot li:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .cols3, .plans, .plans.talk, .fine-print, .cols2 { grid-template-columns: 1fr; }
  .cols3 > * + * { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .plans > .plan + .plan { border-left: 0; border-top: 1px solid var(--ink); }
  .plans.talk > .plan + .plan { border-top-color: var(--rule); }
  .cols2 > * + * { border-left: 0; border-top: 1px solid var(--ink); }
  .teaser { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .cover .actions .btn.big { width: 100%; white-space: normal; } }

/* The app variant (D-253): the admin, the console and a player's own
   pages.  Same family, softer for phones: 16px text, 6px corners on what
   you tap, white cards with a light rule, 44px targets, numbers in mono. */
body.app { --r-sm: 6px; --r-md: 6px; --r-lg: 6px; --radius: 6px; }
body.app .card, body.app table.table, body.app .flash, body.app .banner { border-radius: var(--r-sm); }
body.app .btn { border-radius: var(--r-sm); }
/* D-302 (Journeys R12 #16): a small button on a player's page is still a
   comfortable target on a desktop (the captain's Copy, WhatsApp, team page). */
@media (min-width: 1000px) { body.app .btn.small { min-height: 36px; padding-top: 6px; padding-bottom: 6px; } }
body.app :is(input[type=text], input[type=tel], input[type=search], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], select) { min-height: 44px; border-radius: var(--r-sm); }
@media (min-width: 1000px) { body.app :is(input[type=text], input[type=tel], input[type=search], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=url], select) { min-height: 36px; } }
body.app:is(.admin, .svc) :is(td.num, th.num, .num, .time, .score, .record, .kit-price, .money, .price, .tl-min) { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* D-291: what you tap in a number cell is a control, not a number; a
   tile's big figure is Hanken's tabular digits, not mono. */
body.app :is(td.num, th.num) :is(select, button, input, label, summary, .btn) { font-family: var(--body); }
body.app .tile-value { font-family: var(--body); font-variant-numeric: tabular-nums; font-weight: 500; }
/* D-291: a player's own pages on our address (/me, Player+) in the app
   look: no blueprint grid, white cards with a light rule. */
body.svc.app { background-image: none; }
body.svc.app .card { background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r-sm); }
body.svc.app .flash { border-radius: var(--r-sm); }
/* D-302 (Journeys R12 #14): the app register's headings, not the marketing
   page's: the title in Spectral at 28-32px, sections in Hanken 600 at 22px. */
body.svc.app main h1, body.svc.app main.narrow > h1, body.svc.app main.stack > h1 { font-family: var(--display); font-weight: 600; font-size: var(--t-h1); line-height: 1.2; letter-spacing: 0; }
body.svc.app main h2, body.svc.app .card h2, body.svc.app form h2 { font-family: var(--body); font-weight: 600; font-size: var(--t-h2); line-height: 1.3; letter-spacing: 0; }
fieldset.invite-row { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.invite-row legend { padding: 0; font-weight: 600; }
fieldset.invite-row .row input { flex: 1 1 12rem; width: auto; }
details.withdraw > form { text-align: left; }
body.admin.app { --font: var(--body); }
body.admin.app .card { box-shadow: none; }
body.admin.app header.top { background: var(--raised); box-shadow: none; border-bottom: 1px solid var(--rule); }
body.admin.app header.top .brand::before { background: var(--club, var(--accent)); }
/* D-296: no Spectral anywhere in the admin (the serif is for our own pages):
   titles in Hanken 600, so the admin never loads the font. */
body.admin.app main > h1 { font-family: var(--body); font-weight: 600; letter-spacing: -.01em; }
/* D-296: no mono on a control in the admin, wherever it sits (a number
   cell, a price, a .mono editor): buttons, fields and choices are Hanken. */
body.admin.app :is(button, input, select, textarea, .btn) { font-family: var(--body); }
/* D-296: a tile's figure is Hanken 700 (Brand System §5: dashboard figures,
   not a column of numbers), not mono. */
body.admin.app :is(.league-card .record, .tile-value) { font-family: var(--body); font-weight: 700; }
/* D-296: Today's guided path for a new club: numbered steps on a rule,
   the next one open with its one primary button, the others a line. */
.first-path { margin-bottom: var(--s-4); }
.first-path h2 { margin: 0 0 var(--s-1); }
.first-path > .muted { margin: 0 0 var(--s-3); max-width: 64ch; }
.first-path .path-count { margin: 0 0 var(--s-1); font: 500 var(--t-cap)/1.3 var(--mono); letter-spacing: var(--track-label, .12em); text-transform: uppercase; color: var(--muted); }
.first-path .path-langs { float: right; font-size: var(--t-sm); }
.first-path .path-langs a { padding: 4px; text-decoration: none; }
.first-path .path-langs a[aria-current] { color: var(--text); font-weight: 600; }
.path-steps { list-style: none; margin: 0; padding: 0; }
.path-step { display: flex; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.path-step:first-child { border-top: 0; }
.path-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-pill); border: 1px solid var(--field-border, var(--line)); color: var(--muted); font-weight: 600; font-size: var(--t-sm); }
.path-step.is-done .path-mark { background: var(--good-bg); border-color: var(--good-bg); color: var(--good); }
.path-step.is-next .path-mark { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, var(--on-accent)); }
.path-body { flex: 1 1 auto; min-width: 0; }
.path-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); min-height: 28px; }
.path-title { font-weight: 600; }
.path-step.is-done .path-title, .path-step.is-later .path-title { font-weight: 500; color: var(--muted); }
.path-step.is-next .path-title { font-size: var(--t-lead); }
.pill-next { background: var(--accent-tint, var(--line)); color: var(--accent); }
.path-now { margin-top: var(--s-2); }
.path-now p { margin: 0; max-width: 64ch; }
.path-now .launch-body { margin-top: var(--s-1); }
details.first-path > summary .muted { font-weight: 400; }
details.first-path[open] > summary { margin-bottom: var(--s-2); }
body.admin.app main h2 { font-weight: 600; }
.admin-nav .made-by { display: flex; align-items: center; gap: 8px; padding: var(--s-4) var(--s-2) 0; margin-top: var(--s-2); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-cap); text-decoration: none; }
.admin-nav .made-by svg { width: 20px; height: 20px; border-radius: var(--r-sm); }
.admin-nav .made-by:hover { background: none; text-decoration: underline; }
.admin-nav.in-menu .made-by { display: none; }
/* "Powered by Carbonyl" under an embedded schedule (D-253). */
.embed-badge { margin: var(--s-4) 0 0; font-size: var(--t-cap); color: var(--muted); }
.embed-badge a { color: inherit; }
/* The team's join link on the registration's confirmation (D-253). */
body:not(.admin) .join-share input[type=text] { font-family: var(--font, var(--body)); font-size: var(--t-sm); }

/* D-245: a toggle is a tap target of 24px at least; a wide table (a
   lineup) scrolls inside its card on a phone instead of widening the page. */
summary { min-height: 24px; padding-block: 2px; cursor: pointer; }
.scroll-x { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
form.card:has(.scroll-x) { min-width: 0; max-width: 100%; }
.scroll-x > table.lineup { display: table; min-width: 480px; }

/* D-259: the language switch on phones (ES / EN), the product row in our
   footer, and the about-us page's facts. */
.svc-top .show-phone, .lang-switch .show-phone { display: none; }
@media (max-width: 600px) { .svc-top .show-phone, .lang-switch .show-phone { display: inline; } .lang-switch .hide-phone { display: none; } }
.svc-foot .product-links a { color: var(--ink); }
.trust-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.trust-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.trust-facts dt { font: 500 var(--t-cap)/1.5 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.trust-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .trust-facts { grid-template-columns: 1fr; } .trust-facts dd { margin-bottom: 8px; } }

/* D-332 (Design Direction R16, items 1 to 5): a type scale, figures that
   line up, colour roles from the club's one colour (services/theme.py
   checks each), soft elevation on club pages, crests, match cards, the
   scoreboard and the masthead.  Our own pages stay flat (D-253). */
:root {
  /* D-343: these names are aliases of the one type scale (top of file). */
  --fs-eyebrow: var(--t-cap); --fs-title: var(--t-h2);
  --fs-display: var(--t-display); --fs-figure: var(--t-figure); --fs-score: var(--t-score);
  --tracking-display: -.02em;
  /* Digits from the figures font, all one width; letters from the club's. */
  --figures: "Carbonyl Figures", var(--font, var(--body));
  --figures-display: "Carbonyl Figures", var(--heading-font, var(--font, var(--body)));
  --e1: 0 1px 2px rgb(15 27 45 / .06), 0 0 0 1px var(--line);
  --e2: 0 6px 16px rgb(15 27 45 / .08), 0 1px 3px rgb(15 27 45 / .06);
  --e3: var(--shadow-float);
}
@media (prefers-color-scheme: dark) {
  :root { --e1: 0 0 0 1px var(--line); --e2: 0 0 0 1px var(--line), 0 8px 24px rgb(0 0 0 / .45); }
  body:not(.svc):not(.admin) { --club-tint: var(--club-tint-dark); --club-soft: var(--club-soft-dark); --club-line: var(--club-line-dark); }
}
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
:is(body, .lg-art).ground-pitch { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' fill='none' stroke='white' stroke-opacity='.13' stroke-width='2.5'%3E%3Crect x='10' y='10' width='380' height='240' rx='4'/%3E%3Cpath d='M200 10v240M10 70h60v120H10M390 70h-60v120h60M10 105h22v50H10M390 105h-22v50h22'/%3E%3Ccircle cx='200' cy='130' r='40'/%3E%3Ccircle cx='200' cy='130' r='3'/%3E%3C/svg%3E"); }
:is(body, .lg-art).ground-court { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' fill='none' stroke='white' stroke-opacity='.13' stroke-width='2.5'%3E%3Crect x='10' y='10' width='380' height='240' rx='4'/%3E%3Cpath d='M200 10v240M10 90h95v80H10M390 90h-95v80h95M10 30h30a110 100 0 0 1 0 200H10M390 30h-30a110 100 0 0 0 0 200h30'/%3E%3Ccircle cx='200' cy='130' r='32'/%3E%3C/svg%3E"); }
:is(body, .lg-art).ground-diamond { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' fill='none' stroke='white' stroke-opacity='.13' stroke-width='2.5'%3E%3Cpath d='M200 245 310 135 200 25 90 135Z'/%3E%3Cpath d='M200 245 25 70M200 245 375 70'/%3E%3Cpath d='M25 70a248 248 0 0 1 350 0'/%3E%3Ccircle cx='200' cy='150' r='14'/%3E%3C/svg%3E"); }
/* D-372: a court split by a net (volleyball, tennis, pickleball), a rink, and lanes (bowling; darts and cornhole boards). */
:is(body, .lg-art).ground-net { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' fill='none' stroke='white' stroke-opacity='.13' stroke-width='2.5'%3E%3Crect x='10' y='10' width='380' height='240' rx='4'/%3E%3Cpath d='M10 40h380M10 220h380M140 10v240M260 10v240'/%3E%3Cpath d='M200 2v256' stroke-width='5' stroke-dasharray='3 4'/%3E%3Ccircle cx='200' cy='130' r='3'/%3E%3C/svg%3E"); }
:is(body, .lg-art).ground-rink { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' fill='none' stroke='white' stroke-opacity='.13' stroke-width='2.5'%3E%3Crect x='10' y='10' width='380' height='240' rx='80'/%3E%3Cpath d='M200 10v240M145 10v240M255 10v240M42 32v196M358 32v196M42 112a18 18 0 0 1 0 36M358 112a18 18 0 0 0 0 36'/%3E%3Ccircle cx='200' cy='130' r='30'/%3E%3Ccircle cx='90' cy='70' r='22'/%3E%3Ccircle cx='90' cy='190' r='22'/%3E%3Ccircle cx='310' cy='70' r='22'/%3E%3Ccircle cx='310' cy='190' r='22'/%3E%3C/svg%3E"); }
:is(body, .lg-art).ground-lanes { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' fill='none' stroke='white' stroke-opacity='.13' stroke-width='2.5'%3E%3Cpath d='M10 40h380M10 100h380M10 160h380M10 220h380M60 40v180M10 46h380M10 94h380M10 106h380M10 154h380M10 166h380M10 214h380'/%3E%3Cpath d='M130 62l12 8-12 8M130 122l12 8-12 8M130 182l12 8-12 8'/%3E%3Ccircle cx='340' cy='70' r='3'/%3E%3Ccircle cx='352' cy='63' r='3'/%3E%3Ccircle cx='352' cy='77' r='3'/%3E%3Ccircle cx='364' cy='56' r='3'/%3E%3Ccircle cx='364' cy='70' r='3'/%3E%3Ccircle cx='364' cy='84' r='3'/%3E%3Ccircle cx='340' cy='130' r='3'/%3E%3Ccircle cx='352' cy='123' r='3'/%3E%3Ccircle cx='352' cy='137' r='3'/%3E%3Ccircle cx='364' cy='116' r='3'/%3E%3Ccircle cx='364' cy='130' r='3'/%3E%3Ccircle cx='364' cy='144' r='3'/%3E%3Ccircle cx='340' cy='190' r='3'/%3E%3Ccircle cx='352' cy='183' r='3'/%3E%3Ccircle cx='352' cy='197' r='3'/%3E%3Ccircle cx='364' cy='176' r='3'/%3E%3Ccircle cx='364' cy='190' r='3'/%3E%3Ccircle cx='364' cy='204' r='3'/%3E%3C/svg%3E"); }
:is(body, .lg-art).ground-lines { --art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' fill='none' stroke='white' stroke-opacity='.13' stroke-width='2.5'%3E%3Cpath d='M-20 260 240 0M60 260 320 0M140 260 400 0M220 260 420 60M300 260 420 140'/%3E%3C/svg%3E"); }
.eyebrow { font-size: var(--t-cap); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; line-height: 1.3; }
body:not(.svc):not(.admin) :is(td.num, th.num, .score, .time, .figure, .record, .money, .price) { font-family: var(--figures); font-variant-numeric: tabular-nums; }
.figure { font: 800 var(--t-lead)/1.2 var(--figures-display); }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: var(--r-pill); background: var(--club-soft, var(--line)); color: var(--text); font-weight: 600; text-decoration: none; }
.chip:hover { text-decoration: underline; }

/* Crests: a team's initials on its colour; a ring where it would melt into the card. */
.crest { --size: 30px; display: inline-grid; place-items: center; flex: none; width: var(--size); height: var(--size); border-radius: var(--r-pill); background: var(--c, var(--accent)); color: var(--ci, var(--white)); font: 800 calc(var(--size) * .36)/1 var(--heading-font, var(--font, var(--body))); letter-spacing: -.02em; vertical-align: middle; text-transform: uppercase; }
.crest-sm { --size: 24px; margin-right: 8px; }
.crest-lg { --size: 44px; }
.crest-xl { --size: clamp(56px, 14vw, 88px); box-shadow: 0 0 0 3px rgb(255 255 255 / .9), var(--e2); }
.ring-l { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .28); }
@media (prefers-color-scheme: dark) { .ring-l { box-shadow: none; } .ring-d { box-shadow: 0 0 0 1px rgb(255 255 255 / .4); } }
main > h1.with-crest { display: flex; align-items: center; gap: 16px; }
.club-mark { display: block; flex: none; height: 32px; width: auto; aspect-ratio: 40 / 46; }
img.club-mark { aspect-ratio: auto; object-fit: contain; }
header.top .brand .club-mark { height: 36px; }
.club-mark.big { height: clamp(64px, 16vw, 96px); margin: 0 auto 16px; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .35)); }
img.club-mark.big { max-width: min(70vw, 280px); }
.masthead { position: relative; overflow: hidden; text-align: center; padding: clamp(36px, 7vw, 72px) 0 clamp(40px, 7vw, 80px); }
:is(.masthead, .hero) h1 { font-size: var(--t-display); line-height: 1.05; letter-spacing: var(--tracking-display); color: var(--highlight); font-weight: 800; margin: 0 auto 12px; max-width: 18ch; }
.masthead p { font-size: var(--t-lead); max-width: 60ch; margin: 0 auto 20px; }

/* Match cards: home, the time or score, away; the whole card is the game's link. */
ol.matches { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
@media (min-width: 1000px) { ol.matches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px 12px; padding: 14px 16px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .14s ease, box-shadow .14s ease; }
a.match:hover { border-color: var(--club-line, var(--accent)); box-shadow: var(--e2); }
.m-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 650; line-height: 1.25; }
.m-home { justify-content: flex-end; text-align: right; }
.m-name { overflow-wrap: anywhere; }
.m-mid { display: grid; justify-items: center; min-width: 4.5em; }
.m-score, .m-time { font: 800 var(--t-h2)/1.1 var(--figures-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-time { font-size: var(--t-body); padding: 4px 10px; border-radius: var(--r-pill); background: var(--club-soft, var(--bg)); }
:is(.m-postponed, .m-cancelled) .m-time { text-decoration: line-through; }
.m-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 14px; font-size: var(--t-sm); color: var(--muted); text-align: center; }
.m-meta .clash { color: var(--warn); }
.compact .m-meta > span:not(.pill) + span:not(.pill)::before { content: "·"; margin-right: 8px; }
main > .scoreboard:first-child, :is(.masthead, .hero) ~ main > :first-child { margin-top: var(--s-6); }
@media (max-width: 600px) {
  .m-team { flex-direction: column; gap: 6px; text-align: center; }
  .m-home { flex-direction: column-reverse; justify-content: flex-start; text-align: center; }
}
li.m-bye { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 1px dashed var(--field-border); border-radius: var(--r-lg); }
li.m-bye .eyebrow { margin: 0; }
.o-W { background: var(--good-bg); color: var(--good); }
.o-L { background: var(--bad-bg); color: var(--bad); }
.o-T { background: var(--line); color: var(--text); }
.s-live { background: var(--live-bg); color: var(--live); }
.s-live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: var(--r-pill); background: currentColor; vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) { .s-live::before { animation: live-dot 2s ease-in-out infinite; } }
@keyframes live-dot { 50% { opacity: .4; } }
.card.next-game { box-shadow: var(--e2); }
.card > a.match { padding: 6px 0; border: 0; box-shadow: none; background: transparent; }
.team-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.league-card.team-card { display: flex; align-items: center; gap: 14px; }
.team-card > span { display: grid; }

/* The scoreboard: the two teams' colours as a faint surface, a strong
   stripe of each on top (no text on them), the score big. */
.scoreboard { position: relative; overflow: hidden; margin: 0 0 20px; padding: 22px 16px 20px; border: 1px solid var(--line); border-radius: var(--r-xl); text-align: center; background: var(--card); background: linear-gradient(90deg, color-mix(in srgb, var(--home) 12%, var(--card)) 0 50%, color-mix(in srgb, var(--away) 12%, var(--card)) 50% 100%); box-shadow: var(--e2); }
.scoreboard::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--home) 0 50%, var(--away) 50% 100%); }
.sb-meta { margin: 0 0 6px; font-size: var(--t-sm); color: var(--muted); }
.sb-title { font-size: var(--t-lead); font-weight: 700; margin: 0 0 16px; line-height: 1.3; }
.sb-board { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; }
.sb-side { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.sb-name { font-size: var(--t-lead); font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.sb-name a { color: inherit; text-decoration: none; }
.sb-name a:hover { text-decoration: underline; }
.sb-rec { font-size: var(--t-sm); color: var(--muted); }
.sb-mid { display: grid; justify-items: center; gap: 6px; align-self: center; }
.sb-score { display: flex; align-items: baseline; gap: .12em; font: 800 var(--t-score)/1 var(--figures-display); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; }
.sb-score.long { font-size: var(--t-figure); } /* D-378: a bowling night's four-figure totals */
.sb-dash { color: var(--muted); font-weight: 500; }
.sb-time { font: 800 var(--t-figure)/1.1 var(--figures-display); font-variant-numeric: tabular-nums; }
.sb-day { font-size: var(--t-sm); color: var(--muted); }
.sb-foot { margin: 12px 0 0; color: var(--muted); }
.grid.preview { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 0 0 18px; align-items: start; }
.pv-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.pv-name { flex: 1; min-width: 0; font-weight: 600; }
.form-run { display: inline-flex; gap: 2px; }

/* Standings: the rank in a circle, a crest by each name, the leader tinted. */
table.standings .rank { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border-radius: var(--r-pill); background: var(--bg); font-weight: 700; font-size: var(--t-sm); }
table.standings tr.leader > :is(td, th) { background: var(--club-tint, transparent); }
table.standings tr.leader .rank { background: var(--accent-strong, var(--accent)); color: var(--on-accent); }
table.standings th[scope=row] { white-space: nowrap; }
table.standings th[scope=row] a { color: inherit; font-weight: 650; text-decoration: none; }
table.standings th[scope=row] a:hover { text-decoration: underline; }
table.standings td.pts { font-size: var(--t-lead); }
table.standings.mini tr.gap td { text-align: center; padding: 2px; }

/* The admin: the club's crest by its name; each night's games, each a link. */
body.admin.app header.top .brand.with-crest { display: flex; align-items: center; gap: 8px; }
body.admin.app header.top .brand.with-crest::before { display: none; }
.night-games summary { cursor: pointer; margin: 6px 0; }
ul.game-rows { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 2px; }
ul.game-rows a { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-height: 44px; padding: 6px 8px; border-radius: var(--r-sm); color: inherit; text-decoration: none; }
ul.game-rows a:hover { background: var(--bg); text-decoration: underline; }

/* D-338 (R16 items 6 to 10): a list of games is compact, one row each in
   one card, so a night scrolls no longer than the old table; a single game
   keeps the big card.  Tiles, hero cards, the roster grid, the offer and
   ticket, the player's page and the owner's Today. */
ol.matches.compact { gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--e1); }
@media (min-width: 1000px) { ol.matches.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
ol.matches.compact > li { border: solid var(--line); border-width: 1px 0 0 1px; margin: -1px 0 0 -1px; }
.compact a.match { grid-template-columns: 68px minmax(0, 1fr); gap: 0 10px; padding: var(--s-2) var(--s-3); border: 0; border-radius: 0; box-shadow: none; background: none; }
.compact a.match:hover { background: var(--club-tint, var(--bg)); box-shadow: none; }
.mr-when { grid-row: 1 / span 2; font: 700 var(--t-sm)/1.2 var(--figures); color: var(--muted); }
.mr-when .m-time { padding: 0; background: none; font-size: var(--t-sm); color: var(--text); }
.mr-side { grid-column: 2; display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; line-height: 1.35; }
.mr-side .m-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-side .m-score { font: 800 var(--t-body)/1 var(--figures); }
:is(.mr-side, .m-team).lost { color: var(--muted); font-weight: 500; }
:is(.mr-side, .m-team).won { font-weight: 800; }
.compact .crest { --size: 20px; }
.compact .m-meta { grid-column: 2; justify-content: flex-start; gap: 0 8px; font-size: var(--t-cap); line-height: 1.35; text-align: left; }
.compact .m-meta .pill { font-size: var(--t-cap); padding: 0 6px; }
.compact li.m-bye { border-radius: 0; border-style: solid none none solid; padding: 8px 12px; }
.m-meta > :is(.clash, .m-note, .favorite, .m-extra) { flex-basis: 100%; }
.m-meta > :is(.clash, .m-note, .favorite, .m-extra)::before { content: none !important; }
:is(section.next-game, section.up-next, .card.offer) { margin: 0 0 16px; border-top: 4px solid var(--club-line, var(--accent)); box-shadow: var(--e2); }
:is(section.next-game, section.up-next) h2.eyebrow { font-size: var(--t-cap); }
:is(section.next-game, section.up-next) a.match { padding: 8px 0; border: 0; box-shadow: none; background: none; }
ul.stat-tiles, ul.rows, ul.team-chips, .person-me .place-list { list-style: none; padding: 0; }
ul.stat-tiles { margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
ul.stat-tiles .tile { display: grid; align-content: start; gap: 2px; padding: 14px 16px; margin: 0; box-shadow: var(--e1); }
ul.stat-tiles .eyebrow { margin: 0; }
.tile-figure { font: 800 var(--t-figure)/1.1 var(--figures-display); letter-spacing: var(--tracking-display); white-space: nowrap; }
.tile-figure .moved { font: 700 var(--t-sm)/1 var(--figures); letter-spacing: 0; vertical-align: middle; }
a.ng-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; margin: 8px 0 0; color: inherit; text-decoration: none; }
a.ng-match:hover .ng-side > :last-child { text-decoration: underline; }
.ng-side { display: grid; justify-items: center; gap: 6px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.ng-vs { align-self: center; padding-bottom: 1.4em; font-size: var(--t-sm); font-weight: 700; color: var(--muted); text-transform: uppercase; }
section.next-game > :not(.eyebrow, .ng-match) { text-align: center; justify-content: center; }
.ng-when { margin: 8px 0 2px; font: 800 var(--t-h2)/1.2 var(--heading-font, var(--font, var(--body))); }
.ng-where { margin: 0 0 8px; color: var(--muted); }
@media (max-width: 600px) { ul.stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.p-name { flex: 1; min-width: 0; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.p-num { font: 800 var(--t-lead)/1 var(--figures-display); color: var(--muted); }
.p-cap, form.sectioned > h2::before { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--accent-strong, var(--accent)); color: var(--on-accent); font: 800 var(--t-cap)/1 var(--figures); }
.section-head { display: flex; align-items: baseline; gap: 10px; }
/* Standings: a stripe on the playoff places, said in words under the table. */
table.standings tr.q > :first-child { box-shadow: inset 4px 0 var(--accent); }
table.standings td.pts strong { font-weight: 800; }
table.standings .num { text-align: center; }
.q-legend { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; }
.q-mark { width: 4px; height: 18px; border-radius: var(--r-pill); background: var(--accent); }
@media (max-width: 600px) {
  table.standings :is(td, th) { padding-left: 5px; padding-right: 5px; }
  table.standings th[scope=row] { white-space: normal; min-width: 8.5em; }
}
/* Registration: the offer beside the form on a computer, above it on a
   phone; the parts numbered; the button kept in view on a phone. */
.offer-layout { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1000px) {
  .offer-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .offer-layout > .offer { grid-area: 1 / 2; position: sticky; top: 16px; }
  .offer-layout > .offer-main { grid-area: 1 / 1; }
}
.offer-main > :first-child { margin-top: 0; }
.card.offer { display: grid; gap: 6px; }
.card.offer p { margin: 0; }
.card.offer meter { width: 100%; height: 10px; accent-color: var(--accent); }
.offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.offer-price .price:first-child { font: 800 var(--t-figure)/1.1 var(--figures-display); }
.chip.early { background: var(--warn-bg); color: var(--warn); font-size: var(--t-sm); }
:is(.offer-facts, .offer-notes) { list-style: none; padding: 8px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line); color: var(--muted); }
/* D-393: a booking's notes (coed spots, when to give a spot up) stay on a
   phone, one to a line; the form fills the column beside the offer. */
.offer-notes li + li { margin-top: var(--s-1); }
meter.pass-left { display: block; width: 100%; height: 10px; margin-bottom: var(--s-1); accent-color: var(--accent); }
.offer-main > form.stack { max-width: none; }
form.sectioned { counter-reset: part; }
form.sectioned > h2 { counter-increment: part; display: flex; align-items: center; gap: 10px; margin: 18px 0 2px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--t-lead); }
form.sectioned > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
form.sectioned > h2::before { content: counter(part); width: 28px; height: 28px; }
.card.sectioned { overflow: clip; }
/* The confirmation (D-250): the outcome first, then what was booked
   (moved here from register_status.html by D-356, for the enrollment's ticket too). */
.reg-outcome { display: flex; gap: 14px; align-items: flex-start; border: 0; }
.reg-outcome.good { background: var(--good-bg); color: var(--good); }
.reg-outcome.due { background: var(--warn-bg); color: var(--warn); }
.reg-outcome .mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-pill); background: currentColor; }
.reg-outcome .mark svg { width: 22px; height: 22px; color: var(--card); stroke: var(--card); }
.reg-outcome strong.big-line { display: block; font-size: var(--t-lead); line-height: 1.3; }
/* D-2155 (walk r759-d): each small line is its own fact; inline they ran together ("Hosted by Jordan K.See you there."). */
.reg-outcome > div > .small { display: block; }
.reg-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.reg-facts dt { color: var(--muted); }
.reg-facts dd { margin: 0; }
.reg-pay .btn { width: 100%; min-height: 48px; font-size: var(--t-body); }
.reg-next { margin-bottom: var(--s-6); }
.reg-friend { margin-top: 20px; }
/* The confirmation as a ticket: the club's gradient, a check that draws
   once, then what was booked under a tear line. */
.card.reg-outcome.ticket-head { margin: 0; padding: 22px 18px; background: linear-gradient(110deg, var(--hero-from, var(--brand-dark)) 35%, var(--hero-to, var(--brand-dark))); color: var(--on-brand-dark); }
.card.reg-outcome.ticket-head strong.big-line { color: var(--highlight); font-size: var(--t-h2); }
/* D-2176 (walk r778-d): a link on the dark band ("Pay it", "Bring a friend") was the
   brand's dark green on near-black; the band's own light colour, underlined. */
.card.reg-outcome.ticket-head a { color: var(--highlight); text-decoration: underline; }
/* D-1270 (the lead's walk): on the dark ticket the mark is light, so its check is the dark (it was white on white). */
.card.reg-outcome.ticket-head .mark svg { color: var(--brand-dark, var(--ink)); stroke: var(--brand-dark, var(--ink)); }
.card.reg-outcome.ticket-head .mark { width: 48px; height: 48px; background: var(--highlight); }
.card.reg-outcome.ticket-head .mark svg { width: 26px; height: 26px; stroke: var(--hero-from); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) {
  .card.reg-outcome.ticket-head .mark svg * { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw-check .4s .15s ease-out forwards; }
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }
main > .card.ticket-head + .card.ticket { margin-top: 0; }
.card.ticket { position: relative; border-top: 2px dashed var(--line); box-shadow: var(--e2); }
.card.ticket::before, .card.ticket::after { content: ""; position: absolute; top: -11px; left: -11px; width: 20px; height: 20px; border-radius: var(--r-pill); background: var(--bg); }
.card.ticket::after { left: auto; right: -11px; }
.ticket-title { display: flex; align-items: center; gap: 10px; margin: 0; }
.ticket-title .crest { --size: 36px; }
.card.ticket .reg-facts strong { font-size: var(--t-lead); }
/* A player's page: In | Out as one segmented control (two buttons). */
section.up-next a.match .crest { --size: 44px; }
form.segmented { display: flex; gap: 3px; width: fit-content; max-width: 100%; margin: 12px auto 0; padding: 4px; border-radius: var(--r-pill); background: var(--club-soft, var(--line)); }
form.segmented .btn { flex: 1; min-height: 44px; min-width: 7.5em; padding: 8px 18px; border: 0; border-radius: var(--r-pill); background: none; color: var(--text); box-shadow: none; font-weight: 600; }
form.segmented .btn:hover, form.segmented .btn[aria-pressed=true] { background: var(--card); }
form.segmented .btn[aria-pressed=true] { box-shadow: var(--e2); font-weight: 800; }
form.segmented .btn[value=in][aria-pressed=true] { color: var(--good); }
form.segmented .btn[value=out][aria-pressed=true] { color: var(--bad); }
form.segmented.small { margin: 0 auto 10px; }
form.segmented.small .btn { min-height: 36px; padding: 4px 14px; font-size: var(--t-sm); }
.going-list > li { display: grid; }
.my-team-head { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-bottom: 10px; }
.my-team-head:hover strong { text-decoration: underline; }
.my-team-head > span:nth-child(2) { flex: 1; display: grid; }
ul.rows { margin: 0 0 14px; }
ul.rows.card { padding: 8px 16px; }
ul.rows > li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
ul.rows > li:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 12em; display: grid; color: inherit; text-decoration: none; }
.row-main:hover .row-title { text-decoration: underline; }
.row-title { font-weight: 650; }
.row-pay { flex-basis: 100%; }
/* Carbonyl ID's page: a card per club with a stripe in its colour. */
body.svc.person-me section.play-club.card { border-top: 4px solid var(--club-stripe, var(--line)); }
body.person-me .chip { color: var(--text); padding-left: 4px; }
.club-card-head { display: flex; align-items: center; gap: 12px; margin: 0; }
ul.team-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; }
ul.team-chips .crest-sm { margin-right: 6px; }
/* D-343, Design System v2, pass 1: the base components (docs/DESIGN.md),
   each on the style guide (/ops/styleguide) in every state.  Tokens only:
   no size, corner, colour or width of its own.  Macros: _ds.html. */
/* Icons: Lucide's line, the text's colour; 16 in text, 20 in buttons and
   rows, 24 in bars and headers, 48 in an empty state. */
svg.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.i-16 { width: 16px; height: 16px; } svg.i.i-20 { width: 20px; height: 20px; }
svg.i.i-24 { width: 24px; height: 24px; } svg.i.i-48 { width: 48px; height: 48px; stroke-width: 1.5; }
/* Layout helpers in place of inline styles (D-343). */
.ml-auto { margin-left: auto; } .mb-0 { margin-bottom: 0; } .mb-4 { margin-bottom: var(--s-4); }
.w-full { width: 100%; } .bare { padding: 0; border: 0; } .plain { list-style: none; padding-left: 0; } .indent { margin-left: 28px; }
.fit-xs { max-width: 220px; }
.caps { text-transform: uppercase; letter-spacing: .06em; }
.inline-row { display: inline-flex; gap: var(--s-1); }
.spread { display: flex; justify-content: space-between; gap: var(--s-2); }
.split-bar { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; background: var(--line); }
.split-bar > div { background: var(--accent); }
.textbox { white-space: pre-line; max-height: 320px; overflow: auto; border: 1px solid var(--line); padding: 10px; border-radius: var(--r-md); }
.textbox.short { max-height: 260px; }
.card-figure { margin: 0; text-align: center; width: 104px; }
.organizer-line { margin-top: var(--s-5); margin-bottom: var(--s-6); }

/* Buttons: primary (.btn), tonal, quiet (.ghost is the older name), danger;
   md 44px, sm 36px; full width in a phone form (.block). */
.btn.tonal { background: var(--club-soft, var(--accent-tint, var(--surface-2))); color: var(--text); border-color: transparent; }
.btn.quiet { background: transparent; color: var(--link, var(--accent)); border-color: transparent; }
.btn.tonal:hover, .btn.quiet:hover { box-shadow: inset 0 0 0 100vmax color-mix(in srgb, currentColor 10%, transparent); }
.btn.danger:not(.confirm):hover { background: var(--bad-bg); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: var(--t-sm); }
.btn.block { width: 100%; }
.btn svg.i { width: 20px; height: 20px; }
.btn.sm svg.i { width: 16px; height: 16px; }
.btn[aria-disabled="true"], .btn:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: not-allowed; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .seg > *, .list-row { transition: transform var(--dur-1) var(--ease, ease-out), box-shadow var(--dur-2) ease-out, background-color var(--dur-2) ease-out; }
  .btn:active:not([aria-disabled="true"]), a.list-row:active { transform: scale(.98); }
}

/* Segmented control: one 44px pill, the chosen answer filled. */
.seg { display: inline-flex; max-width: 100%; gap: 2px; padding: 2px; min-height: var(--tap); border: 1px solid var(--field-border); border-radius: var(--r-pill); background: var(--surface-2); margin: 0; min-width: 0; }
.seg > :is(button, label) { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-width: 0; min-height: 38px; padding: 2px var(--s-3); border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text); font: inherit; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
.seg > :is(button, label):hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.seg > [aria-pressed="true"], .seg > input:checked + label { background: var(--brand, var(--accent)); color: var(--on-brand); }
.seg > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg > input:focus-visible + label { outline: 3px solid var(--link, var(--accent)); outline-offset: 2px; }
.seg > [aria-disabled="true"], .seg:disabled > label { color: var(--muted); cursor: not-allowed; }
.seg:disabled > input:checked + label { background: var(--line); color: var(--muted); }
.seg svg.i { width: 16px; height: 16px; }

/* Switch: a checkbox drawn as a track and a knob (on/off settings). */
input[type=checkbox][role=switch] { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0; border-radius: var(--r-pill); background: var(--field-border); cursor: pointer; }
input[type=checkbox][role=switch]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: var(--r-pill); background: var(--white); box-shadow: var(--shadow-sm); }
input[type=checkbox][role=switch]:checked { background: var(--brand, var(--accent)); }
input[type=checkbox][role=switch]:checked::before { left: 21px; }
input[type=checkbox][role=switch]:disabled { background: var(--line); cursor: not-allowed; }
@media (prefers-reduced-motion: no-preference) { input[type=checkbox][role=switch]::before { transition: left var(--dur-2) ease-out; } }
.switch-row { display: flex; gap: var(--s-3); align-items: flex-start; min-height: var(--tap); font-weight: 400; }
.switch-row > span { display: grid; gap: 2px; }
.switch-row .title { font-weight: 600; }
.switch-row .sub, .list-row .sub, .field .help { font-size: var(--t-sm); color: var(--muted); }

/* List rows in a card: leading picture, title and line, trailing value. */
:is(ul, ol).list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
/* No overflow clip (a row's ⋯ menu opens past the card): the end rows round themselves. */
:is(ul, ol).list > :is(li:first-child, li:last-child), :is(ul, ol).list > :is(li:first-child, li:last-child) > .list-row { border-radius: inherit; }
:is(ul, ol).list > li + li { border-top: 1px solid var(--line); }
/* A leader board (D-382): the place in the lead, the figure at the right. */
ol.list.board > li > .list-row { min-height: 48px; }
.list-row .lead.rank { width: 28px; height: auto; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.list-row.rank-row .title { white-space: normal; }
.list-row.rank-row .trail { color: var(--text); }
.list-row { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: var(--s-2) var(--s-4); color: inherit; text-decoration: none; }
a.list-row:hover { background: var(--surface-2); }
.list-row[aria-current] { background: var(--club-tint, var(--accent-tint, var(--surface-2))); }
.list-row .lead { flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; }
.list-row .lead svg.i { width: 24px; height: 24px; color: var(--muted); }
.list-row .body { flex: 1 1 auto; min-width: min(14ch, 100%); display: grid; } /* D-2568: never crushed by its buttons */
.list-row:has(.trail .btn) { flex-wrap: wrap; } /* the buttons go under the name when the row is narrow */
.list-row .trail.row { flex-wrap: wrap; justify-content: flex-end; }
/* D-2568, D-2570: a card that is one row: words that grow, an action beside them, under them when narrow. */
.row-card { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.row-card .grow { flex: 1 1 16ch; min-width: 0; }
.list-row .title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .trail { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.list-row svg.go { flex: none; width: 20px; height: 20px; color: var(--muted); }

/* Badges: exceptions only, an icon or dot and a word. */
.badge { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 24px; padding: 2px var(--s-2); border-radius: var(--r-sm); font-size: var(--t-cap); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.badge svg.i { width: 14px; height: 14px; }
.badge.live { background: var(--live-bg); color: var(--live); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge .dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: currentColor; }
@media (prefers-reduced-motion: no-preference) { .badge.live .dot { animation: live-dot 2s ease-in-out infinite; } }

/* Chips: 32px links; the chosen one filled. */
.chip { min-height: 32px; }
.chip[aria-current] { background: var(--brand, var(--accent)); color: var(--on-brand); text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* A count drawn: a bar and its words.  Green once met, amber while short. */
.need { display: grid; gap: var(--s-1); }
.need meter { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: var(--r-pill); background: var(--line); }
.need meter::-webkit-meter-bar { height: 8px; border: 0; border-radius: var(--r-pill); background: var(--line); }
.need meter::-webkit-meter-optimum-value { border-radius: var(--r-pill); background: var(--good); }
.need meter::-webkit-meter-suboptimum-value, .need meter::-webkit-meter-even-less-good-value { border-radius: var(--r-pill); background: var(--warn); }
.need meter:-moz-meter-optimum::-moz-meter-bar { border-radius: var(--r-pill); background: var(--good); }
.need meter:is(:-moz-meter-sub-optimum, :-moz-meter-sub-sub-optimum)::-moz-meter-bar { border-radius: var(--r-pill); background: var(--warn); }

/* Avatars: initials on a quiet colour, a circle. */
.avatar { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: var(--r-pill); color: var(--white); font-size: var(--t-cap); font-weight: 700; letter-spacing: .02em; }
.list-row .avatar, .avatar.lg { width: 40px; height: 40px; font-size: var(--t-sm); }
.avatar.p-1 { background: var(--people-1); } .avatar.p-2 { background: var(--people-2); } .avatar.p-3 { background: var(--people-3); }
.avatar.p-4 { background: var(--people-4); } .avatar.p-5 { background: var(--people-5); } .avatar.p-6 { background: var(--people-6); }
/* Who's in (D-367): initials overlapping, each ringed in the card's colour. */
.faces { display: inline-flex; align-items: center; }
.faces .avatar { box-shadow: 0 0 0 2px var(--card); }
.faces .avatar + .avatar { margin-left: calc(-1 * var(--s-2)); }
.faces .avatar.more { background: var(--surface-2); color: var(--text); }

/* Sheet: a <details> whose panel rises from the bottom on a phone and
   drops under its button on a computer; the backdrop closes nothing (no
   script), the button does.  (.sheet is also our pages' section band:
   these rules are for details.sheet only.) */
@media (min-width: 1000px) { .child-more .sheet-body { width: var(--sheet-wide); } }
.sheet-body .danger-zone { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--line); }
details.sheet, details.row-menu { position: relative; display: inline-block; padding: 0; border: 0; }
details.sheet > summary, details.row-menu > summary { list-style: none; }
details.sheet > summary::-webkit-details-marker, details.row-menu > summary::-webkit-details-marker { display: none; }
.sheet-body, .menu-body { z-index: 30; display: grid; gap: var(--s-1); padding: var(--s-4); background: var(--card); color: var(--text); box-shadow: var(--e3, var(--shadow-lg)); }
@media (max-width: 999px) {
  details.sheet[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 29; background: color-mix(in srgb, var(--black) 40%, transparent); cursor: default; }
  .sheet-body { position: fixed; left: 0; right: 0; bottom: 0; max-height: 80dvh; overflow-y: auto; padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom)); border-radius: var(--r-xl) var(--r-xl) 0 0; }
}
@media (min-width: 1000px) { .sheet-body { position: absolute; top: calc(100% + var(--s-1)); left: 0; min-width: 280px; border-radius: var(--r-lg); } }
@media (prefers-reduced-motion: no-preference) {
  details.sheet[open] > .sheet-body, details.row-menu[open] > .menu-body { animation: rise var(--dur-3) var(--ease, ease-out); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
/* ⋯ menu: a 44px button; quiet buttons, a danger one last and apart. */
details.row-menu > summary { display: grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: var(--r-pill); color: var(--muted); }
details.row-menu > summary:hover, details.row-menu[open] > summary { background: var(--surface-2); color: var(--text); }
details.row-menu > summary svg.i { width: 20px; height: 20px; }
.menu-body { position: absolute; right: 0; top: calc(100% + var(--s-1)); min-width: 200px; padding: var(--s-2); border-radius: var(--r-lg); }
.menu-body > :is(a, button, form > button) { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: var(--tap); padding: 0 var(--s-3); border: 0; border-radius: var(--r-md); background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.menu-body > :is(a, button):hover { background: var(--surface-2); }
.menu-body > .danger { color: var(--bad); border-top: 1px solid var(--line); border-radius: 0; margin-top: var(--s-1); }

/* Fields: the label over the control, help and the error under it. */
.field { display: grid; gap: var(--s-1); font-weight: 600; font-size: var(--t-sm); }
.field :is(input, select, textarea) { font-size: var(--t-body); }
:is(.field, .q-rows) .error-line { display: flex; gap: var(--s-1); align-items: center; color: var(--bad); font-weight: 600; }
:is(input, select, textarea)[aria-invalid="true"] { border-color: var(--bad); }
:is(input, select, textarea):disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
:is(input, textarea)[readonly] { background: var(--surface-2); }
/* A select draws its own chevron (two gradients: no picture to load). */
select:not([multiple]):not([size]) { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
/* In a table cell the compact padding kept the chevron over the words
   ("cash▾", design audit R1): room for it, and a select never shrinks
   below a short word. */
.table td select:not([multiple]):not([size]) { padding-right: 30px; background-position: right 14px center, right 9px center; min-width: 6.5em; }
/* A button asking first (dock.js, D-651): red until the second tap, the question beside it. */
.btn.armed, button.armed { background: var(--bad); border-color: var(--bad); color: var(--white); }
.confirm-note { display: inline-block; margin-left: var(--s-2); font-size: var(--t-sm); font-weight: 600; color: var(--bad); }
/* A button whose form is being sent (dock.js): busy, with a turning ring. */
.is-sending { pointer-events: none; opacity: .75; }
.btn.is-sending::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: var(--s-2); border: 2px solid currentColor; border-right-color: transparent; border-radius: var(--r-pill); vertical-align: -0.15em; }
@media (prefers-reduced-motion: no-preference) { .btn.is-sending::after { animation: turn .8s linear infinite; } }
@keyframes turn { to { transform: rotate(360deg); } }
/* Every disclosure (design audit R1): no browser triangle; a chevron
   that turns when it opens.  Disclosures with their own look (sheets,
   menus, more rows, the dock, the questions) keep it. */
summary { cursor: pointer; }
:where(details) > summary { list-style: none; }
:where(details) > summary::-webkit-details-marker { display: none; }
:where(details:not(.sheet, .row-menu, .menu-sheet, .more-row, .more-hint, .publish-confirm, .more, .dock-more)) > summary::before { content: ""; display: inline-block; flex: none; width: .45em; height: .45em; margin: 0 .6em .15em .1em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); vertical-align: middle; }
:where(details[open]:not(.sheet, .row-menu, .menu-sheet, .more-row, .more-hint, .publish-confirm, .more, .dock-more)) > summary::before { transform: rotate(45deg); }
:where(.faq, .dock, .top-tabs) summary::before, summary.btn::before { content: none; }
@media (prefers-reduced-motion: no-preference) { :where(details) > summary::before { transition: transform var(--dur-1) ease-out; } }

/* Notices: one at a time, with an icon. */
.flash.notice { display: flex; gap: var(--s-2); align-items: flex-start; }
.flash.notice svg.i { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.flash.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.flash.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
/* Zero hides: one "All clear" line in place of tiles showing 0. */
.all-clear { display: flex; gap: var(--s-2); align-items: center; margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--radius); background: var(--good-bg); color: var(--good); }
.all-clear svg.i { flex: none; width: 20px; height: 20px; }
.empty .empty-icon svg.i.i-48 { width: 28px; height: 28px; }

/* D-354, Design System v2, pass 4: the pages where people do things (My
   page, family, captain, referee).  Each opens on what to do now; the rest
   is behind tabs, disclosures and list rows.  Tokens only. */
/* Tabs without script on a person's pages: the admin's tabset (the part an
   address names shows, else the first; an anchor inside a part opens it),
   drawn as one segmented pill that stays under the top bar.  The shown
   part's tab is filled by :has(), parts named t1 to t5. */
.app-tabs > .tabbar { position: sticky; top: 56px; z-index: 6; gap: 2px; margin: var(--s-2) 0 var(--s-4); padding: 2px; border: 1px solid var(--field-border); border-radius: var(--r-pill); background: var(--surface-2); box-shadow: var(--e1, var(--shadow-sm)); }
.app-tabs > .tabbar a { flex: 1 0 auto; justify-content: center; min-height: 40px; margin: 0; border: 0; border-radius: var(--r-pill); color: var(--text); font-size: var(--t-sm); }
.app-tabs > .tabbar a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.app-tabs > .tabbar .count { min-width: 20px; padding: 0 var(--s-1); border-radius: var(--r-pill); background: var(--live, var(--bad)); color: var(--white); font-size: var(--t-cap); line-height: 20px; text-align: center; }
.app-tabs:not(:has(.tabpanel:target, .tabpanel :target)) > .tabbar a.t1,
.app-tabs:has(> .tabpanel.t1:target, > .tabpanel.t1 :target) > .tabbar a.t1,
.app-tabs:has(> .tabpanel.t2:target, > .tabpanel.t2 :target) > .tabbar a.t2,
.app-tabs:has(> .tabpanel.t3:target, > .tabpanel.t3 :target) > .tabbar a.t3,
.app-tabs:has(> .tabpanel.t4:target, > .tabpanel.t4 :target) > .tabbar a.t4,
.app-tabs:has(> .tabpanel.t5:target, > .tabpanel.t5 :target) > .tabbar a.t5 { background: var(--brand, var(--accent)); color: var(--on-brand); }
/* An anchor lands under the top bar and the tabs, not behind them. */
.app-tabs [id] { scroll-margin-top: 128px; }
.app-tabs > .tabpanel > h2:first-child { margin-top: var(--s-2); }
@media (min-width: 1000px) { .app-tabs > .tabbar { top: 68px; max-width: 560px; } }
/* A row's actions beside the row (a ⋯ menu, a small form). */
ul.list > li.with-menu { display: flex; align-items: center; padding-right: var(--s-2); }
ul.list > li.with-menu > .list-row { flex: 1 1 auto; min-width: 0; }
.list-row .badge { margin-left: var(--s-1); }
.list-row .lead .crest { --size: 36px; }
/* People with an answer or a choice beside them (a roster, who is coming). */
.person-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-height: 56px; padding: var(--s-2) var(--s-4); }
.person-row > .who { display: flex; align-items: center; gap: var(--s-3); flex: 1 1 160px; min-width: 0; }
.person-row > .who > span { display: grid; min-width: 0; }
.person-row .name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row .sub { font-size: var(--t-sm); color: var(--muted); }
.person-row .seg { min-height: 36px; }
.person-row .seg > :is(button, label) { min-height: 32px; padding: 0 var(--s-3); font-size: var(--t-sm); }
.said { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.said.in { color: var(--good); } .said.out { color: var(--bad); }
.said svg.i { width: 16px; height: 16px; }
/* Counts drawn side by side: the players' meter and the women's. */
.needs { display: grid; gap: var(--s-2); }
@media (min-width: 600px) { .needs { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-4); } }
.up-next .seg, .going-row .seg { display: flex; width: 100%; }
.going-row { display: grid; gap: var(--s-2); }
/* A section a person opens when they need it: a quiet, full-width row. */
details.more-row { border-top: 1px solid var(--line); }
details.more-row > summary { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); font-weight: 600; color: var(--link, var(--accent)); cursor: pointer; list-style: none; }
details.more-row > summary::-webkit-details-marker { display: none; }
details.more-row > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
details.more-row[open] > summary::after { transform: rotate(-135deg); }
details.more-row > :not(summary) { margin-bottom: var(--s-3); }
details.more-row svg.i { width: 20px; height: 20px; }
/* D-393: a referee's score: the game over two big boxes side by side. */
.score-head { display: grid; gap: var(--s-1); margin: 0; }
.score-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-3); max-width: 420px; }
.score-pair .field > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-pair input.score-in { width: 100%; min-height: calc(var(--tap) + var(--s-3)); font: 700 var(--t-h2)/1 var(--figures, inherit); text-align: center; }
/* D-393: the age screen's date, one line on a phone. */
.dob-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s-2); }
/* D-393: a later game's lineup, folded inside its own card. */
details.lineup-later { border-top: 0; }
details.lineup-later > summary { color: var(--text); font-weight: 400; }
/* The lineup: a sheet of who starts, then a row per player usable at 390. */
.lineup-sheet { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: var(--s-3); list-style: none; border-radius: var(--r-md); background: color-mix(in srgb, var(--good) 12%, var(--card)); }
.lineup-sheet li { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--t-sm); font-weight: 600; }
.lineup-sheet .no { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 var(--s-1); border-radius: var(--r-pill); background: var(--card); color: var(--text); font-variant-numeric: tabular-nums; box-shadow: var(--shadow-sm); }
.lineup-sheet .bench { opacity: .75; }
ul.lineup-rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-3); align-items: center; padding: var(--s-2) var(--s-4); }
.lineup-rows .pick-name { display: flex; align-items: center; gap: var(--s-3); min-height: var(--tap); min-width: 0; font-weight: 600; }
.lineup-rows .pick-name input { flex: none; width: 22px; height: 22px; accent-color: var(--brand, var(--accent)); }
.lineup-rows .pick-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineup-rows input.no { width: 64px; text-align: center; }
.lineup-rows .roles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.lineup-rows .roles .seg { min-height: 36px; }
.lineup-rows .roles .seg > label { min-height: 32px; font-size: var(--t-sm); }
.lineup-rows li:not(:has(.pick-name input:checked)) .roles { display: none; }
/* A one-of choice drawn as a chip (captain, keeper): the chosen one filled. */
label.pick { position: relative; display: inline-flex; align-items: center; gap: var(--s-1); min-height: 36px; padding: 0 var(--s-3); border: 1px solid var(--field-border); border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 600; cursor: pointer; }
label.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
label.pick:has(input:checked) { background: var(--brand, var(--accent)); border-color: transparent; color: var(--on-brand); }
label.pick:has(input:focus-visible) { outline: 3px solid var(--link, var(--accent)); outline-offset: 2px; }
label.pick:has(input:disabled) { color: var(--muted); cursor: not-allowed; }
/* A child's or a person's head: an avatar, the name, a line and badges. */
.who-head { display: flex; align-items: center; gap: var(--s-3); }
.who-head h2, .who-head h1 { margin: 0; }
.who-head .badges { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.chips.switcher { margin: var(--s-2) 0 var(--s-4); }
.chips.switcher .chip { min-height: var(--tap); padding: 0 var(--s-4); gap: var(--s-2); }
/* Settings a person changes rarely, one form and one Save each. */
.settings-form { max-width: 560px; }
.page-lead { margin-top: calc(-1 * var(--s-2)); }
.list-row .lead.ref-when { width: 64px; height: auto; place-items: start; gap: 0; line-height: 1.25; }
@media (min-width: 1000px) { li.with-menu details.sheet .sheet-body { left: auto; right: 0; } }
.field .help, label.check .help { display: block; font-size: var(--t-sm); font-weight: 400; color: var(--muted); }
/* In | Out as the design system's segmented control, the width of its card. */
.going-choice:has(> .seg) { display: block; }
.going-choice > .seg { display: flex; width: 100%; }
.list-row .title.long { white-space: normal; }
li.with-menu > details.sheet { flex: none; }
li.with-menu > details.sheet > summary { white-space: nowrap; }
:is(.ref-games, .ref-records) .list-row .title { white-space: normal; }
/* A segmented radio may hold its input (no id to pair): the same look. */
.seg > label > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg > label:has(> input:checked) { background: var(--brand, var(--accent)); color: var(--on-brand); }
.seg > label:has(> input:focus-visible) { outline: 3px solid var(--link, var(--accent)); outline-offset: 2px; }
.seg:disabled > label:has(> input:checked) { background: var(--line); color: var(--muted); }
.seg > label { position: relative; }
/* A small phone: four tabs and their counts fit (Spanish too). */
@media (max-width: 430px) { .app-tabs > .tabbar a { padding: 0 var(--s-2); gap: var(--s-1); font-size: var(--t-cap); } }
/* D-341: the bell (its count drawn by the server) and the notification centre. */
header.top a.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: inherit; }
header.top a.bell .i { width: 22px; height: 22px; }
body.admin header.top a.top-link.bell { padding: 10px 6px; }
body.admin header.top a.top-link.bell + a.top-link { margin-left: var(--s-4); }
/* D-366: a referee's bell in the kiosk header, before the language link. */
.kiosk-top a.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: auto; color: inherit; }
.kiosk-top a.bell .i { width: 22px; height: 22px; }
.kiosk-top a.bell + .kiosk-lang { margin-left: var(--s-2); }
.bell-count { position: absolute; top: 4px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--bad); color: var(--white); font-size: var(--t-cap); font-weight: 700; line-height: 18px; text-align: center; }
.notices { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-2); }
.notices > .notice > a { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: inherit; text-decoration: none; }
.notices > .notice.unread > a { border-left: 4px solid var(--accent); }
.notice-icon { flex: none; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: var(--r-pill); background: var(--surface); }
.notice-text { min-width: 0; }
.ios-card .steps { margin: 0; padding-left: 1.4em; display: grid; gap: var(--s-1); }
@media (display-mode: standalone) { .ios-card { display: none !important; } }
/* D-344 (Bughunt R17 #1): a long unbroken name (a team, a person, a form
   title someone typed) wraps instead of widening the page, on every page,
   public and admin. Text breaks anywhere it must; a table cell breaks a
   word only where its column is already as narrow as its words let it be
   (break-word), so a phone's table never squeezes "Paid" into letters.
   Anything kept on one line on purpose (white-space: nowrap: times, pills,
   scores, tabs) and a crest's initials stay as they are. */
main :is(h1, h2, h3, h4, p, li, dd, dt, label, legend, summary, figcaption, blockquote, a, .card) { overflow-wrap: anywhere; }
main :is(td, th) { overflow-wrap: break-word; }
main .crest { overflow-wrap: normal; }
/* D-367 (DW-344a): an admin table's first column is the row's name (a team, a
   person, a form). There a name saved before D-344's 60-character cap, one
   word of up to 200, breaks anywhere instead of widening the table; the
   column keeps room for a short name's words (--name-col), so a phone's
   table never spells "Paid" or "Sharks" down the page. */
body.admin main table :is(td, th):first-child { overflow-wrap: anywhere; min-width: var(--name-col); }
/* A game list's team names (the middle column) break the same way. */
body.admin main table.games .side { overflow-wrap: anywhere; }

/* D-353, Design System v2 pass 3: the fan pages read as one app. */
/* A hub page's header: the title band (above) holding a line back up, the
   title with its crest, one line under it and its actions. */
body:not(.embed):not(.admin):not(.svc) main > .hub { display: grid; gap: var(--s-2); padding: var(--s-6) 0 var(--s-5); color: var(--on-brand-dark, var(--white)); }
.hub h1 { margin: 0; font-size: var(--t-h1); font-weight: 800; line-height: var(--lh-display); letter-spacing: var(--tracking-display); color: var(--highlight); overflow-wrap: anywhere; }
.hub-title { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.hub-words { display: grid; gap: var(--s-1); min-width: 0; }
.hub-eyebrow, .hub-sub { margin: 0; font-size: var(--t-sm); }
.hub-eyebrow a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); color: inherit; font-weight: 700; text-decoration: none; }
.hub-eyebrow a:hover { text-decoration: underline; }
.hub-eyebrow + .hub-title { margin-top: calc(-1 * var(--s-2)); }
.hub-eyebrow svg.i { width: 16px; height: 16px; }
.hub-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }
.hub :focus-visible { outline-color: var(--highlight); }
/* A team's colour as a line along the band's foot: drawn by its crest. */
.hub-team .hub-title > .crest::after { content: ""; position: absolute; left: calc(50% - 50vw); right: calc(50% - 50vw); bottom: 0; height: 4px; background: var(--c); }
.h2h-crests { display: inline-flex; flex: none; }
.h2h-crests .crest + .crest { margin-left: calc(-1 * var(--s-3)); box-shadow: 0 0 0 2px var(--brand-dark, var(--band)); }
/* Main and a 320px rail from 1000px: the team's tiles and roster, the game's facts. */
.with-rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s-6); align-items: start; }
/* D-379: one column below 1000px that never grows past the screen: a wide
   line score scrolls inside its card instead of pushing the page sideways. */
@media (min-width: 1000px) {
  .team-layout { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "next tiles" "games rail"; }
  .t-tiles { grid-area: tiles; } .t-next { grid-area: next; } .t-rail { grid-area: rail; } .t-games { grid-area: games; }
  .t-rail > h2:first-child, .t-games > h2:first-child { margin-top: var(--s-4); }
  .team-layout ul.stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .team-layout ol.matches.compact { grid-template-columns: minmax(0, 1fr); }
  .game-layout { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "main rail"; }
  .g-rail { grid-area: rail; } .g-main { grid-area: main; }
}
/* The roster as rows: the player's initials in the team's colour. */
ul.people-rows .list-row { min-height: 48px; padding-block: var(--s-1); }
ul.people-rows .crest { --size: 32px; }
ul.people-rows .p-num { min-width: 2.5em; text-align: right; }
/* Match rows of two lines (R17's 60px): the time and the field on the
   left, each side with its score on the right; a third only when needed. */
.mr-when { display: grid; align-content: center; gap: 2px; min-width: 0; }
.mr-where { overflow: hidden; font: 500 var(--t-cap)/1.2 var(--body); color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: break-word; } /* two lines, not "Orlando S…" (D-956) */
.mr-side { line-height: 1.3; }
.compact a.match.m-now { background: var(--club-tint, var(--surface-2)); }
.mr-now { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--live); font-weight: 800; }
.mr-now .dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: currentColor; }
@media (prefers-reduced-motion: no-preference) { .mr-now .dot { animation: live-dot 2s ease-in-out infinite; } }
/* Standings: the form as dots, the playoff line, the points last and bold. */
.form-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.fd { display: inline-block; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--form-d); }
.fd.f-W { background: var(--form-w); } .fd.f-L { background: var(--form-l); }
.form-key { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); }
table.standings.fan { display: table; width: 100%; }
table.standings.fan .st-team { display: inline-flex; align-items: center; gap: var(--s-2); max-width: 100%; }
table.standings.fan .st-team a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.standings.fan th[scope=row] { white-space: normal; }
table.standings.fan :is(th, td).pts { font-size: var(--t-lead); }
table.standings.fan tr.q-cut > * { border-bottom: 2px dashed var(--link, var(--accent)); }
@media (max-width: 600px) {
  table.standings.fan :is(td, th) { padding: var(--s-2) 3px; }
  table.standings.fan th[scope=row] { min-width: 0; max-width: 9.5em; }
  table.standings.fan .st-team a { display: block; }
  table.standings.fan th:not([scope=row]) { font-size: var(--t-cap); }
}
/* The date strip: eleven days across, the chosen one filled. */
nav.days { display: flex; gap: var(--s-1); margin: 0 0 var(--s-3); padding: var(--s-1) 0; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.day-chip { flex: 0 0 auto; display: grid; justify-items: center; gap: 2px; min-width: 48px; min-height: 56px; padding: var(--s-2) var(--s-1); border-radius: var(--r-md); color: var(--muted); text-decoration: none; scroll-snap-align: center; position: relative; }
.day-chip .dw { font-size: var(--t-cap); font-weight: 700; text-transform: uppercase; }
.day-chip .dd { font: 800 var(--t-lead)/1 var(--figures); }
.day-chip.has { color: var(--text); }
.day-chip.has::after { content: ""; width: 5px; height: 5px; border-radius: var(--r-pill); background: var(--link, var(--accent)); }
.day-chip.today { box-shadow: inset 0 0 0 2px var(--field-border); }
.day-chip:hover { background: var(--surface-2); }
.day-chip[aria-current] { background: var(--brand, var(--accent)); color: var(--on-brand); }
.day-chip[aria-current]::after { background: currentColor; }
.days-more { display: flex; justify-content: space-between; margin: calc(-1 * var(--s-2)) 0 var(--s-3); }
.days-more a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); }
.venue-head { display: flex; align-items: center; gap: var(--s-2); }
.venue-head svg.i { width: 18px; height: 18px; color: var(--muted); }
/* The game: its facts as an info list, the result in a sentence, the goals
   under each side, each team's next game. */
.info-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 var(--s-4); margin: 0 0 var(--s-4); padding: var(--s-1) var(--s-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--e1); }
.info-list > div { display: contents; }
.info-list :is(dt, dd) { padding: var(--s-3) 0; }
.info-list > div + div > :is(dt, dd) { border-top: 1px solid var(--line); }
.info-list dt { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-sm); font-weight: 700; color: var(--muted); }
.info-list dt svg.i { width: 18px; height: 18px; flex: none; }
.info-list dd { margin: 0; overflow-wrap: anywhere; }
.sb-summary { margin: var(--s-4) 0 0; font-weight: 700; }
.sb-goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: var(--t-sm); }
.sb-goals li { display: flex; align-items: center; justify-content: center; gap: var(--s-1); }
.sb-goals svg.i { width: 14px; height: 14px; }
.grid.preview { align-items: stretch; }
.next-each { margin: var(--s-4) 0; }
/* The home page: tonight's rows, the one registration block, league cards with their ground. */
section.tonight { margin: var(--s-6) 0 var(--s-4); }
section.tonight .section-head h2 { margin: 0; }
section.tonight .section-head { flex-wrap: wrap; margin-bottom: var(--s-3); }
.more-line { margin: var(--s-2) 0 0; }
.join { background: var(--club-tint, var(--card)); color: var(--text); border: 1px solid var(--line); border-top: 4px solid var(--club-line, var(--accent)); box-shadow: var(--e1); padding: var(--s-5); }
.join h2 { color: var(--text); font-size: var(--t-h2); }
.join-list .trail { font: 800 var(--t-lead)/1.2 var(--figures); }
.join-list .lead svg.i { color: var(--link, var(--accent)); }
.join :focus-visible { outline-color: var(--focus, var(--accent)); box-shadow: none; }
.league-card.lg-art { display: grid; padding: 0; overflow: hidden; }
.lg-band { display: flex; align-items: flex-end; height: 72px; padding: var(--s-2) var(--s-4); background: var(--art, none) right -20px center / auto 170% no-repeat, linear-gradient(110deg, var(--hero-from, var(--brand-dark)) 35%, var(--hero-to, var(--brand-dark))); }
.lg-sport { padding: 2px var(--s-2); border-radius: var(--r-pill); background: var(--card); color: var(--text); font-size: var(--t-cap); font-weight: 700; }
.lg-body { display: grid; gap: 2px; padding: var(--s-3) var(--s-4) var(--s-4); }
/* Lists with a figure at the end (a team's points). */
.figure-sm { font: 800 var(--t-lead)/1 var(--figures); }
.team-rows .lead { width: 44px; }
/* Places: a pin, the name and address, what is on as chips. */
.place-head { display: flex; gap: var(--s-3); align-items: flex-start; margin-bottom: var(--s-3); }
.place-pin { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--club-soft, var(--surface-2)); color: var(--text); }
.place-card .chips { list-style: none; margin: 0 0 var(--s-3); padding: 0; }
/* Find your team, under Games. */
.find-bar { display: grid; gap: var(--s-1); margin: var(--s-6) 0 0; max-width: 560px; font-weight: 600; font-size: var(--t-sm); }
.find-row { display: flex; gap: var(--s-2); }
.find-row input { flex: 1; min-width: 0; }
/* The week as a story. */
.story-lead { margin: 0 0 var(--s-4); }
.story-lead h2.eyebrow { display: flex; align-items: center; gap: var(--s-1); }
.story { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; margin-bottom: var(--s-4); }
.story .card > h2 { margin-top: 0; display: flex; align-items: center; gap: var(--s-2); }
.story-list { display: grid; gap: var(--s-2); margin: 0 0 var(--s-2); padding: 0; list-style: none; }
.story-list .rank { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--surface-2); font-weight: 700; font-size: var(--t-sm); }
.story-moves { line-height: 1.8; }
.story-list .block { display: block; }
/* D-1065 (round 64): a line of its own inside a row (a group's next games on /me ran together). */
span.block { display: block; }
.fan-list .list-row .title { white-space: normal; overflow-wrap: anywhere; }
.fan-list .list-row .trail { flex: none; text-align: right; }
/* The notification centre as rows (D-354): the crest or a bell, the title
   and what happened, the day; an unread one tinted with a "New" badge. */
ul.list.notices { display: block; gap: 0; }
ul.list.notices .list-row { align-items: flex-start; }
ul.list.notices .title { white-space: normal; }
ul.list.notices li.unread > .list-row { background: var(--club-tint, var(--accent-tint, var(--surface-2))); }
.list-row .body { text-align: start; }
.going-row > .going-choice { padding: 0 var(--s-4) var(--s-3); }
.up-next .going-choice > .seg { max-width: 480px; }
.up-next .needs { margin-top: var(--s-2); }
/* D-356, Design System v2 pass 5: registration and /start in steps.  A
   line back, the steps with a thin line in parts, the fields, the
   teammates as rows, and the action bar with the total, kept in view at
   the foot of a phone's screen above the tab bar. */
.back-line { margin: 0; }
.back-line a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); }
.steps { margin: 0 0 var(--s-3); }
.steps-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); margin: 0 0 var(--s-2); }
.steps-now .eyebrow { margin: 0; }
.steps-now strong { font-size: var(--t-lead); }
.steps ol { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.steps li { flex: 1 1 0; display: flex; align-items: center; gap: var(--s-1); min-width: 0; padding-top: var(--s-2); border-top: 4px solid var(--line); font-size: var(--t-cap); font-weight: 700; color: var(--muted); }
.steps li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps li:is(.done, .current) { border-top-color: var(--brand, var(--accent)); color: var(--text); }
.steps li svg.i { flex: none; width: 16px; height: 16px; color: var(--good); }
.card.reg-step { overflow: clip; }
.reg-step > h2 { margin: var(--s-4) 0 0; font-size: var(--t-lead); }
.reg-step .error-line { display: flex; gap: var(--s-1); align-items: center; color: var(--bad); font-weight: 600; font-size: var(--t-sm); }
.reg-step .error-line svg.i, :is(.field, .q-rows) .error-line svg.i { flex: none; width: 16px; height: 16px; }
fieldset.mates { display: grid; gap: var(--s-2); }
fieldset.mates .help { margin: 0; font-size: var(--t-sm); color: var(--muted); }
fieldset.mates > .btn { justify-self: start; }
ol.mate-rows { display: grid; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.actionbar { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.actionbar-total { display: grid; margin: 0; line-height: 1.2; }
.actionbar-total .figure { font-size: var(--t-h2); }
.actionbar-do { display: flex; gap: var(--s-2); margin-left: auto; }
/* D-1263: a game's bar to its form, for a phone; on a computer the form is beside the offer. */
@media (min-width: 1000px) { .actionbar.book-bar { display: none; } }
/* D-1270: once its form is open, or being filled in, the bar to it steps aside. */
body:has(#join:target, #join:focus-within) .actionbar.book-bar { display: none; }
@media (max-width: 999px) {
  /* Fixed, not sticky: the total is in view from the first screen, however far down the form starts. */
  .actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: var(--s-2) var(--s-4) calc(var(--s-2) + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--e2); }
  body.with-tabs .actionbar { bottom: calc(64px + env(safe-area-inset-bottom)); padding-bottom: var(--s-2); }
  main:has(.actionbar) { padding-bottom: 88px; }
  .actionbar-do .btn { min-height: 48px; }
  .actionbar-do .btn.quiet { padding-left: var(--s-2); padding-right: var(--s-2); }
  /* D-1736 (walk r436-a): a long total ("$9.17, includes $1.17 booking and card fee")
     wraps; the button keeps its size and stays on the screen. */
  .actionbar-total { min-width: 0; }
  .actionbar-total .figure { overflow-wrap: anywhere; }
  .actionbar-do { flex: none; }
  /* After the first step the action bar carries the price: the offer's card
     goes; on the first, its price tag (the chip says it). Its facts stay
     (D-2660, walk r1028-a): the games left and how to cancel, before paying. */
  .card.offer.later { display: none; }
  .card.offer .offer-tag { display: none; }
  /* Back is its chevron on a phone; its word stays for screen readers. */
  .actionbar .back-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .actionbar-do .btn.quiet { min-width: var(--tap); justify-content: center; }
}

/* /start's live preview (D-356): the site's crest, name and address, drawn by the server from what was typed. */
.site-preview { display: flex; align-items: center; gap: var(--s-3); margin: 0 0 var(--s-3); border-top: 4px solid var(--accent); }
.site-preview > div { display: grid; min-width: 0; }
.site-preview-name { font-size: var(--t-lead); overflow-wrap: anywhere; }
/* The steps and the preview as wide as the form they lead into. */
.svc :is(.steps, .site-preview) { max-width: 520px; }

/* D-360, Design System v2 pass 6: the club admin.  One page header; Today's
   next night with its status as one segmented control and the needs as
   rows; team rows whose ⋯ menu rises as a sheet on a phone; money's 2 × 2
   tiles; ledgers in the body face. */
body.admin .crumbs { margin: 0 0 var(--s-1); font-size: var(--t-cap); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin: 0 0 var(--s-4); }
.page-head h1 { margin: 0; }
.page-head .page-title { min-width: 0; }
.page-head .page-title > .muted { margin: var(--s-1) 0 0; max-width: 64ch; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
@media (max-width: 999px) { .page-head { display: grid; align-items: start; } }
body.admin .list-row { min-height: var(--row-h); }
body.admin .list-row .title { white-space: normal; }
body.admin ul.list { margin: 0 0 var(--s-4); }
.list-row form.trail { margin: 0; }
.tonight, .needs-you, .later-nights { margin: 0 0 var(--s-4); }
:is(.tonight, .needs-you, .later-nights) > h2.eyebrow { margin: 0 0 var(--s-2); }
.night-card { display: grid; gap: var(--s-2); align-content: start; margin: 0; }
.night-head { display: flex; align-items: flex-start; gap: var(--s-2); }
.night-title { flex: 1; min-width: 0; }
.night-title h3 { margin: 0; font-size: var(--t-lead); }
.night-title p { margin: 0; }
.night-status { display: grid; gap: var(--s-2); }
.night-status > .seg { display: flex; width: 100%; max-width: 480px; }
.seg > a { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-width: 0; min-height: 38px; padding: 2px var(--s-3); border-radius: var(--r-pill); color: var(--text); font-weight: 600; text-decoration: none; }
.seg > a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.seg > a[aria-current] { background: var(--brand, var(--accent)); color: var(--on-brand); }
.night-status details.sheet { justify-self: start; max-width: 100%; }
.night-status details.sheet > summary { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.other-status { display: grid; gap: var(--s-1); }
.night-games summary { cursor: pointer; }
ul.list.today-needs .lead svg.i { color: var(--warn); }
ul.list.today-needs .count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 var(--s-2); border-radius: var(--r-pill); background: var(--warn-bg); color: var(--text); font-weight: 700; }
/* A row's ⋯ menu: a menu under its button on a computer, a sheet rising
   from the bottom on a phone (above the dock); each longer action opens in
   place inside it. */
.menu-body svg.i { flex: none; width: 20px; height: 20px; color: var(--muted); }
.menu-body > details.menu-sheet > summary { display: flex; align-items: center; gap: var(--s-2); min-height: var(--tap); padding: 0 var(--s-3); border-radius: var(--r-md); cursor: pointer; list-style: none; }
.menu-body > details.menu-sheet > summary::-webkit-details-marker { display: none; }
.menu-body > details.menu-sheet > summary:hover { background: var(--surface-2); }
.menu-body > details.menu-sheet > form { padding: var(--s-2) var(--s-3) var(--s-3); }
.menu-body > details.menu-sheet.danger { border-top: 1px solid var(--line); margin-top: var(--s-1); padding-top: var(--s-1); }
.menu-body > details.menu-sheet.danger > summary, .menu-body > details.menu-sheet.danger > summary svg.i { color: var(--bad); }
body.admin .menu-body { width: max-content; max-width: min(340px, calc(100vw - 32px)); min-width: 220px; }
@media (max-width: 999px) {
  body.admin details.row-menu[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 41; background: color-mix(in srgb, var(--black) 40%, transparent); cursor: default; }
  body.admin details.row-menu > .menu-body { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 42; width: auto; max-width: none; max-height: 80dvh; overflow-y: auto; padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom)); border-radius: var(--r-xl) var(--r-xl) 0 0; }
  body.admin details.sheet[open] > summary::before { z-index: 41; }
  body.admin .sheet-body { z-index: 42; }
}
ul.list.teams .team-row > .flash { margin: var(--s-2) var(--s-4) 0; }
ul.list.teams .withdrawn .title { color: var(--muted); }
ul.list.points .figure { font-weight: 700; color: var(--text); }
.league-sport, .paste-teams { margin: 0 0 var(--s-3); }
:is(.league-sport, .paste-teams, .fee-note, .books-help) > summary { cursor: pointer; }
body.admin ul.tiles.money-tiles { list-style: none; padding: 0; margin: 0 0 var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
ul.money-tiles .tile { display: grid; gap: var(--s-1); margin: 0; }
/* Ledgers in the body face with even figures: no mono on the money pages. */
body.admin table.ledger :is(td.num, th.num, .money, .price, .time) { font-family: var(--body); font-variant-numeric: tabular-nums; }
body.admin .empty.card { padding: var(--s-6) var(--s-4); }
.list-row .row-badge { display: block; margin-top: var(--s-1); }
.list-row .row-badge:empty { display: none; }
ul.games-list .list-row .lead.when { width: auto; min-width: 72px; place-items: center start; font-size: var(--t-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
body.admin .all-clear { margin: 0 0 var(--s-4); }
/* The team before joining it (D-314; moved from join.html, D-367): a
   label beside each fact; the first game a match row (R16 item 8). */
.join-about { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-2) var(--s-4); margin: 0 0 var(--s-4); }
.join-about dt { color: var(--muted); }
.join-about dd { margin: 0; min-width: 0; }
.join-about .matches { margin: 0; }
.join-about dd:has(.matches) { grid-column: 1 / -1; }
/* D-373 public */
/* Find your team: the bar under the hub, the teams found as list rows. */
.find-bar.find-page { margin: 0 0 var(--s-4); }
ul.find-results { padding: 0; }
/* Standings: "Full table" on a phone shows every column, the table scrolling inside itself. */
.full-table-link { display: none; margin: 0 0 var(--s-2); }
/* D-1537: the phone's short table shows W-L in GP's place; wider screens and the full table show both. */
table.standings .show-sm { display: none; }
.full-table-link a { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--tap); }
@media (max-width: 600px) {
  .full-table-link { display: block; }
  .standings-wrap.full { overflow-x: auto; margin: 0 0 var(--s-3); }
  table.standings.fan.full .hide-sm { display: table-cell; }
  table.standings.fan:not(.full) .show-sm { display: table-cell; }
  /* The scroller holds the form's words for screen readers too (else they widen the page). */
  table.standings.fan.full { position: relative; }
  table.standings.fan.full th[scope=row] { min-width: 8em; }
  table.standings.fan.full :is(td, th):not([scope=row]) { padding-inline: 6px; }
}
/* A team on a computer: the roster starts under the tiles, beside the next game. */
@media (min-width: 1000px) {
  .team-layout { grid-template-areas: "next tiles" "next rail" "games rail"; grid-template-rows: auto auto 1fr; }
}
/* The notification centre's tabs: All and Unread, each with its count. */
.notice-tabs .count { display: inline-block; min-width: 1.5em; margin-left: var(--s-1); padding: 0 var(--s-1); border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--t-cap); text-align: center; }
/* The captain's rows of players to add. */
form.add-players ol.mate-rows { margin: 0; }
form.add-players .pair { align-items: end; }
/* The labels said once, over the first row; each row's own stay for screen readers. */
form.add-players ol.mate-rows > li + li .row-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Registration: the last step's button in the offer's column on a computer; the action bar's on a phone. */
.offer-do { display: none; }
@media (min-width: 1000px) {
  .offer-do { display: block; margin-top: var(--s-2); }
  .offer-layout:has(.offer-do) .actionbar .final { display: none; }
}
/* Our own pages' fields (the person's sign-in) mark a refusal as a club's do. */
body.svc :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--bad); }
/* A long hint: its first sentence, the rest behind "More". */
.hint p { margin: 0; }
details.more-hint { font-size: var(--t-sm); font-weight: 400; color: var(--muted); }
details.more-hint > summary { cursor: pointer; color: var(--link, var(--accent)); min-height: var(--tap); display: inline-flex; align-items: center; gap: var(--s-1); }
details.more-hint[open] > summary svg.i { transform: rotate(180deg); }
details.more-hint > p { margin: 0 0 var(--s-2); }
/* The night by field on a computer: a column a field, the games down each in order of their start. */
.field-heads { display: none; }
@media (min-width: 1000px) {
  .field-heads { display: grid; gap: 0; margin: 0 0 var(--s-1); font: 700 var(--t-cap)/1.2 var(--body); text-transform: uppercase; color: var(--muted); }
  :is(.field-heads, ol.matches.by-field).fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :is(.field-heads, ol.matches.by-field).fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :is(.field-heads, ol.matches.by-field).fields-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  ol.matches.by-field > .fc-1 { grid-column: 1; } ol.matches.by-field > .fc-2 { grid-column: 2; }
  ol.matches.by-field > .fc-3 { grid-column: 3; } ol.matches.by-field > .fc-4 { grid-column: 4; }
  .field-heads > span { padding: 0 var(--s-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .field-heads > .fc-1 { grid-column: 1; } .field-heads > .fc-2 { grid-column: 2; }
  .field-heads > .fc-3 { grid-column: 3; } .field-heads > .fc-4 { grid-column: 4; }
}

/* D-373 admin */
/* The admin's density (R17 4.10): one token says the admin is compact, and
   the heights it sets follow from it: rows at 48px (the club site's are
   56px), fields 44px on a phone and 36px on a computer. */
body.admin { --density: compact; --row-h: 48px; --field-h: 44px; }
@media (min-width: 1000px) { body.admin { --field-h: 36px; } }
/* The menu's current page in the club's colour (R16), made readable on the
   card it sits on (``club_marks``); our blue when none is set.  No
   --shadow-sm in the list: where the tokens set it to "none" the whole
   shadow, the bar with it, was dropped. */
body.admin { --club-mark: var(--club-mark-light, var(--accent-strong, var(--accent))); }
.admin-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--club-mark); }
body.admin .tab-bar > a[aria-current="page"] svg.i { background: color-mix(in srgb, var(--club-mark) 16%, transparent); }
@media (prefers-color-scheme: dark) {
  body.admin { --club-mark: var(--club-mark-dark, var(--accent)); }
}
/* Getting started as a ring: done of all, drawn (SVG, pathLength 100); the
   count is the summary's words. */
.setup-sum { display: flex; align-items: center; gap: var(--s-3); cursor: pointer; }
.setup-sum .setup-words { display: grid; min-width: 0; }
.setup-sum::after { content: "▸" / ""; margin-left: auto; color: var(--muted); }
details[open] > .setup-sum::after { content: "▾" / ""; }
svg.ring { flex: none; width: 44px; height: 44px; transform: rotate(-90deg); }
svg.ring circle { fill: none; stroke-width: 4; }
svg.ring .ring-track { stroke: var(--line); }
svg.ring .ring-done { stroke: var(--good); stroke-linecap: round; }
/* The registration editor's parts (DW-367c): each opens with its step. */
.form-step { border: 0; margin: 0 0 var(--s-5); padding: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.form-step + .form-step { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.form-step .steps { margin: 0; }
.form-step .next-step { justify-self: start; }
/* A card's cell of forms or several lines: its name over it, not beside. */
@media (max-width: 999px) {
  body.admin table.table.cards td.cell-block { display: block; }
  body.admin table.table.cards td.cell-block > .cell-label { display: block; margin-bottom: var(--s-1); }
  body.admin table.table.cards .cell-label { font-family: var(--body); }
  /* A long form's action bar stays above the admin's dock. */
  body.admin.signed-in .actionbar { bottom: var(--dock-h); padding-bottom: var(--s-2); }
}
/* The steps of a form in parts of one page link to each part. */
.steps li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.steps li a:hover { text-decoration: underline; }
/* D-392: the public site's polish.
   The footer meets the foot of a short page; on a phone it runs under the
   tab bar (its own padding), so no strip of the page shows below it. */
body:has(> .site-footer) { display: flex; flex-direction: column; min-height: 100dvh; }
body:has(> .site-footer) > main.wrap { width: 100%; margin-bottom: var(--s-5); }
body > .site-footer { margin-top: auto; }
@media (max-width: 999px) {
  body.with-tabs:has(> .site-footer) { padding-bottom: 0; }
  body.with-tabs > .site-footer .fine { padding-bottom: calc(var(--s-6) + 64px + env(safe-area-inset-bottom)); }
  /* A league's card on the home page: a shorter band, so eight leagues are not a long scroll. */
  .lg-band { height: var(--s-12); }
  /* A sheet on a club's page rises over the tab bar, as the admin's do over the dock. */
  body.with-tabs details.sheet[open] > summary::before { z-index: 41; }
  body.with-tabs .sheet-body { z-index: 42; }
}
/* Find your team: one button under the masthead; the sheet lists the teams by league. */
.team-find { margin: var(--s-4) 0 0; }
.team-find .sheet-body { gap: var(--s-2); }
.team-find .sheet-body .eyebrow { margin: var(--s-3) 0 0; }
.team-find .sheet-body .eyebrow:first-child { margin-top: 0; }
@media (min-width: 1000px) { .team-find .sheet-body { width: var(--sheet-wide); max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; } }
/* A side's record under its name stays on one line ("Record 1-1-2"). */
.sb-rec { white-space: nowrap; }
/* A scorer under the scoreboard reads as one line of words ("Cy R. 30' (Own goal)"), wrapping as text. */
.sb-goals li { display: block; text-align: center; }
.sb-goals li svg.i { vertical-align: -2px; margin-right: var(--s-1); }
/* A ladder's challenge button sits at the row's end. */
.ladder-rows .trail { margin: 0; }
.ladder-rows { margin-top: var(--s-4); }
/* A long team name on the scoreboard and the next-game card: centred, broken
   between words (a word too long for the column still breaks), three lines at most. */
.sb-name, .ng-side > :last-child { text-align: center; overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
@media (max-width: 600px) { .sb-name { font-size: var(--t-body); } }
/* D-401 (Accessibility R20): what axe cannot see.  One block, so the
   restyling passes merge around it. */
/* The headline over a picture (WCAG 1.4.3): the shade is black at 55% at
   its lightest, so white words read at 4.74:1 even on a white photo, and
   the headline is drawn in its colour checked for that (``theme.
   headline_on_photo``).  A tint fades in below the headline, over the shade. */
.hero.has-image .hero-shade { background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.65)); }
.hero.has-image.tinted .hero-shade { background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--hero-tint) 70%, transparent) 100%), rgba(0,0,0,.55); }
.hero.has-image h1 { color: var(--highlight-photo, var(--highlight)); }
/* The front page's hero is in <main> (so "Skip to content" lands on its
   heading), still the screen's width and right under the top bar. */
main > :is(.hero, .masthead, .band.about) { margin-inline: calc(50% - 50vw); }
main > :is(.hero, .masthead, .band.about) + :not(.band) { margin-top: var(--s-6); }
/* A field or link the keyboard reaches is never under a bar (WCAG 2.4.11):
   the browser scrolls it clear of the sticky top bar and, on a phone, of
   the tab bar or the admin's dock, and of a form's action bar above it. */
html { scroll-padding-top: calc(56px + var(--s-4)); }
html:has(body.admin .tabbar, .publish-bar, .app-tabs) { scroll-padding-top: calc(112px + var(--s-4)); }
@media (max-width: 999px) {
  html { scroll-padding-bottom: calc(64px + var(--s-4) + env(safe-area-inset-bottom)); }
  html:has(.actionbar) { scroll-padding-bottom: calc(144px + var(--s-4) + env(safe-area-inset-bottom)); }
  html:has(body.signed-in, body.ops) { scroll-padding-top: var(--s-4); }
  html:has(body.signed-in .tabbar) { scroll-padding-top: calc(56px + var(--s-4)); }
}
/* /ops on a phone: its name on one line, cut short if it must be, so the
   top bar is as tall before the web font arrives as after (the swap moved
   the page by a layout shift of 0.06 here, 0.11 in the audit). */
@media (max-width: 999px) {
  body.ops header.top .brand { display: block; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* A short screen (a phone on its side, or 200% to 400% zoom, WCAG 1.4.10):
   no bar stays put, so the page is never mostly bars; the tabs and the
   action bar sit where they are in the page. */
@media (max-height: 500px) {
  header.top, .actionbar, .tabbar, .app-tabs > .tabbar, .publish-bar, .save-bar, .svc-top, .checkin-find { position: static; }
  .dock.tab-bar, .dock.admin-dock, body.ops .ops-nav { position: static; box-shadow: none; }
  .dock .dock-sheet { bottom: 0; }
  body.with-tabs, body.signed-in, body.ops, main:has(.actionbar) { padding-bottom: 0; }
  html, html:has(.actionbar), html:has(body.admin .tabbar, .publish-bar, .app-tabs), html:has(body.signed-in .tabbar) { scroll-padding: 0; }
}

/* ---------------------------------------------------------------------------
   Our own pages, finished (D-950, provisional number): the same family (Spectral,
   Hanken Grotesk, the one blue, the gold bond) with depth. Soft corners, quiet
   rules in place of ink lines, cards that lift, and one dark cover where the
   drawing-sheet grid stays. Club sites and the admin are untouched: every rule
   here is under body.svc. */
/* One shape for everything we own: our pages, every club's admin and our
   console share these corners and this depth (the admin and console were
   6px and flat, our pages square; a person crossing them saw three makers). */
body.svc, body.admin { --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --radius: 12px; --r-control: 10px;
  --lift: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -14px rgba(16, 24, 40, .22);
  --lift-hover: 0 2px 4px rgba(16, 24, 40, .06), 0 18px 40px -16px rgba(16, 24, 40, .30);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px -8px rgba(16, 24, 40, .14); --shadow-md: var(--lift); }
body.admin .card, body.admin table.table { border-radius: var(--radius); }
body.admin .btn { border-radius: var(--r-control); }
/* An empty state's mark keeps clear of its words inside the admin's wider
   card padding (it sat on the first letter on /ops). */
body.admin .card.muted { padding-left: calc(var(--s-5) + 30px); box-shadow: none; }
/* A phone's card row with more than a label and one value wraps its extra
   pieces under each other; squeezed, a link broke a letter a line (Money,
   "Answer it in Stripe"). */
@media (max-width: 999px) { body.admin table.table.cards td:not(:first-child) { flex-wrap: wrap; } }
/* A registration list on a phone: three lines a person, not a page (D-954).
   The name and its state side by side, the team on one line, the actions in
   one row; only the answers keep their label. */
@media (max-width: 999px) {
  body.admin table.table.cards.entries tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-3); row-gap: var(--s-1); align-items: start; }
  body.admin table.table.cards.entries td { grid-column: 1 / -1; padding: 0; }
  body.admin table.table.cards.entries td:first-child { grid-column: 1; }
  body.admin table.table.cards.entries td:nth-last-child(2):not(:first-child) { grid-column: 2; grid-row: 1; text-align: right; }
  body.admin table.table.cards.entries td.cell-block:not(.small) > .cell-label { display: none; }
  body.admin table.table.cards.entries td:last-child:not(:first-child) { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: flex-start; justify-content: flex-start; margin-top: var(--s-1); }
  body.admin table.table.cards.entries td:last-child :is(form.row, details) { margin: 0; flex: none; justify-content: flex-start; }
  body.admin table.table.cards.entries td:last-child:empty { display: none; }
}
/* A roster's email keeps whole on its own line, not cut a letter from its
   end ("deja.roberts@inbox.exam / ple", D-954). */
body.admin .roster-list .list-row .sub { overflow-wrap: break-word; }
/* Money's tables on a phone: each figure a small tile (a
   form was four full-width rows of "$0.00", D-954), as many to a line as fit; a cell that holds
   more than a figure keeps the whole width. */
@media (max-width: 999px) {
  body.admin table.table.cards.ledger tr { display: flex; flex-wrap: wrap; gap: var(--s-1); }
  body.admin table.table.cards.ledger td:first-child, body.admin table.table.cards.ledger td.cell-block, body.admin table.table.cards.ledger td[colspan] { flex: 1 0 100%; }
  body.admin table.table.cards.ledger tr > td:empty { display: none; }
  body.admin table.table.cards.ledger td:not(:first-child, .cell-block, [colspan]) { display: grid; gap: 0; flex: 1 1 auto; min-width: 72px; justify-content: start; align-content: start; padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); font-size: var(--t-sm); background: var(--surface-2, var(--ground)); }
}
/* Scores on a phone (D-955): the two scores side by side under the game,
   the venue in words, not code. */
body.admin .score-more > summary { cursor: pointer; color: var(--muted); padding: var(--s-1) 0; }
@media (max-width: 999px) {
  body.admin table.table.cards.score-sheet tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-3); }
  body.admin table.table.cards.score-sheet td { grid-column: 1 / -1; }
  body.admin table.table.cards.score-sheet td.num { grid-column: auto; display: grid; gap: var(--s-1); justify-content: stretch; }
  body.admin table.table.cards.score-sheet td.num .score-in { width: 100%; }
  body.admin table.table.cards.score-sheet td.time .small { font-family: var(--body); }
  body.admin table.table.cards.score-sheet td:nth-child(2) > .cell-label { display: none; }
}
/* A row's own small button is quiet: a table of waitlisted teams had a solid
   blue "Move up" on every row. One solid action a page; a row's is tonal
   unless the template says .primary (D-952). */
body.admin table.table td .btn.small:not(.secondary, .ghost, .danger, .quiet, .primary, .tonal) { background: var(--club-soft, var(--accent-tint)); color: var(--text); border-color: transparent; box-shadow: none; }
/* The admin's header keeps one line on a phone: a long club name ends in "…", its role stays. */
body.admin header.top .brand.with-crest { white-space: nowrap; min-width: 0; }
body.admin .card.muted::before { left: var(--s-5); top: calc(var(--s-5) + 3px); }
/* Section labels: the family's one label (mono, tracked) on every surface we
   own, as our pages wear it; the admin's were heading-sized capitals. */
body.admin .eyebrow, body.admin h2.eyebrow { font: 600 var(--t-cap)/1.3 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
/* Our console wears the lockup, as our pages do, with its own tag. */
body.ops header.top .ops-mark { gap: 10px; flex: none; }
body.ops header.top .ops-mark::before { display: none; }
body.ops .ops-mark .lockup { font-size: var(--t-cap); letter-spacing: .1em; gap: .4em; } /* fits the console's full header at 1280 px (D-957) */
body.ops .ops-tag { font: 600 var(--t-cap)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); border-radius: var(--r-pill); padding: 4px 8px; }
body.svc { --r-md: 12px; --r-lg: 18px;
  background: var(--ground) radial-gradient(1200px 520px at 50% -180px, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%) no-repeat; }
.svc .card { background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--lift); }
.svc .flash { border-radius: var(--r-sm); }
.svc .btn { border-radius: var(--r-control); transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease); }
.svc .btn:not(.secondary):not(.ghost):not(.tonal):not(.quiet) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.svc .btn:not(.secondary):not(.ghost):not(.tonal):not(.quiet):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); transform: translateY(-1px); }
.svc .btn.secondary { background: var(--raised); border-color: var(--field-border); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.svc .btn.secondary:hover { background: var(--raised); border-color: var(--ink); transform: translateY(-1px); }
.svc table.table { border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--lift); background: var(--raised); }
.svc .table-scroll > table.table { overflow: visible; }
.svc-top { background: color-mix(in srgb, var(--raised) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.svc-top nav a:not(.btn) { color: var(--muted); border-radius: var(--r-sm); }
.svc-top nav a:not(.btn):hover { color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--ink) 5%, transparent); }

/* The cover: night, with the sheet's grid and a glow of the blue and the gold. */
.svc .cover { border: 0; border-radius: var(--r-lg); color: var(--on-night); overflow: hidden; margin-top: var(--s-4); box-shadow: 0 30px 70px -36px rgba(13, 16, 21, .65);
  background:
    radial-gradient(700px 380px at 82% 18%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%),
    radial-gradient(520px 300px at 8% 110%, color-mix(in srgb, var(--mark) 30%, transparent), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(160deg, var(--night-2), var(--night)); }
.svc .cover::before, .svc .cover::after { display: none; }
.svc .cover :is(h1, h2, h3) { color: var(--on-night); }
.svc .cover-main h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
.svc .cover :is(.lede, .muted, .small.muted, .label, .fp-for, figcaption) { color: var(--on-night-muted); }
.svc .cover .label { color: color-mix(in srgb, var(--mark) 55%, var(--on-night)); }
.svc .cover a:not(.btn, .chip) { color: var(--on-night-link); }
/* D-2198 (walk r792-d): a chip on the night cover took its links' pale blue on its own pale fill. */
.svc .cover .chip { background: rgba(255, 255, 255, .06); color: var(--on-night); border: 1px solid rgba(255, 255, 255, .28); }
.svc .cover .btn.secondary { background: rgba(255, 255, 255, .06); color: var(--on-night); border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.svc .cover .btn.secondary:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.svc .cover .btn.ghost { color: var(--on-night-link); }
.svc .cover :focus-visible { outline-color: var(--on-night-link); }
.svc .fp-for li { border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-pill); padding: 3px 10px; }
.svc .fp-for { gap: 8px; }
.svc .cover-fig { border-left: 0; }
.svc .cover-fig > .label { border-bottom: 0; }
.svc .cover-fig .stage { background: transparent; padding: clamp(16px, 3vw, 36px); }
.svc .cover-fig figcaption { border-top: 1px solid rgba(255, 255, 255, .1); }
.svc .cover-fig figcaption b { color: color-mix(in srgb, var(--mark) 60%, var(--on-night)); }
.svc .phone-mock { color: var(--ink); border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r-xl); box-shadow: 0 0 0 8px rgba(255, 255, 255, .06), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.svc .phone-mock .game { border-radius: var(--r-sm); }
.svc .phone-mock .row2 span { border-radius: var(--r-sm); }
.svc .cover-foot { border-top: 1px solid rgba(255, 255, 255, .1); color: var(--on-night); }
.svc .cover-foot li + li { border-left: 1px solid rgba(255, 255, 255, .1); }
.svc .cover-foot b { color: var(--on-night-muted); }
.svc .cover-foot a { color: var(--on-night-link); }
/* A lift on hover is motion: none for a person who asks for less (DESIGN.md, Motion). */
@media (prefers-reduced-motion: reduce) { .svc :is(.btn, .cols3 > *, .play-cities .card):hover { transform: none; } }

/* /play's cover: the same night, sized for its title and the player's doors. */
.svc .play-cover { padding: clamp(28px, 5vw, 56px); display: grid; gap: var(--s-4); }
.svc .play-cover > * { margin: 0; }
.svc .play-cover h1 { font-size: var(--fs-h1); letter-spacing: -.02em; }
.svc .play-cover .play-start { margin-top: var(--s-2); }
.svc .play-cover + * { margin-top: var(--s-10); }
.svc .play-cover .btn.tonal { background: rgba(255, 255, 255, .1); color: var(--on-night); }
.svc .play-cover .btn.tonal:hover { background: rgba(255, 255, 255, .16); }
.svc .play-cities .card { transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease); }
.svc .play-cities .card:hover { box-shadow: var(--lift-hover); transform: translateY(-2px); border-color: var(--accent); }
.svc .play-cities strong { font-family: var(--display); font-size: var(--fs-h3); font-weight: 600; margin-bottom: 4px; }

/* Sheets: each point its own card, numbered in gold. */
.svc .cols3 { border-top: 0; gap: var(--s-4); }
.svc .cols3 > *, .svc .cols3 > * + *, .svc .cols3 > :nth-child(3n+1) { padding: var(--s-6); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--raised); box-shadow: var(--lift); transition: box-shadow var(--ease), transform var(--ease); }
.svc .cols3 > :hover { box-shadow: var(--lift-hover); transform: translateY(-2px); }
.svc .cols3 .code { justify-self: start; padding: 5px 9px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--mark) 12%, transparent); }
.svc .cols2 { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--lift); overflow: hidden; }
.svc .cols2 > * + * { border-left: 1px solid var(--rule); }
.svc .teaser { border-top: 0; padding: var(--s-8); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--lift); }
.svc .sheet { border-bottom: 0; padding-block: clamp(40px, 6vw, 72px); }
/* Headings break where a reader would, not balanced into two short lines. */
.svc :is(.cols3, .cols2) h3 { text-wrap: pretty; }
/* A card's own link is an action: bold, the blue, an arrow, no underline. */
.svc :is(.cols3, .cols2) a:not(.btn) { font-weight: 600; text-decoration: none; }
.svc :is(.cols3, .cols2) a:not(.btn)::after { content: "\00a0\2192"; }
.svc :is(.cols3, .cols2) a:not(.btn):hover { text-decoration: underline; }
/* The cover's strip and figure read as words, not a drawing's labels. */
.svc .cover-fig > .label, .svc .cover-fig figcaption b { display: none; }
.svc .cover-fig figcaption { grid-template-columns: 1fr; text-align: center; border-top: 0; }
.svc .cover-fig { display: flex; flex-direction: column; justify-content: center; }
.svc .cover-foot li { font: 600 var(--t-sm)/1.35 var(--body); letter-spacing: 0; text-transform: none; }
.svc .cover-foot b { font: 500 var(--t-cap)/1.3 var(--mono); letter-spacing: var(--track-label); text-transform: uppercase; }
.svc .sheet-head h2 { letter-spacing: -.015em; }
.svc .faq { border-top: 0; }

/* Plans: three cards; the one we suggest lifts in the blue. */
.svc .plans { border: 0; background: transparent; gap: var(--s-4); }
.svc .plans > .plan + .plan { border-left: 0; }
.svc .plan { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--raised); box-shadow: var(--lift); }
.svc .plan.featured { outline: 0; border: 2px solid var(--accent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--accent) 55%, transparent); }
.svc .plans.talk .plan { box-shadow: none; }
.svc .fine-print { border-top: 1px solid var(--rule); }

/* The footer: a quiet band of its own. */
.svc-foot { background: var(--raised); border-top: 1px solid var(--rule); margin-top: var(--s-12); }
.svc-foot .product-links { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.svc-foot nav a { text-decoration: none; }
.svc-foot nav a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 999px) {
  .svc .cols3 > *, .svc .cols3 > * + *, .svc .cols3 > :nth-child(3n+1) { padding: var(--s-5); border: 1px solid var(--rule); }
  .svc .phone-mock { transform: none; }
  .svc .cover-fig, .svc .cover-foot li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
  .svc .cover-foot li:nth-child(odd) { border-left: 0; }
  .svc .cols2 > * + * { border-left: 0; border-top: 1px solid var(--rule); }
  .svc .plans > .plan + .plan { border: 1px solid var(--rule); }
  .svc .plans > .plan.featured { border: 2px solid var(--accent); }
}

/* D-2235 (walk r814-d): on a laptop the club's hero filled the first screen
   and tonight's games began below it. Wide screens (the 1000 px breakpoint)
   get a shorter hero: less padding, a smaller mark, the headline on one
   line. Phones keep theirs. */
@media (min-width: 1000px) {
  .hero { padding: 40px 0 44px; }
  .hero .club-mark.big { height: 64px; margin-bottom: 10px; }
  :is(.masthead, .hero) h1 { max-width: 28ch; }
}

/* D-2239 (walk r815-d): on a phone the hero left one and a half of
   tonight's games on the first screen. Phones get a shorter hero: the
   header above already shows the club's mark, and the headline is set
   smaller. */
@media (max-width: 600px) {
  .hero { padding: 24px 0 28px; }
  .hero .club-mark.big { display: none; }
  :is(.masthead, .hero) h1 { font-size: var(--t-h1); }
  .hero p { margin-bottom: 14px; }
}

/* D-2393: a chat (_chat.html): one's own messages set off, a reply's quote, reactions. */
.chat-line.chat-mine { border-inline-start: 3px solid var(--club, var(--accent, var(--line))); }
.chat-words { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.group-about { white-space: pre-line; max-width: 60ch; } /* D-2405, D-2409: a group's about, its lines kept */
.chat-photo { display: block; margin: 0; } /* D-2411: a photo in a chat */
.chat-photo img { display: block; max-width: min(100%, 360px); max-height: 360px; height: auto; border-radius: var(--r-md); }
.chat-at { color: var(--accent, inherit); font-weight: 600; } /* D-2408: a name called with @ */
.chat-name { margin: 2px 4px 2px 0; } /* D-2450: a name a tap writes into the box */
.chat-quote { border-inline-start: 2px solid var(--line); padding-inline-start: 8px; margin: 0; overflow-wrap: anywhere; }
.chat-quote a { color: inherit; font-weight: 600; text-decoration: none; }
.chat-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chat-acts form, .chat-mark-form { display: inline; margin: 0; }
.chat-mark { min-height: 32px; min-width: 40px; padding: 2px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); color: var(--text); font: inherit; font-size: var(--t-sm); cursor: pointer; }
.chat-mark.on { border-color: var(--club, var(--accent, var(--text))); background: var(--surface-2); font-weight: 700; }
.chat-pick, .chat-more, .chat-who { display: inline-block; }
.chat-more > summary, .chat-who > summary { list-style: none; } /* D-2451: who reacted */
.chat-pick > summary { list-style: none; }
.chat-pick > summary::-webkit-details-marker { display: none; }
.chat-pick-row { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-inline-start: 6px; }
.chat-replying { background: var(--surface-2); border-radius: var(--r-md); padding: 6px 10px; margin: 0; }
/* D-2421: where the messages new to the reader start, as a phone's chat marks them */
.chat-new { list-style: none; display: flex; align-items: center; gap: var(--s-2); color: var(--accent); font-size: var(--t-sm); font-weight: 600; }
.chat-new::before, .chat-new::after { content: ""; flex: 1; border-top: 1px solid currentColor; }
/* D-2425: search in a chat, one line above it */
.chat-search { display: flex; gap: var(--s-2); align-items: center; }
.chat-search input { flex: 1; min-width: 0; }
.chat-replying-words:not(:empty) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* D-2418 */
.chat-line:target { outline: 2px solid var(--club, var(--accent, var(--line))); outline-offset: 2px; }
/* D-2567: a chat reads as one conversation, as a phone's chat does: one surface, a writer's
   messages within minutes run on under one name, a taken-out message a thin line, and the
   actions small marks under each message, not a row of buttons. */
.chat-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 0; box-shadow: var(--shadow-sm); }
.chat-list.stack-sm > * + * { margin-top: 0; }
.chat-line { padding: 10px 16px 4px; }
.chat-line.stack-sm > * + * { margin-top: 4px; }
.chat-line + .chat-line:not(.chat-runs-on) { border-top: 1px solid var(--line); }
.chat-line.chat-runs-on { padding-top: 0; }
.chat-by { margin: 0; }
.chat-line.chat-out { padding-block: 6px; }
.chat-out [data-n="taken-out-trace"] { font-style: italic; margin: 0; }
.chat-list .chat-new { padding: 6px 16px; }
/* D-2667: the club's change to a team's game, among its messages, as a group chat shows an event. */
.chat-list .chat-event { list-style: none; padding: 6px 16px; text-align: center; }
.chat-acts { gap: 4px; }
.chat-act { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 10px; border-radius: var(--r-pill); color: var(--muted); font-size: var(--t-sm); text-decoration: none; cursor: pointer; }
.chat-act:hover, .chat-act:focus-visible, .chat-more[open] > summary { background: var(--surface-2); color: var(--text); }
.chat-more > summary { list-style: none; line-height: 1; }
.chat-more > summary::-webkit-details-marker { display: none; }
.chat-more[open] { display: block; width: 100%; padding: 6px 0 2px; }
.chat-icon { font-weight: 700; }
.chat-pick > summary::before, .chat-more > summary::before { content: none; } /* marks, not a folding list */
.chat-pick > summary.chat-mark, .chat-acts [data-n="chat-quick-react"] { border-color: transparent; background: transparent; color: var(--muted); }
.chat-pick > summary.chat-mark:hover, .chat-acts [data-n="chat-quick-react"]:hover { background: var(--surface-2); }
.chat-photo-pick input[type="file"]::file-selector-button { font: inherit; padding: 6px 14px; margin-inline-end: 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); color: var(--text); cursor: pointer; }
