/*
 * Matadores FC - design tokens and the sign-in screen.
 * Tokens are taken verbatim from design/png/Foundations.png (Prompt 0).
 */

:root {
    --brand-red: #C73732;
    --brand-red-dark: #A32B27;
    --brand-red-subtle: #FBEDEC;
    --brand-black: #000000;

    --ink: #1A1A1A;
    --ink-muted: #5C5C5C;
    --ink-subtle: #8A8A8A;

    --surface: #FFFFFF;
    --surface-alt: #F7F6F5;
    --border: #E3E1DF;

    --success: #2E7D4F;
    --warning: #B4761B;
    --danger: #C0342E;
    --info: #2F6FA8;

    /* 8px rhythm with 4px half-steps. */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    --radius-card: 8px;
    --radius-button: 6px;
    --radius-pill: 999px;

    --elevation-soft: 0 1px 2px rgba(0, 0, 0, 0.06);

    /* Barlow Condensed and Inter are used when installed; the stacks degrade sensibly when not.
       No webfont is fetched - the sign-in page must not depend on a third-party request. */
    --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

/* Visible focus is never removed and never relies on colour alone: a 2px ring with a 2px offset. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.table-scroll:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------- layout */

.auth__split {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-7);
    background: var(--brand-black);
    color: var(--surface);
}

.brand-panel__overline {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-panel__rule {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brand-red);
}

.brand-panel__mark {
    text-align: center;
}

.brand-panel__crest {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 212px;
    height: 212px;
    margin-bottom: var(--space-5);
    background: var(--surface);
    border-radius: var(--radius-pill);
}

.brand-panel__crest img {
    width: 170px;
    height: auto;
}

.brand-panel__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.brand-panel__meta {
    margin: var(--space-2) 0 0;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.brand-panel__tagline {
    margin: 0;
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.72);
}

.auth-panel {
    display: flex;
    flex-direction: column;
    padding: var(--space-5) var(--space-7);
}

.auth-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.auth-panel__body {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.auth-panel__footer {
    padding-top: var(--space-5);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    color: var(--ink-subtle);
}

/* ------------------------------------------------------ back link, switcher */

.link-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    color: var(--ink-muted);
    text-decoration: none;
}

.link-back:hover {
    color: var(--ink);
}

/* Secondary chrome: never brand-red, never a flag icon. */
/* A segmented control: all three languages visible, the chosen one filled. A dropdown would
   hide which language is active until opened, and cost a click to reach a two-item choice.

   Every override below restates both colour and background together. Setting only one of the
   pair is what once rendered the active pill as white text on a near-white fill. */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
}

.lang-switch a {
    padding: 5px var(--space-3);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-muted);
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 120ms ease, color 120ms ease;
}

.lang-switch a:hover {
    color: var(--ink);
    background: var(--surface);
}

.lang-switch a.is-active {
    color: var(--surface);
    background: var(--brand-red);
    box-shadow: var(--elevation-soft);
}

/* The filled pill is already the strongest thing in the control, so the focus ring sits outside
   it rather than on top of it. */
.lang-switch a:focus-visible {
    outline: 2px solid var(--brand-red);
    outline-offset: 2px;
}

/* Landing page: brand red is reserved for "Sign in" (design/V3), so the active pill is black. */
.lang-switch--public a.is-active {
    color: var(--surface);
    background: var(--brand-black);
}

.lang-switch--public a:focus-visible {
    outline-color: var(--brand-black);
}

/* ---------------------------------------------------------- sign-in card */

.sign-in {
    width: 100%;
    max-width: 400px;
}

.sign-in__heading {
    margin: 0;
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sign-in__subheading {
    margin: var(--space-1) 0 var(--space-5);
    color: var(--ink-muted);
}

.sign-in__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sign-in__forgot {
    margin: calc(var(--space-2) * -1) 0 0;
    text-align: right;
    font-size: 14px;
}

.sign-in__forgot a,
.sign-in__join a {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
}

.sign-in__forgot a:hover,
.sign-in__join a:hover {
    text-decoration: underline;
}

.sign-in__join {
    margin: var(--space-4) 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--ink-muted);
}

