/*
  The league's public website.

  Separate from site.css, which dresses the administration portal. They share a brand and
  nothing else: the portal is a dense tool for one person at a desk, this is a front door for a
  parent on a phone looking for a kick-off time. One stylesheet trying to be both would be
  bigger than the two together and worse at each.

  Built to the Grassroots360 design system's tokens. The accent is the one colour a league
  chooses, so it arrives from the settings row as a custom property under the request's nonce
  (§23.1) — every other value here is fixed.

  §23.5 — "most match-day usage is on a phone, outdoors, one-handed, in poor light and often
  with cold hands. Touch targets >= 44px."
  §23.3 — WCAG 2.2 AA: visible focus, no colour-only conveyance, respects reduced motion.
*/

/* ---- Kanit, self-hosted (SIL Open Font Licence) ---------------------------
   Self-hosted rather than linked, because the content security policy permits
   styles and fonts from this origin only — and because a league website should
   not hand every visitor's address to a third party to render a heading. */

@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/kanit-300.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/kanit-400.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/kanit-500.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/kanit-600.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/kanit-700.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/kanit-800.woff2') format('woff2'); }

:root {
    --navy-50:  #EEF3FA;
    --navy-100: #D8E2F1;
    --navy-200: #AEC4E2;
    --navy-300: #7E9ECE;
    --navy-600: #1A4079;
    --navy-700: #0F3465;
    --navy-800: #0B2950;
    --navy-900: #081F3D;

    --slate-0:   #FFFFFF;
    --slate-25:  #F8FAFC;
    --slate-50:  #F1F4F9;
    --slate-100: #E7ECF3;
    --slate-200: #D5DCE6;
    --slate-300: #B8C2D0;
    --slate-400: #8B97A8;
    --slate-500: #647082;
    --slate-600: #4A5566;
    --slate-700: #333D4D;
    --slate-900: #121822;

    --green-50: #E6F4EC; --green-600: #157A45;
    --amber-50: #FCF3E0; --amber-600: #B97E0E;
    --red-50:   #FBEAE9; --red-600:   #B22F28;

    --text-strong: var(--navy-900);
    --text-body:   var(--slate-700);
    --text-muted:  var(--slate-500);
    --text-faint:  var(--slate-400);

    --surface-card: var(--slate-0);
    --surface-page: var(--slate-50);
    --border: var(--slate-200);

    /* Overridden per league by the layout, under the nonce. */
    --accent: #2C6FE0;
    --accent-ink: #FFFFFF;
    --accent-hover: #1E5AC4;

    --font-display: 'Kanit', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Kanit', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;

    --shadow-sm: 0 1px 3px rgba(8, 31, 61, .08), 0 1px 2px rgba(8, 31, 61, .06);
    --shadow-md: 0 4px 12px rgba(8, 31, 61, .08), 0 2px 4px rgba(8, 31, 61, .06);
    --shadow-lg: 0 12px 28px rgba(8, 31, 61, .12), 0 4px 8px rgba(8, 31, 61, .06);

    --container: 1180px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-body);
    background: var(--slate-0);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

img { max-width: 100%; }
table { border-collapse: collapse; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: -9999px;
    background: var(--navy-900); color: #fff;
    padding: 12px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; width: 100%; }

/* ============================================================
   Buttons
   ============================================================ */

.pbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    text-decoration: none;
}
.pbtn:hover { text-decoration: none; }

.pbtn-accent { background: var(--accent); color: var(--accent-ink); }
.pbtn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }

