/* « Le club » · a team's page: Effectif, Calendrier and Classement, on desktop and on the phone.
   Positions reuse the coach's rings (gc-ring--*, which set --tone); presence reuses the coach's
   thresholds (gc-rate--*). Prefix gk-. */

.gk {
    --gk-blue-deep: #0B5F8F;
    --gk-green: #22C55E;
    --gk-green-bright: #34D26E;
    --gk-red: #F02030;
    --gk-red-soft: #F0556A;
    --gk-group: var(--thonon-yellow);
    /* Us and the opponents in the season's figures. */
    --gs-us: #34A4E0;
    --gs-us-deep: #1080C0;
    --gs-them: #8A93A1;
    color: var(--dark-fg-1);
}

.gk-skel--hero { height: 200px; margin: 18px 24px; border-radius: 10px; }
.gk-skel--card { height: 150px; border-radius: 8px; }

/* ── Hero ─────────────────────────────────────────────── */

.gk-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    padding: 18px 24px 16px;
    border-bottom: 1px solid var(--dark-border-1);
}

/* The team photo's frame: no source feeds it yet, the frame keeps its place and its badge. */
.gk-hero__photo {
    position: relative;
    height: 168px;
    border: 1px solid var(--dark-border-1);
    border-radius: 10px;
    background:
        radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--gk-group) 16%, transparent), transparent 60%),
        var(--thonon-night);
    overflow: hidden;
}

.gk-hero__badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 4px 9px;
    border-radius: 4px;
    background: rgba(10, 10, 12, 0.62);
    backdrop-filter: blur(4px);
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #fff;
}

.gk-hero__meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.gk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font: 800 12px/1.2 var(--font-condensed);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--thonon-yellow);
}

.gk-eyebrow__rule {
    flex-shrink: 0;
    width: 18px;
    height: 2px;
    background: var(--thonon-yellow);
}

.gk-hero__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.gk-crest {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid color-mix(in srgb, var(--gk-group) 42%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--gk-group) 13%, transparent);
    font: 700 17px/1 var(--font-display);
    /* Up to five characters (SM1, M13M2): the type shrinks with the code so it stays inside. */
    font-size: min(17px, calc(52px / var(--chars, 2)));
    letter-spacing: -0.02em;
    color: var(--gk-group);
}

.gk-crest__dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 14px;
    height: 14px;
    border: 2px solid var(--thonon-night);
    border-radius: 50%;
    background: var(--thonon-yellow);
}

.gk-hero__name {
    margin: 0;
    font: 700 36px/0.9 var(--font-display);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
}

.gk-mine {
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--thonon-yellow);
    font: 800 12px/1 var(--font-condensed);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--thonon-black);
}

.gk-hero__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    font: 400 13px/1.4 var(--body-font);
    color: var(--dark-fg-2);
}

.gk-hero__line svg {
    color: var(--dark-fg-3);
}

.gk-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--dark-fg-3);
}

.gk-hero__kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.gk-kpi {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 70px;
    padding: 9px 14px;
    border: 1px solid var(--dark-border-1);
    border-radius: 6px;
    background: var(--thonon-night);
}

.gk-kpi__value {
    font: 700 22px/1 var(--font-display);
    color: #fff;
}

.gk-kpi__value sup {
    font: 700 12px/1 var(--font-condensed);
    vertical-align: top;
}

.gk-kpi--rank .gk-kpi__value {
    color: var(--thonon-yellow);
}

.gk-kpi__label {
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 4px;
}

.gk-form__label {
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-form__pills {
    display: flex;
    gap: 3px;
}

/* A result: V / N / D — the white letter, its frame green for a win, red for a loss, grey for a
   draw: coloured letters are unreadable on the dark. */
.gk-res {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-control);
    background: var(--thonon-black);
    box-shadow: inset 0 0 0 2px var(--dark-fg-3);
    font: 700 13px/1 var(--font-mono);
    color: #fff;
}

.gk-res--win { box-shadow: inset 0 0 0 2px var(--thonon-green); }
.gk-res--draw { box-shadow: inset 0 0 0 2px var(--dark-fg-3); }
.gk-res--loss { box-shadow: inset 0 0 0 2px var(--thonon-red); }

/* ── Tabs ─────────────────────────────────────────────── */

.gk-tabs {
    display: flex;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid var(--dark-border-1);
    overflow-x: auto;
    scrollbar-width: none;
}

.gk-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 14px;
    border-bottom: 3px solid transparent;
    font: 700 15px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
    text-decoration: none;
    white-space: nowrap;
}

.gk-tab:hover {
    color: var(--dark-fg-1);
}

.gk-tab--on {
    border-bottom-color: var(--thonon-yellow);
    color: #fff;
}

.gk-tab--on svg {
    color: var(--thonon-yellow);
}

/* A label too long for five tabs on the phone gives way to its short one (« Stats »). */
.gk-tab__short { display: none; }

.gk-tabs__note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

/* ── Body ─────────────────────────────────────────────── */

.gk-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 288px;
    min-height: 480px;
}

.gk-body--full {
    display: block;
    padding: 16px 24px 22px;
}

.gk-main {
    min-width: 0;
    padding: 16px 20px 22px;
}

.gk-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}

.gk-main > .gk-section ~ .gk-section {
    margin-top: 18px;
}

.gk-section__title {
    margin: 0;
    font: 700 13px/1 var(--font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.gk-section__count {
    font: 700 12px/1 var(--font-mono);
    color: var(--thonon-yellow);
}

.gk-section__sub {
    font: 400 12px/1.3 var(--body-font);
    color: var(--dark-fg-3);
}

.gk-empty,
.gk-note {
    margin: 0 0 8px;
    font: 400 12px/1.5 var(--body-font);
    color: var(--dark-fg-3);
}

.gk-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
}

.gk-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 0 11px;
    min-height: 30px;
    border: 1px solid var(--dark-border-1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--dark-fg-2);
}

.gk-filter--on {
    border-color: rgba(240, 192, 48, 0.45);
    color: var(--thonon-yellow);
}

.gk-filter select {
    border: 0;
    background: transparent;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: inherit;
    cursor: pointer;
}

.gk-filter select option {
    background: var(--thonon-night);
    color: #fff;
    text-transform: none;
}

/* ── Effectif: player cards ───────────────────────────── */

.gk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gk-body > .gk-grid,
.gk > .gk-grid {
    padding: 0 24px;
}

.gk-player {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "avatar"
        "id"
        "stats";
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night);
}

.gk-player--me {
    border-color: rgba(240, 192, 48, 0.45);
    background: rgba(240, 192, 48, 0.08);
}

.gk-avatar {
    grid-area: avatar;
    justify-self: start;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--tone, var(--dark-fg-3));
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    font: 700 13px/1 var(--font-condensed);
    color: #fff;
}

.gk-avatar__number {
    position: absolute;
    right: -4px;
    bottom: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    border: 2px solid var(--thonon-night);
    border-radius: 5px;
    background: #fff;
    font: 800 12px/1 var(--font-mono);
    color: var(--thonon-black);
}

.gk-player__nameline {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

/* Top right of the card on the desktop; beside the name on the phone. */
.gk-player__badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
}

.gk-player__badges:empty {
    display: none;
}

.gk-badge {
    padding: 3px 5px;
    border-radius: 3px;
    font: 800 12px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gk-badge--cap { background: rgba(240, 192, 48, 0.16); color: var(--thonon-yellow); }
.gk-badge--me { background: var(--thonon-yellow); color: var(--thonon-black); }

.gk-player__id {
    grid-area: id;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gk-player__name {
    overflow: hidden;
    font: 600 13px/1.1 var(--body-font);
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-player__pos {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tone, var(--dark-fg-3));
}

.gk-player__pos-dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--tone, var(--dark-fg-3));
}

.gk-player__stats {
    grid-area: stats;
    display: flex;
    gap: 6px;
    padding-top: 9px;
    border-top: 1px solid var(--dark-border-1);
}

.gk-stat {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gk-stat__value {
    font: 700 16px/1 var(--font-display);
    color: #fff;
}

.gk-stat--rate .gk-stat__value { color: var(--thonon-blue-bright); }
.gk-stat--presence .gk-stat__value { color: inherit; }

.gk-stat__label {
    font: 600 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

/* ── Calendrier: fixture rows ─────────────────────────── */

.gk-fixtures {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gk-fixture {
    display: grid;
    grid-template-columns: 70px 36px minmax(0, 1fr) 96px 26px;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--dark-border-1);
    border-radius: 7px;
    background: var(--thonon-night);
    color: inherit;
    text-decoration: none;
}

.gk-fixture:hover {
    border-color: rgba(240, 192, 48, 0.45);
}

.gk-fixture--upcoming {
    border-color: rgba(16, 128, 192, 0.30);
    background: rgba(16, 128, 192, 0.08);
}

.gk-fixture__when {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gk-fixture__day {
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-fixture__date {
    font: 600 12px/1.1 var(--body-font);
    color: var(--dark-fg-2);
}

.gk-opp {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--dark-border-2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font: 700 12px/1 var(--font-condensed);
    color: var(--dark-fg-2);
}

.gk-opp--sm {
    width: 26px;
    height: 26px;
    border: 0;
    background: var(--gk-blue-deep);
    font-size: 12px;
    color: #fff;
}

.gk-opp--us {
    background: var(--thonon-yellow);
    color: var(--thonon-black);
}

.gk-fixture__who {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gk-fixture__opponent {
    overflow: hidden;
    font: 600 13px/1.2 var(--body-font);
    color: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-fixture__venue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 500 12px/1 var(--body-font);
    color: var(--dark-fg-3);
}

.gk-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--dark-fg-2);
}

.gk-home svg { width: 11px; height: 11px; }

.gk-home--home {
    background: var(--thonon-yellow);
    color: var(--thonon-black);
}

.gk-fixture__time {
    justify-self: center;
    font: 700 14px/1 var(--font-mono);
    color: var(--thonon-blue-bright);
}

.gk-fixture__score {
    justify-self: center;
    font: 700 17px/1 var(--font-mono);
    letter-spacing: 0.02em;
    color: #fff;
}

.gk-fixture .gk-res {
    justify-self: center;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    font-size: 12px;
}

.gk-fixture__go {
    justify-self: center;
    color: var(--dark-fg-3);
}

/* A plateau: its games under the day's row, each to its own match. */
.gk-fixture--plateau { align-items: start; }
.gk-fixture--plateau:hover { border-color: var(--dark-border-1); }
.gk-fixture--plateau.gk-fixture--upcoming:hover { border-color: rgba(16, 128, 192, 0.30); }
.gk-fixture--plateau > .gk-fixture__time,
.gk-fixture--plateau > .gk-fixture__tally { align-self: center; }

.gk-opp--plateau { color: var(--thonon-yellow); }
.gk-opp--plateau svg { width: 16px; height: 16px; }

.gk-plateau {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.gk-plateau__game {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 3px 6px;
    margin: 0 -6px;
    border-radius: 5px;
    color: var(--dark-fg-2);
    text-decoration: none;
    font: 500 12px/1.2 var(--body-font);
}

.gk-plateau__game:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }

.gk-plateau__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-plateau__score {
    margin-left: auto;
    font: 700 13px/1 var(--font-mono);
    color: #fff;
}

.gk-plateau__time {
    margin-left: auto;
    font: 500 12px/1 var(--font-mono);
    color: var(--dark-fg-3);
}

.gk-plateau__game .gk-res {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 12px;
}

.gk-fixture__tally {
    justify-self: center;
    font: 700 13px/1.1 var(--font-mono);
    text-align: center;
    color: #fff;
}

/* ── Résultats: a weekend, the journée of each competition played on it ── */

.gk-journees + .gk-journees {
    margin-top: 24px;
}

.gk-results__block + .gk-results__block {
    margin-top: 18px;
}

.gk-results__comp {
    margin: 0 0 8px;
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
}

.gk-journee {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
}

.gk-journee__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--dark-border-1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--dark-fg-2);
    cursor: pointer;
}

.gk-journee__step:hover:not(:disabled) {
    border-color: rgba(240, 192, 48, 0.45);
    color: var(--thonon-yellow);
}

.gk-journee__step:disabled {
    opacity: 0.35;
    cursor: default;
}

.gk-journee__pick {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(240, 192, 48, 0.45);
    border-radius: 999px;
    background: rgba(240, 192, 48, 0.08);
    color: var(--thonon-yellow);
}

.gk-journee__pick select {
    appearance: none;
    border: 0;
    background: transparent;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
}

.gk-journee__pick select option {
    background: var(--thonon-night);
    color: #fff;
    text-transform: none;
}

/* A match of the journée: the calendar's card, both sides one under the other. */
.gk-fixture--pair {
    grid-template-columns: 70px minmax(0, 1fr) 26px 16px;
}

/* A championship journée the team sits out, in the calendar: at its place, dimmed, nothing to open. */
.gk-fixture--exempt {
    grid-template-columns: 70px minmax(0, 1fr);
    border-style: dashed;
    background: transparent;
    color: var(--dark-fg-3);
}

.gk-fixture--exempt:hover {
    border-color: var(--dark-border-1);
}

.gk-fixture__exempt {
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.gk-results__exempt {
    margin: 0 0 8px;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-fixture--us {
    border-color: rgba(240, 192, 48, 0.36);
    background: rgba(240, 192, 48, 0.07);
}

.gk-pair {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gk-pair__side {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    font: 600 13px/1.2 var(--body-font);
    color: #fff;
}

.gk-pair__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-pair__score {
    min-width: 24px;
    font: 700 16px/1 var(--font-mono);
    text-align: right;
}

.gk-pair__side--won .gk-pair__score { color: var(--thonon-yellow); }
.gk-pair__side--lost { color: var(--dark-fg-3); font-weight: 500; }
.gk-pair__side--lost .gk-opp { opacity: 0.5; }

.gk-results__empty,
.gk-results__foot {
    margin: 10px 0 0;
    font: 400 12px/1.4 var(--body-font);
    color: var(--dark-fg-3);
}

.gk-results__empty { font-size: 12px; }

/* ── Classement ───────────────────────────────────────── */

.gk-standing + .gk-standing {
    margin-top: 24px;
}

.gk-projection {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 6px 12px;
    border: 1px solid rgba(240, 192, 48, 0.34);
    border-radius: 999px;
    background: rgba(240, 192, 48, 0.10);
    font: 600 12px/1.3 var(--body-font);
    color: var(--dark-fg-1);
}

.gk-projection svg { width: 12px; height: 12px; color: var(--thonon-yellow); }
.gk-projection strong { color: var(--thonon-yellow); }

.gk-table {
    overflow: hidden;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night);
}

.gk-table__head,
.gk-table__row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 40px 40px 40px 40px 52px 52px 58px 56px;
    align-items: center;
    padding: 10px 14px 10px 11px;
    border-left: 3px solid transparent;
}

.gk-table__head {
    padding-top: 11px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--dark-border-1);
    background: rgba(255, 255, 255, 0.02);
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-table__row + .gk-table__row {
    border-top: 1px solid var(--dark-border-1);
}

/* Us: a tinted row in a full frame — the left rule alone belongs to the gymnasiums. */
.gk-table__row--us {
    border-left-color: transparent;
    background: rgba(240, 192, 48, 0.08);
    box-shadow: inset 0 0 0 1px var(--thonon-yellow-deep);
}

.gk-c { text-align: center; }

.gk-rank {
    font: 800 14px/1 var(--font-display);
    color: var(--dark-fg-2);
}

.gk-rank--top { color: #fff; }
.gk-table__row--us .gk-rank { color: var(--thonon-yellow); }

.gk-team {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 9px;
    min-width: 0;
}

.gk-team__name {
    overflow: hidden;
    max-width: 100%;
    font: 500 13px/1 var(--body-font);
    color: var(--dark-fg-1);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-table__row--us .gk-team__name { font-weight: 700; color: #fff; }

/* The phone's line under the team's name; the desktop has its columns. */
.gk-team__line { display: none; }

.gk-num {
    font: 500 12px/1 var(--font-mono);
    color: var(--dark-fg-2);
}

.gk-win { color: var(--gk-green-bright); }
.gk-draw { color: var(--thonon-yellow); }
.gk-loss { color: var(--gk-red-soft); }
.gk-diff { font-weight: 700; }
.gk-pos { color: var(--gk-green-bright); }
.gk-neg { color: var(--gk-red-soft); }
.gk-zero { color: var(--dark-fg-3); }

.gk-points {
    font: 800 16px/1 var(--font-display);
    color: #fff;
}

.gk-table__row--us .gk-points { color: var(--thonon-yellow); }

.gk-table__foot {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-top: 1px solid var(--dark-border-1);
    background: rgba(255, 255, 255, 0.02);
    font: 400 12px/1 var(--body-font);
    color: var(--dark-fg-3);
}

/* ── Rail ─────────────────────────────────────────────── */

.gk-rail {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 16px 16px 22px;
    border-left: 1px solid var(--dark-border-1);
    background: var(--thonon-night);
}

.gk-rail section {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.gk-rail__title {
    margin: 0 0 3px;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
}

.gk-next {
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--thonon-blue-bright) 0%, var(--thonon-blue) 70%);
}

/* The yellow brush stroke. */
.gk-next::after {
    content: "";
    position: absolute;
    top: 14px;
    right: -18px;
    width: 150px;
    height: 12px;
    border-radius: 999px;
    background: var(--thonon-yellow);
    opacity: 0.35;
    transform: rotate(-12deg);
    pointer-events: none;
}

.gk-next > * {
    position: relative;
    z-index: 1;
}

.gk-next__when {
    font: 800 12px/1.3 var(--font-condensed);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--thonon-yellow);
}

.gk-next__teams {
    margin-top: 7px;
    font: 700 18px/1.05 var(--font-condensed);
    text-transform: uppercase;
    color: #fff;
}

.gk-next__answer {
    display: flex;
    gap: 6px;
    margin-top: 11px;
}

.gk-next__yes,
.gk-next__no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border-radius: 5px;
    font: 700 13px/1 var(--body-font);
    cursor: pointer;
}

.gk-next__yes {
    flex: 1;
    border: 0;
    background: var(--thonon-yellow);
    color: var(--thonon-black);
}

.gk-next__no {
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
}

.gk-next__yes--on { box-shadow: inset 0 0 0 2px var(--thonon-black); }
.gk-next__no--on { background: rgba(10, 10, 12, 0.35); border-color: #fff; }

.gk-next__yes:disabled,
.gk-next__no:disabled { opacity: 0.6; cursor: progress; }

.gk-next__state,
.gk-next__error {
    margin: 10px 0 0;
    font: 500 12px/1.4 var(--body-font);
    color: #fff;
}

.gk-next__error { color: var(--thonon-yellow); }

/* After a yes, what the match asks next: one line that leads to the match's page. */
.gk-next__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    margin-top: 10px;
    padding: 0 12px;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    color: #fff;
    font: 600 13px/1.3 var(--body-font);
    text-decoration: none;
}

.gk-next__more:hover { border-style: solid; }

/* The squad's Google calendar, in the rail; on a phone, which has no rail, at the head of « Calendrier ». */
.gk-rail .sq-cal { margin-bottom: 4px; }

.gk-subscribe { display: none; }

.gk-railrow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--dark-border-1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.gk-railrow__avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gk-blue-deep);
    font: 700 12px/1 var(--font-condensed);
    color: #fff;
}