/* ---------------------------------------------------------------- fields */

.field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.field__label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.field__input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}

.field__input--with-action {
    padding-right: var(--space-8);
}

.field__input::placeholder {
    color: var(--ink-muted);
}

.field__action {
    position: absolute;
    right: var(--space-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: var(--radius-button);
    cursor: pointer;
    color: var(--ink-muted);
    font-size: 16px;
}

.field__action:hover {
    color: var(--ink);
}

.helper-text {
    margin: var(--space-2) 0 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--ink-muted);
    text-align: center;
}

/* --------------------------------------------------------------- buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    /* Hugs its content and never pins a width that only fits English. */
    min-height: 48px;
    padding: var(--space-3) var(--space-5);
    font: inherit;
    font-weight: 600;
    border-radius: var(--radius-button);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}

.button--block {
    width: 100%;
}

.button--primary {
    background: var(--brand-red);
    color: var(--surface);
}

.button--primary:hover {
    background: var(--brand-red-dark);
}

.button--secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border);
}

.button--secondary:hover:not(:disabled) {
    background: var(--surface-alt);
}

.button:disabled {
    color: var(--ink-subtle);
    cursor: not-allowed;
}

.google-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--brand-red);
}

/* --------------------------------------------------------------- divider */

.divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-5) 0;
    color: var(--ink-muted);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ---------------------------------------------------------------- alerts */

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border: 1px solid;
    border-radius: var(--radius-card);
    font-size: 14px;
    line-height: 20px;
}

/* Status is carried by an icon and a label, never by colour alone. */
.alert__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 1px solid currentColor;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
}

.alert--danger {
    color: var(--danger);
    border-color: var(--danger);
    background: var(--brand-red-subtle);
}

.alert--info {
    color: var(--info);
    border-color: var(--info);
    background: var(--surface-alt);
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 860px) {
    .auth__split {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        padding: var(--space-5);
    }

    .brand-panel__mark {
        display: flex;
        align-items: center;
        gap: var(--space-4);
        margin: var(--space-5) 0;
        text-align: left;
    }

    .brand-panel__crest {
        width: 72px;
        height: 72px;
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .brand-panel__crest img {
        width: 56px;
    }

    .brand-panel__name {
        font-size: 24px;
        line-height: 32px;
    }

    .brand-panel__tagline {
        display: none;
    }

    .auth-panel {
        padding: var(--space-4);
    }
}

/* ===================================================================
 * Registration, applicant status and the administrator queue.
 * Added by design/V4__registration_form_fields.md and Prompts 3, 6, 18.
 * =================================================================== */

/* ------------------------------------------------- wider auth card */

/* The registration form carries eight controls; the sign-in card's width would
   force a scroll on every viewport. */
.sign-in--wide {
    max-width: 480px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

/* ------------------------------------------------------ select box */

.field__select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    /* Keeps the native dropdown affordance rather than painting a custom one
       that would lose the platform's keyboard behaviour. */
    appearance: auto;
}

.field__textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    resize: vertical;
}

/* ---------------------------------------------------- error states */

/* Never colour alone: the field also gets aria-invalid and a text message. */
.field__input--invalid,
.field__select.field__input--invalid {
    border-color: var(--danger);
    background: var(--brand-red-subtle);
}

.field__error {
    margin: 0;
    font-size: 13px;
    line-height: 18px;
    color: var(--danger);
}

/* ------------------------------------------------------- check box */

.field--check {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: var(--space-2) var(--space-3);
}

.field__checkbox {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--brand-red);
}

.field__check-label {
    font-size: 14px;
    line-height: 20px;
    color: var(--ink-muted);
}

.field--check .field__error {
    grid-column: 1 / -1;
}

/* ------------------------------------------------- further alerts */

.alert--success {
    color: var(--success);
    border-color: var(--success);
    background: var(--surface-alt);
}

.alert--warning {
    color: var(--warning);
    border-color: var(--warning);
    background: var(--surface-alt);
}

.status-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-pill);
    font-size: 28px;
}

.status-mark--success {
    color: var(--success);
    background: var(--surface-alt);
    border: 1px solid var(--success);
}