.pbtn-brand { background: var(--navy-700); color: #fff; }
.pbtn-brand:hover { background: var(--navy-800); color: #fff; }

.pbtn-secondary { background: var(--slate-0); color: var(--navy-700); border-color: var(--border); }
.pbtn-secondary:hover { background: var(--navy-50); color: var(--navy-700); }

.pbtn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.pbtn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.pbtn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.pbtn-sm { min-height: 36px; padding: 7px 14px; font-size: .875rem; }

.pbtn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Header — both directions
   ============================================================ */

.utility-strip {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .72);
    font-size: .8125rem;
}
.utility-strip .wrap {
    padding-block: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}
.utility-strip a { color: rgba(255, 255, 255, .72); font-weight: 500; }
.utility-strip a:hover { color: #fff; }
.utility-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.utility-links .is-strong { color: #fff; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; }

.site-header-light { background: #fff; border-bottom: 1px solid var(--border); }
.site-header-dark { background: var(--navy-700); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }

.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 88px;
    flex-wrap: wrap;
}
.site-header-dark .wrap { min-height: 76px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-crest { width: 52px; height: 52px; object-fit: contain; flex: none; }
.site-header-dark .brand-crest { width: 44px; height: 44px; background: #fff; border-radius: var(--radius-sm); padding: 3px; }

/* Where a league has uploaded no crest, its initial stands in — the same mark the portal uses,
   so the two never disagree about what the league is called. */
.brand-mark {
    width: 52px; height: 52px; flex: none;
    border-radius: 11px;
    background: var(--navy-700);
    color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 800; font-size: 22px;
}
.site-header-dark .brand-mark { background: #fff; color: var(--navy-700); width: 44px; height: 44px; }

.brand-words { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

/* One of the two is always hidden. The swap happens in the collapsed block below. */
.brand-name-short { display: none; }
.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.0625rem;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--navy-700);
    max-width: 260px;
}
.site-header-dark .brand-name { color: #fff; font-size: 1rem; max-width: 200px; }

.brand-est {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.site-nav { display: flex; gap: 4px; align-items: center; margin-left: auto; flex-wrap: wrap; }

/* A disclosure rather than a scripted menu: <details> is keyboard-operable, works with the
   script blocked, and does not have to claim an aria-expanded it would then have to maintain. */
.nav-group { position: relative; }

.nav-group > summary,
.site-nav > .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .9375rem;
    color: var(--navy-700);
    cursor: pointer;
    list-style: none;
    text-decoration: none;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: "▾"; font-size: .6rem; opacity: .55; }
.nav-group[open] > summary::after { content: "▴"; }

.site-header-dark .nav-group > summary,
.site-header-dark .site-nav > .nav-link { color: rgba(255, 255, 255, .88); padding-inline: 16px; }

.nav-group > summary:hover,
.site-nav > .nav-link:hover { color: var(--accent); text-decoration: none; }

.site-header-dark .nav-group > summary:hover,
.site-header-dark .site-nav > .nav-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.site-nav [aria-current="page"] { color: var(--accent); }
.site-header-dark .site-nav [aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); }

.nav-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 262px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    z-index: 60;
    display: flex;
    flex-direction: column;
}
.nav-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    color: var(--text-body);
    text-decoration: none;
}
.nav-menu a:hover { background: var(--navy-50); color: var(--navy-700); text-decoration: none; }

.nav-cta { margin-left: 12px; display: inline-flex; flex-wrap: wrap; gap: 8px; }

/* ---- The menu on a phone -------------------------------------------------
   Hidden above the breakpoint, and hidden below it too unless the page is
   scripted: without public.js the stylesheet leaves the links stacked down the
   page, so a visitor whose script is blocked still has a navigation rather than
   a button that does nothing. */

.nav-burger {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-card);
    color: var(--navy-700);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
}
.nav-burger svg { width: 22px; height: 22px; display: block; }

.site-header-dark .nav-burger {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

/* The icon is the state: three bars closed, a cross open. Two paths in one
   SVG rather than two icons, so nothing shifts as it swaps. */
.nav-burger .burger-cross { display: none; }
.nav-burger[aria-expanded="true"] .burger-bars { display: none; }
.nav-burger[aria-expanded="true"] .burger-cross { display: block; }

/* ============================================================
   The navigation, collapsed (§23.5)
   ============================================================
   860px is where five dropdown groups and a call to action stop fitting on
   one line. Below it they become a panel under the header: every group open,
   read as one list, rather than five things to tap through. */

@media (max-width: 860px) {
    .js .nav-burger { display: inline-flex; }

    /* The short name, so the brand and the button share one row. */
    .site-header-light .brand-name-full { display: none; }
    .site-header-light .brand-name-short { display: block; }

    .brand { min-width: 0; flex: 0 1 auto; }
    .brand-name { max-width: none; }

    .js .site-nav {
        display: none;
        order: 3;
        width: 100%;
        margin-left: 0;
        flex-direction: column;

        /* Not inherited from the bar above: a wrapping column flex container breaks
           into a second column when it runs out of height, which put the call to
           action alongside the first link instead of at the foot of the list. */
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        padding: 6px 0 10px;
        border-top: 1px solid var(--border);
    }
    /* The header is sticky, so an open panel taller than the screen would swallow it.
       Capped and scrolled within itself instead, leaving the page visible behind. */
    .js .site-nav.is-open { display: flex; max-height: calc(100vh - 150px); overflow-y: auto; }

    .site-header-dark .site-nav { border-top-color: rgba(255, 255, 255, .16); }

    /* Not a dropdown down here — a heading with its links under it. */
    .site-nav .nav-group { position: static; display: block; }

    .site-nav .nav-group > summary {
        padding: 14px 4px 6px;
        font-size: .75rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--text-muted);
        min-height: 0;
        cursor: default;
    }
    .site-header-dark .site-nav .nav-group > summary { color: rgba(255, 255, 255, .55); }

    /* The caret meant "there is more behind this". There is not: it is open. */
    .site-nav .nav-group > summary::after { content: none; }

    .site-nav .nav-menu {
        position: static;
        min-width: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        background: transparent;
    }

    .site-nav .nav-menu a,
    .site-nav > .nav-link {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 10px 4px;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
        font-family: var(--font-display);
        font-weight: 500;
        font-size: 1rem;
        color: var(--text-body);
    }

    .site-header-dark .site-nav .nav-menu a,
    .site-header-dark .site-nav > .nav-link {
        color: rgba(255, 255, 255, .88);
        border-bottom-color: rgba(255, 255, 255, .12);
        padding-inline: 4px;
    }

    .site-nav .nav-menu a:hover { background: transparent; color: var(--accent); }
    .site-nav [aria-current="page"] { color: var(--accent); font-weight: 600; background: transparent; }
    .site-header-dark .site-nav [aria-current="page"] { color: #fff; background: transparent; }

    /* Full width and last: the thing the league most wants tapped, at the end
       of the list where a thumb already is. */
    .nav-cta { margin: 14px 0 0; display: flex; flex-direction: column; }
    .nav-cta .pbtn { width: 100%; }
}

/* ============================================================
   Heroes
   ============================================================ */

.page-hero { background: var(--navy-700); color: #fff; position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: 52px 56px; }

.eyebrow {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 14px;
}

.page-hero h1 {
    font-weight: 800;
    font-size: 2.75rem;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 16px;
    max-width: 820px;
    color: #fff;
    text-wrap: pretty;
}

.page-lead {
    font-weight: 300;
    font-size: 1.125rem;
    line-height: 1.55;
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, .86);
    text-wrap: pretty;
}

/* Home, direction A — navy hero with the next key dates beside it. */
.home-hero { background: var(--navy-700); color: #fff; }
.home-hero .wrap {
    padding-block: 64px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
.home-kicker {
    font-family: var(--font-display);
    font-weight: 600; font-size: .75rem;
    letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
    margin-bottom: 16px;
}
.home-hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: 3.25rem;
    line-height: 1.05;
    letter-spacing: -.025em;
    margin: 0 0 18px;
    text-wrap: balance;
}
.home-strapline { font-size: 1.25rem; font-weight: 300; line-height: 1.45; color: rgba(255, 255, 255, .9); margin: 0 0 14px; }
.home-intro { font-size: .9375rem; line-height: 1.65; color: rgba(255, 255, 255, .7); margin: 0 0 28px; max-width: 46em; }

.key-dates {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
}
.key-dates-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.key-dates-head h2 { font-size: 1.0625rem; color: #fff; font-weight: 700; }
.key-dates-head a { color: rgba(255, 255, 255, .72); font-size: .8125rem; font-weight: 500; }

.key-date { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.key-date:first-of-type { border-top: 0; }
.key-date-when {
    font-family: var(--font-display); font-weight: 700; font-size: .8125rem;
    color: #fff; flex: none; width: 74px; letter-spacing: .01em;
}
.key-date-what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.key-date-what strong { color: #fff; font-size: .875rem; font-weight: 500; }
.key-date-what span { color: rgba(255, 255, 255, .6); font-size: .8125rem; line-height: 1.4; }

/* Home, direction B — a photograph, the name over it. */
.editorial-hero { position: relative; background: var(--navy-800); color: #fff; overflow: hidden; }
.editorial-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial-hero-veil {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8, 31, 61, .94) 0%, rgba(8, 31, 61, .82) 45%, rgba(8, 31, 61, .45) 100%);
}
.editorial-hero .wrap { position: relative; padding-block: 96px 88px; }
.editorial-hero h1 {
    color: #fff; font-weight: 800;
    font-size: 3.75rem; line-height: 1.02; letter-spacing: -.03em;
    margin: 0 0 18px; max-width: 16em;
    text-wrap: balance;
}
.editorial-badge { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.editorial-badge img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: var(--radius-md); padding: 4px; }
.editorial-badge div {
    font-family: var(--font-display); font-weight: 600; font-size: .8125rem;
    letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); line-height: 1.5;
}

/* ============================================================
   Sections and cards
   ============================================================ */

.band { padding-block: 56px; }
.band-sunken { background: var(--surface-page); }
.band-tight { padding-block: 40px; }

.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.band-head h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.015em; }
.band-head a { font-family: var(--font-display); font-weight: 600; font-size: .9375rem; }

.grid { display: grid; gap: 20px; }
/* auto-fit, not a fixed 2: a band with only one half to show — no fixtures ahead, no
   table yet — would otherwise lay out two columns and leave one of them empty. */
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 22px 20px;
    text-decoration: none;
    color: var(--text-body);
}
.tile:hover { border-color: var(--navy-300); box-shadow: var(--shadow-md); text-decoration: none; color: var(--text-body); }
.tile-kicker {
    font-family: var(--font-display); font-weight: 700; font-size: .6875rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.tile h3 { font-size: 1.0625rem; font-weight: 700; }
.tile p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--text-muted); }
.tile-cta { margin-top: auto; padding-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
}
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--navy-700); letter-spacing: -.02em; }
.stat-label { margin-top: 8px; font-size: .8125rem; color: var(--text-muted); }

