/* ==========================================================================
   AAF-Batu — local design system
   Palette: futsal-court neutrals with a pitch-green brand and amber accent.
   No external fonts, no CDN — everything ships from this file.
   ========================================================================== */

:root {
    --ink: #17211c;
    --ink-soft: #2f3a34;
    --muted: #5f6b64;
    --muted-light: #636d67;
    --line: #dfe4e0;
    --line-strong: #c8d0cb;
    --surface: #ffffff;
    --canvas: #f4f6f4;
    --canvas-2: #ecefec;

    --brand: #0f5132;
    --brand-700: #0a3f27;
    --brand-50: #e7f1eb;
    --brand-100: #cfe3d7;

    --accent: #f0a202;
    --accent-soft: #fdf1d6;

    --danger: #b3261e;
    --danger-soft: #fbeaea;
    --warning: #a15c07;
    --warning-soft: #fdf0dd;
    --info: #1d4ed8;
    --info-soft: #e9eefc;
    --success: #146c43;
    --success-soft: #e6f3ec;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(23, 33, 28, .06);
    --shadow: 0 8px 24px rgba(23, 33, 28, .08);
    --shadow-lg: 0 20px 48px rgba(23, 33, 28, .12);

    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --sidebar: 264px;
    --header-h: 68px;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--canvas);
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.25; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }
small { font-size: .82rem; }
code, pre { font-family: var(--mono); font-size: .85rem; }
pre { background: var(--canvas-2); padding: 1rem; border-radius: var(--radius); overflow: auto; }

hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* Focus ring: dark green on light surfaces (>11:1), amber on the dark shells
   (>5:1). Amber on white was only 2.1:1 and failed WCAG 1.4.11. */
:focus-visible {
    outline: 3px solid var(--brand-700);
    outline-offset: 2px;
}

.topbar :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.sidebar :focus-visible,
.auth-aside :focus-visible,
.btn--primary:focus-visible,
.btn--danger:focus-visible,
.filter-list a.is-active:focus-visible {
    outline-color: var(--accent);
}

/* ---------- Layout ---------- */
.container {
    width: min(1180px, 100% - 2.5rem);
    margin-inline: auto;
}
.container--narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }

.section { padding: 3rem 0; }
.section--tight { padding: 2rem 0; }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-rail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.layout-rail > * { min-width: 0; }
.layout-rail--left { grid-template-columns: 320px minmax(0, 1fr); }

.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.spacer { flex: 1 1 auto; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.text-muted { color: var(--muted); }
.text-sm { font-size: .85rem; }
.text-xs { font-size: .78rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); letter-spacing: .02em; overflow-wrap: anywhere; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The skip link must become visible once it takes focus. */
.sr-only:focus,
.sr-only:focus-visible {
    position: fixed; top: .75rem; left: .75rem; z-index: 300;
    width: auto; height: auto; margin: 0; padding: .6rem 1rem;
    clip: auto; overflow: visible; white-space: nowrap;
    background: var(--brand-700); color: #fff; font-weight: 700; font-size: .88rem;
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}

body.is-drawer-open { overflow: hidden; }

/* ---------- Top bar / header ---------- */
.topbar {
    background: var(--ink);
    color: #d9e2dc;
    font-size: .8rem;
}
.topbar__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: #eef3f0; }
.topbar__links { display: flex; align-items: center; gap: 1rem; }

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 40;
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark {
    width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(145deg, var(--brand), var(--brand-700));
    color: #fff; display: grid; place-items: center;
    font-weight: 800; letter-spacing: -.04em; font-size: .95rem;
    box-shadow: var(--shadow-sm);
}
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.1; }
.brand__tag { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav__item { position: relative; }
.nav__link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .55rem .8rem; border-radius: var(--radius-sm);
    color: var(--ink-soft); font-weight: 600; font-size: .9rem;
    background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__link:hover, .nav__link:focus-visible { background: var(--brand-50); color: var(--brand-700); text-decoration: none; }
.nav__link.is-active { color: var(--brand-700); background: var(--brand-50); }
.nav__caret { font-size: .65rem; color: var(--muted); }
.nav__menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: .4rem; display: none;
}
.nav__item.is-open > .nav__menu { display: block; }
@media (hover: hover) and (pointer: fine) {
    .nav__item:hover > .nav__menu { display: block; }
}
.nav__menu a {
    display: block; padding: .5rem .7rem; border-radius: var(--radius-sm);
    color: var(--ink-soft); font-size: .88rem; font-weight: 500;
}
.nav__menu a:hover { background: var(--brand-50); text-decoration: none; }
.nav__menu-head { padding: .4rem .7rem .25rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.nav-toggle,
.btn.nav-toggle { display: none; }
.btn.nav-toggle[aria-expanded="true"] { background: var(--brand-50); color: var(--brand-700); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .8rem; color: var(--muted); padding: 1rem 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--muted-light); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Page title ---------- */
.page-head { padding: 1.5rem 0 2rem; }
.page-head h1 { margin-bottom: .35rem; }
.page-head p { color: var(--muted); max-width: 65ch; margin: 0; }
.page-head__eyebrow {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--brand);
    background: var(--brand-50); border-radius: 999px; padding: .2rem .65rem; margin-bottom: .6rem;
}

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(1200px 400px at 85% -20%, rgba(240, 162, 2, .22), transparent 60%),
        linear-gradient(150deg, var(--brand-700), var(--brand) 55%, #14603c);
    color: #f2f7f4;
    padding: 4rem 0 3.5rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; }