.status-mark--danger {
    color: var(--danger);
    background: var(--surface-alt);
    border: 1px solid var(--danger);
}

/* ---------------------------------------------------- step tracker */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    margin: 0 0 var(--space-5);
    padding: 0;
    list-style: none;
}

.steps__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
    color: var(--ink-subtle);
}

.steps__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid currentColor;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
}

.steps__label {
    font-size: 12px;
    line-height: 16px;
}

.steps__step.is-done {
    color: var(--success);
}

.steps__step.is-current {
    color: var(--brand-red);
    font-weight: 600;
}

/* ------------------------------------------------------------ card */

.card {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--elevation-soft);
}

.card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border);
}

.card__row:last-child {
    border-bottom: 0;
}

.card__key {
    font-size: 13px;
    color: var(--ink-muted);
}

.card__value {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    /* A long address must wrap rather than widen the card. */
    overflow-wrap: anywhere;
}

.quote {
    margin: 0 0 var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-left: 3px solid var(--border);
    background: var(--surface-alt);
    font-size: 14px;
    line-height: 20px;
    color: var(--ink-muted);
}

/* ----------------------------------------------------------- badge */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--space-3);
    border: 1px solid currentColor;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge--pending {
    color: var(--warning);
}

.badge--approved {
    color: var(--success);
}

.badge--rejected {
    color: var(--danger);
}

/* ------------------------------------------------- admin shell */

.admin {
    margin: 0;
    min-height: 100vh;
    background: var(--surface-alt);
}

.admin__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--brand-black);
    color: var(--surface);
}

/* The brand doubles as the way back to the public site, so it is an anchor. It keeps the
   header's own colour rather than the global link colour, which would be unreadable on black,
   and marks hover with an underline instead of a colour change. */
.admin__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--surface);
    text-decoration: none;
}

.admin__brand:hover {
    color: var(--surface);
    text-decoration: underline;
}

/* The admin header is black, so the track is lifted out of it rather than drawn on paper.
   Both halves of each colour pair are restated; overriding only the text colour here is what
   made the active pill unreadable. */
.admin__header .lang-switch {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.admin__header .lang-switch a {
    color: rgba(255, 255, 255, 0.75);
    background: transparent;
}

.admin__header .lang-switch a:hover {
    color: var(--surface);
    background: rgba(255, 255, 255, 0.14);
}

.admin__header .lang-switch a.is-active {
    color: var(--surface);
    background: var(--brand-red);
}

.admin__header .lang-switch a:focus-visible {
    outline-color: var(--surface);
}

.admin__main {
    max-width: 1040px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-5) var(--space-8);
}

.admin__heading {
    margin: 0 0 var(--space-2);
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 40px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.admin__subheading {
    margin: 0 0 var(--space-5);
    color: var(--ink-muted);
}

.admin__signout {
    margin-top: var(--space-6);
}

.empty-state {
    padding: var(--space-7) var(--space-5);
    border: 1px dashed var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    text-align: center;
    color: var(--ink-muted);
}

/* ----------------------------------------------------------- table */

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.table th,
.table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-muted);
    background: var(--surface-alt);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-2);
}

.muted {
    color: var(--ink-subtle);
}

.button--small {
    min-height: 36px;
    padding: var(--space-2) var(--space-4);
    font-size: 14px;
}

.button--danger {
    color: var(--surface);
    background: var(--danger);
    border-color: var(--danger);
}

.button--danger:hover {
    background: var(--brand-red-dark);
    border-color: var(--brand-red-dark);
}

/* The reject reason is disclosed in place: a modal would need JavaScript to be
   dismissible, and this form must work without it. */
.reject summary {
    list-style: none;
}

.reject summary::-webkit-details-marker {
    display: none;
}

.reject__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 280px;
    margin-top: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface-alt);
}

/* Reachable by a screen reader, invisible on screen. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 860px) {
    .field-row {
        grid-template-columns: 1fr;
    }

    .reject__form {
        width: 100%;
    }
}

/* .field sets display:flex, which would otherwise defeat the hidden attribute. */
[hidden] {
    display: none !important;
}