.gk-railrow__day {
    width: 34px;
    flex-shrink: 0;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    color: var(--thonon-blue-bright);
}

.gk-railrow__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gk-railrow__main {
    font: 600 12px/1.1 var(--body-font);
    color: #fff;
}

.gk-railrow__sub {
    font: 400 12px/1.2 var(--body-font);
    color: var(--dark-fg-3);
}

/* ── Profile ──────────────────────────────────────────── */

a.gk-player {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.13s, transform 0.13s;
}

a.gk-player:hover,
a.gk-player:focus-visible {
    border-color: rgba(240, 192, 48, 0.55);
    transform: translateY(-1px);
}

.gk-backbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 24px;
    border-bottom: 1px solid var(--dark-border-1);
}

.gk-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid var(--dark-border-1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
    text-decoration: none;
}

.gk-back:hover { color: #fff; }

.gk-backbar__nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 12px/1 var(--body-font);
    color: var(--dark-fg-3);
}

.gk-backbar__nav > span { margin-right: 4px; }

.gk-navbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--dark-border-1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--dark-fg-2);
}

.gk-navbtn:hover { color: #fff; border-color: var(--dark-border-2); }

.gk-profile {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--dark-border-1);
}

.gk-profile__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.gk-profile__avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border: 3px solid var(--tone, var(--dark-fg-3));
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    font: 700 44px/1 var(--font-condensed);
    color: #fff;
}

.gk-profile__number {
    position: absolute;
    right: 2px;
    bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 7px;
    border: 3px solid var(--thonon-night);
    border-radius: 10px;
    background: #fff;
    font: 800 18px/1 var(--font-mono);
    color: var(--thonon-black);
}

.gk-profile__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.gk-badge--lg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: 0.10em;
}

.gk-badge--lg svg { width: 10px; height: 10px; }

.gk-profile__meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.gk-profile__name {
    margin: 0;
    font: 700 46px/0.9 var(--font-display);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
}

.gk-profile__line {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    font: 600 12px/1 var(--body-font);
    color: var(--dark-fg-2);
}

.gk-profile__pos { font-size: 12px; letter-spacing: 0.10em; }
.gk-profile__pos .gk-player__pos-dot { width: 9px; height: 9px; }

.gk-profile__sep {
    width: 1px;
    height: 14px;
    background: var(--dark-border-2);
}

.gk-profile__jersey {
    margin-left: 5px;
    font-family: var(--font-mono);
    color: #fff;
}

.gk-profile__kpis {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
}

.gk-profile__kpi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 80px;
    padding: 10px 14px;
    border: 1px solid var(--dark-border-1);
    border-radius: 6px;
    background: var(--thonon-graphite);
    color: #fff;
}

.gk-profile__kpi-value {
    font: 700 26px/1 var(--font-display);
    color: inherit;
}

.gk-profile__kpi--yellow { color: var(--thonon-yellow); }
.gk-profile__kpi--blue { color: var(--thonon-blue-bright); }
.gk-profile__kpi .gk-kpi__label { color: var(--dark-fg-3); }

.gk-res--lg {
    width: 20px;
    height: 20px;
    font-size: 12px;
}

.gk-profile-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.gk-profile-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.gk-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.gk-card__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    margin: 0;
    font: 800 18px/1.2 var(--font-condensed);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gk-card__sub {
    font: 600 12px/1 var(--body-font);
    color: var(--dark-fg-3);
}

.gk-card__text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 4px;
    font: 500 12px/1.5 var(--body-font);
    color: var(--dark-fg-3);
}

.gk-blue { color: var(--thonon-blue-bright); }

/* The goals per match: one column per match played by the team. */
.gk-bars__plot {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 132px;
    padding: 16px 2px 0;
}

.gk-bars__avg {
    position: absolute;
    left: 2px;
    right: 2px;
    /* Same scale as the bars: the plot's height less its 16px top padding and the 14px value label. */
    bottom: calc((100% - 30px) * var(--gk-avg));
    border-top: 1px dashed rgba(240, 192, 48, 0.55);
    pointer-events: none;
}

.gk-bars__avg span {
    position: absolute;
    top: -15px;
    right: 0;
    font: 700 12px/1 var(--font-mono);
    color: var(--thonon-yellow);
}

.gk-bars__col {
    display: flex;
    flex: 1;
    max-width: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
    position: relative;
}

.gk-bars__value {
    margin-bottom: 4px;
    font: 700 12px/1 var(--font-mono);
    color: var(--dark-fg-2);
}

.gk-bars__bar {
    width: 100%;
    /* The column less the value label above it (4px margin + 10px line). */
    height: max(4px, calc((100% - 14px) * var(--gk-h)));
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--thonon-blue-bright), var(--thonon-blue));
}

.gk-bars__bar--top { background: var(--thonon-yellow); }

.gk-bars__absent {
    width: 100%;
    height: 14px;
    border: 1px dashed var(--dark-border-2);
    border-radius: 3px;
    background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255, 255, 255, 0.05) 3px, rgba(255, 255, 255, 0.05) 6px);
}

.gk-bars__axis {
    display: flex;
    gap: 7px;
    margin-top: 2px;
    padding: 8px 2px 0;
    border-top: 1px solid var(--dark-border-1);
}

.gk-bars__axis span {
    flex: 1;
    max-width: 56px;
    min-width: 0;
    font: 600 12px/1 var(--font-condensed);
    letter-spacing: 0.04em;
    text-align: center;
    color: var(--dark-fg-3);
}

.gk-bars__axis .gk-bars__day--off { color: var(--dark-border-2); }

/* The player's sanctions over the season: warnings, 2', red cards. */
.gk-discipline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.gk-discipline__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--dark-border-1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.02);
}

.gk-discipline__mark {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 22px;
    border-radius: 2px;
    font: 700 12px/1 var(--font-condensed);
}

.gk-discipline__mark--yellow { background: var(--thonon-yellow); }
.gk-discipline__mark--red { background: var(--thonon-red); }
.gk-discipline__mark--blue { background: var(--thonon-blue-bright); }
.gk-discipline__mark--two { width: 26px; background: rgba(240, 32, 48, 0.16); color: var(--gk-red-soft); }

.gk-discipline__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gk-discipline__value { font: 700 20px/1 var(--font-display); color: var(--dark-fg-2); }
.gk-discipline__value--on { color: #fff; }
.gk-discipline__avg { font: 600 12px/1 var(--font-mono); color: var(--dark-fg-3); }

/* A match of the player's season. */
.gk-pmatch {
    display: grid;
    grid-template-columns: 46px 34px minmax(0, 1fr) 80px 118px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--dark-border-1);
    border-radius: 7px;
    background: var(--thonon-night);
    color: inherit;
    text-decoration: none;
}

.gk-pmatch:hover { border-color: rgba(240, 192, 48, 0.45); }

.gk-pmatch__day {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gk-pmatch .gk-res { width: 20px; height: 20px; border-radius: 4px; font-size: 12px; }

.gk-pmatch .gk-fixture__score { font-size: 16px; }

/* The score, repeated under the opponent on the phone where its column goes. */
.gk-pmatch__mscore { display: none; }

.gk-pmatch__part {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.gk-pmatch__count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.gk-pmatch__value {
    font: 700 18px/1 var(--font-display);
    color: var(--dark-fg-2);
}

.gk-pmatch__count--on .gk-pmatch__value { color: var(--thonon-yellow); }

.gk-pmatch__present {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.16);
    color: var(--gk-green-bright);
}

.gk-pmatch__absent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(240, 32, 48, 0.30);
    border-radius: 999px;
    background: rgba(240, 32, 48, 0.10);
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #F06A75;
}

.gk-profile-rail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gk-profile-rail section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gk-scorer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--dark-border-1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    text-decoration: none;
}

.gk-scorer--me {
    border-color: rgba(240, 192, 48, 0.40);
    background: rgba(240, 192, 48, 0.10);
}

.gk-scorer__rank {
    width: 14px;
    font: 800 12px/1 var(--font-display);
    color: var(--dark-fg-3);
}

.gk-scorer__rank--top { color: var(--thonon-yellow); }

.gk-scorer__name {
    flex: 1;
    min-width: 0;
    font: 600 12px/1 var(--body-font);
    color: var(--dark-fg-2);
}

.gk-scorer--me .gk-scorer__name { color: #fff; }

.gk-scorer__goals {
    font: 700 13px/1 var(--font-mono);
    color: var(--dark-fg-2);
}

.gk-scorer--me .gk-scorer__goals { color: var(--thonon-yellow); }

.gk-teamcard {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(16, 128, 192, 0.30);
    border-radius: 8px;
    background: rgba(16, 128, 192, 0.08);
    color: inherit;
    text-decoration: none;
}

.gk-teamcard__head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.gk-crest--sm {
    width: 40px;
    height: 40px;
    font-size: min(13px, calc(38px / var(--chars, 2)));
}

.gk-teamcard__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gk-teamcard__name {
    font: 700 14px/1.1 var(--font-condensed);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}

.gk-teamcard__line {
    font: 400 12px/1.3 var(--body-font);
    color: var(--dark-fg-2);
}

.gk-teamcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 11px;
    border-top: 1px solid var(--dark-border-1);
    font: 600 12px/1 var(--body-font);
    color: var(--dark-fg-2);
}

.gk-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid var(--dark-border-1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.02);
    font: 400 12px/1.45 var(--body-font);
    color: var(--dark-fg-3);
}

.gk-privacy svg { flex-shrink: 0; width: 13px; height: 13px; }

/* ── Match sheet ───────────────────────────────────────── */

.gk-match-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 24px 26px;
}

.gk-tabs--match { overflow-x: auto; }
.gk-tabs--match .gk-tab { white-space: nowrap; font-size: 12px; letter-spacing: 0.08em; }

.gk-mhero {
    position: relative;
    overflow: hidden;
    padding: 18px 24px 20px;
    border-bottom: 1px solid var(--dark-border-1);
    background: var(--thonon-night);
}

.gk-mhero--upcoming {
    background: linear-gradient(135deg, rgba(16, 128, 192, 0.16), rgba(10, 10, 12, 0) 60%);
}

.gk-mhero--upcoming::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 64px;
    right: -30px;
    width: 260px;
    height: 16px;
    border-radius: 999px;
    background: var(--thonon-yellow);
    opacity: 0.25;
    transform: rotate(-12deg);
    pointer-events: none;
}

.gk-mhero > * { position: relative; z-index: 1; }

.gk-mhero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.gk-mhero__top .gk-eyebrow { margin: 0; letter-spacing: 0.16em; }

.gk-mhero__when,
.gk-mhero__where {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 12px/1 var(--body-font);
    color: var(--dark-fg-3);
}

.gk-result {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 5px 11px;
    border: 1px solid;
    border-radius: 999px;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gk-result svg { width: 12px; height: 12px; }
.gk-result--win { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.14); color: var(--gk-green-bright); }
.gk-result--loss { border-color: rgba(240, 32, 48, 0.4); background: rgba(240, 32, 48, 0.14); color: var(--gk-red); }
.gk-result--draw { border-color: rgba(240, 192, 48, 0.4); background: rgba(240, 192, 48, 0.14); color: var(--thonon-yellow); }
.gk-result--soon { border-color: rgba(16, 128, 192, 0.38); background: rgba(16, 128, 192, 0.14); color: var(--thonon-blue-bright); }