/* ============================================================
   News
   ============================================================ */

.news-card {
    display: flex; flex-direction: column;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-body);
}
.news-card:hover { border-color: var(--navy-300); box-shadow: var(--shadow-md); text-decoration: none; color: var(--text-body); }
.news-card-photo { aspect-ratio: 16 / 9; width: 100%; max-width: 100%; object-fit: cover; background: var(--navy-50); display: block; }
.news-card-photo-empty { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy-100), var(--navy-50)); }
.news-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-card h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.news-card p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--text-muted); }

.badge {
    display: inline-flex; align-items: center;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-family: var(--font-display); font-weight: 600; font-size: .6875rem;
    letter-spacing: .02em;
    background: var(--navy-50); color: var(--navy-700); border: 1px solid var(--navy-100);
}
.badge-good { background: var(--green-50); color: var(--green-600); border-color: #b9e0cb; }
.badge-warn { background: var(--amber-50); color: var(--amber-600); border-color: #ecd49a; }
.badge-quiet { background: var(--slate-50); color: var(--text-muted); border-color: var(--border); }

.news-date { font-size: .8125rem; color: var(--text-faint); }

.lead-story { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lead-story .news-card-photo { aspect-ratio: 21 / 9; }
.lead-story h3 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -.015em; }

.story-list { display: flex; flex-direction: column; gap: 2px; }
.story-list a {
    display: flex; flex-direction: column; gap: 3px;
    padding: 14px 0; border-top: 1px solid var(--border);
    text-decoration: none; color: var(--text-body);
}
.story-list a:first-child { border-top: 0; }
.story-list a:hover { text-decoration: none; color: var(--navy-700); }
.story-list strong { font-family: var(--font-display); font-weight: 600; font-size: .9375rem; line-height: 1.35; }

.filter-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-strip a {
    min-height: 40px; display: inline-flex; align-items: center;
    padding: 8px 15px; border-radius: var(--radius-pill);
    border: 1px solid var(--border); background: var(--surface-card);
    font-family: var(--font-display); font-weight: 600; font-size: .875rem;
    color: var(--text-muted); text-decoration: none;
}
.filter-strip a:hover { border-color: var(--navy-300); color: var(--navy-700); text-decoration: none; }
.filter-strip a[aria-current="page"] { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* The article itself. */
.article { max-width: 1180px; margin: 0 auto; padding: 44px 32px 72px; }
.article-back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: .875rem; margin-bottom: 24px; }
.article-photo { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-xl); margin-bottom: 32px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }

.article-body { font-size: 1.0625rem; line-height: 1.7; color: var(--text-body); max-width: 40em; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 18px; }
.article-body h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.article-body h3 { font-size: 1.1875rem; margin: 26px 0 10px; }
.article-body ul { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { margin: 24px 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--text-muted); }
.article-standfirst { font-size: 1.25rem; font-weight: 300; line-height: 1.55; color: var(--text-strong); margin: 0 0 26px; }

.pull-quote { margin: 32px 0; padding: 24px 26px; background: var(--navy-50); border-radius: var(--radius-lg); }
.pull-quote p { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.45; color: var(--navy-700); margin: 0 0 10px; }
.pull-quote cite { font-style: normal; font-size: .875rem; color: var(--text-muted); }

.aside-card { background: var(--surface-page); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; }
.aside-card + .aside-card { margin-top: 20px; }
.aside-title { font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }

/* ============================================================
   Listings: documents, results, tables, fixtures
   ============================================================ */

.list-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

.rowset { display: flex; flex-direction: column; }
.rowset > * { border-top: 1px solid var(--border); }
.rowset > :first-child { border-top: 0; }

.doc-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 120px 140px; gap: 16px; align-items: center; padding: 16px 20px; }
.doc-row-head { background: var(--surface-page); font-family: var(--font-display); font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.doc-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc-name strong { font-weight: 600; font-size: .9375rem; color: var(--text-strong); }
.doc-name span { font-size: .8125rem; color: var(--text-faint); }
.doc-row .muted { font-size: .875rem; color: var(--text-muted); }

.table-scroll { overflow-x: auto; }

.standings { width: 100%; font-size: .9375rem; }

/* Only the eight-column table needs forcing wider than its container. The home page's
   five-column snapshot sits in half a band and fits, so giving it the same floor bought it a
   scrollbar it had no use for. */
.standings-full { min-width: 560px; }
.standings th, .standings td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.standings thead th {
    background: var(--surface-page);
    font-family: var(--font-display); font-weight: 600; font-size: .75rem;
    letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.standings .num { text-align: right; width: 52px; }
.standings .pos { width: 46px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.standings td.team { font-weight: 500; color: var(--text-strong); }
.standings td.pts { font-weight: 700; color: var(--navy-700); }
.standings tbody tr:nth-child(even) { background: var(--slate-25); }

.result-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr) 130px; gap: 12px; align-items: center; padding: 13px 20px; }
.result-row .home { text-align: right; font-weight: 500; color: var(--text-strong); }
.result-row .away { font-weight: 500; color: var(--text-strong); }
.result-row .score {
    text-align: center; font-family: var(--font-display); font-weight: 700;
    background: var(--navy-700); color: #fff; border-radius: var(--radius-sm); padding: 5px 0;
    font-variant-numeric: tabular-nums;
}
.result-row .where { font-size: .8125rem; color: var(--text-faint); text-align: right; }

.fixture-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 120px; gap: 14px; align-items: center; padding: 13px 20px; }
.fixture-row .when { font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: var(--navy-700); font-variant-numeric: tabular-nums; }
.fixture-row .what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fixture-row .what strong { font-weight: 500; font-size: .9375rem; color: var(--text-strong); }
.fixture-row .what span { font-size: .8125rem; color: var(--text-faint); }
.fixture-row .which { font-size: .8125rem; color: var(--text-muted); text-align: right; }