/* ------------------------------------------- forced password change (Prompt 5)
   Sign-out is the only way off that screen without completing it, so it is a
   form button that has to read as a link. */

.sign-in__signout {
    margin-top: var(--space-5);
    text-align: center;
}

.link-button {
    padding: 0;
    font: inherit;
    color: var(--ink-muted);
    background: none;
    border: 0;
    text-decoration: underline;
    cursor: pointer;
}

.link-button:hover {
    color: var(--ink);
}

/* ------------------------------------------------- public landing (Prompt 1)
   The only screen a visitor sees before signing in, so it carries its own
   chrome rather than the authenticated app shell. */

.public-bar {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    height: 72px;
    padding: 0 var(--space-6);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.public-bar__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--ink);
}

.public-bar__wordmark {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-bar__nav {
    display: inline-flex;
    gap: var(--space-5);
    /* Pushes everything after it to the right-hand end of the bar. */
    margin-left: auto;
}

.public-bar__nav a {
    font-size: 15px;
    color: var(--ink-muted);
    text-decoration: none;
}

.public-bar__nav a:hover {
    color: var(--ink);
}

.public-bar__divider {
    width: 1px;
    height: 24px;
    background: var(--border);
}

.public-bar__actions {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}

/* The signed-in member's address. Quieter than the actions beside it: it is a label, not a
   thing to click. */
.public-bar__user {
    color: var(--ink-muted);
    font-size: 0.875rem;
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Links styled as buttons must not keep the underline a link would otherwise have. */
a.button {
    text-decoration: none;
}

.button--large {
    min-height: 56px;
    padding: var(--space-4) var(--space-6);
    font-size: 17px;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 520px;
    padding: var(--space-8) var(--space-6);
    background: var(--surface-alt);
    overflow: hidden;
}

/* The crest bleeds off the right edge at low contrast; it is decoration, not content. */
.hero__crest {
    position: absolute;
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
    opacity: 0.08;
    pointer-events: none;
}

.hero__content {
    position: relative;
    max-width: 600px;
}

.hero__eyebrow {
    margin: 0 0 var(--space-3);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero__lead {
    margin: var(--space-4) 0 var(--space-6);
    font-size: 18px;
    line-height: 28px;
    color: var(--ink-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    padding: var(--space-6) var(--space-5);
    background: var(--surface);
    text-align: center;
}

.stat__value {
    margin: 0;
    font-family: var(--font-display);
    font-size: 40px;
    line-height: 1.1;
}

.stat__label {
    margin: var(--space-2) 0 0;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.section {
    max-width: 1040px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

.section__heading {
    margin: 0 0 var(--space-5);
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fixture-card {
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--elevation-soft);
}

.fixture-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.fixture-card__opponent {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2);
    margin: 0;
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fixture-card__versus {
    font-family: var(--font-body);
    font-size: 14px;
    text-transform: lowercase;
    letter-spacing: 0;
    color: var(--ink-subtle);
}

.fixture-card__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: var(--space-5) 0 0;
}

.fixture-card__fact dt {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-subtle);
}

.fixture-card__fact dd {
    margin: var(--space-1) 0 0;
}

.fixture-card__players {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-5) 0 0;
    padding: 0;
    list-style: none;
}

.fixture-card__players li {
    padding: var(--space-1) var(--space-3);
    background: var(--surface-alt);
    border-radius: var(--radius-pill);
    font-size: 14px;
}

.fixture-card__note {
    margin: var(--space-4) 0 0;
    font-size: 13px;
    color: var(--ink-muted);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pill--home {
    background: var(--brand-red-subtle);
    color: var(--brand-red-dark);
}

.pill--away {
    background: var(--surface-alt);
    color: var(--ink-muted);
}

/* Future events: a placeholder still waits for its Spond file; a locked event has had one. */
.pill--placeholder {
    background: var(--surface-alt);
    color: var(--ink-muted);
}

.pill--locked {
    background: var(--brand-red-subtle);
    color: var(--brand-red-dark);
}

/* A real (non-placeholder) event still editable because no attendance file has arrived yet. */
.pill--awaiting {
    background: var(--surface);
    color: var(--info);
    box-shadow: inset 0 0 0 1px var(--info);
}

/* An event awaiting its file whose date has passed: the file never arrived, or the date is wrong. */
.pill--overdue {
    background: var(--danger);
    color: var(--surface);
}

.future-event__date--overdue {
    color: var(--danger);
    font-weight: 600;
}

.results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.result-card {
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}

.result-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.result-card__date {
    font-size: 13px;
    color: var(--ink-subtle);
}

.result-card__teams {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2);
    margin: var(--space-4) 0 0;
    font-weight: 600;
}

.result-card__score {
    font-family: var(--font-display);
    font-size: 24px;
}

.result-card__meta {
    margin: var(--space-2) 0 0;
    font-size: 13px;
    color: var(--ink-muted);
}

.public-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--ink);
    color: var(--surface);
}

.public-footer__brand {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Monochrome in the footer, per Prompt 1. */
.public-footer__crest {
    filter: grayscale(100%) brightness(2.2);
    opacity: 0.85;
}

.public-footer__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-footer__place {
    margin: var(--space-1) 0 0;
    font-size: 13px;
    color: var(--ink-subtle);
}

.public-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
}

.public-footer__links a {
    font-size: 14px;
    color: var(--surface);
    text-decoration: none;
}

.public-footer__links a:hover {
    text-decoration: underline;
}

@media (max-width: 860px) {
    .public-bar {
        flex-wrap: wrap;
        height: auto;
        padding: var(--space-3) var(--space-4);
        row-gap: var(--space-3);
    }

    .public-bar__nav {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .public-bar__divider {
        display: none;
    }

    .hero__title {
        font-size: 40px;
    }

    .stats,
    .results {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------- admin navigation and shell */

.admin-nav {
    display: flex;
    gap: var(--space-4);
    margin-right: auto;
    margin-left: var(--space-6);
}

/* These sit on the black header, so the on-paper ink colours cannot be used: --ink-muted on
   black is about 2.6:1 and --ink is about 1.1:1, which made hovering a link hide it. Every
   rule restates its colour rather than inheriting half a pair. */
.admin-nav a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.admin-nav a:hover {
    color: var(--surface);
    text-decoration: underline;
}

/* White rather than brand red, which is only about 3.3:1 on black. The red stays as the
   underline, so the current page is marked by weight and a rule as well as by colour. */
.admin-nav a.is-active {
    color: var(--surface);
    font-weight: 600;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 2px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-5);
}

/* Page tabs are plain links to separate views, so each tab has its own address and works
   without script. The current tab is marked by weight and a red rule, like the admin nav. */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin: 0 0 var(--space-5);
    border-bottom: 1px solid var(--border);
}

.tabs__tab {
    margin-bottom: -1px;
    padding: var(--space-2) 0;
    font-size: 15px;
    color: var(--ink-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.tabs__tab:hover {
    color: var(--ink);
}

.tabs__tab.is-active {
    color: var(--ink);
    font-weight: 600;
    border-bottom-color: var(--brand-red);
}

/* A sortable heading is a plain link styled as the heading it replaces; the arrow marks the
   column the table is ordered by, and aria-sort says the same to a screen reader. */
.table__sort {
    display: inline-flex;
    gap: var(--space-1);
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.table__sort:hover,
.table__sort:focus-visible {
    color: var(--ink);
    text-decoration: underline;
}

.table--sortable th[aria-sort="ascending"],
.table--sortable th[aria-sort="descending"] {
    color: var(--ink);
}

.table--sortable code {
    font-size: 13px;
}

/* The admin tiles are counts, not a landing-page banner: smaller, boxed, and as many
   per row as fit, so a three-tile screen does not leave a gap where a fourth would be. */
.admin__main .stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.admin__main .stat {
    padding: var(--space-4) var(--space-3);
}

.admin__main .stat__value {
    font-size: 28px;
}

.stat__value--text {
    color: var(--ink-subtle);
}

.stat--warning .stat__value {
    color: var(--warning);
}

.stat__caption {
    margin: var(--space-1) 0 0;
    font-size: 12px;
    color: var(--ink-subtle);
}

.admin__main .pill {
    margin-right: var(--space-1);
    background: var(--surface-alt);
    color: var(--ink-muted);
}

.admin__main .pill--current {
    background: var(--brand-red-subtle);
    color: var(--brand-red-dark);
}

/* ------------------------------------------------- the import wizard */

.steps--wizard {
    grid-template-columns: repeat(5, 1fr);
}

.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    margin: 0 0 var(--space-5);
}

.source-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--elevation-soft);
    text-decoration: none;
    color: inherit;
}

.source-card__title {
    margin: 0;
    font-weight: 600;
}

.source-card__body {
    margin: 0;
    font-size: 13px;
    color: var(--ink-muted);
}

.source-card.is-available:hover {
    border-color: var(--brand-red);
}

/* A source the club cannot use yet is shown rather than hidden, so the screen says what is
   coming instead of silently omitting it. */
.source-card.is-disabled {
    background: var(--surface-alt);
    color: var(--ink-subtle);
    cursor: not-allowed;
}

.mapping-card {
    margin: 0 0 var(--space-4);
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--elevation-soft);
}

.mapping-card__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    margin: 0 0 var(--space-4);
    font-size: 16px;
}