/* The poster's stats (.gk-compare--board) share these columns, so their figures sit under each side. */
.gk-mhero__board {
    --gk-board-center: 240px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--gk-board-center) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    max-width: 720px;
    margin: 0 auto;
}

.gk-mhero__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
    text-align: center;
}

.gk-mhero__logo { width: 56px; height: 56px; object-fit: contain; }

.gk-mhero__name {
    font: 700 17px/1.1 var(--font-condensed);
    text-transform: uppercase;
    color: #fff;
}

.gk-mhero__rank {
    font: 600 12px/1 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-mhero__rank--us { color: var(--thonon-yellow); }

.gk-mhero__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 150px;
}

.gk-mhero__score {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font: 700 52px/0.9 var(--font-display);
    color: var(--dark-fg-3);
}

.gk-mhero__goals--lead { color: #fff; }
.gk-mhero__dash { font: 600 20px/1 var(--font-mono); }

.gk-mhero__half,
.gk-mhero__time { font: 600 12px/1 var(--font-mono); color: var(--dark-fg-3); }
.gk-mhero__time { font-size: 16px; color: #fff; }
.gk-mhero__vs { font: 700 38px/1 var(--font-display); letter-spacing: 0.04em; color: var(--dark-fg-3); }

.gk-opp--lg { width: 56px; height: 56px; font-size: 17px; }
.gk-opp--xs { width: 22px; height: 22px; font-size: 12px; }

/* An entente's player: the club of their licence before the name, and under the list which club
   each crest stands for. */
.gk-player__club {
    display: inline-flex;
    margin-right: 6px;
    vertical-align: middle;
}

.gk-player__club .gk-opp--xs { width: 16px; height: 16px; font-size: 12px; }

.gk-clubs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 10px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.gk-clubs__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gk-mhero__answer {
    display: flex;
    gap: 10px;
    max-width: 720px;
    margin: 18px auto 0;
}

.gk-mhero__logistics {
    max-width: 720px;
    margin: 12px auto 0;
}

.gk-mhero__yes,
.gk-mhero__no {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 6px;
    font: 700 14px/1 var(--body-font);
    cursor: pointer;
}

.gk-mhero__yes { border: 0; background: var(--thonon-yellow); color: var(--thonon-black); }
.gk-mhero__no { border: 1px solid var(--dark-border-2); background: rgba(255, 255, 255, 0.04); color: var(--dark-fg-1); }
.gk-mhero__yes--on { box-shadow: inset 0 0 0 2px var(--thonon-black); }
.gk-mhero__no--on { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
.gk-mhero__yes:disabled, .gk-mhero__no:disabled { opacity: 0.6; cursor: progress; }

.gk-mhero__state {
    max-width: 720px;
    margin: 16px auto 0;
    font: 500 12px/1.4 var(--body-font);
    text-align: center;
    color: var(--dark-fg-2);
}

.gk-lastmeet {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    margin: 12px auto 0;
    padding: 10px 13px;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    font: 500 12px/1.4 var(--body-font);
    color: var(--dark-fg-1);
}

.gk-lastmeet strong { color: #fff; }
.gk-lastmeet .gk-res { width: 24px; height: 24px; border-radius: 5px; font-size: 12px; }
.gk-lastmeet--loss { border-color: rgba(240, 32, 48, 0.26); background: rgba(240, 32, 48, 0.07); }
.gk-lastmeet--win { border-color: rgba(34, 197, 94, 0.26); background: rgba(34, 197, 94, 0.07); }
.gk-lastmeet--draw { border-color: rgba(240, 192, 48, 0.26); background: rgba(240, 192, 48, 0.07); }

/* Stats saison: our column, the label, theirs. */
.gk-compare,
.gk-tstats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gk-compare__heads,
.gk-compare__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.gk-compare__heads { margin-bottom: 8px; }

.gk-compare__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font: 700 12px/1.1 var(--font-condensed);
    text-align: center;
    text-transform: uppercase;
    color: #fff;
}

.gk-compare__head img { width: 40px; height: 40px; object-fit: contain; }
.gk-compare__head .gk-opp { width: 40px; height: 40px; }

.gk-compare__us { display: flex; justify-content: flex-end; }
.gk-compare__them { display: flex; justify-content: flex-start; }

/* As wide as the hero's board: up to 720px, else out over the card's padding and border. */
.gk-compare--board {
    --gk-board-center: 240px;
    --gk-card-inset: 17px;
    width: min(720px, calc(100% + 2 * var(--gk-card-inset)));
    margin-inline: calc((100% - min(720px, 100% + 2 * var(--gk-card-inset))) / 2);
}

.gk-compare--board .gk-compare__row {
    grid-template-columns: minmax(0, 1fr) var(--gk-board-center) minmax(0, 1fr);
    column-gap: 18px;
}

.gk-compare--board .gk-compare__us,
.gk-compare--board .gk-compare__them { justify-content: center; }

.gk-compare__heads--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.gk-compare__label {
    font: 600 12px/1.3 var(--body-font);
    letter-spacing: 0.04em;
    text-align: center;
    color: var(--dark-fg-2);
}

.gk-cell {
    min-width: 52px;
    padding: 7px 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    font: 800 14px/1 var(--font-display);
    text-align: center;
    color: var(--dark-fg-2);
}

.gk-cell--best { background: var(--thonon-blue); color: #fff; }
.gk-cell--count { background: rgba(240, 192, 48, 0.14); color: var(--thonon-yellow); }
.gk-muted { color: var(--dark-fg-3); }

/* Top players, season or match. */
.gk-tops {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gk-top {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 13px;
    border: 1px solid var(--dark-border-1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    text-decoration: none;
    /* The narrow-card layout below asks the card's own width. */
    container-type: inline-size;
}

a.gk-top:hover { border-color: rgba(240, 192, 48, 0.45); }
.gk-top--me { border-color: rgba(240, 192, 48, 0.34); background: rgba(240, 192, 48, 0.07); }

.gk-top__rank {
    position: absolute;
    top: 11px;
    right: 12px;
    font: 800 12px/1 var(--font-display);
    color: var(--dark-fg-3);
}

.gk-top__rank--first { color: var(--thonon-yellow); }

.gk-top__who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.gk-top__who > .gk-avatar { flex: none; }
.gk-top__id { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
/* Keep the name clear of the rank in the top right corner. */
.gk-top__id > .gk-player__name { padding-right: 22px; }

/* A narrow card (three abreast beside the side panel) puts the avatar on the rank's row and gives
   the name and figures the card's whole width. */
@container (max-width: 250px) {
    .gk-top__who { flex-direction: column; align-items: flex-start; gap: 10px; }
    .gk-top__id { align-self: stretch; }
    .gk-top__id > .gk-player__name { padding-right: 0; }
}

.gk-top__pos {
    font: 600 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-top__lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--dark-border-1);
}

.gk-top__line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font: 500 12px/1.3 var(--body-font);
    color: var(--dark-fg-3);
}

.gk-top__line strong { font: 700 13px/1 var(--font-mono); color: #fff; }
.gk-top__line .gk-top__accent { color: var(--thonon-yellow); }
.gk-top__main { font: 700 12px/1.3 var(--body-font); color: var(--thonon-blue-bright); }
.gk-top__sub { font: 500 12px/1.3 var(--body-font); color: var(--dark-fg-3); }
.gk-avatar--keeper { --tone: var(--thonon-blue-bright); }

.gk-sep { height: 1px; margin: 16px 0; border: 0; background: var(--dark-border-1); }

.gk-bestgroup__head,
.gk-lines__side {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
}

.gk-bestgroup__head img,
.gk-lines__side img { width: 22px; height: 22px; object-fit: contain; }

.gk-bestgroup__sub {
    margin-left: auto;
    font: 500 12px/1.2 var(--body-font);
    letter-spacing: 0;
    text-transform: none;
    color: var(--dark-fg-3);
}

/* Confrontations. */
.gk-h2h__head {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 60px;
    align-items: center;
    justify-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gk-h2h__head img { width: 30px; height: 30px; object-fit: contain; }
.gk-h2h__head .gk-opp { width: 30px; height: 30px; font-size: 12px; }

.gk-h2h__labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-self: stretch;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-h2h__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
}

.gk-h2h__row + .gk-h2h__row { border-top: 1px solid var(--dark-border-1); }
.gk-h2h__label { font: 600 12px/1.3 var(--body-font); color: var(--dark-fg-2); }
.gk-h2h__cells { display: flex; gap: 6px; }

.gk-h2h__cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border-radius: 7px;
    font: 800 16px/1 var(--font-display);
    color: #fff;
}

.gk-h2h__cell--us { background: #1F8A5B; }
.gk-h2h__cell--draw { background: var(--thonon-yellow-deep); }
.gk-h2h__cell--them { background: var(--thonon-blue-bright); }

.gk-history {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gk-meeting {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px;
    border: 1px solid var(--dark-border-1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    text-decoration: none;
}

.gk-meeting:hover { border-color: rgba(240, 192, 48, 0.45); }

.gk-meeting__comp {
    font: 700 12px/1.3 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--thonon-yellow);
}

.gk-meeting__date { font: 500 12px/1 var(--body-font); color: var(--dark-fg-3); }

.gk-meeting__board {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    gap: 8px;
    margin: 7px 0 5px;
}

.gk-meeting__board img { width: 30px; height: 30px; object-fit: contain; }
.gk-meeting__board .gk-opp { width: 30px; height: 30px; font-size: 12px; }
.gk-meeting__score { font: 700 15px/1 var(--font-mono); white-space: nowrap; color: #fff; }

/* Infos. */
.gk-infos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gk-infos__col { display: flex; flex-direction: column; gap: 8px; }

.gk-info {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 10px 12px;
    border: 1px solid var(--dark-border-1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
}

.gk-info__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--thonon-blue-bright);
}

.gk-info__icon svg { width: 14px; height: 14px; }
.gk-info__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.gk-info__label {
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-info__value { font: 600 12px/1.35 var(--body-font); color: #fff; }
.gk-info__sub { font: 400 12px/1.35 var(--body-font); color: var(--dark-fg-3); }

/* Film. */
.gk-legend { align-items: center; display: inline-flex; flex-wrap: wrap; gap: 8px; }

.gk-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 12px/1 var(--body-font);
    color: var(--dark-fg-2);
}

.gk-legend__line { width: 12px; height: 4px; border-radius: 2px; }
.gk-legend__line--us { background: var(--thonon-blue-bright); }
.gk-legend__line--them { background: var(--dark-fg-3); }

.gk-chart { display: block; width: 100%; height: auto; }
.gk-chart__grid { stroke: var(--dark-border-1); stroke-width: 1; }
.gk-chart__tick { font: 12px var(--font-mono); fill: var(--dark-fg-3); }
.gk-chart__half { stroke: var(--dark-border-2); stroke-dasharray: 4 4; }
.gk-chart__halflabel { font: 700 12px var(--font-condensed); letter-spacing: 0.5px; fill: var(--dark-fg-3); }
.gk-chart__pause { stroke: var(--dark-fg-2); stroke-dasharray: 1 3; }
.gk-chart__pauselabel { font: 700 12px var(--font-condensed); letter-spacing: 0.5px; fill: var(--dark-fg-2); }
.gk-chart__us, .gk-chart__them { fill: none; stroke-linejoin: round; }
.gk-chart__us { stroke: var(--thonon-blue-bright); stroke-width: 2.6; }
.gk-chart__them { stroke: var(--dark-fg-3); stroke-width: 2.4; }
.gk-chart__end { font: 700 15px var(--font-display); }
.gk-chart__end--us { fill: var(--thonon-blue-bright); }
.gk-chart__end--them { fill: var(--dark-fg-2); }

.gk-chips { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

.gk-feed {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.gk-feed__row {
    display: grid;
    grid-template-columns: 52px 50px 86px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 6px;
}

.gk-feed__row:nth-child(odd) { background: rgba(255, 255, 255, 0.015); }
.gk-feed__row--mark { background: rgba(16, 128, 192, 0.06); }
.gk-feed__time { font: 600 12px/1 var(--font-mono); color: var(--dark-fg-3); }
.gk-feed__score { display: flex; align-items: center; justify-content: center; gap: 6px; font: 700 14px/1 var(--font-mono); }
.gk-feed__us { color: var(--thonon-yellow); }
.gk-feed__them { color: var(--gk-red-soft); }
.gk-feed__sep { font-size: 12px; color: var(--dark-fg-3); }
.gk-feed__text { font: 500 12px/1.35 var(--body-font); color: var(--dark-fg-1); }
.gk-feed__row--mark .gk-feed__text { font-weight: 700; color: #fff; }
.gk-feed__dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; vertical-align: middle; }
.gk-feed__dot--us { background: var(--thonon-yellow); }
.gk-feed__dot--them { background: var(--gk-red-soft); }

.gk-ev {
    justify-self: start;
    padding: 3px 7px;
    border-radius: 5px;
    font: 800 12px/1 var(--font-condensed);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gk-ev--goal { background: var(--thonon-red); color: #fff; }
.gk-ev--two { background: rgba(240, 32, 48, 0.16); color: var(--gk-red-soft); }
.gk-ev--card { background: rgba(240, 192, 48, 0.18); color: var(--thonon-yellow); }
.gk-ev--mark { background: rgba(16, 128, 192, 0.18); color: var(--thonon-blue-bright); }
.gk-ev--pause { background: rgba(255, 255, 255, 0.1); color: var(--dark-fg-1); }

.gk-nodata {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px;
    border: 1px dashed var(--dark-border-2);
    border-radius: 10px;
    background: var(--thonon-night);
    font: 500 13px/1.5 var(--body-font);
    color: var(--dark-fg-2);
}

.gk-nodata svg { flex-shrink: 0; color: var(--dark-fg-3); }

/* The administrator's bar above the film and the stats: the federation's PDF, and the import. */
.gk-sheetbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px dashed var(--dark-border-2);
    border-radius: 10px;
    font: 500 13px/1.4 var(--body-font);
    color: var(--dark-fg-2);
}

/* The match's summary, above its film: for every member; its editor for the team's coaches and the staff. */
.gk-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--dark-border-1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.gk-summary__eyebrow {
    margin: 0;
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
}

.gk-summary__title {
    margin: 0;
    font: 700 18px/1.3 var(--body-font);
    color: #fff;
}

.gk-summary__text {
    margin: 0;
    max-width: 72ch;
    font: 400 14px/1.6 var(--body-font);
    color: var(--dark-fg-1);
    white-space: pre-line;
}

.gk-summary__empty { margin: 0; font: 400 13px/1.4 var(--body-font); color: var(--dark-fg-2); }

.gk-summary__editor { align-self: stretch; }

.gk-sheetbar__label { display: flex; flex-direction: column; margin-right: auto; font-weight: 600; color: #fff; }
.gk-sheetbar__state { font-weight: 500; font-size: 12px; color: var(--dark-fg-3); }
.gk-sheetbar__error { flex-basis: 100%; color: var(--gk-red-soft); }
.gk-sheetbar__state--ok { color: var(--gk-green-bright); }
.gk-sheetbar__state--gap { color: var(--gk-red-soft); }
.gk-sheetbar__gaps { flex-basis: 100%; margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12px; }

/* Stats du match. */
.gk-tstat {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 120px;
    align-items: center;
    gap: 14px;
}

.gk-tstat__us { font: 700 15px/1 var(--font-mono); text-align: right; color: #fff; }
.gk-tstat__them { font: 700 15px/1 var(--font-mono); color: #fff; }
.gk-tstat__mid { display: flex; flex-direction: column; gap: 6px; }

.gk-tstat__label {
    font: 600 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    color: var(--dark-fg-2);
}

.gk-tstat__bars { display: flex; gap: 4px; }

.gk-tstat__track {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.gk-tstat__track--us { justify-content: flex-end; }
.gk-tstat__track > span { height: 100%; border-radius: 4px; }
.gk-tstat__track--us > span { background: var(--thonon-blue-bright); }
.gk-tstat__track--them > span { background: var(--dark-fg-3); }

.gk-lines {
    overflow: hidden;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
}

.gk-lines + .gk-lines { margin-top: 14px; }

.gk-lines__side {
    margin: 0;
    padding: 9px 12px;
    border-bottom: 1px solid var(--dark-border-1);
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.gk-lines--us .gk-lines__side { background: rgba(240, 192, 48, 0.06); }

.gk-lines__head,
.gk-lines__row,
.gk-lines__foot {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 48px 46px 50px 52px 36px 36px 44px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--dark-border-1);
}

.gk-lines__head {
    background: rgba(255, 255, 255, 0.015);
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-lines__row--me { background: rgba(240, 192, 48, 0.07); }

.gk-lines__foot {
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
}

.gk-lines__name {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font: 500 12px/1 var(--body-font);
    color: var(--dark-fg-1);
}

.gk-lines__row--me .gk-lines__name { font-weight: 700; color: #fff; }
.gk-lines__goals { font: 800 14px/1 var(--font-display); color: var(--dark-fg-3); }
.gk-lines__goals--on { color: #fff; }
.gk-lines__foot .gk-lines__goals--on { color: var(--thonon-yellow); }
.gk-lines__saves { font: 700 13px/1 var(--font-mono); color: var(--dark-fg-3); }
.gk-lines__saves--on { color: var(--thonon-blue-bright); }
.gk-lines__two { color: var(--gk-red-soft); }
.gk-lines__card { display: inline-block; width: 9px; height: 12px; border-radius: 1px; background: var(--thonon-yellow); }
.gk-lines__card--red { background: var(--thonon-red); }
.gk-lines__card--blue { margin-left: 2px; background: var(--thonon-blue-bright); }

.gk-tag {
    padding: 2px 5px;
    border-radius: 3px;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gk-tag--gk { background: rgba(16, 128, 192, 0.16); color: var(--thonon-blue-bright); }
.gk-tag--cap { background: rgba(240, 192, 48, 0.16); color: var(--thonon-yellow); }

/* ── Opponent club ─────────────────────────────────────── */

.gk-table__row--link { position: relative; cursor: pointer; }
.gk-table__row--link:hover { background: rgba(255, 255, 255, 0.03); }
.gk-team__link { color: inherit; text-decoration: none; }
.gk-team__link::after { content: ""; position: absolute; inset: 0; }
.gk-mhero__name--link { text-decoration: none; }
.gk-mhero__name--link:hover { color: var(--thonon-yellow); }

.gk-ohero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--dark-border-1);
    background: var(--thonon-night);
}

.gk-ohero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--thonon-blue);
}

.gk-ohero__id { display: flex; align-items: center; gap: 18px; min-width: 0; }

.gk-ohero__crest {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(16, 128, 192, 0.4);
    border-radius: 14px;
    background: rgba(16, 128, 192, 0.13);
    font: 800 26px/1 var(--font-display);
    letter-spacing: 0.02em;
    color: #fff;
}

.gk-ohero__crest img { width: 100%; height: 100%; padding: 8px; object-fit: contain; }
/* A logo sits on white, as in every crest pastille (ClubCrest). */
.gk-ohero__crest--logo { border-color: transparent; background: #fff; }
.gk-ohero__text { min-width: 0; }
.gk-eyebrow--dim { color: var(--dark-fg-3); letter-spacing: 0.16em; font-size: 12px; margin-bottom: 8px; }
.gk-eyebrow--dim .gk-eyebrow__rule { width: 16px; background: var(--thonon-blue-bright); }

.gk-ohero__name {
    margin: 0;
    font: 700 34px/0.92 var(--font-display);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: #fff;
}

.gk-ohero__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 10px 0 0;
    font: 500 12px/1 var(--body-font);
    color: var(--dark-fg-2);
}

.gk-ohero__place { display: inline-flex; align-items: center; gap: 6px; }
.gk-ohero__place svg { color: var(--dark-fg-3); }
.gk-ohero__kpis { margin-top: 0; }
.gk-kpi--center { align-items: center; min-width: 72px; background: var(--thonon-graphite); }

.gk-tiles {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.gk-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 11px 6px;
    border: 1px solid var(--dark-border-1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
}

.gk-tile__value { font: 700 18px/1 var(--font-mono); color: #fff; }

.gk-tile__label {
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-tally { font: 700 12px/1 var(--font-condensed); letter-spacing: 0.04em; color: var(--dark-fg-3); }

.gk-h2hrow {
    display: grid;
    grid-template-columns: 46px 22px minmax(0, 1fr) 90px 26px;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid var(--dark-border-1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    text-decoration: none;
}

.gk-h2hrow:hover { border-color: rgba(240, 192, 48, 0.45); }
.gk-h2hrow--upcoming { border-color: rgba(16, 128, 192, 0.30); background: rgba(16, 128, 192, 0.08); }
.gk-h2hrow__soon { display: block; margin-top: 3px; color: var(--thonon-blue-bright); }
.gk-h2hrow__where { font: 600 12px/1.3 var(--body-font); color: var(--dark-fg-2); }

.gk-h2hrow__score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    font: 700 16px/1 var(--font-mono);
    color: var(--dark-fg-3);
}

.gk-h2hrow__lead { color: #fff; }
.gk-h2hrow .gk-res { justify-self: center; width: 24px; height: 24px; border-radius: 5px; font-size: 12px; }

.gk-shared {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 10px 13px;
    border: 1px solid var(--dark-border-1);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.02);
    color: inherit;
    text-decoration: none;
}

.gk-shared:hover { border-color: rgba(240, 192, 48, 0.45); }
.gk-shared--here { border-color: rgba(240, 192, 48, 0.30); background: rgba(240, 192, 48, 0.06); }
.gk-shared__what { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.gk-shared__team {
    display: flex;
    align-items: center;
    gap: 7px;
    font: 700 14px/1 var(--font-condensed);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
}

.gk-shared__comp {
    overflow: hidden;
    font: 600 12px/1.2 var(--font-condensed);
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--dark-fg-3);
}

.gk-shared__rank { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.gk-shared__rank--us { flex-direction: row; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--dark-border-1); }
.gk-shared__rank--us img { width: 22px; height: 22px; object-fit: contain; opacity: 0.9; }
.gk-shared__rank--us > span { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gk-shared__value { font: 800 16px/1 var(--font-display); color: #fff; }
.gk-shared__value sup { font: 700 12px/1 var(--font-condensed); vertical-align: top; }
.gk-shared__rank--us .gk-shared__value { color: var(--thonon-yellow); }

.gk-next--link { display: block; color: inherit; text-decoration: none; }
.gk-next--link > span { display: block; }
.gk-next__note { margin-top: 8px; font: 400 12px/1.4 var(--body-font); color: rgba(255, 255, 255, 0.85); }

.gk-idline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid var(--dark-border-1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.gk-idline__icon { display: inline-flex; flex-shrink: 0; color: var(--thonon-blue-bright); }
.gk-idline__icon svg { width: 14px; height: 14px; }

/* ── Narrower screens ─────────────────────────────────── */

@media (max-width: 1280px) {
    .gk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
    .gk-profile-body { grid-template-columns: minmax(0, 1fr); }
    .gk-body { grid-template-columns: minmax(0, 1fr); }
    .gk-rail { border-left: 0; border-top: 1px solid var(--dark-border-1); }
    .gk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gk-hero { grid-template-columns: 220px minmax(0, 1fr); }
}

/* ── Phone: compact hero, segmented tabs, stacked rows ─────── */

@media (max-width: 560px) {
    .gk-hero {
        display: block;
        padding: 12px 16px;
    }

    .gk-hero__photo,
    .gk-eyebrow,
    .gk-tabs__note,
    .gk-rail,
    .gk-note {
        display: none;
    }

    .gk-subscribe {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0 0 18px;
    }

    .gk-hero__title { gap: 12px; }
    .gk-crest { width: 46px; height: 46px; font-size: 15px; }
    .gk-hero__name { font-size: 26px; }
    .gk-hero__line { margin-top: 8px; font-size: 12px; }
    .gk-hero__kpis { margin-top: 10px; gap: 6px; }
    .gk-kpi { min-width: 42px; padding: 7px 8px; align-items: center; }
    .gk-kpi__value { font-size: 16px; }
    .gk-kpi__label { font-size: 12px; }

    /* The tabs stay underlined on a phone, and scroll sideways. */
    .gk-tab svg { display: none; }

    .gk-main,
    .gk-body--full { padding: 12px 16px 20px; }

    .gk-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; }

    .gk-player {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "avatar id stats";
        align-items: center;
        gap: 11px;
        padding: 9px 11px;
    }

    .gk-player__badges { position: static; }

    .gk-player__stats {
        gap: 12px;
        padding-top: 0;
        border-top: 0;
    }

    .gk-stat { align-items: center; }
    .gk-stat--presence { display: none; }
    .gk-stat__value { font-size: 15px; }
    .gk-stat__label { font-size: 12px; }

    .gk-fixture {
        grid-template-columns: 40px 32px minmax(0, 1fr) auto auto;
        gap: 10px;
        padding: 9px 11px;
    }

    .gk-fixture__when { align-items: center; text-align: center; }
    .gk-fixture__date { font-size: 12px; }
    .gk-opp { width: 32px; height: 32px; }
    .gk-fixture__score { font-size: 16px; }
    .gk-fixture__go { display: none; }

    .gk-fixture--pair { grid-template-columns: 58px minmax(0, 1fr) 22px; }
    .gk-fixture--exempt { grid-template-columns: 40px minmax(0, 1fr); }
    .gk-pair__side { font-size: 12px; gap: 8px; }
    .gk-pair__score { font-size: 15px; }

    .gk-projection { margin-left: 0; }

    .gk-table { border: 0; background: transparent; }
    .gk-table__head { display: none; }

    .gk-table__row {
        grid-template-columns: 18px minmax(0, 1fr) auto;
        gap: 10px;
        margin-bottom: 6px;
        padding: 9px 11px 9px 8px;
        border: 1px solid var(--dark-border-1);
        border-left-width: 3px;
        border-radius: 8px;
        background: var(--thonon-night);
    }

    .gk-table__row + .gk-table__row { border-top: 1px solid var(--dark-border-1); }

    .gk-table__row--us {
        border-color: rgba(240, 192, 48, 0.42);
        border-left-color: var(--thonon-yellow);
        background: rgba(240, 192, 48, 0.08);
    }

    .gk-wide,
    .gk-diff { display: none; }

    .gk-team .gk-opp { display: none; }

    .gk-team__line {
        display: block;
        flex-basis: 100%;
        margin-top: 4px;
        font: 500 12px/1 var(--font-mono);
        color: var(--dark-fg-3);
    }

    .gk-points { font-size: 17px; }

    .gk-table__foot {
        border: 0;
        background: transparent;
        padding: 6px 0 0;
    }

    /* Compact hero, KPI chips in a scrolling row, cards stacked. */
    .gk-backbar { padding: 10px 16px; }
    .gk-backbar__nav > span { display: none; }

    .gk-profile {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
        padding: 14px 16px;
    }

    .gk-profile__side { grid-row: span 2; gap: 8px; }
    .gk-profile__badges { display: none; }
    .gk-profile__avatar { width: 76px; height: 76px; font-size: 22px; }
    .gk-profile__number { min-width: 26px; height: 26px; font-size: 13px; border-radius: 7px; }
    .gk-profile__meta .gk-eyebrow { display: none; }
    .gk-profile__name { font-size: 28px; align-self: end; }
    .gk-profile__line { margin-top: 8px; flex-wrap: wrap; gap: 8px; align-self: start; }

    .gk-profile__kpis {
        grid-column: 1 / -1;
        flex-wrap: nowrap;
        margin: 4px -16px 0;
        padding: 0 16px 4px;
        overflow-x: auto;
    }

    .gk-profile__meta { display: contents; }
    .gk-profile__meta > .gk-profile__name,
    .gk-profile__meta > .gk-profile__line { grid-column: 2; }
    .gk-profile__kpi { flex-shrink: 0; min-width: 76px; align-items: center; }
    .gk-profile__kpi-value { font-size: 20px; }
    .gk-profile .gk-form { display: none; }

    .gk-profile-body { padding: 0; }
    .gk-card { padding: 14px; }
    .gk-bars__plot { gap: 4px; }
    .gk-bars__axis { gap: 4px; }
    .gk-bars__value { display: none; }

    .gk-discipline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
    .gk-discipline__item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; }

    .gk-pmatch {
        grid-template-columns: 22px 32px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 9px 11px;
    }

    .gk-pmatch .gk-fixture__day,
    .gk-pmatch .gk-fixture__score,
    .gk-pmatch__present { display: none; }
    .gk-pmatch__mscore { display: inline; font-family: var(--font-mono); }

    /* The match sheet in one column. */
    .gk-mhero { padding: 14px 16px 16px; }
    .gk-mhero__top .gk-eyebrow { flex-basis: 100%; }
    .gk-result { margin-left: 0; }
    .gk-mhero__board { --gk-board-center: 172px; gap: 8px; }
    .gk-compare--board { --gk-board-center: 172px; --gk-card-inset: 15px; }
    .gk-compare--board .gk-compare__row { column-gap: 8px; }
    .gk-mhero__logo, .gk-opp--lg { width: 44px; height: 44px; }
    .gk-mhero__name { font-size: 13px; }
    .gk-mhero__center { min-width: 0; }
    .gk-mhero__score { font-size: 40px; gap: 8px; }
    .gk-mhero__vs { font-size: 30px; }
    .gk-mhero__answer { flex-direction: column; }
    .gk-match-body { padding: 12px 16px 20px; }
    .gk-tabs--match { margin: 0; padding: 0 16px; border: 0; border-bottom: 1px solid var(--dark-border-1); border-radius: 0; background: transparent; }
    .gk-tabs--match .gk-tab { flex: 0 0 auto; padding: 0 10px; border-radius: 0; border-bottom: 2px solid transparent; }
    .gk-tabs--match .gk-tab--on { background: transparent; color: #fff; border-bottom-color: var(--thonon-yellow); }
    .gk-tops, .gk-history, .gk-infos { grid-template-columns: minmax(0, 1fr); }
    .gk-cell { min-width: 44px; }
    .gk-tstat { grid-template-columns: 48px minmax(0, 1fr) 48px; }
    .gk-feed__row { grid-template-columns: 44px 44px 64px minmax(0, 1fr); gap: 8px; }
    .gk-lines { overflow-x: auto; }
    .gk-lines__head, .gk-lines__row, .gk-lines__foot { min-width: 524px; }

    /* The opponent club in one column. */
    .gk-ohero { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
    .gk-ohero__crest { width: 56px; height: 56px; font-size: 19px; }
    .gk-ohero__name { font-size: 24px; }
    .gk-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gk-h2hrow { grid-template-columns: 36px 22px minmax(0, 1fr) auto 24px; gap: 8px; padding: 9px 11px; }
    .gk-table__row--link::after { content: "›"; position: absolute; right: 8px; color: var(--dark-fg-3); }
    .gk-pmatch .gk-home { display: none; }
}

/* ── The club's weekend (docs/club-weekend.md) ────────────
   Every member's page: the programme of the weekend to come, the results of the one played. Built
   on the import kit's frame (gi-), the weekend's day heads and rail of competition.css (gt-) and
   this sheet's results (gk-res). What the page adds is prefixed gw-. */

.gw .gw-tabs { padding: 0 28px; }

.gw-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gw-block + .gw-block { margin-top: 8px; }

.gw-block__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font: 700 13px/1 var(--font-condensed);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
}

.gw-block__title svg { color: var(--thonon-yellow); }

/* The weekend's tournaments: the team's name over its tournament's row, the row leading to its page. */
.gw-tournament { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.gw-tournament__team { font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--dark-fg-2); }

.gw-quiet {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border: 1px dashed var(--dark-border-2);
    border-radius: 6px;
    font-size: 13px;
    color: var(--dark-fg-2);
}

/* A team's group colour, as on the weekend's agenda of competition.css: this sheet comes after it,
   so its own rows say the groups again over their senior default. */
.gw .gt-grp--boys { --gt-c: var(--gt-boys); }
.gw .gt-grp--girls { --gt-c: var(--gt-girls); }
.gw .gt-grp--school { --gt-c: var(--gt-school); }

.gw-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--thonon-graphite);
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
    white-space: nowrap;
}

.gw-tag--mine {
    background: rgba(240, 192, 48, 0.14);
    color: var(--thonon-yellow);
}

.gw-tag--bad {
    background: rgba(240, 32, 48, 0.16);
    color: #FF8A93;
}

/* The rail: the weekend's goals, its widest win, its scorers. */
.gw-figures__goals {
    display: flex;
    gap: 28px;
    margin-top: 14px;
}

.gw-figures__goals div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.gw-figures__goals b {
    font: 400 36px/1 var(--font-display);
    color: var(--dark-fg-3);
}

.gw-figures__goals b.gw-figures__for { color: var(--thonon-blue-bright); }
.gw-figures__goals span { font-size: 14px; color: var(--dark-fg-2); }

.gw-figures__split {
    display: block;
    height: 8px;
    margin-top: 14px;
    border-radius: 4px;
    background: var(--dark-fg-3);
    overflow: hidden;
}

.gw-figures__split i {
    display: block;
    height: 100%;
    background: var(--thonon-blue-bright);
}

.gw-figures__sub {
    margin: 20px 0 8px;
    padding-top: 16px;
    border-top: 1px solid var(--dark-border-1);
    color: var(--dark-fg-3);
}

.gw-figures__score { font-family: var(--font-mono); font-weight: 700; color: var(--thonon-yellow); }

.gw-road { font-size: 15px; }
.gw-road b { font-family: var(--font-mono); }

/* The phone's three figures, where the rail is under everything. */
.gw-strip {
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid var(--dark-border-1);
    border-radius: 6px;
    background: var(--thonon-night);
    font-size: 12.5px;
    color: var(--dark-fg-2);
}

.gw-strip b {
    margin-right: 3px;
    font: 400 18px/1 var(--font-display);
    color: #fff;
}

/* The banner's switch between the two faces, beside the week's arrows. */
.gw-views {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-control);
    background: rgba(10, 10, 12, 0.55);
}

.gw-views__item {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 3px;
    font: 700 14px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
    text-decoration: none;
}

.gw-views__item--on {
    background: var(--thonon-graphite);
    color: #fff;
}

/* The banner's tiles: a win is ruled green, a loss red. */
.gi-kpi.gw-kpi--win { box-shadow: inset 0 -3px 0 var(--thonon-green); }
.gi-kpi.gw-kpi--win .gi-kpi__value { color: var(--thonon-green); }
.gi-kpi.gw-kpi--loss { box-shadow: inset 0 -3px 0 var(--thonon-red); }
.gi-kpi.gw-kpi--loss .gi-kpi__value { color: var(--thonon-red); }

/* A day: its name underlined in white, its counts on the right, then one card of rows. */
.gw-day {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gw-day + .gw-day { margin-top: 12px; }

.gw-day__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #fff;
}

.gw-day__name {
    font: 800 20px/1.1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gw-day__counts {
    font-size: 13px;
    color: var(--dark-fg-3);
}

.gw-rows {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
    overflow: hidden;
}

/* A match: its result's letter, the team, the score or the hour, who and where, its pills. The
   whole row leads to its sheet; no coloured left rule (that is the gymnasiums'). */
.gw-row {
    display: grid;
    grid-template-columns: 26px 72px 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 76px;
    padding: 12px 20px;
    border-top: 1px solid var(--dark-border-1);
    color: inherit;
    text-decoration: none;
}

.gw-rows > .gw-row:first-child { border-top: 0; }
.gw-block .gt-rows .gw-row { border: 1px solid var(--dark-border-1); border-radius: var(--radius-card); background: var(--thonon-night); }
.gw-row:hover { background: var(--thonon-surface-2); }
.gw-row:focus-visible { outline: 2px solid var(--thonon-yellow); outline-offset: -2px; }
.gw-row--won { background: rgba(34, 197, 94, 0.05); }
.gw-row--mine { background: rgba(240, 192, 48, 0.05); }
.gw-row--off { opacity: 0.6; }

.gw-row__team {
    font: 800 16px/1.1 var(--font-condensed);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gw-row__when {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.gw-row__time,
.gw-row__score {
    font: 700 18px/1 var(--font-mono);
    letter-spacing: -0.02em;
}

.gw-row__score--won { color: var(--thonon-yellow); }

.gw-row__pending {
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gw-row__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gw-row__line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
}

.gw-row__vs { font-weight: 600; }
.gw-row__opp { font-weight: 600; }

.gw-row__place {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dark-fg-2);
}

.gw-row__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.gw-side {
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gw-side--home { background: var(--thonon-yellow); color: var(--thonon-black); }
.gw-side--away { background: var(--thonon-blue); color: #fff; }

/* A plateau: its record where the score stands, each scored game under the line. */
.gw-row__tally {
    font: 700 14px/1.1 var(--font-mono);
    letter-spacing: -0.02em;
}

.gw-games {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12.5px;
    color: var(--dark-fg-2);
}

.gw-game {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gw-game .gk-res {
    width: 22px;
    height: 22px;
    font-size: 12px;
}

.gw-game__score { font: 700 12.5px/1 var(--font-mono); color: #fff; }

.gw-stakes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 2px;
    padding-top: 7px;
    border-top: 1px dashed var(--dark-border-1);
    font-size: 12.5px;
    color: var(--dark-fg-2);
}

.gw-stake { display: inline-flex; align-items: center; gap: 4px; }
.gw-stake em { font-style: normal; color: var(--dark-fg-3); }
.gw-stake--rank { font-weight: 700; color: #fff; }
.gw-stake--form { gap: 3px; }
.gw-stake--form em { margin-right: 3px; }
.gw-stake--up { color: var(--gk-green-bright); }

/* The headliners: three cards at most, each one a way into the match's preview. */
.gw-chocs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.gw-choc {
    --gt-c: var(--gt-seniors);
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--thonon-yellow) 38%, var(--dark-border-1));
    border-radius: 8px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--thonon-yellow) 10%, var(--thonon-night)), var(--thonon-night) 70%);
    color: inherit;
    text-decoration: none;
}

.gw-choc:hover { border-color: var(--thonon-yellow); }
.gw-choc:focus-visible { outline: 2px solid var(--thonon-yellow); outline-offset: 2px; }

.gw-choc__hook {
    font: 700 16px/1.2 var(--font-condensed);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--thonon-yellow);
}

.gw-choc__teams { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.gw-choc__versus { color: var(--dark-fg-2); }
.gw-choc__versus strong { color: #fff; }
.gw-choc__when { font-size: 12.5px; color: var(--dark-fg-2); }
.gw-choc__tags { display: flex; flex-wrap: wrap; gap: 5px; }

.gw-choc__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
}

/* At home, hall by hall: each hall in its own colour, its matches hour by hour. */
.gw-halls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

/* In the rail on a wide screen: one hall a row, under the rail's own title. Where the rail falls
   under every match (imports.css, 1180 px), the halls go back into the flow. */
.gw-home--flow { display: none; }
.gi-rail .gw-block { gap: 0; }
.gi-rail .gw-halls { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1180px) {
    .gw-home--flow { display: block; }
    .gw-home--rail { display: none; }
}

.gw-hall {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
    border: 1px solid var(--dark-border-1);
    border-top: 3px solid var(--hall-c, var(--dark-border-2));
    border-radius: 6px;
    background: var(--thonon-night);
}

.gw-hall__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font: 700 14px/1.2 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gw-hall__day {
    margin-top: 2px;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gw-slots {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gw-slot {
    --gt-c: var(--gt-seniors);
    display: grid;
    grid-template-columns: 50px 52px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 6px 6px;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
}

.gw-slot:hover { background: rgba(255, 255, 255, 0.05); }
.gw-slot:focus-visible { outline: 2px solid var(--thonon-yellow); outline-offset: 1px; }
.gw-slot__time { font: 700 14px/1 var(--font-mono); }
.gw-slot__team { font: 400 12px/1 var(--font-display); color: var(--gt-c); }
.gw-slot__opp { overflow: hidden; font-size: 13px; color: var(--dark-fg-2); text-overflow: ellipsis; white-space: nowrap; }
.gw-slot--mine .gw-slot__opp { color: #fff; }
.gw-slot--mine .gw-slot__time { color: var(--thonon-yellow); }

/* The results' tally: three figures, then what is still awaited. */
.gw-tally {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gw-tally__figure {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night);
}

.gw-tally__figure b { font: 400 40px/1 var(--font-display); }

.gw-tally__figure span {
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gw-tally__figure--win b { color: var(--gk-green); }
.gw-tally__figure--draw b { color: var(--thonon-yellow); }
.gw-tally__figure--loss b { color: var(--gk-red-soft); }

.gw-tally__note {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12.5px;
    color: var(--dark-fg-3);
}

.gw-rail-link { color: var(--dark-fg-2); font-size: 13px; line-height: 1.5; text-decoration: none; }
.gw-rail-link strong { color: #fff; }
.gw-rail-link:hover { color: #fff; }

.gw-scorers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

/* A scorer: their rank, name, team and a bar of their goals; the first in yellow. */
.gw-scorers li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--dark-border-1);
}

.gw-scorers li:first-child { border-top: 0; padding-top: 0; }

.gw-scorers__rank { font: 400 24px/1 var(--font-display); color: var(--thonon-blue-bright); }
.gw-scorers__first .gw-scorers__rank { color: var(--thonon-yellow); }
.gw-scorers__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gw-scorers__name { font-size: 16px; font-weight: 600; color: #fff; }
.gw-scorers__team { font-size: 14px; color: var(--dark-fg-2); }
.gw-scorers__goals { font: 700 16px/1 var(--font-mono); color: #fff; }
.gw-scorers__first .gw-scorers__goals { color: var(--thonon-yellow); }

.gw-scorers__bar {
    display: block;
    height: 4px;
    margin-top: 4px;
    border-radius: 2px;
    background: var(--thonon-graphite);
    overflow: hidden;
}

.gw-scorers__bar i { display: block; height: 100%; background: var(--thonon-blue-bright); }
.gw-scorers__first .gw-scorers__bar i { background: var(--thonon-yellow); }

.gw-rest { display: flex; flex-wrap: wrap; gap: 6px; }

/* The weekend's entry on the home page and on « Le club »: the card of the moment, the whole of
   it a link: yellow border and tint, the icon in a ringed circle, a blue link. */
.gw-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 20px;
    padding: 24px 28px;
    border: 1px solid var(--thonon-yellow-deep);
    border-radius: var(--radius-card);
    background: linear-gradient(0deg, rgba(240, 192, 48, 0.06), rgba(240, 192, 48, 0.06)), var(--thonon-night);
    color: inherit;
    text-decoration: none;
}

.gw-banner:hover { border-color: var(--thonon-yellow); }
.gw-banner:focus-visible { outline: 2px solid var(--thonon-yellow); outline-offset: 2px; }

.gw-banner__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--thonon-yellow-deep);
    background: rgba(240, 192, 48, 0.08);
    color: var(--thonon-yellow);
}

.gw-banner__text { display: flex; flex: 1 1 260px; flex-direction: column; gap: 6px; min-width: 0; }

.gw-banner__title {
    font: 800 18px/1.1 var(--font-condensed);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gw-banner__line { font-size: 16px; line-height: 1.5; color: var(--dark-fg-2); }

.gw-banner__action {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font: 800 14px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--thonon-blue-bright);
    white-space: nowrap;
}

/* No match this weekend: the same way in, without the colour. */
.gw-banner--quiet {
    padding: 14px 18px;
    border: 1px dashed var(--dark-border-2);
    background: transparent;
}

.gw-banner--quiet .gw-banner__icon { width: 40px; height: 40px; border-color: var(--dark-border-2); background: transparent; color: var(--dark-fg-3); }
.gw-banner--quiet .gw-banner__title { font-size: 15px; color: var(--dark-fg-2); }
.gw-banner--quiet .gw-banner__action { color: var(--dark-fg-2); }
.gw-banner--quiet .gw-banner__text { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }

/* A phone: the letter, the team and the score on top, who and where under them, the pills last. */
@media (max-width: 699px) {
    .gw-row {
        grid-template-columns: 26px auto minmax(0, 1fr);
        grid-template-areas:
            "mark team when"
            "body body body"
            "pills pills pills";
        gap: 8px 12px;
        padding: 14px 16px;
    }

    .gw-row__mark { grid-area: mark; }
    .gw-row__team { grid-area: team; }
    .gw-row__when { grid-area: when; align-items: flex-end; }
    .gw-row__body { grid-area: body; }
    .gw-row__pills { grid-area: pills; justify-content: flex-start; }
    .gw-banner__action span { display: none; }
}

/* ── The club's organigramme (docs/organigramme.md) ────────
   The governance first — the Assemblée Générale, the Bureau's tree, the other members of the
   Conseil, the Comité, the employees — then the commission sportive and its coaches. A member of
   the Conseil wears a blue ring wherever they appear. */
.gg-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gg-section + .gg-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--dark-border-1);
}

.gg-lead {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--dark-fg-2);
}

.gg-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 10px 0 0;
    font: 700 13px/1.1 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-1);
}

.gg-sub__note {
    font: 400 12.5px/1.3 var(--body-font, inherit);
    letter-spacing: 0;
    text-transform: none;
    color: var(--dark-fg-3);
}

.gg-avatar {
    --tone: var(--dark-fg-3);
    width: 38px;
    height: 38px;
    font: 700 13px/1 var(--font-condensed);
}

.gg-avatar--board { --tone: var(--thonon-blue-bright); }

.gg-avatar--vacant {
    --tone: var(--dark-border-2);
    border-style: dashed;
    color: var(--dark-fg-3);
    font-size: 18px;
}

.gg-card__name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    color: var(--dark-fg-1);
}

.gg-card__role {
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--dark-fg-2);
}

.gg-card__role--quiet { color: var(--dark-fg-3); font-style: italic; }

/* The tree: the Assemblée Générale, then the president, the vice-presidents, the treasury and the
   secretariat, each row joined to the one above. */
.gg-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin: 6px 0 4px;
    padding: 0;
    list-style: none;
}

.gg-tree__row {
    position: relative;
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
}

.gg-tree__row + .gg-tree__row::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 50%;
    width: 2px;
    height: 22px;
    background: color-mix(in srgb, var(--thonon-yellow) 55%, var(--dark-border-2));
}

.gg-ag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    border: 1px dashed var(--dark-border-2);
    border-radius: 8px;
    text-align: center;
}

.gg-ag__title {
    font: 700 13px/1 var(--font-condensed);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--thonon-yellow);
}

.gg-ag__line { font-size: 12.5px; color: var(--dark-fg-2); }

.gg-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 170px;
    padding: 12px 16px;
    border: 1px solid color-mix(in srgb, var(--thonon-blue-bright) 40%, var(--dark-border-1));
    border-radius: 8px;
    background: color-mix(in srgb, var(--thonon-blue) 10%, var(--thonon-night));
    text-align: center;
}

.gg-node--top {
    border-color: color-mix(in srgb, var(--thonon-yellow) 60%, var(--dark-border-1));
    background: color-mix(in srgb, var(--thonon-yellow) 10%, var(--thonon-night));
}

.gg-node .gg-card__role {
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--thonon-yellow);
}

/* Cards: the other members of the Conseil, the Comité, the employees, a commission. */
.gg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 10px;
}

.gg-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night);
}

.gg-card--staff { border-color: color-mix(in srgb, var(--thonon-yellow) 35%, var(--dark-border-1)); }

.gg-card__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

/* The commission sportive's blocs, side by side. */
.gg-blocs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
}

.gg-bloc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--dark-border-1);
    border-left: 3px solid var(--thonon-yellow);
    border-radius: 8px;
    background: var(--thonon-night);
}

.gg-bloc__title {
    margin: 0;
    font: 700 15px/1.1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gg-bloc__line { margin: 0; font-size: 12.5px; color: var(--dark-fg-3); }

.gg-who {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.gg-who__item { display: flex; align-items: center; gap: 10px; }
.gg-who__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* The coaches, one card each with what they coach; the posts to fill after them. */
.gg-coaches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: 10px;
}

.gg-coach {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--dark-border-1);
    border-radius: 8px;
    background: var(--thonon-night);
}

.gg-coach--vacant {
    border-style: dashed;
    background: transparent;
}

.gg-coach--vacant .gg-card__name { color: var(--dark-fg-2); }

.gg-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.gg-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border: 1px solid var(--dark-border-2);
    border-radius: 999px;
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-fg-2);
    white-space: nowrap;
}