.hero p { color: #d7e5dc; max-width: 62ch; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.hero__eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }
.goals { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem; counter-reset: goal; }
.goals li { counter-increment: goal; display: grid; grid-template-columns: 30px 1fr; gap: .75rem; color: #e3ede7; font-size: .92rem; }
.goals li::before {
    content: counter(goal);
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(240, 162, 2, .18); color: var(--accent);
    display: grid; place-items: center; font-weight: 800; font-size: .8rem;
    border: 1px solid rgba(240, 162, 2, .45);
}
.hero__aside {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}
.hero__aside h2 { color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.card__head {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.card__head h2, .card__head h3 { margin: 0; font-size: 1.02rem; }
.card__head p { margin: .15rem 0 0; color: var(--muted); font-size: .82rem; }
.card__body { padding: 1.35rem; }
.card__body--tight { padding: 1rem 1.35rem; }
.card__foot {
    padding: .85rem 1.35rem; border-top: 1px solid var(--line);
    background: var(--canvas); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    font-size: .82rem; color: var(--muted);
}

.post-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-100), var(--brand-50)); display: grid; place-items: center; color: var(--brand); font-size: 1.6rem; }
.post-card__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: .5rem; font-size: .72rem; color: var(--muted); flex-wrap: wrap; }
.post-card h3 { font-size: 1.02rem; margin: 0; }
.post-card h3 a { color: var(--ink); }
.post-card__foot { margin-top: auto; display: flex; gap: 1rem; font-size: .75rem; color: var(--muted); padding-top: .5rem; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.stat__label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.stat__value { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand-700); line-height: 1.2; }
.stat__hint { font-size: .76rem; color: var(--muted); }