.mapping-card__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.segmented {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.segmented__option {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-button);
    font-size: 13px;
    cursor: pointer;
}

.segmented__option input {
    accent-color: var(--brand-red);
}

.card--form {
    gap: var(--space-4);
    max-width: 480px;
    padding: var(--space-5);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-5) 0;
}

/* The review table runs long; the decision stays on screen so it is never hunted for. */
.form-actions--sticky {
    position: sticky;
    bottom: 0;
    padding: var(--space-3) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.plain-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.plain-list .is-error {
    color: var(--danger);
}

.plain-list .is-warning {
    color: var(--warning);
}

/* A column the administrator has chosen to ignore stays on screen, dimmed: hiding it would
   make the file look as though it had fewer columns than it does. */
.mapping-card.is-skipped {
    background: var(--surface-alt);
}

.mapping-card.is-skipped .mapping-card__fields {
    opacity: 0.55;
}

/* Membership is filled, participation outlined: "belongs to the club" and "is playing this
   season" are different answers and must not look like the same one. */
.badge--membership {
    border-color: transparent;
}

.badge--membership.is-active {
    background: var(--success);
    color: var(--surface);
}

.badge--membership.is-inactive {
    background: var(--surface-alt);
    color: var(--ink-muted);
}

.badge--membership.is-none {
    background: var(--surface-alt);
    color: var(--ink-subtle);
}

/* ------------------------------------------------- regulations (design/V14)
   The header's Regulations disclosure, and the public pages that show the club's statutes and
   regulations. Reading text uses the body font at a comfortable measure; headings follow the
   originals' blue-on-white hierarchy in the brand's display face. */

.nav-menu {
    position: relative;
}

.nav-menu__toggle {
    font-size: 15px;
    color: var(--ink-muted);
    cursor: pointer;
    list-style: none;
}

.nav-menu__toggle::-webkit-details-marker {
    display: none;
}

.nav-menu__toggle::after {
    content: "\25BE";
    margin-left: var(--space-1);
    font-size: 12px;
}

.nav-menu__toggle:hover,
.nav-menu[open] .nav-menu__toggle {
    color: var(--ink);
}

.nav-menu__panel {
    position: absolute;
    top: calc(100% + var(--space-3));
    left: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    padding: var(--space-2) 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.public-bar__nav .nav-menu__panel a {
    padding: var(--space-2) var(--space-4);
    color: var(--ink);
}

.public-bar__nav .nav-menu__panel a:hover {
    background: var(--surface-alt);
}

.public-bar__nav .nav-menu__panel a.nav-menu__secondary {
    margin-top: var(--space-1);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
    color: var(--ink-muted);
}

.reg-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-6) var(--space-8);
    color: var(--ink);
}