.gg-tag--vacant {
    border-style: dashed;
    color: var(--thonon-yellow);
}

@media (max-width: 900px) {
    .gg-tree { gap: 18px; }
    .gg-tree__row + .gg-tree__row::before { top: -18px; height: 18px; }
    .gg-tree__row { gap: 10px; }
    .gg-node { min-width: 0; flex: 0 1 150px; padding: 10px; }
    .gg-grid, .gg-coaches { grid-template-columns: minmax(0, 1fr); }
    .gg-coaches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .gg-coaches { grid-template-columns: minmax(0, 1fr); }
}


/* ── Statistiques ─────────────────────────────────────────────────────────
   A team's season in figures, prefix gs-. */

.gs-us { color: var(--gs-us); }
.gs-them { color: var(--dark-fg-2); }
.gs-draw, .gs-yellow { color: var(--thonon-yellow); }
.gs-dim { color: var(--dark-fg-3); }
.gs-nowrap { white-space: nowrap; }
.gs-none { margin: 0; font: 400 12px/1.4 var(--body-font); }

.gs-skel--band { height: 76px; margin-bottom: 14px; border-radius: 10px; }

.gs-link { color: inherit; text-decoration: none; transition: border-color 120ms, background-color 120ms; }
.gs-link:hover { border-color: var(--thonon-yellow); background: rgba(240, 192, 48, 0.05); }
.gs-name-link { color: inherit; text-decoration: none; }
.gs-name-link:hover { color: var(--thonon-yellow); }