.note { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.empty-note { padding: 28px 20px; text-align: center; color: var(--text-muted); font-size: .9375rem; }

/* ============================================================
   Committee, events, dates, joining
   ============================================================ */

.person { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.person-head { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 42px; height: 42px; flex: none; border-radius: var(--radius-pill);
    background: var(--navy-100); color: var(--navy-700);
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: .875rem;
}
.person-name { display: flex; flex-direction: column; min-width: 0; }
.person-name strong { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--text-strong); }
.person-name span { font-size: .8125rem; color: var(--accent); font-weight: 500; }
.person-remit { font-size: .875rem; line-height: 1.55; color: var(--text-muted); margin: 0; }

.event { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.event-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.event h3 { font-size: 1.0625rem; font-weight: 700; }
.event p { margin: 0; font-size: .875rem; line-height: 1.55; color: var(--text-muted); }
.event-when { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: .8125rem; }
.event-when strong { font-weight: 600; color: var(--text-strong); }
.event-when span { color: var(--text-faint); }

.month { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-top: 1px solid var(--border); }
.month:first-of-type { border-top: 0; }
.month-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy-700); }
.month-note { font-size: .8125rem; color: var(--text-muted); margin-top: 4px; }
.date-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); }
.date-row:first-child { border-top: 0; }
.date-when { font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: var(--navy-700); }
.date-what strong { display: block; font-weight: 500; font-size: .9375rem; color: var(--text-strong); }
.date-what span { font-size: .8125rem; color: var(--text-muted); line-height: 1.5; }