.reg-page__back {
    margin: 0 0 var(--space-4);
    font-size: 14px;
}

.reg-page__back a {
    color: var(--ink-muted);
    text-decoration: none;
}

.reg-page__back a:hover {
    color: var(--ink);
    text-decoration: underline;
}

.reg-page__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.reg-page__intro {
    max-width: 68ch;
    margin: var(--space-3) 0 var(--space-5);
    color: var(--ink-muted);
    line-height: 1.5;
}

.reg-search {
    margin: var(--space-5) 0;
    max-width: 640px;
}

.reg-search__label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.reg-search__row {
    display: flex;
    gap: var(--space-2);
}

.reg-search__input {
    flex: 1;
    min-height: 44px;
    padding: 0 var(--space-3);
    font: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-button);
}

.reg-search__input:focus {
    outline: 2px solid var(--info);
    outline-offset: 1px;
}

.reg-search__hint {
    margin: var(--space-2) 0 0;
    font-size: 13px;
    color: var(--ink-subtle);
}

.reg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.reg-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--elevation-soft);
}

.reg-card__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 24px;
}

.reg-card__title a {
    color: var(--ink);
    text-decoration: none;
}

.reg-card__title a:hover {
    text-decoration: underline;
}

.reg-card__subtitle,
.reg-card__language {
    margin: var(--space-1) 0 0;
    font-size: 14px;
    color: var(--ink-muted);
}