.gs-cover { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 12px 16px; border: 1px solid var(--dark-border-1); border-radius: 10px; background: var(--thonon-night); }
.gs-cover__src { display: flex; align-items: center; gap: 10px; }
.gs-cover__icon { width: 30px; height: 30px; flex-shrink: 0; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.05); color: var(--dark-fg-2); }
.gs-cover__icon--sheet { background: rgba(52, 164, 224, 0.12); color: var(--thonon-blue-bright); }
.gs-cover__value { font: 700 20px/1 var(--font-display); color: #fff; }
.gs-cover__of { font-size: 14px; color: var(--dark-fg-3); }
.gs-cover__label { display: block; margin-top: 4px; font: 700 12px/1 var(--font-condensed); letter-spacing: 0.10em; text-transform: uppercase; color: var(--dark-fg-3); }
.gs-cover__sep { width: 1px; align-self: stretch; background: var(--dark-border-1); }
.gs-cover__cells { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.gs-cells { display: flex; gap: 3px; }
.gs-cell { flex: 1; max-width: 22px; height: 22px; border-radius: 3px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3px; font: 600 12px/1 var(--font-mono); background: rgba(52, 164, 224, 0.20); border: 1px solid rgba(52, 164, 224, 0.45); color: var(--thonon-blue-bright); text-decoration: none; }
a.gs-cell:hover { border-color: var(--thonon-yellow); }
.gs-cell--off { background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255, 255, 255, 0.05) 3px, rgba(255, 255, 255, 0.05) 6px); border: 1px dashed var(--dark-border-2); color: var(--dark-fg-3); }
.gs-cell--todo { background: transparent; border: 1px solid var(--dark-border-1); color: var(--dark-border-2); }
.gs-cover__legend { display: flex; flex-wrap: wrap; gap: 14px; font: 500 12px/1 var(--body-font); color: var(--dark-fg-3); }
.gs-cover__legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: rgba(52, 164, 224, 0.35); border: 1px solid rgba(52, 164, 224, 0.6); }
.gs-cover__legend i.off { background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.12) 2px, rgba(255, 255, 255, 0.12) 4px); border: 1px dashed var(--dark-border-2); }