.step { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.step:first-of-type { border-top: 0; padding-top: 0; }
.step-number {
    width: 42px; height: 42px; flex: none; border-radius: var(--radius-pill);
    background: var(--navy-700); color: #fff;
    display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
}
.step h2 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 6px; }
.step p { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--text-muted); }

.fee-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); font-size: .875rem; }
.fee-row:first-of-type { border-top: 0; }
.fee-row strong { font-weight: 600; color: var(--text-strong); }

.support-block { padding: 26px 0; border-top: 1px solid var(--border); }
.support-block:first-of-type { border-top: 0; padding-top: 0; }
.support-block h2 { font-size: 1.375rem; font-weight: 700; margin-bottom: 10px; }
.support-block > p { margin: 0 0 18px; font-size: .9375rem; line-height: 1.65; color: var(--text-muted); max-width: 46em; }

.support-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.support-link {
    display: flex; flex-direction: column; gap: 3px;
    padding: 14px 16px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface-card); text-decoration: none; color: var(--text-body);
}
.support-link:hover { border-color: var(--navy-300); box-shadow: var(--shadow-sm); text-decoration: none; }
.support-link strong { font-family: var(--font-display); font-weight: 600; font-size: .9375rem; color: var(--navy-700); }
.support-link span { font-size: .8125rem; color: var(--text-muted); line-height: 1.45; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }

.cta-band {
    background: var(--navy-700); color: #fff;
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 1.625rem; font-weight: 700; margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .9375rem; line-height: 1.6; max-width: 46em; }