.reg-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-4);
}

.reg-doc__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.reg-doc__subtitle {
    margin: var(--space-1) 0 0;
    color: var(--ink-muted);
}

.reg-notice {
    margin: var(--space-4) 0 0;
    padding: var(--space-3) var(--space-4);
    background: #FBF3E6;
    border-left: 4px solid var(--warning);
    border-radius: var(--radius-button);
    line-height: 1.5;
}

.reg-notice a {
    margin-left: var(--space-2);
    color: var(--ink);
}

.reg-tools {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: var(--space-4) 0 0;
}

.reg-matches {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: 0 0 var(--space-4);
    color: var(--ink-muted);
}

.reg-matches a {
    color: var(--info);
}

.reg-doc {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: var(--space-7);
    align-items: start;
    margin-top: var(--space-5);
}

.reg-toc {
    position: sticky;
    top: var(--space-4);
    max-height: calc(100vh - var(--space-6));
    overflow-y: auto;
    font-size: 14px;
}

.reg-toc__title {
    margin: 0 0 var(--space-2);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-subtle);
}

.reg-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.reg-toc__item a {
    display: block;
    padding: var(--space-1) 0;
    color: var(--ink-muted);
    text-decoration: none;
}

.reg-toc__item a:hover {
    color: var(--ink);
}

.reg-toc__item--level-1 {
    margin-top: var(--space-2);
}

.reg-toc__item--level-1 a {
    font-weight: 600;
    color: var(--ink);
}

.reg-toc__item--level-2 {
    padding-left: var(--space-4);
}

.reg-toc__item.is-matched a {
    color: var(--brand-red-dark);
}

.reg-body {
    max-width: 75ch;
    line-height: 1.6;
}

.reg-section {
    scroll-margin-top: var(--space-4);
}

.reg-section__heading {
    color: #2F5496;
    scroll-margin-top: var(--space-4);
}

.reg-section--level-1 > .reg-section__heading {
    margin: var(--space-6) 0 var(--space-3);
    padding-bottom: var(--space-2);
    font-size: 24px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.reg-section--level-2 > .reg-section__heading {
    margin: var(--space-5) 0 var(--space-2);
    font-size: 18px;
}

.reg-section:first-child > .reg-section__heading {
    margin-top: 0;
}

.reg-paragraph {
    margin: 0 0 var(--space-3);
}

.reg-list {
    margin: 0 0 var(--space-3);
    padding: 0;
    list-style: none;
}

.reg-list .reg-list {
    margin: var(--space-1) 0 0 var(--space-5);
}

.reg-list__item {
    display: grid;
    grid-template-columns: 2.6em minmax(0, 1fr);
    margin-bottom: var(--space-1);
}

.reg-list__item > .reg-list {
    grid-column: 2;
    margin-left: 0;
}

.reg-list__label {
    color: var(--ink-muted);
}

.reg-table-wrap {
    overflow-x: auto;
    margin: var(--space-2) 0 var(--space-4);
}

.reg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.45;
}