.gs-part { display: flex; align-items: center; gap: 12px; margin: 24px 0 12px; }
.gs-part__title { margin: 0; font: 700 17px/1 var(--font-display); letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; color: #fff; }
.gs-part__src { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--body-font); color: var(--dark-fg-3); white-space: nowrap; }
.gs-part__src svg { width: 13px; height: 13px; }
.gs-part__rule { flex: 1; height: 1px; background: var(--dark-border-1); }

.gs-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.gs-c3 { grid-column: span 3; }
.gs-c4 { grid-column: span 4; }
.gs-c6 { grid-column: span 6; }
.gs-c12 { grid-column: 1 / -1; }
.gs-grid > .gk-card { min-width: 0; margin: 0; }

.gs-src { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 var(--body-font); color: var(--dark-fg-3); }
.gs-src svg { width: 12px; height: 12px; }
.gs-src--few { color: var(--thonon-yellow); }
.gs-label { font: 700 12px/1.2 var(--font-condensed); letter-spacing: 0.10em; text-transform: uppercase; color: var(--dark-fg-3); }
.gs-label--gap { margin-bottom: 8px; }
.gs-label--white { color: #fff; }
.gs-stack { display: flex; flex-direction: column; gap: 10px; }
.gs-stack--7 { gap: 7px; }
.gs-stack--8 { gap: 8px; }
.gs-stack--12 { gap: 12px; }
.gs-stack--13 { gap: 13px; }
.gs-stack--14 { gap: 14px; }
.gs-rows { display: flex; flex-direction: column; }
.gs-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--dark-border-1); font: 500 12px/1.3 var(--body-font); color: var(--dark-fg-2); }
.gs-row:first-child { border-top: 0; padding-top: 0; }
.gs-row b { font: 700 13px/1 var(--font-mono); white-space: nowrap; }
.gs-foot { margin: 10px 0 0; font: 400 12px/1.45 var(--body-font); color: var(--dark-fg-3); text-wrap: pretty; }