.partners { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.partner { font-family: var(--font-display); font-weight: 600; font-size: .9375rem; color: var(--text-faint); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer { margin-top: auto; background: var(--navy-900); color: rgba(255, 255, 255, .72); }
.site-footer .wrap { padding-block: 52px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; }
.site-footer p { margin: 0 0 16px; font-size: .875rem; line-height: 1.6; max-width: 34em; }
.footer-social { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: rgba(255, 255, 255, .72); font-size: .875rem; }
.site-footer a:hover { color: #fff; }
.footer-col-title { font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }

.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-base .wrap {
    display: flex; gap: 16px; align-items: center; justify-content: space-between;
    flex-wrap: wrap; padding-block: 18px; font-size: .8125rem;
}
.powered { display: flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .5); }
.footer-signin { display: inline-flex; gap: 8px; align-items: center; color: rgba(255, 255, 255, .5); }
.holding-signin { justify-content: center; }

/* ============================================================
   Holding page — the site before it is published
   ============================================================ */

.holding { min-height: 100vh; display: grid; place-items: center; background: var(--navy-700); color: #fff; text-align: center; padding: 40px 24px; }
.holding-inner { max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.holding h1 { color: #fff; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.holding p { margin: 0; color: rgba(255, 255, 255, .78); line-height: 1.6; }

/* ============================================================
   Narrower screens (§23.5 — this is mostly read on a phone)
   ============================================================ */

@media (max-width: 1000px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lead-story, .split, .article-grid, .home-hero .wrap { grid-template-columns: minmax(0, 1fr); }
    .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .month { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 720px) {
    .wrap { padding-inline: 20px; }
    .article { padding-inline: 20px; }

    .grid-2, .grid-3, .grid-4, .stats, .support-links { grid-template-columns: minmax(0, 1fr); }
    .site-footer .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }

    .home-hero h1 { font-size: 2.25rem; }
    .editorial-hero h1 { font-size: 2.375rem; }
    .page-hero h1 { font-size: 2rem; }
    .band-head h2 { font-size: 1.375rem; }

    .site-header .wrap { min-height: 66px; padding-block: 10px; gap: 14px; }
    .brand-crest, .brand-mark { width: 42px; height: 42px; }
    .site-nav { width: 100%; margin-left: 0; order: 3; }

    .doc-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .doc-row-head { display: none; }

    .result-row { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); }
    .result-row .where { grid-column: 1 / -1; text-align: left; }

    .cta-band { padding: 26px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.note-after { margin-top: 26px; }

/* Form controls. Only two pages have any — the document search and its category filter — so
   this is deliberately one style rather than a set. */
.input {
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-card);
    font-family: var(--font-body);
    font-size: .9375rem;
    color: var(--text-body);
    min-width: 0;
}
.input:focus-visible { border-color: var(--accent); }

form.pbtn-row .input { flex: 1 1 220px; }
form.pbtn-row select.input { flex: 0 1 220px; }

.note ul, ul.note { padding-left: 20px; margin: 0; }

/* The division strip under the age-group strip. Quieter, because it is the second choice. */
.filter-strip-sub { margin-top: -14px; }
.filter-strip-sub a { font-weight: 500; font-size: .8125rem; min-height: 36px; padding: 6px 13px; }
.filter-strip-sub a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ============================================================
   A club's own area

   Signed in, but still the league's website: the same tokens, the same rows, one heading that
   names the club instead of the section. A second visual language here would tell a volunteer
   they had arrived somewhere administrative, which is exactly what this is not.
   ============================================================ */

.club-head { border-bottom: 1px solid var(--border); }
.club-head h1 { margin: 4px 0 0; font-size: 1.875rem; }

.club-head-row { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }

.club-who { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--text-muted); }
.club-who form { margin: 0; }

.club-tabs { margin-bottom: 0; }

/* The way back to the league's own pages, for somebody who also helps run it: at the end, apart. */
.club-tabs .club-tab-league { margin-left: auto; border-color: var(--navy-700); color: var(--navy-700); }
.club-tabs .club-tab-league::after { content: "→"; margin-left: 6px; }

/* The rows. Same three-part shape as a fixture row, without the kick-off column. */
.club-team-row,
.club-person-row,
.club-news-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px;
    align-items: center; padding: 14px 20px;
}

.club-news-row { text-decoration: none; }
.club-news-row:hover { background: var(--surface-page); text-decoration: none; }

.club-team-row .what,
.club-person-row .what,
.club-news-row .what { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.club-team-row .what strong,
.club-person-row .what strong,
.club-news-row .what strong { font-weight: 600; font-size: .9375rem; color: var(--text-strong); }

.club-team-row .what span,
.club-person-row .what span,
.club-news-row .what span { font-size: .8125rem; color: var(--text-faint); }

.club-team-row .which,
.club-news-row .which { font-size: .8125rem; color: var(--text-muted); text-align: right; white-space: nowrap; }

.club-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.club-actions form { margin: 0; }

/* "This team has folded", opened under the team it is about and across the whole row. */
.club-fold { grid-column: 1 / -1; }
.club-fold > summary { cursor: pointer; font-size: .875rem; font-weight: 600; color: var(--navy-700); }
.club-fold > .club-form { padding: 16px 0 0; }

/* What just happened. Quiet when it worked, not quiet when it did not. */
.club-alert {
    background: var(--surface-card); border: 1px solid var(--border); border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 24px;
}
.club-alert ul { margin: 8px 0 0; padding-left: 20px; }
.club-alert p { margin: 8px 0 0; }
.club-alert-bad { border-left-color: #b4232a; }
.club-alert-link .input { margin-top: 12px; }

.club-form { padding: 20px; }
.club-form label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .8125rem; margin: 0 0 6px; color: var(--text-strong); }
.club-form label + .input,
.club-form .input { margin-bottom: 16px; }
.club-form .note { margin: 14px 0 0; }

/* §23.5 — a tap target, and a field a thumb can hit. */
.club-form .input,
.club-alert .input {
    width: 100%; min-height: 44px; padding: 10px 13px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-card); color: var(--text-strong);
    font: inherit; font-size: .9375rem;
}

@media (max-width: 720px) {
    /* The actions drop under the name rather than squeezing it to nothing. */
    .club-person-row { grid-template-columns: minmax(0, 1fr); }
    .club-actions { justify-content: flex-start; }
}

/* The results header borrows the result row's grid so the columns line up. It must not borrow
   the score badge with it — a heading drawn as a navy pill reads as a score with no game. */
.result-row.doc-row-head .score {
    background: none; color: inherit; padding: 0;
    font-size: inherit; letter-spacing: inherit;
}

/* §23.5 — the club's tabs are a primary control and clear 44px. The league's own filter strips
   still sit at 40; they are not touched here because changing them changes every public page. */
.club-tabs a { min-height: 44px; }

@media (max-width: 620px) {
    /* A result is home / score / away across a desktop row. At 375px that gives each team name
       about 110px, so "Crosfields JFC U17 Malaga" breaks over three lines and the row becomes
       taller than it is wide. On a phone the score moves to the left and the two teams stack
       beside it, which is how a results app has always drawn this.

       Scoped to the club's own list rather than every .result-row: the public home page shows a
       handful of short division names in the same markup and does not have the problem. */
    .club-results .result-row {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "score home" "score away" "where where";
        row-gap: 2px;
    }

    .club-results .result-row .home { grid-area: home; text-align: left; align-self: end; }
    .club-results .result-row .away { grid-area: away; align-self: start; }
    .club-results .result-row .score { grid-area: score; align-self: center; padding: 8px 11px; }
    .club-results .result-row .where { grid-area: where; text-align: left; padding-top: 4px; }

    /* The header row's columns no longer mean anything once the row has stacked. */
    .club-results .result-row.doc-row-head { display: none; }
}

/* ============================================================
   A form a club fills in

   Deliberately plain and wide-spaced. Whoever is doing this is a volunteer at the end of a long
   day, often on a phone, and the thing that makes a form bearable is one question at a time with
   room around it — not density.
   ============================================================ */

.wrap-narrow { max-width: 720px; }

.form-title { margin: 0 0 8px; font-size: 1.75rem; }

.club-form-fill { margin-top: 28px; }

.form-question {
    display: flex; flex-direction: column; gap: 7px;
    padding: 20px; margin-bottom: 16px;
    background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}

.form-question > label {
    font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text-strong);
}

.form-question .note { margin: 0; }

/* §23.5 — a 44px target, and a field big enough to type into on a phone. */
.form-question .input {
    width: 100%; min-height: 44px; padding: 10px 13px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface-card); color: var(--text-strong);
    font: inherit; font-size: 1rem;
}

.form-question textarea.input { min-height: 110px; line-height: 1.5; resize: vertical; }
.form-question select[multiple].input { min-height: 132px; padding: 6px; }

.form-question .input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-question .input:disabled { background: var(--surface-page); color: var(--text-muted); }

/* Required is marked, and the mark is announced rather than left as decoration. */
.form-required { color: #b4232a; margin-left: 3px; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }

@media (max-width: 620px) {
    /* Both buttons full width and stacked: "Send to the league" is not a thing to hit by accident
       with a thumb aimed at "Save for later". */
    .form-actions { flex-direction: column; }
    .form-actions .pbtn { width: 100%; justify-content: center; }
}

/* ============================================================
   The season registration

   Three steps rather than one page, because it is three different jobs done on three different
   evenings. The strip at the top is the only thing that makes that bearable: a club has to be
   able to see where it is and what is left without reading anything.
   ============================================================ */

.season-head { margin-bottom: 26px; }
.season-head h1 { margin: 4px 0 10px; font-size: 1.875rem; }
.season-head .note { margin: 0 0 18px; }

.season-steps { margin-bottom: 0; }
.season-tick { margin-left: 7px; color: #1c7c4a; font-weight: 700; }

.season-role { margin: 0; font-family: var(--font-display); font-size: 1.0625rem; color: var(--text-strong); }

/* A tick and its words, aligned on the first line rather than centred on a two-line label. */
.season-vacant,
.season-team > label {
    display: flex; align-items: flex-start; gap: 10px;
    font-family: inherit; font-weight: 400; font-size: .9375rem; color: var(--text-body);
}

.season-vacant input,
.season-team input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; flex: none; }

.season-team > label > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.season-team > label strong { font-weight: 600; color: var(--text-strong); }
.season-team { padding: 14px 20px; margin: 0; border: 0; border-radius: 0; background: none; }

.season-warn { color: #b4232a; }

.season-preview {
    margin: 4px 0 16px; padding: 12px 14px;
    background: var(--surface-page); border-radius: var(--radius-sm);
    font-size: .9375rem; color: var(--text-muted);
}
.season-preview strong { color: var(--text-strong); }

/* The week. Seven rows of day / from / to, which needs no script and reads the way a week does. */
.season-week { border: 0; padding: 0; margin: 4px 0 18px; }
.season-week legend {
    padding: 0; font-family: var(--font-display); font-weight: 600; font-size: .8125rem;
    color: var(--text-strong);
}
.season-week .note { display: block; margin: 4px 0 12px; }

.season-day { display: grid; grid-template-columns: 46px 1fr 24px 1fr; gap: 8px; align-items: center; margin-bottom: 8px; }
.season-day-name { font-family: var(--font-display); font-weight: 600; font-size: .875rem; color: var(--text-muted); }
.season-day-to { text-align: center; font-size: .8125rem; color: var(--text-faint); }
.season-day .input { margin-bottom: 0; }

@media (max-width: 520px) {
    /* The two time fields keep their row; the label moves above it rather than stealing width. */
    .season-day { grid-template-columns: 1fr 24px 1fr; }
    .season-day-name { grid-column: 1 / -1; margin-bottom: 2px; }
}

/* The tick-all shortcuts, above the team list rather than below it: they are read before the
   list is worked through, not after. */
.season-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.season-bulk .note { margin: 0; }

@media (max-width: 520px) {
    /* The sentence drops under the buttons rather than squeezing them to nothing. */
    .season-bulk .note { flex-basis: 100%; }
}

/* Where a team goes next season, and why one is not carrying on: two fields to a row under the
   tick they belong to, one above the other on a phone. */
.season-next { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 12px 0 0 28px; }
.season-next label {
    display: block; margin: 0 0 6px;
    font-family: var(--font-display); font-weight: 600; font-size: .8125rem; color: var(--text-strong);
}
.season-why { margin: 6px 0 0 28px; }
.season-why > summary { padding: 11px 0; cursor: pointer; font-size: .875rem; color: var(--text-muted); }
.season-why .season-next { margin: 0; }
.season-leaving { display: flex; flex-direction: column; gap: 2px; }
.season-leaving strong { font-weight: 600; color: var(--text-strong); }

@media (max-width: 520px) {
    .season-next { grid-template-columns: minmax(0, 1fr); margin-left: 0; }
    .season-why { margin-left: 0; }
}

/* ============================================================
   §23.3 — contrast and tap targets in the club area

   The club area carries things a volunteer has to READ and ACT ON — when a pitch is free, which
   step is done, what a button does — rather than the decorative meta the public pages use faint
   text for. Measured rather than eyeballed: --text-faint is 2.96:1 on a card and 2.69:1 on the
   page, against the 4.5:1 WCAG 2.2 AA asks for body text.
   ============================================================ */

/* Second lines here are content: a pitch's availability, a team's age group, who sent a form. */
.club-team-row .what span,
.club-person-row .what span,
.club-news-row .what span { color: var(--text-muted); }

/* The tick sits on a white tab and on the navy current one, so it takes the colour of whichever
   it is on. The glyph says "done"; it does not need to be green to say it. */
.season-tick { color: currentColor; }

.season-day-to { color: var(--text-muted); }

/* §23.5 — 44px. The site's .pbtn-sm is 36 and .filter-strip is 40, which is fine for a link on a
   page somebody is reading and not for the controls a club operates a form with. Scoped to this
   area rather than raised globally, because that would move every public page. */
.season-steps a { min-height: 44px; }
.club-actions .pbtn-sm,
.season-bulk .pbtn-sm,
.club-who .pbtn-sm { min-height: 44px; }

/* A result's date and venue. On the public home page this is a caption beside a handful of
   scores; in a club's own area it is the answer to "which match was that?", read down a list of
   sixty. --text-faint is 2.96:1, so here it takes the muted colour that passes. */
.club-results .result-row .where { color: var(--text-muted); }

/* ---- help: an ⓘ that opens an explanation (HelpTipTagHelper, Shared/_HelpTips) ---------- */
.help-i {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; margin-left: 6px; padding: 0; vertical-align: middle;
    border: 1.5px solid var(--slate-400); border-radius: 50%; background: var(--slate-0);
    color: var(--slate-600); font: italic 700 11px/1 Georgia, "Times New Roman", serif;
    cursor: pointer; flex: none;
}
.help-i:hover, .help-i:focus-visible { border-color: var(--accent); color: var(--accent); }
.help-i:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-pop {
    width: min(560px, calc(100vw - 32px)); max-height: min(70vh, 640px); padding: 0;
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--slate-0);
    color: var(--slate-900); box-shadow: var(--shadow-lg); overflow: auto;
}
.help-pop::backdrop { background: rgba(8, 31, 61, .18); }
.help-pop-head {
    position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--slate-0); font-size: 15px;
}
.help-close {
    width: 28px; height: 28px; border: 0; border-radius: var(--radius-sm); background: transparent;
    color: var(--slate-500); font-size: 20px; line-height: 1; cursor: pointer;
}
.help-close:hover, .help-close:focus-visible { background: var(--slate-50); color: var(--slate-900); }
.help-pop-body { padding: 12px 16px 16px; font-size: 14px; line-height: 1.55; color: var(--slate-600); }
.help-pop-body p { margin: 0 0 10px; }
.help-pop-body p:last-child, .help-pop-body ul:last-child { margin-bottom: 0; }
.help-pop-body ul { margin: 0 0 10px; padding-left: 18px; }

/* §23.5 — on a touch screen the ⓘ keeps its size but answers to a 44px tap, and the popup's
   close button is a full target, so a finger aimed at either does not land on the field beside it. */
@media (pointer: coarse) {
    .help-i { position: relative; }
    .help-i::after { content: ""; position: absolute; inset: -13px; }
    .help-close { min-width: 44px; min-height: 44px; }
}