.reg-table th,
.reg-table td {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.reg-table thead th {
    background: var(--surface-alt);
}

.reg-table__group th {
    background: #EEF2F8;
    text-align: center;
}

.reg-body mark,
.reg-hits mark,
.reg-toc mark {
    padding: 0 1px;
    background: #FFE58A;
    color: inherit;
    border-radius: 2px;
}

.reg-hits {
    margin: 0;
    padding: 0;
    list-style: none;
}

.reg-hit {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
}

.reg-hit__document {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-subtle);
}

.reg-hit__heading {
    margin: var(--space-1) 0;
    font-size: 18px;
}

.reg-hit__heading a {
    color: #2F5496;
}

.reg-hit__snippet {
    margin: 0;
    max-width: 75ch;
    color: var(--ink-muted);
    line-height: 1.5;
}

@media (max-width: 860px) {
    .reg-page {
        padding: var(--space-4);
    }

    .reg-page__title {
        font-size: 32px;
    }

    .reg-doc {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .reg-toc {
        position: static;
        max-height: none;
    }

    .nav-menu__panel {
        left: auto;
        right: 0;
    }
}

/* Printing a regulation prints the document only: no chrome, tools, search or contents. */
@media print {
    .public-bar,
    .public-footer,
    .reg-page__back,
    .reg-tools,
    .reg-search,
    .reg-matches,
    .reg-toc {
        display: none !important;
    }

    .reg-page {
        max-width: none;
        padding: 0;
    }

    .reg-doc {
        display: block;
        margin: 0;
    }

    .reg-body {
        max-width: none;
        font-family: "Times New Roman", Times, serif;
        font-size: 11pt;
        line-height: 1.4;
    }

    .reg-section__heading {
        break-after: avoid;
    }

    .reg-table tr {
        break-inside: avoid;
    }

    .reg-body mark {
        background: none;
    }

    .reg-notice {
        border: 1px solid #000;
        background: none;
    }
}

/* Training teams (design/V20): the position acronyms, explained in a disclosure so the page
   stays short for readers who know them. */
.positions-help {
    margin: 0 0 var(--space-4);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.positions-help summary {
    cursor: pointer;
    font-weight: 600;
}

.positions-help__list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: var(--space-1) var(--space-3);
    margin: var(--space-3) 0 0;
}

.positions-help__list dt {
    font-weight: 600;
}

.positions-help__list dd {
    margin: 0;
}

/* ------------------------------------------------------- landing: trainings */

.trainings__grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-6);
    align-items: start;
}

.training-card {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
}

.training-card--next {
    border-top: 4px solid var(--brand-red);
}

.training-card--past {
    background: var(--surface-alt);
    opacity: 0.9;
}

.training-card__date {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    align-self: flex-start;
    min-width: 72px;
    padding: var(--space-3);
    background: var(--brand-red-subtle);
    border-radius: var(--radius-card);
    color: var(--brand-red-dark);
    line-height: 1.1;
    text-transform: uppercase;
}

.training-card--past .training-card__date {
    background: var(--surface);
    color: var(--ink-muted);
}

.training-card__day {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
}

.training-card__weekday,
.training-card__month {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.training-card__body {
    min-width: 0;
}

.training-card__label {
    margin: 0 0 var(--space-2);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.training-card__when {
    margin: 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}

.training-card__venue {
    margin: var(--space-1) 0 0;
    color: var(--ink-muted);
}

.training-card__count {
    margin: var(--space-3) 0;
}

.training-card__players {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.training-card__players li {
    padding: 2px var(--space-3);
    background: var(--surface-alt);
    border-radius: 999px;
    font-size: 14px;
}

.training-card--past .training-card__players li {
    background: var(--surface);
}

.training-card__note {
    margin: 0;
    color: var(--ink-muted);
    font-size: 14px;
}

@media (max-width: 800px) {
    .trainings__grid {
        grid-template-columns: 1fr;
    }
}