/* A · bilan */
.gs-vnd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gs-vnd__t { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; border-radius: 7px; }
.gs-vnd__t--v { background: rgba(34, 197, 94, 0.12); color: var(--gk-green-bright); }
.gs-vnd__t--n { background: rgba(240, 192, 48, 0.12); color: var(--thonon-yellow); }
.gs-vnd__t--d { background: rgba(240, 32, 48, 0.12); color: var(--gk-red-soft); }
.gs-vnd__v { font: 700 30px/1 var(--font-display); }
.gs-vnd__l { font: 700 12px/1 var(--font-condensed); letter-spacing: 0.10em; text-transform: uppercase; }
.gs-split { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.gs-split--bare { grid-template-columns: minmax(0, 1fr) auto; }
.gs-split__l { font: 600 12px/1 var(--body-font); color: var(--dark-fg-2); }
.gs-split__l span { color: var(--dark-fg-3); font-weight: 400; }
.gs-split__n { font: 600 12px/1 var(--font-mono); color: var(--dark-fg-2); white-space: nowrap; }
.gs-seg { display: flex; gap: 2px; height: 8px; }
.gs-seg > span { border-radius: 2px; }
.gs-seg__v { background: var(--gk-green); }
.gs-seg__n { background: var(--thonon-yellow); }
.gs-seg__d { background: var(--gk-red); }

/* B · buts */
.gs-goal { display: flex; align-items: baseline; gap: 12px; }
.gs-goal__v { font: 700 34px/1 var(--font-display); color: #fff; }
.gs-goal__v.gs-us { color: var(--gs-us); }
.gs-goal__avg { font: 700 13px/1 var(--font-mono); color: var(--dark-fg-2); }
.gs-goal__avg span { font: 500 12px/1 var(--body-font); color: var(--dark-fg-3); }
.gs-ha { display: flex; flex-direction: column; gap: 6px; }
.gs-ha__bar { display: flex; gap: 2px; height: 6px; }
.gs-ha__bar span { border-radius: 2px; }
.gs-ha__bar span:first-child { background: var(--dark-fg-2); }
.gs-ha__bar span:last-child { background: var(--dark-border-2); }
.gs-ha__bar--us span:first-child { background: var(--gs-us); }
.gs-ha__bar--us span:last-child { background: var(--gs-us-deep); }
.gs-ha__legend { display: flex; justify-content: space-between; font: 500 12px/1 var(--body-font); color: var(--dark-fg-3); }
.gs-ha__legend b { font: 700 12px/1 var(--font-mono); color: #fff; margin-left: 5px; }
.gs-ext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gs-ext__t { display: flex; flex-direction: column; gap: 5px; padding: 9px 10px; border-radius: 7px; border: 1px solid var(--dark-border-1); background: rgba(255, 255, 255, 0.02); min-width: 0; }
.gs-ext__v { font: 700 18px/1 var(--font-display); color: #fff; }
.gs-ext__m { font: 500 12px/1.25 var(--body-font); color: var(--dark-fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-ext__m b { font: 600 12px/1 var(--font-mono); color: var(--dark-fg-2); margin-right: 4px; }

/* C · séries */
.gs-last { display: flex; flex-wrap: wrap; gap: 5px; }
.gs-last__d { white-space: nowrap; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 12px/1 var(--font-condensed); letter-spacing: 0.04em; color: var(--dark-fg-3); text-decoration: none; }
.gs-last__res { width: 26px; height: 26px; }
.gs-last__d:hover .gs-last__res { outline: 1px solid var(--thonon-yellow); }
.gs-tiles3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* I · écarts */
.gs-mline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 7px; border: 1px solid var(--dark-border-1); background: rgba(255, 255, 255, 0.02); }
.gs-mline__diff { min-width: 38px; font: 700 18px/1 var(--font-display); }
.gs-mline__who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gs-mline__l { font: 700 12px/1 var(--font-condensed); letter-spacing: 0.10em; text-transform: uppercase; color: var(--dark-fg-3); }
.gs-mline__opp { font: 600 12.5px/1.2 var(--body-font); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-mline__opp span { font: 600 12px/1 var(--font-mono); color: var(--dark-fg-3); margin-right: 5px; }
.gs-mline__score { font: 700 14px/1 var(--font-mono); color: #fff; white-space: nowrap; }
.gs-mline svg { width: 14px; height: 14px; color: var(--dark-fg-3); }

/* D + E · par tranche */
.gs-headr { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.gs-legend { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--body-font); color: var(--dark-fg-2); }
.gs-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.gs-legend__us { background: var(--gs-us); }
.gs-legend__them { background: var(--gs-them); }
.gs-tog { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--dark-border-1); border-radius: 7px; background: rgba(255, 255, 255, 0.03); }
.gs-tog button { white-space: nowrap; padding: 6px 10px; border: 0; border-radius: 5px; background: transparent; font: 700 12px/1 var(--font-condensed); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-fg-3); cursor: pointer; transition: background-color 120ms, color 120ms; }
.gs-tog button:hover { color: #fff; }
.gs-tog button.on { background: rgba(255, 255, 255, 0.08); color: #fff; }
.gs-bins { position: relative; }
.gs-halves { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 6px; }
.gs-half { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 7px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--dark-border-1); }
.gs-half .gs-label { white-space: nowrap; }
.gs-half__line { display: flex; align-items: center; gap: 10px; }
.gs-half__score { font: 700 15px/1 var(--font-mono); white-space: nowrap; }
.gs-half__score em { font-style: normal; color: var(--dark-fg-3); margin: 0 5px; }
.gs-chip { padding: 4px 7px; border-radius: 4px; font: 700 12px/1 var(--font-mono); background: rgba(255, 255, 255, 0.05); }
.gs-plot { position: relative; display: flex; align-items: flex-end; gap: 14px; height: 170px; padding-top: 18px; }
.gs-plot__half { flex: 1; display: flex; align-items: flex-end; gap: 8px; height: 100%; }
.gs-plot__mid { position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--dark-border-2); }
.gs-plot__mid span { position: absolute; top: 0; left: 6px; font: 700 12px/1 var(--font-condensed); letter-spacing: 0.12em; color: var(--dark-fg-3); white-space: nowrap; }
.gs-col { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; min-width: 0; }
.gs-bar { position: relative; flex: 1; max-width: 22px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.gs-bar__v { margin-bottom: 4px; font: 700 12px/1 var(--font-mono); color: var(--dark-fg-2); white-space: nowrap; }
.gs-bar__b { width: 100%; border-radius: 3px 3px 0 0; }
.gs-bar--us .gs-bar__b { background: linear-gradient(180deg, var(--gs-us), var(--gs-us-deep)); }
.gs-bar--us .gs-bar__v { color: var(--gs-us); }
.gs-bar--them .gs-bar__b { background: var(--gs-them); opacity: 0.75; }
.gs-axis { display: flex; gap: 14px; padding-top: 7px; border-top: 1px solid var(--dark-border-1); }
.gs-axis__half { flex: 1; display: flex; gap: 8px; }
.gs-axis__c { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.gs-axis__t { font: 600 12px/1 var(--font-condensed); letter-spacing: 0.04em; color: var(--dark-fg-3); white-space: nowrap; }
.gs-axis__d { font: 700 12px/1 var(--font-mono); }

/* K + I · débuts, fins et retournements */
.gs-at10 { display: flex; flex-direction: column; gap: 7px; }
.gs-at10__bar { display: flex; gap: 2px; height: 10px; }
.gs-at10__bar span { border-radius: 2px; }
.gs-at10__ahead { background: var(--gs-us); }
.gs-at10__level { background: var(--dark-border-2); }
.gs-at10__behind { background: var(--gs-them); opacity: 0.75; }
.gs-at10__legend { display: flex; flex-wrap: wrap; gap: 14px; font: 500 12px/1 var(--body-font); color: var(--dark-fg-3); }
.gs-at10__legend b { font: 700 12px/1 var(--font-mono); color: #fff; margin-right: 4px; }
.gs-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gs-tile { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 7px; border: 1px solid var(--dark-border-1); background: rgba(255, 255, 255, 0.02); min-width: 0; }
.gs-tile__v { font: 700 22px/1 var(--font-display); color: #fff; }
.gs-tile__s { font: 500 12px/1.3 var(--body-font); color: var(--dark-fg-3); }
.gs-turn { display: flex; flex-direction: column; gap: 7px; }
.gs-turn__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 600 12px/1.3 var(--body-font); color: var(--dark-fg-2); }
.gs-turn__head b { font: 700 16px/1 var(--font-display); color: #fff; }
.gs-mchips { display: flex; flex-wrap: wrap; gap: 5px; }
.gs-mchip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 5px; border: 1px solid var(--dark-border-1); background: rgba(255, 255, 255, 0.03); font: 500 12px/1 var(--body-font); color: var(--dark-fg-2); }
.gs-mchip b { font: 700 12px/1 var(--font-mono); color: var(--dark-fg-3); }
.gs-mchip i { font: 700 12px/1 var(--font-mono); font-style: normal; color: #fff; }

/* G · supériorité · infériorité */
.gs-pp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gs-pp__col { display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 8px; border: 1px solid var(--dark-border-1); background: rgba(255, 255, 255, 0.02); }
.gs-pp__sub { margin-top: -4px; font: 500 12px/1.3 var(--body-font); color: var(--dark-fg-3); }
.gs-pp__min { font: 700 26px/1 var(--font-display); color: #fff; }
.gs-pp__min span { font: 700 12px/1 var(--font-condensed); letter-spacing: 0.06em; color: var(--dark-fg-3); margin-left: 4px; }
.gs-pp__bar { display: flex; gap: 2px; height: 6px; }
.gs-pp__bar span { border-radius: 2px; }
.gs-pp__for { background: var(--gs-us); }
.gs-pp__against { background: var(--gs-them); opacity: 0.75; }
.gs-pp__goals { display: flex; align-items: center; justify-content: space-between; font: 600 12px/1 var(--body-font); color: var(--dark-fg-3); }
.gs-pp__goals b { font: 700 13px/1 var(--font-mono); color: #fff; }
.gs-pp__goals--tight { margin-top: -3px; }
.gs-pp__goals--total { border-top: 1px solid var(--dark-border-1); padding-top: 9px; }
.gs-pp__diff { font: 700 15px/1 var(--font-mono); }

/* F · 7 m, L · discipline, H · gardiens: tables */
/* Every cell fills its row, so that the rules between rows meet, whatever each cell holds. */
.gs-tbl { display: grid; align-items: stretch; column-gap: 0; }
.gs-tbl--seven { grid-template-columns: minmax(0, 1fr) 72px 72px; }
.gs-tbl--discipline { grid-template-columns: minmax(0, 1fr) 62px 62px; }
.gs-tbl--keepers { grid-template-columns: minmax(0, 1fr) 54px 50px 56px 74px; }
.gs-tbl > span { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 8px 0 8px 10px; border-top: 1px solid var(--dark-border-1); font: 600 12.5px/1.2 var(--font-mono); color: #fff; text-align: right; white-space: nowrap; }
.gs-tbl > span.h { justify-content: flex-end; border-top: 0; padding-top: 0; font: 700 12px/1.2 var(--font-condensed); letter-spacing: 0.10em; text-transform: uppercase; color: var(--dark-fg-3); }
.gs-tbl > span.gs-tbl__left { align-items: flex-start; text-align: left; padding-left: 0; }
.gs-tbl > span.l, .gs-tbl > span.n { padding-left: 0; }
.gs-tbl > span.l { flex-direction: row; justify-content: flex-start; align-items: center; gap: 8px; text-align: left; font: 500 12px/1.2 var(--body-font); color: var(--dark-fg-2); }
.gs-tbl > span.n { align-items: flex-start; font: 600 12.5px/1.2 var(--body-font); text-align: left; overflow: hidden; text-overflow: ellipsis; }
.gs-tbl > span.gs-us { color: var(--gs-us); }
.gs-tbl > span.gs-dim { color: var(--dark-fg-3); }
.gs-tbl > span.gk-blue { color: var(--thonon-blue-bright); }
.gs-tbl > span small { display: block; margin-top: 3px; font: 500 12px/1 var(--body-font); color: var(--dark-fg-3); }
.gs-mk { display: inline-block; flex-shrink: 0; width: 10px; height: 14px; border-radius: 2px; }
.gs-mk--y { background: var(--thonon-yellow); }
.gs-mk--r { background: var(--thonon-red); }
.gs-mk--two { width: 20px; height: 14px; font: 700 12px/14px var(--font-condensed); font-style: normal; text-align: center; background: rgba(240, 32, 48, 0.16); color: var(--gk-red-soft); }

/* M · tir */
.gs-gauge { display: flex; flex-direction: column; gap: 7px; }
.gs-gauge__top { display: flex; align-items: baseline; justify-content: space-between; }
.gs-gauge__l { font: 600 12px/1 var(--body-font); color: var(--dark-fg-2); }
.gs-gauge__v { font: 700 22px/1 var(--font-display); }
.gs-gauge__track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.gs-gauge__track span { display: block; height: 100%; border-radius: 4px; }
.gs-gauge__s { font: 500 12px/1 var(--font-mono); color: var(--dark-fg-3); }
.gs-gauge--us .gs-gauge__v { color: var(--gs-us); }
.gs-gauge--us .gs-gauge__track span { background: var(--gs-us); }
.gs-gauge--them .gs-gauge__v { color: var(--dark-fg-2); }
.gs-gauge--them .gs-gauge__track span { background: var(--dark-fg-2); }

/* H · gardiens */
.gs-gk { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
.gs-gk__team { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 8px; background: rgba(52, 164, 224, 0.07); border: 1px solid rgba(52, 164, 224, 0.25); }
.gs-gk__v { font: 700 34px/1 var(--font-display); color: var(--thonon-blue-bright); }

/* J · buteurs, N · effectif */
.gs-share { display: flex; gap: 2px; height: 10px; }
.gs-share span { border-radius: 2px; }
.gs-share__first { background: var(--thonon-yellow); }
.gs-share__three { background: var(--gs-us); }
.gs-share__rest { background: var(--dark-border-2); }
.gs-row b.gs-yellow { color: var(--thonon-yellow); }
.gs-row b.gs-us { color: var(--gs-us); }
.gs-scorers { font: 500 12px/1.4 var(--body-font); }
.gs-names { display: flex; flex-wrap: wrap; gap: 5px; }
.gs-name { white-space: nowrap; padding: 5px 8px; border-radius: 5px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--dark-border-1); font: 600 12px/1 var(--body-font); color: #fff; }
.gs-big { display: flex; align-items: baseline; gap: 9px; }
.gs-big--column { flex-direction: column; align-items: flex-start; gap: 5px; }
.gs-big__v { font: 700 30px/1 var(--font-display); color: #fff; }
.gs-big__l { font: 500 12px/1.3 var(--body-font); color: var(--dark-fg-2); }

/* États */
.gs-wait { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px dashed var(--dark-border-2); border-radius: 10px; font: 400 12.5px/1.5 var(--body-font); color: var(--dark-fg-2); }
.gs-wait svg { flex-shrink: 0; margin-top: 1px; color: var(--dark-fg-3); }
.gs-wait b { color: #fff; font-weight: 600; }


/* Profil d'un gardien · arrêts par journée */
.gs-rates { display: flex; gap: 7px; padding: 6px 2px 0; }
.gs-rates span { flex: 1; max-width: 56px; min-width: 0; text-align: center; font: 700 12px/1 var(--font-mono); color: var(--thonon-blue-bright); white-space: nowrap; }
.gs-rates__key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; font: 500 12px/1.3 var(--body-font); color: var(--dark-fg-3); }
.gs-rates__key b { font: 700 12px/1 var(--font-mono); color: var(--thonon-blue-bright); }
.gs-rates__key i { display: inline-block; width: 14px; border-top: 1px dashed rgba(240, 192, 48, 0.7); vertical-align: 3px; margin-right: 6px; }
.gs-rates__key u { display: inline-block; width: 12px; height: 9px; margin-right: 6px; vertical-align: -1px; border: 1px dashed var(--dark-border-2); border-radius: 2px; background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255, 255, 255, 0.12) 2px, rgba(255, 255, 255, 0.12) 4px); }
.gs-mobonly { display: none; }
.gs-dotalone { display: none; width: 4px; height: 4px; border-radius: 50%; background: var(--thonon-blue-bright); margin-top: 3px; margin-bottom: -7px; }
.gs-dotalone--key { display: inline-block; margin: 0 8px 1px 3px; }
.gs-tip { display: none; width: max-content; position: absolute; bottom: calc(100% - 6px); right: -6px; z-index: 2; flex-direction: column; gap: 3px; padding: 7px 9px; border-radius: 6px; background: #fff; color: var(--thonon-black); font: 700 12px/1.2 var(--font-mono); white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); }
.gs-tip b { font: 700 12px/1.2 var(--body-font); color: #3E454F; }
.gs-tip em { font: 600 12px/1 var(--body-font); font-style: normal; color: var(--thonon-blue); }
.gs-tip::after { content: ""; position: absolute; top: 100%; right: 6px; border: 5px solid transparent; border-top-color: #fff; }

@media (max-width: 1100px) {
    .gs-c3 { grid-column: span 6; }
    .gs-c4 { grid-column: span 6; }
    .gs-c6 { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .gk-tab { font-size: 14px; letter-spacing: 0.04em; padding: 0 10px; }
    .gk-tab__long { display: none; }
    .gk-tab__short { display: inline; }

    .gs-cover { padding: 11px 12px; gap: 12px 16px; }
    .gs-cover__sep { display: none; }
    .gs-cover__cells { flex-basis: 100%; }
    .gs-cell { height: 16px; padding: 0; font-size: 0; }
    .gs-part { margin: 20px 0 10px; gap: 8px; flex-wrap: wrap; }
    .gs-part__title { font-size: 15px; }
    .gs-part__rule { display: none; }
    .gs-part__src { flex-basis: 100%; white-space: normal; }
    .gs-grid { gap: 10px; }
    .gs-grid > * { grid-column: 1 / -1; }
    .gs-headr { flex-wrap: wrap; gap: 10px; }
    .gs-halves { gap: 6px; }
    .gs-half { flex-direction: column; align-items: flex-start; gap: 7px; padding: 8px 9px; }
    .gs-half__score { font-size: 13px; }
    .gs-plot { gap: 6px; height: 130px; }
    .gs-plot__half, .gs-axis__half { gap: 3px; }
    .gs-col { gap: 1px; }
    .gs-bar__v { display: none; }
    .gs-axis { gap: 6px; }
    .gs-axis__half { min-width: 0; }
    .gs-axis__t { font-size: 12px; letter-spacing: 0; white-space: normal; text-align: center; overflow-wrap: anywhere; }
    .gs-axis__d { font-size: 12px; letter-spacing: -0.04em; }
    .gs-gk { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .gs-tiles3 { grid-template-columns: minmax(0, 1fr); }
    .gs-ext { grid-template-columns: minmax(0, 1fr); }
    .gs-last { gap: 3px; }
    .gs-last__res { width: 24px; height: 24px; }
    .gs-tbl--keepers { grid-template-columns: minmax(0, 1fr) 46px 46px 44px 68px; }

    .gs-rates { display: none; }
    .gs-deskonly { display: none; }
    .gs-mobonly { display: inline-flex; align-items: center; }
    .gs-dotalone { display: block; }
    .gs-dotalone--key { display: inline-block; }
    .gs-tip { display: flex; }
    .gs-rates__key { flex-direction: column; align-items: flex-start; gap: 6px; }
    .gk-bars--dense .gk-bars__axis span:nth-child(even) { visibility: hidden; }
}


/* ── A team's page ────────────────────────────────────────────────────────────────────────────
   The page's frame, the team's banner over five tabs, each tab the whole width. Scoped to the
   team page: the player, match and opponent pages still read the rules above. */

.gk--team {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 32px 40px 56px;
}

.gk--team .gk-body--full { padding: 0; display: flex; flex-direction: column; gap: 24px; }

/* The banner: the code, the name, the line; the figures on the right. */
.gk-banner__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 24px;
}

.gk-banner__code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 84px;
    height: 72px;
    padding: 0 12px;
    border: 1px solid var(--dark-border-2);
    border-radius: var(--radius-card);
    background: var(--thonon-black);
    font: 400 30px/1 var(--font-display);
    color: var(--thonon-yellow);
}

.gk-banner__text {
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.gk-banner__line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 15px;
    color: var(--dark-fg-2);
}

.gk-banner__mine {
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(240, 192, 48, 0.14);
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--thonon-yellow);
}

.gk-banner__tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

.gk-banner__tiles > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 84px;
    padding: 10px 14px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: rgba(10, 10, 12, 0.55);
}

.gk-banner__tiles b {
    font: 400 26px/1 var(--font-display);
}

.gk-banner__tiles b sup {
    font: 800 14px/0 var(--font-condensed);
    vertical-align: super;
}

.gk-banner__tiles span {
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-banner__results { display: flex; gap: 4px; }

/* Effectif: three cards first — the next match yellow, the top scorer, the goalkeepers. */
.gk-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gk-hl {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
}

.gk-hl--next {
    border-color: var(--thonon-yellow-deep);
    background: linear-gradient(0deg, rgba(240, 192, 48, 0.06), rgba(240, 192, 48, 0.06)), var(--thonon-night);
}

.gk-hl__title {
    margin: 0;
    font: 700 13px/1.2 var(--font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-hl--next .gk-hl__title { color: var(--thonon-yellow); }

.gk-hl__time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.gk-hl__time b { font: 400 52px/1 var(--font-display); }
.gk-hl__time span { font-size: 14px; color: var(--dark-fg-2); }
.gk-hl__teams { margin: 0; font-size: 18px; font-weight: 600; }

.gk-hl__figure { display: flex; align-items: center; gap: 16px; }
.gk-hl__figure b { font: 400 52px/1 var(--font-display); }
.gk-hl__figure .gk-hl__yellow { color: var(--thonon-yellow); }
.gk-hl__figure .gk-hl__blue { color: var(--thonon-blue-bright); }
.gk-hl__figure span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gk-hl__figure strong { font-size: 16px; font-weight: 600; }
.gk-hl__figure small { font-size: 14px; color: var(--dark-fg-2); }

.gk-hl__bar { display: block; height: 6px; border-radius: 3px; background: var(--thonon-graphite); overflow: hidden; }
.gk-hl__bar i { display: block; height: 100%; background: var(--thonon-yellow); }

.gk-side {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 24px;
    padding: 2px 10px;
    border-radius: 999px;
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.gk-side--home { background: var(--thonon-yellow); color: var(--thonon-black); }
.gk-side--away { background: var(--thonon-blue); color: #fff; }

.gk--team .gk-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.gk--team .gk-section__title {
    margin: 0;
    font: 800 20px/1.1 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.gk--team .gk-section__count {
    margin-left: 6px;
    font: 700 16px/1 var(--font-mono);
    letter-spacing: 0;
    color: var(--thonon-yellow);
}

.gk-chip {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--dark-border-2);
    border-radius: 999px;
    background: transparent;
    color: var(--dark-fg-2);
    font: 700 14px/1 var(--font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.gk-chip--on { border-color: #fff; background: #fff; color: var(--thonon-black); }

.gk-family { display: flex; flex-direction: column; gap: 12px; }

.gk-family__title {
    margin: 0;
    font: 700 13px/1.2 var(--font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-family__title span { margin-left: 4px; color: var(--dark-fg-2); }

.gk--team .gk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

/* A player: the number in the display face, the name and position, then three figures with bars. */
.gk--team .gk-player {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
    box-shadow: none;
    color: inherit;
    text-decoration: none;
}

.gk--team .gk-player:hover { border-color: var(--dark-border-2); }

.gk--team .gk-player--top {
    border-color: var(--thonon-yellow-deep);
    background: linear-gradient(0deg, rgba(240, 192, 48, 0.06), rgba(240, 192, 48, 0.06)), var(--thonon-night);
}

.gk--team .gk-player--me { box-shadow: inset 0 0 0 1px var(--thonon-yellow-deep); }

.gk-player__head { display: flex; align-items: center; gap: 14px; }

.gk-player__number {
    flex: none;
    min-width: 44px;
    font: 400 34px/1 var(--font-display);
    color: var(--thonon-blue-bright);
}

.gk--team .gk-player--top .gk-player__number { color: var(--thonon-yellow); }
.gk--team .gk-player__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gk--team .gk-player__name { font-size: 16px; font-weight: 600; color: #fff; }
.gk--team .gk-player__pos { font: 400 13px/1.3 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--dark-fg-2); }
.gk--team .gk-player__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

.gk--team .gk-badge {
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(240, 192, 48, 0.14);
    font: 700 12px/1.2 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--thonon-yellow);
}

.gk--team .gk-badge--me { background: var(--thonon-yellow); color: var(--thonon-black); }
.gk--team .gk-badge--bad { background: rgba(240, 32, 48, 0.16); color: #FF8A93; }

.gk--team .gk-player__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--dark-border-1);
}

.gk--team .gk-stat { display: flex; flex-direction: column; gap: 6px; }

.gk--team .gk-stat__label {
    font: 700 12px/1 var(--font-condensed);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk--team .gk-stat__value { font: 700 15px/1 var(--font-mono); color: #fff; }
.gk-stat__bar { display: block; height: 4px; border-radius: 2px; background: var(--thonon-graphite); overflow: hidden; }
.gk-stat__bar i { display: block; height: 100%; background: var(--thonon-blue-bright); }
.gk--team .gk-player--top .gk-stat:first-child .gk-stat__bar i { background: var(--thonon-yellow); }
.gk-stat--presence .gk-stat__bar i { background: var(--dark-fg-3); }

.gk--team .gk-note { margin: 0; font-size: 13px; color: var(--dark-fg-3); }

/* Under the roster: the coaches and the trainings. */
.gk-around {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.gk-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
}

.gk-reading p { margin: 0; font-size: 14px; color: var(--dark-fg-2); }

.gk--team .gk-railrow { min-height: 56px; }
.gk--team .gk-railrow__main { font-size: 16px; }
.gk--team .gk-railrow__sub { font-size: 14px; }

/* A training slot, ruled in its hall's colour (the left rule is the gymnasiums'). */
.gk-slot {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 14px 8px 16px;
    background: color-mix(in srgb, var(--hall-c) 16%, var(--thonon-night));
    box-shadow: inset 3px 0 0 var(--hall-c);
}

.gk-slot__day { font: 800 15px/1 var(--font-condensed); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-fg-2); }
.gk-slot__time { display: flex; flex-direction: column; gap: 2px; font: 700 18px/1.2 var(--font-condensed); }
.gk-slot__time small { font: 400 13px/1.3 var(--font-body); color: var(--dark-fg-2); }

/* Calendrier: one table, played then to come, the next match framed in yellow. */
.gk--team .gk-fixtures {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
    overflow: hidden;
}

.gk-fixtures__group {
    padding: 12px 20px;
    border-top: 1px solid var(--dark-border-1);
    background: var(--thonon-surface-2);
    font: 700 13px/1.2 var(--font-condensed);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dark-fg-3);
}

.gk-fixtures__group:first-child { border-top: 0; }

.gk--team .gk-fixture {
    display: grid;
    grid-template-columns: 64px 130px minmax(0, 1fr) auto 140px;
    align-items: center;
    gap: 16px;
    min-height: 60px;
    padding: 10px 20px;
    border: 0;
    border-top: 1px solid var(--dark-border-1);
    border-radius: 0;
    background: none;
    color: inherit;
    text-decoration: none;
}

.gk--team .gk-fixture:hover { background: var(--thonon-surface-2); }
.gk--team .gk-fixture--next { box-shadow: inset 0 0 0 1px var(--thonon-yellow-deep); background: rgba(240, 192, 48, 0.06); }
.gk--team .gk-fixture__day { font: 800 15px/1 var(--font-condensed); color: #fff; }
.gk--team .gk-fixture__date { font-size: 15px; color: var(--dark-fg-2); }
.gk--team .gk-fixture__opponent { font-size: 16px; font-weight: 600; }
.gk-fixture__pills { display: flex; gap: 6px; justify-content: flex-end; }
.gk-fixture__end { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.gk--team .gk-fixture__score,
.gk--team .gk-fixture__time,
.gk--team .gk-fixture__tally { font: 700 18px/1 var(--font-mono); color: #fff; }
.gk--team .gk-fixture--exempt { color: var(--dark-fg-3); }
.gk--team .gk-fixture--plateau { align-items: start; }

/* Résultats: a match of the poule on the same table. The calendar's columns above would squeeze both
   sides into its 130px opponent column: the names take what room there is, up to a reading width,
   the badge stays beside the scores and the chevron at the edge. */
.gk--team .gk-fixture--pair { grid-template-columns: 64px minmax(0, 520px) 28px minmax(0, 1fr) 16px; }
.gk--team .gk-fixture--pair .gk-fixture__go { grid-column: 5; }
.gk--team .gk-fixture--pair.gk-fixture--us { background: rgba(240, 192, 48, 0.07); }
.gk--team .gk-fixture--pair.gk-fixture--us:hover { background: rgba(240, 192, 48, 0.11); }
.gk--team .gk-pair__side { font-size: 15px; }

@media (max-width: 1099px) {
    .gk--team { gap: 24px; padding: 24px 24px 40px; }
    .gk--team .gk-fixture--pair { grid-template-columns: 56px minmax(0, 1fr) 28px 16px; }
    .gk--team .gk-fixture--pair .gk-fixture__go { grid-column: auto; }
    .gk-banner__tiles { margin-left: 0; }
    .gk-highlights { grid-template-columns: minmax(0, 1fr); }
    .gk--team .gk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gk--team .gk-fixture { grid-template-columns: 56px 110px minmax(0, 1fr) auto; }
    .gk--team .gk-fixture__end { grid-column: 4; }
    .gk--team .gk-fixture__pills { display: none; }
}

@media (max-width: 699px) {
    .gk--team { gap: 22px; padding: 20px 16px 32px; }
    .gk--team .gk-grid,
    .gk-around { grid-template-columns: minmax(0, 1fr); }
    .gk--team .gk-fixture {
        grid-template-columns: 48px minmax(0, 1fr) auto;
        grid-template-areas: "day who end" "day date end";
        row-gap: 2px;
        padding: 10px 16px;
    }
    .gk--team .gk-fixture__day { grid-area: day; }
    .gk--team .gk-fixture__date { grid-area: date; font-size: 13px; }
    .gk--team .gk-fixture__opponent,
    .gk--team .gk-fixture__who { grid-area: who; }
    .gk--team .gk-fixture__end { grid-area: end; grid-column: auto; }
    .gk--team .gk-fixture--pair {
        grid-template-columns: 52px minmax(0, 1fr) 24px;
        grid-template-areas: none;
    }
    .gk--team .gk-fixture--pair .gk-fixture__go { display: none; }
    .gk--team .gk-pair__side { font-size: 13px; gap: 8px; }
    .gk-banner__code { min-width: 64px; height: 56px; font-size: 24px; }
    .gk-banner__tiles { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gk-banner__form { grid-column: 1 / -1; flex-direction: row !important; align-items: center; justify-content: space-between; }
}


/* ── A match's page ─────────────────────────────────────────────────────────────
   The page's frame, the way back above the score's banner, « Le match » in two columns. */

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

.gk--matchpage {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 40px 56px;
}

.gk--matchpage .gk-backbar { padding: 0; border-bottom: 0; }
.gk--matchpage .gk-back { font: 700 13px/1 var(--font-condensed); letter-spacing: 0.18em; text-transform: uppercase; color: var(--thonon-yellow); min-height: 32px; }

.gk--matchpage .gk-mhero {
    padding: 28px 28px 32px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background:
        linear-gradient(105deg, rgba(16, 128, 192, 0.30) 0%, rgba(16, 128, 192, 0.08) 45%, rgba(10, 10, 12, 0) 70%),
        var(--thonon-night);
    box-shadow: inset 0 -4px 0 var(--thonon-yellow);
}

.gk--matchpage .gk-tabs--match .gk-tab { font-size: 15px; }
.gk--matchpage .gk-match-body { padding: 0; gap: 24px; }

.gk-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.gk-match__main,
.gk-match__rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* Thonon in blue, the opponent in grey, everywhere in the match. */
.gk--matchpage .gk-mhero__score > span:first-child { color: var(--thonon-blue-bright); }

/* The three moments under the score chart. */
.gk-moments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.gk-moment {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-black);
}

.gk-moment b { font: 700 18px/1 var(--font-mono); }
.gk-moment span { font-size: 14px; color: var(--dark-fg-2); }

.gk-feed__more { width: 100%; margin-top: 12px; }

@media (max-width: 1099px) {
    .gk--matchpage { gap: 22px; padding: 24px 24px 40px; }
    .gk-match { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 699px) {
    .gk--matchpage { padding: 20px 16px 32px; }
    .gk-moments { grid-template-columns: minmax(0, 1fr); }
}


/* ── A player's page: the page's frame and its banner ── */

.gk--player {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 40px 56px;
}

.gk--player .gk-backbar,
.gk--opponent .gk-backbar { padding: 0; border-bottom: 0; }

.gk--player .gk-back,
.gk--opponent .gk-back {
    min-height: 32px;
    font: 700 13px/1 var(--font-condensed);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--thonon-yellow);
}

.gk--player .gk-backbar__nav { display: flex; gap: 8px; }

/* The jersey number, as large as a team's code. */
.gk-banner__code--number { min-width: 96px; height: 96px; font-size: 52px; }

.gk--player .gk-banner__tiles b { font-size: 24px; }

@media (max-width: 1099px) {
    .gk--player { gap: 22px; padding: 24px 24px 40px; }
}

@media (max-width: 699px) {
    .gk--player { padding: 20px 16px 32px; }
    .gk--player .gk-backbar { flex-wrap: wrap; }
    .gk-banner__code--number { min-width: 72px; height: 72px; font-size: 38px; }
    .gk--player .gk-banner__tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ── An opponent's page: the frame and the banner ── */

.gk--opponent {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px 40px 56px;
}

.gk--opponent .gk-ohero {
    padding: 28px 28px 32px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background:
        linear-gradient(105deg, rgba(16, 128, 192, 0.30) 0%, rgba(16, 128, 192, 0.08) 45%, rgba(10, 10, 12, 0) 70%),
        var(--thonon-night);
    box-shadow: inset 0 -4px 0 var(--thonon-yellow);
}

.gk--opponent .gk-ohero::before { display: none; }

/* A title in Barlow Condensed 800, accents kept. */
.gk--opponent .gk-ohero__name {
    font: 800 48px/1 var(--font-condensed);
    text-transform: uppercase;
}

.gk--opponent .gk-eyebrow { font-size: 13px; color: var(--thonon-yellow); }
.gk--opponent .gk-ohero__line { font-size: 15px; }

@media (max-width: 1099px) {
    .gk--opponent { gap: 22px; padding: 24px 24px 40px; }
    .gk--opponent .gk-ohero__name { font-size: 40px; }
}

@media (max-width: 699px) {
    .gk--opponent { padding: 20px 16px 32px; }
    .gk--opponent .gk-ohero { padding: 20px 18px 24px; }
    .gk--opponent .gk-ohero__name { font-size: 32px; }
}

/* A slot of the week (Shared/HallSlot): the day, the hours, the hall's code at the right. */
.gk-slots { display: flex; flex-direction: column; gap: 6px; }
.gk-slot--code { grid-template-columns: 52px minmax(0, 1fr) auto; }
a.gk-slot { color: inherit; text-decoration: none; }
a.gk-slot:hover { background: color-mix(in srgb, var(--hall-c) 26%, var(--thonon-night)); }
.gk-slot__code { font: 700 13px var(--font-mono); color: color-mix(in srgb, var(--hall-c) 78%, #fff); }
.gk-slot--match { box-shadow: inset 3px 0 0 var(--hall-c), inset 0 -3px 0 var(--thonon-yellow); }
.gk-slot--current { outline: 1.5px solid var(--thonon-yellow); outline-offset: -1.5px; }
.gk-slot--off .gk-slot__time { color: var(--dark-fg-3); text-decoration: line-through; }

/* The squad's choice to show or hide its individual season figures (IndividualStatsSwitch), on a
   team's « Statistiques » tab and on the squad's administration page. Its « Revenir au défaut » is a
   button drawn as a .gc-link. */
.gk-indiv-switch { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.gk-indiv-switch button.gc-link { padding: 0; border: 0; background: none; cursor: pointer; }
.gk-indiv-switch button.gc-link:disabled { cursor: default; opacity: 0.6; }
.gk-indiv-switch__error { color: #FF8A93; }