/* ---------- Chips & badges ---------- */
.chip {
    display: inline-flex; align-items: center; gap: .3rem;
    background: var(--brand-50); color: var(--brand-700);
    border-radius: 999px; padding: .18rem .6rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.chip--accent { background: var(--accent-soft); color: #7a5200; }

.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    border-radius: 999px; padding: .16rem .6rem;
    font-size: .72rem; font-weight: 700; line-height: 1.5;
    border: 1px solid transparent; white-space: nowrap;
}
.badge--success { background: var(--success-soft); color: var(--success); border-color: #b7dcc9; }
.badge--warning { background: var(--warning-soft); color: var(--warning); border-color: #f0d9b5; }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: #f2c6c2; }
.badge--info { background: var(--info-soft); color: var(--info); border-color: #c7d4f7; }
.badge--muted { background: var(--canvas-2); color: var(--muted); border-color: var(--line-strong); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .55rem 1rem; border-radius: var(--radius-sm);
    font: inherit; font-weight: 600; font-size: .88rem; line-height: 1.2;
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
    background: var(--canvas-2); color: var(--ink); transition: filter .12s ease;
}
.btn:hover { text-decoration: none; filter: brightness(.96); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); }
.btn--accent { background: var(--accent); color: #2b1d00; }
.btn--outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger-ghost { background: transparent; color: var(--danger); border-color: #e6b6b2; }
.btn--sm { padding: .35rem .65rem; font-size: .78rem; }
.btn--block { width: 100%; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field__label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.field__label .req { color: var(--danger); }
.field__hint { font-size: .76rem; color: var(--muted); }
.field__error { font-size: .78rem; color: var(--danger); font-weight: 600; }

.input, .select, .textarea {
    width: 100%; font: inherit; font-size: .9rem; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); padding: .55rem .7rem;
    transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 81, 50, .18);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.textarea { min-height: 110px; resize: vertical; }
.input--sm { padding: .35rem .5rem; font-size: .82rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .field--full { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0 0 1.25rem; }
legend { padding: 0 .4rem; font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); }
.checkbox { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; }
.checkbox input { margin-top: .25rem; }
.file-drop {
    border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
    padding: 1rem; background: var(--canvas); font-size: .82rem; color: var(--muted);
}
.file-drop input[type="file"] { display: block; margin-top: .5rem; width: 100%; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th, .table td { padding: .7rem .8rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.table th {
    background: var(--canvas); color: var(--muted);
    font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
    white-space: nowrap; position: sticky; top: 0;
}
.table tbody tr:hover { background: #fafbfa; }
.table tbody tr:last-child td { border-bottom: 0; }
.table--compact th, .table--compact td { padding: .5rem .6rem; }
.table__actions { display: flex; gap: .4rem; justify-content: flex-end; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-empty { padding: 2rem; text-align: center; color: var(--muted); }

/* ---------- Lists ---------- */
.kv { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.kv li { display: grid; grid-template-columns: 148px 1fr; gap: .75rem; font-size: .88rem; padding-bottom: .55rem; border-bottom: 1px dashed var(--line); }
.kv li:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt, .kv .k { color: var(--muted); font-size: .8rem; }
.kv .v { color: var(--ink); font-weight: 600; word-break: break-word; }

.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .85rem; }
.meta-list li { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.meta-list .k { color: var(--muted); font-size: .78rem; }
.meta-list .v { font-weight: 700; text-align: right; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tabs a {
    padding: .65rem 1rem; font-weight: 700; font-size: .86rem; color: var(--muted);
    border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs a:hover { color: var(--brand); text-decoration: none; }
.tabs a.is-active { color: var(--brand-700); border-bottom-color: var(--brand); }

/* ---------- Alerts ---------- */
.alert { border-radius: var(--radius); padding: .85rem 1rem; font-size: .87rem; border: 1px solid; margin-bottom: 1rem; }
.alert--success { background: var(--success-soft); color: var(--success); border-color: #b7dcc9; }
.alert--danger { background: var(--danger-soft); color: var(--danger); border-color: #f2c6c2; }
.alert--info { background: var(--info-soft); color: var(--info); border-color: #c7d4f7; }
.alert--warning { background: var(--warning-soft); color: var(--warning); border-color: #f0d9b5; }
.alert ul { margin: .35rem 0 0; padding-left: 1.1rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.pagination li a, .pagination li span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; padding: 0 .55rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink-soft); font-size: .82rem; font-weight: 600;
}
.pagination li a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination li.is-active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination li.is-disabled span { color: var(--muted-light); background: var(--canvas); }

/* ---------- Sidebar filter ---------- */
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list a {
    display: flex; justify-content: space-between; gap: .5rem;
    padding: .5rem .7rem; border-radius: var(--radius-sm); font-size: .85rem; color: var(--ink-soft);
}
.filter-list a:hover { background: var(--brand-50); text-decoration: none; }
.filter-list a.is-active { background: var(--brand); color: #fff; }
.filter-list a.is-active .count { color: rgba(255, 255, 255, .8); }
.filter-list .count { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }

/* ---------- Calendar / agenda ---------- */
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.agenda li { display: grid; grid-template-columns: 48px 1fr; gap: .75rem; align-items: center; }
.agenda__date {
    background: var(--brand-50); color: var(--brand-700); border-radius: var(--radius-sm);
    text-align: center; padding: .35rem 0; line-height: 1.1;
}
.agenda__date b { display: block; font-size: 1.1rem; }
.agenda__date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c6bf; margin-top: 3rem; padding: 2.5rem 0 1.5rem; font-size: .85rem; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.site-footer a { color: #d8e2dc; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer__bottom { border-top: 1px solid #2c3a33; margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }

/* ---------- Article body ---------- */
.article { max-width: 760px; }
.article__body { font-size: 1rem; line-height: 1.75; }
.article__body h3 { margin-top: 1.75rem; }
.article__body ul, .article__body ol { padding-left: 1.25rem; }
.article__body img { border-radius: var(--radius); margin: 1rem 0; }
.article__body table { width: 100%; border-collapse: collapse; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: .5rem .65rem; }

/* ---------- Auth ---------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); }
.auth-aside {
    background: linear-gradient(160deg, var(--brand-700), var(--brand) 60%, #145c39);
    color: #e5efe8; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
}
.auth-aside h2 { color: #fff; font-size: 1.7rem; max-width: 18ch; }
.auth-aside p { color: #cfe0d6; max-width: 38ch; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 1.5rem; }
.auth-hint { background: var(--canvas); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: .75rem .9rem; font-size: .78rem; color: var(--muted); }

/* ---------- Dashboard shell ---------- */
.sidebar-backdrop {
    position: fixed; inset: 0; z-index: 55; display: none;
    background: rgba(23, 33, 28, .55); border: 0;
}
.sidebar-backdrop.is-open { display: block; }

.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    background: var(--ink); color: #c6d3cb; display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar__brand { padding: 1.25rem 1.25rem .9rem; display: flex; align-items: center; gap: .7rem; border-bottom: 1px solid #2a3831; }
.sidebar__brand .brand__mark { width: 36px; height: 36px; border-radius: 10px; }
.sidebar__id { padding: .9rem 1.25rem; border-bottom: 1px solid #2a3831; }
.sidebar__id strong { display: block; color: #fff; font-size: .9rem; line-height: 1.25; }
.sidebar__id span { font-size: .75rem; color: #93a49a; }
.sidebar__search { padding: .8rem 1rem; }
.sidebar__search input {
    width: 100%; background: #22302a; border: 1px solid #33443b; color: #e8f0ea;
    border-radius: var(--radius-sm); padding: .45rem .65rem; font: inherit; font-size: .82rem;
}
.sidebar__search input::placeholder { color: #9aab9f; }
.sidebar__nav { padding: .5rem .7rem 1.5rem; display: flex; flex-direction: column; gap: .1rem; }
.sidebar__group { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #7f9187; padding: .9rem .55rem .35rem; }
.sidebar__link {
    display: flex; align-items: center; gap: .6rem; padding: .55rem .65rem;
    border-radius: var(--radius-sm); color: #c6d3cb; font-size: .86rem; font-weight: 500;
}
.sidebar__link:hover { background: #22302a; color: #fff; text-decoration: none; }
.sidebar__link.is-active { background: var(--brand); color: #fff; font-weight: 700; }
.sidebar__link .icon { width: 18px; text-align: center; opacity: .85; }
.sidebar__foot { margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid #2a3831; font-size: .72rem; color: #7f9187; }

.shell__main { display: flex; flex-direction: column; min-width: 0; background: var(--canvas); }
.topnav {
    min-height: 60px; background: var(--surface); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .5rem 1.5rem; position: sticky; top: 0; z-index: 30; flex-wrap: wrap;
}
.topnav__left { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 1 1 auto; }
.topnav__crumb { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topnav__right { display: flex; align-items: center; gap: .75rem; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--brand-50); color: var(--brand-700);
    display: grid; place-items: center; font-weight: 800; font-size: .8rem;
    border: 1px solid var(--brand-100);
}
.user-menu { position: relative; }
.user-menu__panel {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: .4rem; display: none; z-index: 50;
}
.user-menu.is-open .user-menu__panel { display: block; }
@media (hover: hover) and (pointer: fine) {
    .user-menu:hover .user-menu__panel { display: block; }
}
.user-menu__panel a, .user-menu__panel button {
    display: block; width: 100%; text-align: left; padding: .5rem .65rem;
    border-radius: var(--radius-sm); background: none; border: 0; font: inherit; font-size: .85rem;
    color: var(--ink-soft); cursor: pointer;
}
.user-menu__panel a:hover, .user-menu__panel button:hover { background: var(--brand-50); text-decoration: none; }
.user-menu__head { padding: .5rem .65rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.user-menu__head strong { display: block; font-size: .85rem; }
.user-menu__head span { font-size: .75rem; color: var(--muted); }

.content { padding: 1.75rem 1.5rem 2.5rem; max-width: 1320px; width: 100%; margin-inline: auto; }
.content__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.content__head h1 { margin-bottom: .2rem; font-size: 1.55rem; }
.content__head p { margin: 0; color: var(--muted); font-size: .88rem; }
.content__foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .76rem; color: var(--muted); }

.page-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 2.5rem 1.5rem; color: var(--muted); }
.empty-state h3 { color: var(--ink); font-size: 1rem; margin-bottom: .35rem; }
.empty-state p { max-width: 46ch; margin: 0 auto .9rem; font-size: .87rem; }

.pill-row { display: flex; gap: .4rem; flex-wrap: wrap; }

.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.doc-item {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .7rem;
    font-size: .82rem; background: var(--surface);
}
.doc-item.is-missing { border-color: #f2c6c2; background: var(--danger-soft); color: var(--danger); }

.progress { height: 8px; border-radius: 999px; background: var(--canvas-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.timeline li { display: grid; grid-template-columns: 12px 1fr; gap: .75rem; position: relative; padding-bottom: .25rem; }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); margin-top: .4rem; }
.timeline li:not(:last-child)::after {
    content: ""; position: absolute; left: 4.5px; top: 1.3rem; bottom: -.4rem; width: 1px; background: var(--line-strong);
}

.scoreline { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .05em; }

/* ---------- Fixture list (match cards) ---------- */
.fx-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.75rem;
}
.fx {
    display: grid; grid-template-columns: minmax(0, 1fr) 94px;
    border-top: 1px solid var(--line); transition: background .12s ease;
}
.fx:nth-child(1), .fx:nth-child(2) { border-top: 0; }
.fx:hover { background: #fafbfa; }

.fx__teams {
    display: grid; gap: .3rem; align-content: center;
    padding: .65rem .5rem .65rem 0; min-width: 0;
}
.fx__team {
    display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: .55rem;
    font-size: .88rem; color: var(--ink-soft);
}
.fx__team.is-winner { color: var(--ink); font-weight: 700; }
.fx__team.is-loser { color: var(--muted); }
.fx__crest {
    width: 22px; height: 22px; border-radius: 6px; overflow: hidden;
    display: grid; place-items: center; border: 1px solid var(--line);
    background: var(--canvas-2); color: var(--muted);
    font-size: .64rem; font-weight: 800; line-height: 1;
}
.fx__crest svg { width: 13px; height: 13px; }
.fx__crest img { width: 100%; height: 100%; object-fit: contain; }
.fx__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx__score { font-variant-numeric: tabular-nums; font-weight: 700; }
.fx__meta {
    margin: .3rem 0 0; padding-left: calc(22px + .55rem);
    font-size: .74rem; color: var(--muted); line-height: 1.4;
}
.fx__state {
    border-left: 1px solid var(--line);
    display: grid; align-content: center; justify-items: center; gap: .1rem;
    padding: .5rem .35rem; text-align: center;
}
.fx__state-label { font-size: .78rem; font-weight: 700; color: var(--ink); }
.fx__state-date { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.fx--live .fx__state-label { color: var(--brand); }
.fx--cancelled .fx__state-label { color: var(--danger); }
.fx--scheduled .fx__state-label { font-weight: 600; color: var(--ink-soft); }
.fx-note { margin: 1rem 0 0; font-size: .76rem; color: var(--muted); }
.fx--link { color: inherit; }
.fx--link:hover { text-decoration: none; }

/* ---------- Match report (scoreboard, timeline, squads) ---------- */
.scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.scoreboard__side { display: grid; justify-items: center; gap: .4rem; text-align: center; min-width: 0; }
.scoreboard__crest {
    width: 56px; height: 56px; border-radius: 16px; overflow: hidden;
    display: grid; place-items: center;
    background: var(--canvas-2); border: 1px solid var(--line); color: var(--muted);
}
.scoreboard__crest svg { width: 30px; height: 30px; }
.scoreboard__crest img { width: 100%; height: 100%; object-fit: contain; }
.scoreboard__name { font-weight: 700; font-size: .95rem; color: var(--ink); max-width: 100%; overflow-wrap: break-word; }
.scoreboard__center { display: grid; justify-items: center; gap: .4rem; }
.scoreboard__line {
    display: flex; align-items: center; gap: .55rem; line-height: 1;
    font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums; color: var(--ink);
}
.scoreboard__line em { font-style: normal; font-size: 1.25rem; color: var(--muted-light); }
.scoreboard__line .is-winner { color: var(--brand-700); }
.scoreboard__foot { font-size: .76rem; color: var(--muted); }

/* Lini masa dua sisi: tuan rumah kiri, tamu kanan, menit di tengah. */
.tl__head {
    display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 1rem; align-items: center;
    padding-bottom: .55rem; margin-bottom: .35rem;
    border-bottom: 1px solid var(--line);
    font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted);
}
.tl__head > span:first-child { text-align: right; }
.tl__head > span:last-child { text-align: left; }
.tl__head-mid { text-align: center; }

.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before {
    content: ""; position: absolute; left: 50%; top: .35rem; bottom: .35rem;
    width: 1px; background: var(--line-strong);
}
.tl__row {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 1rem; align-items: center; padding: .45rem 0;
}
.tl__minute {
    position: relative; z-index: 1; justify-self: center;
    min-width: 44px; padding: .12rem .45rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums;
    color: var(--ink); text-align: center;
}
.tl__side { display: flex; align-items: center; gap: .5rem; min-width: 0; font-size: .86rem; }
.tl__side--home { justify-content: flex-end; text-align: right; }
.tl__side--away { justify-content: flex-start; text-align: left; }
.tl__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; color: var(--ink-soft); }
.tl__team { display: none; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tl__label { font-size: .76rem; color: var(--muted); }
.tl__note { font-size: .72rem; color: var(--muted-light); }
.tl__mark { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--muted-light); }
.tl__mark--goal, .tl__mark--penalty_goal { background: var(--brand); }
.tl__mark--own_goal { background: var(--danger); }
.tl__mark--yellow_card { background: var(--accent); }
.tl__mark--red_card { background: var(--danger); }
.tl__mark--substitution { background: var(--info); }

/* Susunan pemain: dua kolom dengan pembatas tipis. */
.squads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.squads__col + .squads__col { border-left: 1px solid var(--line); padding-left: 2rem; }
.squads__team {
    display: flex; align-items: center; gap: .55rem;
    margin: 0 0 .85rem; font-size: .95rem; font-weight: 800; line-height: 1.25;
}
.squads__crest {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; overflow: hidden;
    display: grid; place-items: center;
    background: var(--canvas-2); border: 1px solid var(--line); color: var(--muted);
}
.squads__crest svg { width: 14px; height: 14px; }
.squads__crest img { width: 100%; height: 100%; object-fit: contain; }

/* Statistik: nilai kiri/kanan dengan bar pembanding. */
.stats { display: grid; gap: .9rem; margin-top: .75rem; }
.stats__row { display: grid; gap: .3rem; }
.stats__values {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: baseline; font-size: .8rem; color: var(--muted);
}
.stats__values > span { text-align: center; }
.stats__values strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.stats__values strong:first-child { text-align: left; }
.stats__values strong:last-child { text-align: right; }
.stats__bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--canvas-2); }
.stats__bar-home { background: var(--brand); }
.stats__bar-away { background: var(--ink-soft); opacity: .35; }

.squad__title {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--muted); margin: .9rem 0 .4rem;
}
.squad__title:first-child { margin-top: 0; }
.squad { list-style: none; margin: 0 0 .35rem; padding: 0; }
.squad__row {
    display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center;
    gap: .6rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: .86rem;
}
.squad__row:last-child { border-bottom: 0; }
.squad__no {
    font-size: .74rem; font-weight: 700; color: var(--muted);
    font-variant-numeric: tabular-nums; text-align: center;
    background: var(--canvas-2); border-radius: 5px; padding: .1rem 0;
}
.squad__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rating {
    font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums;
    border-radius: 6px; padding: .1rem .45rem;
    background: var(--brand-50); color: var(--brand-700);
}
.rating--empty { background: var(--canvas-2); color: var(--muted); font-weight: 600; }

/* ---------- Player directory cards ---------- */
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1.1rem; }

.player-card {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.player-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.player-card__media {
    position: relative; aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    display: grid; place-items: center;
    color: var(--brand-700); font-size: 1.7rem; font-weight: 800; letter-spacing: .02em;
}
.player-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-card__shirt {
    position: absolute; right: .55rem; bottom: .55rem;
    background: var(--ink); color: #fff;
    border-radius: var(--radius-sm); padding: .05rem .45rem;
    font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums;
    box-shadow: var(--shadow-sm);
}

.player-card__body { padding: .8rem .95rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.player-card__name { font-size: .95rem; margin: 0; line-height: 1.3; }
.player-card__school { margin: 0; font-size: .78rem; color: var(--muted); }
.player-card__meta {
    display: flex; flex-wrap: wrap; gap: .25rem .55rem;
    font-size: .72rem; color: var(--muted); margin: .15rem 0 0;
}
.player-card__meta strong { color: var(--ink-soft); font-weight: 700; }

.player-card__squads { list-style: none; margin: .45rem 0 0; padding: .5rem 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: .25rem; }
.player-card__squad { display: flex; align-items: baseline; gap: .4rem; min-width: 0; font-size: .75rem; color: var(--ink-soft); }
.player-card__squad-no {
    flex: none; min-width: 1.5rem; text-align: center;
    background: var(--canvas-2); border-radius: 5px; padding: 0 .25rem;
    font-size: .7rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums;
}
.player-card__squad-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card__squad-pos { flex: none; color: var(--muted); font-size: .7rem; }

a.player-card { color: inherit; text-decoration: none; }
a.player-card:hover { text-decoration: none; }
a.player-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Player profile ---------- */
.player-hero {
    display: grid; grid-template-columns: 190px minmax(0, 1fr);
    gap: 1.5rem; align-items: center; padding: 1.25rem;
}
.player-hero__media {
    aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    display: grid; place-items: center;
    color: var(--brand-700); font-size: 2.4rem; font-weight: 800; letter-spacing: .03em;
}
.player-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.player-hero__body h1 { margin: 0 0 .25rem; font-size: 1.9rem; }
.player-hero__sub { margin: 0 0 .75rem; color: var(--muted); font-size: .9rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.gallery figure { margin: 0; }
.gallery img {
    width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
    border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.gallery figcaption { margin-top: .3rem; font-size: .72rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
    .layout-rail, .layout-rail--left { grid-template-columns: minmax(0, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .shell { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; inset: 0 auto 0 0; width: 272px; max-width: 82vw; z-index: 60;
        transform: translateX(-100%); transition: transform .2s ease;
    }
    .sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    /* Dashboard shells need their drawer button as soon as the sidebar is hidden. */
    .btn[data-sidebar-toggle] { display: inline-flex; }
}

/* The public menu collapses into a drawer once the links stop fitting. */
@media (max-width: 900px) {
    .btn.nav-toggle { display: inline-flex; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 45;
        display: none; flex-direction: column; align-items: stretch; gap: .1rem;
        background: var(--surface); border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        padding: .5rem .75rem .85rem;
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .nav.is-open { display: flex; }
    .nav__link { width: 100%; justify-content: space-between; padding: .7rem .6rem; font-size: .95rem; }
    .nav__menu {
        position: static; display: none; min-width: 0;
        border: 0; box-shadow: none; padding: 0 0 .4rem 1rem;
    }
    .nav__item.is-open > .nav__menu { display: block; }
    .nav__menu-head { padding-top: .2rem; }
    .nav__caret { transition: transform .15s ease; }
    .nav__item.is-open .nav__caret { transform: rotate(180deg); }
}

/* Two fixture columns only fit while the team names still have room. */
@media (max-width: 980px) {
    .fx-grid { grid-template-columns: minmax(0, 1fr); }
    .fx:nth-child(2) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
    h1 { font-size: 1.6rem; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .section { padding: 2rem 0; }
    .hero { padding: 2.5rem 0 2rem; }
    .content, .auth-main { padding: 1.25rem 1rem 2rem; }
    .topnav { padding: .5rem .85rem; }
    .user-menu__label { display: none; }
    .doc-grid { grid-template-columns: 1fr; }
    .kv li { grid-template-columns: 1fr; gap: .1rem; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .table th, .table td { padding: .55rem .55rem; }
    .hide-sm { display: none !important; }
}

@media (max-width: 480px) {
    .container, .container--narrow { width: min(1180px, 100% - 1.5rem); }
    .topbar__inner { justify-content: center; gap: .25rem .9rem; font-size: .74rem; }
    .site-header__inner { gap: .75rem; }
    .brand__tag { display: none; }
    .brand__name { font-size: .95rem; }
    .brand__mark { width: 36px; height: 36px; border-radius: 10px; font-size: .85rem; }
    .stat-grid { grid-template-columns: 1fr; }
    .tabs a { padding: .55rem .7rem; }
    .fx { grid-template-columns: minmax(0, 1fr) 74px; }
    .fx__state-date { font-size: .68rem; }
    .scoreboard__crest { width: 44px; height: 44px; border-radius: 12px; }
    .scoreboard__crest svg { width: 24px; height: 24px; }
    .scoreboard__line { font-size: 1.7rem; }
    .scoreboard__name { font-size: .85rem; }
    .scoreboard {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "home away" "center center";
        gap: .85rem;
    }
    .scoreboard > .scoreboard__side:first-child { grid-area: home; }
    .scoreboard > .scoreboard__center { grid-area: center; }
    .scoreboard > .scoreboard__side:last-child { grid-area: away; }
    .tl__head { display: none; }
    .tl::before { display: none; }
    .tl__row { grid-template-columns: 46px minmax(0, 1fr); gap: .7rem; }
    .tl__minute { grid-column: 1; grid-row: 1; }
    .tl__side { grid-column: 2; grid-row: 1; }
    .tl__side.is-empty { display: none; }
    .tl__side--home { justify-content: flex-start; text-align: left; }
    .tl__side--home .tl__mark { order: -1; }
    .tl__team { display: block; }
    .squads { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .squads__col + .squads__col {
        border-left: 0; padding-left: 0;
        border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.25rem;
    }
    .stats__values { grid-template-columns: 56px minmax(0, 1fr) 56px; }
    .player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .player-card__media { font-size: 1.2rem; }
    .player-card__body { padding: .6rem .7rem .75rem; }
    .player-card__name { font-size: .84rem; }
    .player-card__meta { font-size: .68rem; }
    .player-hero { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 1rem; }
    .player-hero__media { width: 150px; }
    .player-hero__body h1 { font-size: 1.45rem; }
    .hide-xs { display: none !important; }
}

@media print {
    .sidebar, .topnav, .site-header, .topbar, .site-footer, .tabs, .breadcrumbs { display: none !important; }
    .shell { grid-template-columns: 1fr; }
}
