@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/sport/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/sport/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/sport/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/sport/space-grotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Shared visual language. Keep typography, colors and table geometry here. */
:root {
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
    --font-display: "Space Grotesk", "Inter", sans-serif;
    --color-ink: #293548;
    --color-muted: #627188;
    --color-brand: #5276a5;
    --color-brand-hover: #365a87;
    --color-deep: #10141d;
    --color-soft: #e9f1fc;
    --color-page: #f2f6fc;
    --color-surface: #ffffff;
    --color-line: #d9e5f4;
    --color-row: #f5f8fd;
    --color-hover: #eaf1fc;
    --color-positive: #365a87;
    --color-negative: #bd3549;
    --color-winner-score: #b52b3a;
    --color-winner-score-bg: #fbe9ec;
    --color-winner-score-border: #e9bbc4;
    --color-accent: #7894b7;
    --color-header-bg: #e2ecf9;
    --color-header-ink: #42628d;
    --radius: 6px;
    --content-width: 1360px;
    font-family: var(--font-body);
    color: var(--color-ink);
    background: var(--color-page);
    font-synthesis: none;
    color-scheme: light;
}
body:is(.site-body, .admin-body, .guest-body) {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-ink);
    background: var(--color-page);
    -webkit-font-smoothing: antialiased;
}
body :is(button, input, select, textarea) { font-family: var(--font-body); }
body :is(h1, h2, h3, h4) {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.035em;
}
body :focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; }
body :is(input[type=checkbox], input[type=radio]) { accent-color: var(--color-brand); }
body :is(.site-container, .ranking-container) { width: min(var(--content-width), calc(100% - 48px)); }
body.site-body { min-height: 100dvh; }
body .site-header { height: 96px; border-bottom: 1px solid var(--color-line); }
body .header-inner { gap: 28px; }
body .site-utility { height: 38px; color: var(--color-muted); background: #e9edf4; font-size: 13px; }
body .social-link { background: var(--color-brand); border-radius: 5px; }
body .site-nav { gap: 28px; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--color-ink); letter-spacing: .035em; }
body .site-nav > a, body .site-nav .nav-dropdown > summary { padding-top: 34px; padding-bottom: 34px; }
body .site-nav a:after { background: var(--color-brand); }
body .site-nav :is(a:hover, summary:hover, .active), body .site-nav .nav-dropdown[open] > summary { color: var(--color-brand); }
body :is(.site-nav .nav-dropdown-menu, .site-nav .nav-subdropdown-menu, .account-dropdown-menu) {
    border-color: var(--color-line); border-radius: var(--radius); box-shadow: 0 12px 28px #10182618;
}
body .site-nav :is(.nav-dropdown-menu, .nav-subdropdown-menu) {
    font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: 0;
}
body .site-nav :is(.nav-dropdown-menu, .nav-subdropdown-menu) a:is(:hover, .active),
body .site-nav .nav-subdropdown > summary:hover, body .site-nav .nav-subdropdown[open] > summary,
body .account-dropdown-menu :is(a, button):hover { color: var(--color-brand-hover); background: var(--color-soft); }
body .utility-actions > a:hover, body .frontend-year select { color: var(--color-brand-hover); }
body .frontend-year select { border-color: var(--color-line); font-size: 13px; }
body .site-user > span { background: var(--color-brand); }
body .site-footer { padding: 25px 0; background: #eaf1fb; color: var(--color-muted); border-color: var(--color-line); font-size: 13px; }
body .inner-banner-header {
    min-height: 210px; padding: 58px 24px 66px;
    background: #10141d;
    border-bottom: 1px solid #273145;
}
body .inner-banner-header h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: .025em; }
body .inner-banner-header h1:after { content: none; }
body .gt-breadcrumbs ul { border-radius: var(--radius) var(--radius) 0 0; background: #10141d; padding: 0 26px; }
body .gt-breadcrumbs ul li { font-size: 12px; letter-spacing: .04em; }
body .gt-breadcrumbs a:is(.active, :hover) { color: #627fa5; }
body :is(.csb-page, .report-page, .news-section) { background: var(--color-page); }
body :is(.csb-content, .ranking-content, .statistics-page, .fixtures-page, .contact-page, .rules-page) { padding-top: 36px; padding-bottom: 60px; }
body .csb-content-heading { align-items: end; margin-bottom: 26px; }
body :is(.csb-content-heading h2, .section-heading h2, .contact-card h2, .statistics-team h2) {
    font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: .015em; color: var(--color-ink);
}
body :is(.csb-content-heading span, .section-heading p, .eyebrow, .contact-heading > p, .rules-title p) {
    color: var(--color-brand); font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .12em;
}
body :is(.csb-content-heading p, .statistics-team small) { color: var(--color-muted); font-size: 14px; }
body :is(.standings-group h3, .latest-news-body h3, .csb-group-heading h3) {
    font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: .025em;
}
body .standings-group { margin: 30px 0 38px; }
body .standings-group h3 { margin-bottom: 12px; color: var(--color-ink); }
body .section-heading > span { background: var(--color-brand); width: 3px; border-radius: 0; }
body .section-heading { margin-bottom: 25px; }

/* The same table shell and cells on public rankings, statistics, calendar and admin lists. */
body :is(.standings-scroll, .ranking-scroll, .statistics-scroll, .fixture-scroll, .calendar-overflow, .players-card) {
    border: 1px solid var(--color-line); border-radius: var(--radius);
    background: var(--color-surface); box-shadow: none;
}
body :is(.standings-scroll, .ranking-scroll, .statistics-scroll, .fixture-scroll, .table-scroll, .contact-table-scroll) {
    scrollbar-color: #9daac0 #edf0f5; scrollbar-width: thin;
}
body .sport-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    font-family: var(--font-body); font-size: 14px; line-height: 1.45;
    font-variant-numeric: lining-nums tabular-nums; color: var(--color-ink);
}
body .sport-table > thead { background: var(--color-deep); color: #fff; }
body .sport-table > thead > tr > th {
    padding: 14px 16px; border: 0; border-bottom: 1px solid #2c3444;
    background: var(--color-deep); color: #fff;
    font-family: var(--font-body); font-size: 12px; font-weight: 700;
    letter-spacing: .065em; line-height: 1.35; text-transform: uppercase; vertical-align: middle;
}
body .sport-table > tbody > tr { background: var(--color-surface); }
body .sport-table > tbody > tr:nth-child(even) { background: var(--color-row); }
body .sport-table > tbody > tr:hover { background: var(--color-hover); }
body .sport-table > tbody > tr > :is(th, td) {
    padding: 14px 16px; border: 0; border-bottom: 1px solid var(--color-line);
    background: transparent; color: inherit; vertical-align: middle; height: 54px;
}
body .sport-table > tbody > tr:last-child > :is(th, td) { border-bottom: 0; }
body .sport-table > tbody > tr > th { font-size: 14px; font-weight: 600; }
body .sport-table > tbody :is(.standings-team, .ranking-name, .player-name) { color: var(--color-ink); text-align: left; }
body .sport-table .ranking-name strong { font-size: 14px; font-weight: 600; }
body .sport-table .ranking-name span { font-size: 12px; color: var(--color-muted); line-height: 1.45; }
body .sport-table > tbody :is(.standings-position, .ranking-position) { min-width: 52px; width: 52px; color: var(--color-muted); font-weight: 500; }
body .sport-table > tbody > tr > :is(.ranking-total, .standings-points) { background: #5276a50a; color: var(--color-brand-hover); font-weight: 700; }
body .sport-table > tbody > tr > .positive { color: var(--color-positive); font-weight: 600; }
body .sport-table > tbody > tr > .negative { color: var(--color-negative); font-weight: 600; }
body .sport-table > tbody > .statistics-unqualified { color: var(--color-muted); }
body .sport-table > tbody > .statistics-unqualified > :first-child { box-shadow: inset 3px 0 #5276a5; }
body .sport-table .statistics-threshold { color: #3759bd; }
body .sport-table > thead > tr > th.sortable-heading { padding: 0; }
body .sport-table .table-sort { padding: 14px 16px; min-height: 49px; color: #fff; }
body .sport-table .table-sort:hover,
body .sport-table .sortable-heading:is([aria-sort=ascending], [aria-sort=descending]) .table-sort { color: #fff; background: #24304b; }
body .sport-table .table-sort:focus-visible { outline-color: #627fa5; }
body .sport-table .table-sort-indicator { color: #bcc9e3; opacity: .8; }
body .sport-table :is(.muted-cell, .registration-date) { color: var(--color-muted); }
body .sport-table :is(.empty-table, .standings-empty, .ranking-empty) { padding: 36px 20px; color: var(--color-muted); }
body :is(.ranking-table, .statistics-table, .standings-table) { text-align: center; }
body .ranking-table > thead > tr > .ranking-event { min-width: 112px; max-width: 150px; text-transform: none; letter-spacing: .015em; }
body .ranking-event-link { display: block; color: inherit; overflow-wrap: break-word; text-decoration: underline; text-decoration-color: #7d96b780; text-underline-offset: 3px; }
body .ranking-event-link:hover { color: var(--color-brand-hover); text-decoration-color: currentColor; }
body .ranking-event :is(time, small) { font-family: var(--font-body); font-size: 11px; font-weight: 500; opacity: .9; }
body .ranking-place { min-width: 30px; height: 30px; font-size: 14px; font-weight: 600; }
body .ranking-place.medal-1 { background: #f3e6bf; color: #6f531d; border: 1px solid #dcc68c; }
body .ranking-place.medal-2 { background: #e8edf2; color: #4e5d70; border: 1px solid #cbd4df; }
body .ranking-place.medal-3 { background: #efddcf; color: #795239; border: 1px solid #d7b79e; }
body .ranking-points { color: var(--color-muted); font-size: 12px; margin-top: 4px; }
body .ranking-exclusion { color: var(--color-muted); font-size: 11px; }
body .standings-team-icon { border-radius: 50%; width: 26px; height: 26px; background: var(--color-soft); color: #8798b6; font-size: 12px; }
body :is(.ranking-legend, .standings-legend, .statistics-legend, .fixture-help) { color: var(--color-muted); font-size: 13px; line-height: 1.7; }
body .contact-table-scroll { border: 1px solid var(--color-line); border-radius: var(--radius); }
body .contact-table-scroll .sport-table { min-width: 600px; }
body .fixture-table > tbody > tr > :is(th, td), body .contact-table-scroll .sport-table > tbody > tr > :is(th, td) { vertical-align: top; }
body .fixture-table .fixture-date { font-size: 14px; }
body .sport-table :is(.fixture-type, small) { font-size: 12px; }
body .players-table { min-width: 650px; }
body .players-table :is(input, select, button) { font-size: inherit; }

/* Controls and surfaces share the same contrast, radius and spacing. */
body :is(.primary-button, .fixture-button, .fixture-actions button, .contact-form button, .report-save button) {
    border-radius: var(--radius); background: var(--color-brand); color: #fff; box-shadow: none;
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
}
body :is(.primary-button, .fixture-button, .fixture-actions button, .contact-form button, .report-save button):hover { background: var(--color-brand-hover); color: #fff; }
body :is(.secondary-button, .row-action, .results-page-link, .rules-tabs a, .calendar-toolbar a) {
    border-color: var(--color-line); border-radius: var(--radius); color: var(--color-brand-hover); background: #fff; box-shadow: none;
}
body :is(.secondary-button, .row-action, .rules-tabs a, .calendar-toolbar a):hover { background: var(--color-soft); color: var(--color-brand-hover); }
body .row-action.danger { color: var(--color-negative); background: #fcf1f2; border-color: #ead6d8; }
body .results-pagination .is-current, body .rules-tabs a.active, body .calendar-toolbar a.active { background: var(--color-deep); border-color: var(--color-deep); color: #fff; }
body :is(.results-filter select, .statistics-order select, .directory-form select, .fixture-filters input, .fixture-filters select, .fixture-multiselect summary, .contact-form input, .contact-form textarea) {
    border-color: #c6cfde; border-radius: var(--radius); background: #fff; color: var(--color-ink); font-size: 14px;
}
body :is(.fixture-filters, .rules-contents, .settings-nav) { background: #eaf1fb; border-color: var(--color-line); }
body :is(.auth-card, .settings-card, .player-detail-card, .contact-card, .csb-group, .results-card, .home-match, .latest-news-card, .rules-article, .game-section, .match-meta > div) {
    border-color: var(--color-line); border-radius: var(--radius); box-shadow: none;
}
body .csb-group-heading { background: var(--color-deep); }
body .csb-group-heading h3 { font-size: 22px; }
body .csb-team-count { color: #c0cbde; font-size: 12px; }
body .csb-team-list strong { font-size: 14px; color: var(--color-brand-hover); font-weight: 600; }
body .csb-team-list small { color: var(--color-muted); font-size: 12px; }
body .csb-team-mark { background: var(--color-brand); }
body :is(.results-team strong, .home-match-team strong) { color: var(--color-ink); font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: .025em; }
body :is(.results-meta time, .results-meta a, .home-match-info a, .home-match-info time, .latest-news-more, .rules-article h2, .rules-page a, .fixtures-page a:not(.fixture-button), .contact-card a) { color: var(--color-brand-hover); }
body :is(.results-score strong, .home-match-score) { font-family: var(--font-display); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
body .results-score.is-played strong, body .home-match-score { background: var(--color-soft); color: var(--color-brand-hover); }
body :is(.results-shield, .home-match-shield) { background: #e8edf5; color: #8391ab; }
body :is(.results-team > span:last-child, .results-meta > span, .home-match-info, .latest-news-body time) { color: var(--color-muted); font-size: 13px; }
body .latest-news-body h3 { color: var(--color-ink); }
body .latest-news-more { border-color: var(--color-brand); }
body .latest-news-overlay { background: #10141d80; }
body .latest-news-avatar { background: var(--color-soft); color: var(--color-brand-hover); }
body .latest-news-placeholder { border-color: var(--color-deep); color: var(--color-deep); }
body .news-empty { border-color: var(--color-line); border-radius: var(--radius); background: #fff; box-shadow: none; }
body .calendar-weekday { background: var(--color-deep); font-family: var(--font-display); font-size: 16px; letter-spacing: .04em; }
body .calendar-day.is-today { background: var(--color-soft); box-shadow: inset 0 0 0 2px var(--color-brand); }
body .calendar-event { background: #eef4fc; }
body .report-hero { background: var(--color-deep); box-shadow: none; border-radius: var(--radius); }
body .report-hero h2 { font-size: 32px; }
body .report-hero :is(p, h2 span), body .report-score :is(span, small) { color: #c2cde0; }
body .report-score strong { font-family: var(--font-display); font-size: 42px; }
body .match-meta svg, body .match-meta a { color: var(--color-brand); }
body .match-meta small, body .team-player label { color: var(--color-muted); font-size: 12px; }
body .team-player select { font-size: 14px; color: var(--color-ink); border-color: var(--color-line); }
body .game-score :is(input, select) { color: var(--color-ink); border-color: var(--color-line); font-variant-numeric: tabular-nums; }
body .game-section-heading > span, body .report-readonly { background: var(--color-soft); color: var(--color-brand-hover); }
body .game-section-heading h2 { font-size: 22px; }
body .game-section-heading small { color: var(--color-muted); font-size: 12px; }

/* Administration uses the same type and table language, retaining its working layout. */
body.admin-body .admin-main { background: var(--color-page); }
body.admin-body :is(.sidebar, .admin-header) { border-color: var(--color-line); }
body.admin-body .brand { color: var(--color-ink); font-family: var(--font-display); font-size: 20px; font-weight: 600; }
body.admin-body .brand small { font-family: var(--font-body); font-size: 12px; color: var(--color-muted); }
body :is(.brand-mark, .avatar) { background: var(--color-brand); box-shadow: none; }
body.admin-body .admin-nav-link { font-size: 14px; color: var(--color-ink); border-radius: var(--radius); }
body.admin-body .admin-nav-link:hover { background: var(--color-soft); color: var(--color-brand-hover); }
body.admin-body .admin-nav-link.active { background: var(--color-deep); color: #fff; box-shadow: none; }
body.admin-body .settings-menu[open] > summary { background: var(--color-soft); color: var(--color-brand-hover); }
body.admin-body .settings-submenu { border-color: var(--color-line); }
body.admin-body .settings-submenu .admin-nav-link { font-size: 13px; }
body.admin-body :is(h1, .settings-page > h1) { font-size: 34px; letter-spacing: .015em; }
body.admin-body :is(.intro, .directory-search, .table-pagination, .profile-name, .profile-name small, .brand small, .field-help) { color: var(--color-muted); }
body.admin-body .intro { font-size: 15px; }
body.admin-body :is(.directory-search, .directory-form label, .player-edit-fields label, .table-pagination) { font-size: 13px; }
body.admin-body :is(input:not([type=checkbox]), .directory-form select) { font-size: 14px; border-color: #c6cfde; border-radius: var(--radius); color: var(--color-ink); background: #fff; }
body.admin-body input:focus { border-color: var(--color-brand); outline-color: #5276a520; }
body.admin-body .directory-modal { border-radius: 9px; border-color: var(--color-line); color: var(--color-ink); }
body.admin-body .directory-modal-heading h2 { font-size: 28px; }
body :is(.count-badge, .auth-icon, .season-switcher-icon) { background: var(--color-soft); color: var(--color-brand-hover); }
body .auth-card h1 { font-size: 32px; }
body .auth-card :is(.intro, label, .form-options, .back-link) { font-size: 14px; }
body .auth-card a { color: var(--color-brand-hover); }
body .auth-card input:not([type=checkbox]) { border-color: #c6cfde; font-size: 15px; }
body .app-toast { font-family: var(--font-body); font-size: 14px; }

@media (max-width: 1100px) {
    body .site-nav { gap: 18px; font-size: 16px; }
    body .site-logo img { width: 195px; }
}
@media (max-width: 950px) {
    body .site-header { height: auto; }
    body .header-inner { gap: 12px; }
    body .site-nav { flex-wrap: wrap; gap: 8px 22px; }
    body .site-nav > a, body .site-nav .nav-dropdown > summary { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 640px) {
    body :is(.site-container, .ranking-container) { width: calc(100% - 28px); }
    body .site-nav { font-size: 16px; }
    body .inner-banner-header { min-height: 180px; padding: 38px 14px 64px; }
    body .inner-banner-header h1 { font-size: 32px; }
    body .csb-content-heading { align-items: start; }
    body :is(.csb-content-heading h2, .section-heading h2, .contact-card h2) { font-size: 27px; }
    body :is(.csb-content, .ranking-content, .statistics-page, .fixtures-page, .contact-page, .rules-page) { padding-top: 26px; }
    body .sport-table > thead > tr > th { padding: 12px; }
    body .sport-table > tbody > tr > :is(th, td) { padding: 12px; }
    body .sport-table > thead > tr > th.sortable-heading { padding: 0; }
    body .sport-table .table-sort { padding: 12px; }
    body :is(.results-team strong, .home-match-team strong) { font-size: 17px; }
    body.admin-body .brand { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    body *, body *::before, body *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Selected states and score summaries retain their contrast on every page. */
body .site-nav .nav-dropdown > summary.active,
body .site-nav .nav-dropdown[open] > summary,
body .site-nav .nav-subdropdown > summary.active { color: var(--color-brand); }
body .team-match-total strong { background: var(--color-deep); font-family: var(--font-display); font-size: 26px; border-radius: var(--radius); }
body .final-score-card { border-color: var(--color-line); border-radius: var(--radius); }
body .final-score-card strong { background: var(--color-soft); color: var(--color-brand-hover); font-family: var(--font-display); font-size: 32px; border-radius: var(--radius); }
body .auth-card :is(.intro, .checkbox-label, .form-options),
body .auth-card input::placeholder { color: var(--color-muted); }
body .auth-card input:focus { border-color: var(--color-brand); outline-color: #5276a520; }
body .login-logo { border-color: var(--color-line); }
body .results-pagination :is(.results-pagination-summary, .results-page-mobile) { color: var(--color-muted); }

@media (max-width: 640px) {
    body .site-nav { position: relative; }
    body .site-nav .nav-dropdown { position: static; }
    body .site-nav .nav-dropdown-menu { position: absolute; top: 100%; left: 0; right: 0; width: 100%; min-width: 0; max-width: none; }
    body .site-nav .nav-subdropdown-menu { position: static; width: auto; max-width: 100%; min-width: 0; margin-left: 10px; padding: 4px; box-shadow: none; border: 0; }
    body .site-nav :is(.nav-dropdown-menu a, .nav-subdropdown > summary) { white-space: normal; overflow-wrap: anywhere; }
}

body.admin-body .season-switcher-trigger,
body.admin-body .season-switcher-menu { border-color: var(--color-line); border-radius: var(--radius); box-shadow: none; }
body.admin-body .season-switcher-option.active,
body.admin-body .season-switcher-option:hover { background: var(--color-soft); color: var(--color-brand-hover); }
body.admin-body .season-switcher-option.active strong { color: var(--color-brand-hover); }
@media (max-width: 900px) {
    body.admin-body .admin-header .profile-name { display: none; }
}
@media (max-width: 640px) {
    body.admin-body .admin-header { justify-content: space-between; gap: 12px; padding: 0 14px; }
    body.admin-body .season-switcher { min-width: 0; flex: 1; margin-right: 0; }
    body.admin-body .season-switcher-trigger { width: 100%; min-width: 0; height: 44px; gap: 7px; }
    body.admin-body .season-switcher-copy strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body.admin-body .season-switcher-icon { width: 30px; height: 30px; border-radius: 5px; }
    body.admin-body .profile { flex: none; }
    body.admin-body .profile-trigger { gap: 0; }
    body.admin-body .profile-trigger > svg { display: none; }
    body.admin-body .profile-dropdown { right: 0; max-width: calc(100vw - 104px); }
    body.admin-body .season-switcher-menu { left: 0; right: auto; width: min(300px, calc(100vw - 104px)); }
}

body .site-nav .nav-dropdown > summary:hover { color: var(--color-brand); }
body .sport-table .table-sort { font-family: var(--font-body); font-weight: 600; text-transform: inherit; letter-spacing: inherit; }

@media (max-width: 640px) {
    body .utility-actions > a:first-of-type { display: inline-flex; }
}

/* Modern competition sport. */
body .site-header { height:88px; }
body .site-logo img { width:205px; max-height:62px; }
body .site-utility { background:#10141d; color:#d0d8e8; height:34px; font-size:12px; }
body .social-link { background:#252d3d; color:#fff; width:26px; height:26px; }
body .frontend-year select { color:#fff; background:#222c3d; border-color:#414e64; font-size:12px; }
body .utility-actions > a:hover { color:#627fa5; }
body .site-nav { font-family:var(--font-body); font-size:12px; letter-spacing:.04em; gap:24px; font-weight:600; }
body .site-nav > a, body .site-nav .nav-dropdown > summary { padding-top:32px; padding-bottom:32px; }
body .site-nav a:after, body .site-nav a:hover:after { bottom:21px; height:3px; }
body .site-menu-toggle { display:none; }
body .inner-banner-header { min-height:174px; padding:26px 0 34px; text-align:left; background:#10141d; }
body .inner-banner-header h1 { font:700 clamp(30px,3.4vw,46px)/1.12 var(--font-display); letter-spacing:-.045em; color:#fff; margin:0; }
body .gt-breadcrumbs { position:static; text-align:left; margin:0 0 24px; }
body .gt-breadcrumbs ul { display:flex; align-items:center; flex-wrap:wrap; padding:0; border-radius:0; background:none; }
body .gt-breadcrumbs ul li { font-size:10px; line-height:1.6; letter-spacing:.11em; color:#c2cde0; }
body .gt-breadcrumbs ul li:not(:last-child):after { content:'/'; color:#6d7b95; padding:0 12px; }
body .gt-breadcrumbs a, body .gt-breadcrumbs a.active { color:#627fa5; }
body .page-heading-row { display:flex; align-items:center; justify-content:space-between; gap:24px; }
body .page-heading-mark { display:flex; gap:7px; flex:none; padding-right:7px; }
body .page-heading-mark i { display:block; width:12px; height:45px; transform:skew(-20deg); background:var(--color-brand); }
body .page-heading-mark i:last-child { opacity:.35; }
body :is(.csb-content-heading h2,.section-heading h2,.contact-card h2,.statistics-team h2) { font-size:28px; font-weight:700; letter-spacing:-.04em; }
body .csb-content-heading span { font-size:10px; letter-spacing:.14em; }
body .standings-group h3 { font-size:22px; font-weight:700; letter-spacing:-.025em; }
body :is(.standings-scroll,.ranking-scroll,.statistics-scroll,.fixture-scroll,.players-card) { box-shadow:0 2px 6px #12203a04; }
body .sport-table > tbody > tr > :is(th,td) { height:56px; }
body .sport-table > thead > tr > th { font-family:var(--font-body); font-size:12px; font-weight:700; letter-spacing:.045em; }
body .sport-table > tbody > tr > th, body .sport-table .ranking-name strong { font-size:14px; font-weight:600; letter-spacing:-.02em; }
body .sport-table > tbody > tr > :is(.ranking-total,.standings-points) { font-family:var(--font-display); font-size:17px; font-weight:700; }
body .sport-table > tbody > tr:first-child > :first-child { box-shadow:inset 3px 0 var(--color-brand); }
body .ranking-table > thead > tr > .ranking-event { letter-spacing:-.01em; font-weight:600; }
body .ranking-place.medal { border-radius:50%; font-family:var(--font-display); }
body .standings-team-icon { display:none; }
body .standings-position { font-family:var(--font-display); font-size:15px; }
body .sport-table .table-sort { font-family:var(--font-body); font-weight:700; }
body :is(.results-team strong,.home-match-team strong) { font-family:var(--font-body); font-size:15px; font-weight:700; letter-spacing:-.025em; }
body :is(.results-shield,.home-match-shield) { display:none; }
body .home-match { padding:22px 26px; }
body .latest-news-body h3 { font-size:22px; letter-spacing:-.035em; line-height:1.3; font-weight:700; }
body .latest-news-thumb { aspect-ratio:16/9; background:#10141d; }
body .latest-news-placeholder { width:100%; height:100%; border:0; border-radius:0; background:linear-gradient(125deg,#111621,#283a54); color:#fff; font-family:var(--font-display); font-size:54px; font-weight:700; letter-spacing:-.06em; position:relative; overflow:hidden; }
body .latest-news-placeholder:before { content:''; position:absolute; width:5px; height:70%; background:#5276a5; transform:rotate(30deg); right:21%; top:30%; }
body .latest-news-placeholder:after { content:'MBSZ / POOL SZAKÁG'; position:absolute; bottom:18px; left:22px; font-family:var(--font-body); font-size:9px; letter-spacing:.13em; color:#adbfdf; }
body .latest-news-more { font-size:11px; letter-spacing:.065em; }
body .latest-news-share { background:#edf3f9; color:#5276a5; border-radius:4px; }
body .latest-news-card { overflow:hidden; }
body.admin-body :is(h1,.settings-page > h1) { font-size:30px; font-weight:700; letter-spacing:-.045em; }
body.admin-body .brand { font-family:var(--font-body); font-size:15px; font-weight:700; letter-spacing:-.025em; }
body.admin-body .brand small { font-weight:400; }
body.admin-body .admin-nav-link { font-size:13px; }
body.admin-body .admin-nav-link.active { background:#edf3f9; color:#365a87; box-shadow:inset 3px 0 #5276a5; }
body .brand-mark { border-radius:8px; background:#10141d; }
body .auth-card { border-radius:10px; }
body .auth-card .eyebrow { font-size:10px; }
@media (max-width:1100px) {
    body .site-nav { gap:16px; font-size:11px; }
    body .site-logo img { width:185px; }
}
@media (max-width:950px) {
    body .site-header { height:80px; position:relative; z-index:55; }
    body .header-inner { flex-direction:row; align-items:center; padding:0; }
    body .site-logo img { width:185px; max-height:56px; }
    body .site-menu-toggle { display:inline-flex; align-items:center; gap:10px; border:1px solid #d7dfec; border-radius:5px; background:#fff; color:#293548; padding:10px 12px; font:600 12px var(--font-body); }
    body .site-menu-toggle svg { width:18px; height:18px; }
    body .site-nav { display:none; position:absolute; z-index:80; top:100%; left:0; right:0; margin:0; padding:14px 24px; width:100%; background:#fff; border-top:1px solid #e0e5ee; border-bottom:1px solid #e0e5ee; box-shadow:0 12px 24px #10182614; font-size:12px; gap:2px; flex-direction:column; align-items:stretch; }
    body .site-nav.is-open { display:flex; }
    body .site-nav > a, body .site-nav .nav-dropdown > summary { display:flex; width:100%; justify-content:space-between; padding:13px 0; }
    body .site-nav .nav-dropdown { display:block; position:static; width:100%; }
    body .site-nav .nav-dropdown-menu { position:static; width:100%; min-width:0; max-width:none; padding:4px; border:0; box-shadow:none; }
    body .site-nav .nav-subdropdown-menu { position:static; min-width:0; max-width:100%; margin-left:12px; padding:4px; border:0; box-shadow:none; }
    body .site-nav :is(.nav-dropdown-menu a,.nav-subdropdown > summary) { white-space:normal; }
    body .page-heading-mark { display:none; }
}
@media (max-width:640px) {
    body .inner-banner-header { min-height:148px; padding:22px 0 28px; }
    body .inner-banner-header h1 { font-size:29px; line-height:1.15; }
    body .gt-breadcrumbs { margin-bottom:18px; }
    body .gt-breadcrumbs ul li { font-size:9px; }
    body :is(.csb-content-heading h2,.section-heading h2,.contact-card h2) { font-size:25px; letter-spacing:-.04em; }
    body .standings-group h3 { font-size:21px; }
    body .sport-table > thead > tr > th { font-size:12px; }
}

/* The interface palette stays gray and blue, including positive feedback. */
body :is(.notice, .contact-success, .status-closed) {
    background: var(--color-soft);
    color: var(--color-brand-hover);
    border-color: #cbd7ff;
}
body .app-toast:not(.toast-error) {
    border-color: #cbd7ff;
    border-left-color: var(--color-brand);
    color: var(--color-brand-hover);
}
body .team-match-section .game-section-heading > span {
    background: var(--color-soft);
    color: var(--color-brand-hover);
}
body .rules-ball-14-1-es { background: var(--color-deep); }
/* Preserve the original sponsor banner in full at every viewport width. */
body .site-hero img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
}

/* Restrained gray-blue headers and separate sport-result highlights. */
body .site-utility { background: #e9f0fb; color: var(--color-muted); }
body .social-link { background: #dce8f8; color: var(--color-brand-hover); }
body .frontend-year select { background: #fff; color: var(--color-ink); border-color: #d2dce9; }
body .utility-actions > a:hover { color: var(--color-brand-hover); }
body .inner-banner-header {
    min-height: 146px;
    padding: 22px 0 28px;
    background: #e8f0fb;
    border-bottom: 1px solid var(--color-line);
}
body .inner-banner-header h1 { color: var(--color-ink); font-size: clamp(29px, 3vw, 40px); font-weight: 600; }
body .gt-breadcrumbs { margin-bottom: 20px; }
body .gt-breadcrumbs ul li { color: var(--color-muted); }
body .gt-breadcrumbs a, body .gt-breadcrumbs a.active { color: #58759c; }
body .sport-table > thead,
body .sport-table > thead > tr > th {
    background: var(--color-header-bg);
    color: var(--color-header-ink);
    border-bottom-color: #d7e0ec;
}
body .sport-table > thead > tr > th { font-weight: 600; letter-spacing: .025em; }
body .sport-table .table-sort { color: var(--color-header-ink); font-weight: 600; }
body .sport-table .table-sort:hover,
body .sport-table .sortable-heading:is([aria-sort=ascending], [aria-sort=descending]) .table-sort {
    background: #dce8f8;
    color: #365a87;
}
body .sport-table .table-sort-indicator { color: #6e86a4; }
body .sport-table > tbody > tr:first-child > :first-child { box-shadow: none; }
body .sport-table > tbody > tr > :is(.ranking-total, .standings-points) { background: #5276a506; color: #3c5e8b; }
body .sport-table > tbody > tr.ranking-national-place { background: #f1f5fb; }
body .sport-table > tbody > tr.ranking-national-place:hover { background: #eaf0f8; }
body .sport-table > tbody > tr.ranking-national-place > :first-child {
    box-shadow: inset 3px 0 #8da6c8;
    color: #3f608c;
    font-weight: 600;
}
body .sport-table .ranking-name .ranking-national-label {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 2px 6px;
    border: 1px solid #c7d5e7;
    border-radius: 4px;
    background: #e6edf7;
    color: #4b668b;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.4;
}
body .ranking-place.medal { border-radius: 50%; box-shadow: none; }
body .ranking-event time { font-size: 11px; color: #5c6f87; opacity: 1; font-weight: 400; }
body :is(.csb-group-heading, .calendar-weekday, .game-section-heading) {
    background: var(--color-header-bg);
    color: var(--color-header-ink);
}
body .csb-team-count { color: var(--color-muted); }
body .report-hero { background: var(--color-header-bg); color: var(--color-ink); border: 1px solid var(--color-line); }
body .report-hero :is(p, h2 span), body .report-score :is(span, small) { color: var(--color-muted); }
@media (max-width:640px) {
    body .inner-banner-header { min-height: 130px; padding: 20px 0 24px; }
    body .inner-banner-header h1 { font-size: 28px; }
}

/* Series positions: national colors and Masters qualification. */
body :is(.ranking-table, .standings-table) {
    --color-header-bg: #d4e3f7;
    --color-header-ink: #365a87;
}
body .ranking-table .ranking-event time { color: #52647d; }
body .sport-table .ranking-position .ranking-ordinal {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}
body .sport-table .ranking-position .ranking-masters-mark {
    display: block;
    width: max-content;
    margin: 5px auto 0;
    padding: 1px 4px;
    border: 1px solid #cbd7e7;
    border-radius: 3px;
    background: #eaf0f8;
    color: #4e688c;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .06em;
    line-height: 1.4;
    text-decoration: none;
}

/* Every national-team position carries the same complete tricolor. */
body .sport-table .ranking-position .ranking-ordinal-national {
    min-width: 34px;
    height: 36px;
    background:
        linear-gradient(135deg, #ffffff1f, transparent 70%),
        linear-gradient(
            to bottom,
            #cc8a93 0%,
            #ddb1b7 26%,
            #fbfaf8 43%,
            #fbfaf8 58%,
            #b5cdbc 77%,
            #88af98 100%
        );
    color: #465164;
    border-color: #c5cfd7;
    box-shadow: inset 0 1px 0 #ffffff99;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
}

/* Compact team standings with understated playoff and relegation places. */
body .csb-standings-page > .site-container.csb-content,
body:has(.csb-standings-page) .inner-banner-header > .site-container {
    max-width: 1180px;
}
body .standings-table > tbody > tr > :is(th, td) {
    height: 68px;
    padding-top: 8px;
    padding-bottom: 8px;
}
body .standings-table > tbody > tr:not(.standings-playoff-row):not(.standings-relegated-row) { background: #fff; }
body .standings-table > tbody > tr.standings-playoff-row { background: #edf3fb; }
body .standings-table > tbody > tr.standings-playoff-row:hover { background: #e6eef9; }
body .standings-table > tbody > tr.standings-relegated-row { background: #faf0f2; }
body .standings-table > tbody > tr.standings-relegated-row:hover { background: #f5e6ea; }
body .standings-table > tbody > tr.standings-playoff-row > :first-child { box-shadow: inset 3px 0 #9db4d5; }
body .standings-table > tbody > tr.standings-relegated-row > :first-child { box-shadow: inset 3px 0 #d1a6b0; }
body .standings-table > tbody > tr > .standings-points { background: transparent; }
body .standings-table .standings-ordinal {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}
body .standings-table .standings-status {
    display: block;
    width: max-content;
    margin: 4px auto 0;
    padding: 1px 4px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .05em;
    line-height: 1.4;
    text-decoration: none;
}
body .standings-table .standings-playoff-row :is(.standings-ordinal, .standings-status) {
    background: #e1eaf7;
    border-color: #c6d5e9;
    color: #41658e;
}
body .standings-table .standings-relegated-row :is(.standings-ordinal, .standings-status) {
    background: #f3e0e5;
    border-color: #e4c6d0;
    color: #945464;
}

/* Fit the team standings to the printable area without browser scaling. */
@media print {
    @page csb-standings {
        size: A4 portrait;
        margin: 12mm;
    }
    html:has(.csb-standings-page) { background: #fff; }
    body:has(.csb-standings-page) {
        page: csb-standings;
        min-width: 0;
        min-height: 0;
        margin: 0;
        background: #fff;
    }
    body:has(.csb-standings-page) > :is(.site-utility, .site-header, .inner-banner-header, .site-footer, .impersonation-banner) {
        display: none;
    }
    body .csb-standings-page {
        min-height: 0;
        background: #fff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    body .csb-standings-page > .site-container.csb-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
    body .csb-standings-page .csb-content-heading { margin-bottom: 5mm; }
    body .csb-standings-page .csb-content-heading h2 { font-size: 16pt; }
    body .csb-standings-page .csb-content-heading span { font-size: 7pt; }
    body .csb-standings-page .csb-content-heading p { font-size: 9pt; }
    body .csb-standings-page .standings-group {
        margin: 0 0 4mm;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    body .csb-standings-page .standings-group h3 {
        margin: 0 0 2mm;
        font-size: 12pt;
        break-after: avoid;
    }
    body .csb-standings-page .standings-scroll {
        width: 100%;
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
    }
    body .csb-standings-page .standings-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: 9pt;
    }
    body .csb-standings-page .standings-table > thead { display: table-header-group; }
    body .csb-standings-page .standings-table > thead > tr > th {
        padding: 2.5mm 1.5mm;
        font-size: 7.5pt;
        letter-spacing: 0;
        line-height: 1.2;
    }
    body .csb-standings-page .standings-table > tbody > tr { break-inside: avoid; }
    body .csb-standings-page .standings-table > tbody > tr > :is(th, td) {
        height: 13mm;
        padding: 1.5mm;
        font-size: 9pt;
        line-height: 1.3;
    }
    body .csb-standings-page .standings-table :is(th:first-child, .standings-position) {
        min-width: 0;
        width: 7%;
    }
    body .csb-standings-page .standings-table :is(thead th:nth-child(2), .standings-team) {
        min-width: 0;
        width: 35%;
    }
    body .csb-standings-page .standings-ordinal {
        min-width: 22px;
        height: 22px;
        font-size: 10pt;
    }
    body .csb-standings-page .standings-status {
        margin-top: 2px;
        padding: 0 3px;
        font-size: 6pt;
        line-height: 1.25;
    }
    body .csb-standings-page .standings-legend {
        margin: 3mm 0 0;
        font-size: 7pt;
        line-height: 1.4;
        break-inside: avoid;
    }
    body .csb-standings-page .standings-legend:not(:last-child) { break-after: avoid; }
}

/* A readable width for team match reports, with both opponents kept together. */
body .report-page > .site-container,
body:has(.report-page) .inner-banner-header > .site-container { max-width: 1000px; }
body .report-page .game-row {
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
    gap: 14px;
}
body .report-page .game-row .team-player:last-child { grid-column: auto; }
body .report-page .team-player { min-width: 0; }
body .report-page .report-hero { gap: 24px; padding: 24px; }
body .report-page .report-hero > div:first-child { min-width: 0; }
body .report-page .report-hero h2 { font-size: clamp(22px, 2.2vw, 28px); overflow-wrap: anywhere; }
body .report-page .report-score { min-width: 130px; flex-shrink: 0; }
body .report-page .match-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .report-page .match-meta > div { min-width: 0; padding: 14px; }
body .report-page .match-meta > div > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
    body .report-page .match-meta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    body .report-page .game-row { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); gap: 6px; }
    body .report-page .game-section-heading { flex-wrap: wrap; gap: 8px; padding: 14px; }
    body .report-page .game-section-heading h2 { font-size: 18px; }
}
@media print {
    @page csb-report { size: A4 portrait; margin: 12mm; }
    html:has(.report-page) { background: #fff; }
    body:has(.report-page) { page: csb-report; min-width: 0; min-height: 0; background: #fff; }
    body:has(.report-page) > :is(.site-utility, .site-header, .inner-banner-header, .site-footer, .impersonation-banner),
    body .report-page :is(.report-breadcrumb, .report-save),
    body .report-page .report-form > .report-readonly { display: none; }
    body .report-page { padding: 0; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body .report-page > .site-container { width: 100%; max-width: none; margin: 0; padding: 0; }
    body .report-page .report-hero {
        flex-direction: row; align-items: center; gap: 4mm; padding: 3mm;
        border: 1px solid var(--color-line); background: #fff; color: var(--color-ink);
        break-inside: avoid;
    }
    body .report-page .report-hero h2 { font-size: 12pt; }
    body .report-page .report-hero :is(p, h2 span),
    body .report-page .report-score :is(span, small) { color: var(--color-muted); }
    body .report-page .report-hero p { margin-bottom: 2mm; font-size: 7pt; }
    body .report-page .report-score { min-width: 28mm; gap: 2mm; }
    body .report-page .report-score strong { font-size: 18pt; }
    body .report-page .report-score > span { font-size: 12pt; }
    body .report-page .report-score small { font-size: 6pt; }
    body .report-page .match-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2mm; margin: 3mm 0; }
    body .report-page .match-meta > div { padding: 2mm; gap: 2mm; }
    body .report-page .match-meta svg { width: 14px; height: 14px; }
    body .report-page .match-meta small { margin-bottom: 1mm; font-size: 6pt; }
    body .report-page .match-meta :is(strong, a) { font-size: 7.5pt; }
    body .report-page .report-readonly { margin-top: 2mm; padding: 2mm; font-size: 7pt; }
    body .report-page .game-section {
        margin-top: 3mm; overflow: visible; box-shadow: none;
        break-inside: avoid; page-break-inside: avoid;
    }
    body .report-page .game-section-heading { gap: 2mm; padding: 2mm; break-after: avoid; }
    body .report-page .game-section-heading > span { padding: 1mm; font-size: 6pt; }
    body .report-page .game-section-heading h2 { font-size: 9pt; }
    body .report-page .game-section-heading small { font-size: 6.5pt; }
    body .report-page .game-list { padding: 0 2mm; }
    body .report-page .game-row {
        grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
        gap: 2mm; padding: 1.5mm 0; break-inside: avoid;
    }
    body .report-page .game-number { display: grid; width: 14px; height: 14px; font-size: 6pt; }
    body .report-page .team-player label { margin-bottom: 2px; font-size: 6pt; }
    body .report-page .team-player select {
        height: 5mm; padding: 0; border: 0; border-radius: 0; background: transparent;
        appearance: none; color: var(--color-ink); opacity: 1; font-size: 8pt;
    }
    body .report-page .team-player select + select { margin-top: 2px; }
    body .report-page .game-score { gap: 3px; order: initial; }
    body .report-page .game-row .team-player:last-child { order: initial; }
    body .report-page .game-score :is(input, select) {
        width: 22px; height: 22px; padding: 0; border-radius: 3px;
        appearance: none; opacity: 1; font-size: 9pt;
    }
    body .report-page .game-score input::-webkit-inner-spin-button,
    body .report-page .game-score input::-webkit-outer-spin-button { appearance: none; margin: 0; }
    body .report-page .team-match-total { gap: 3mm; padding: 2mm; }
    body .report-page .team-match-total span { font-size: 8pt; }
    body .report-page .team-match-total strong { min-width: 0; padding: 1mm 2mm; font-size: 11pt; }
    body .report-page .final-score-card { gap: 4mm; margin-top: 3mm; padding: 2mm; break-inside: avoid; }
    body .report-page .final-score-card span { font-size: 10pt; }
    body .report-page .final-score-card strong { padding: 1mm 2mm; font-size: 12pt; }
}

/* Team names open that season's home and away fixtures. */
body .standings-team a { color: var(--color-brand-hover); overflow-wrap: anywhere; text-underline-offset: 3px; }
body .standings-team a:hover { text-decoration: underline; }
body .results-back { margin: 0 0 18px; font-size: 14px; }
body .results-back a { color: var(--color-brand-hover); text-underline-offset: 3px; }
body .results-back a:hover { text-decoration: underline; }
@media print {
    body .standings-team a { color: inherit; text-decoration: none; }
}

/* Finished fixtures and remaining fixtures stay in separate, clearly labelled lists. */
body .results-section { margin-top: 28px; }
body .results-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--color-line); }
body .results-section-heading h3 { margin: 0; color: var(--color-ink); font-size: 22px; }
body .results-section-heading > span { flex-shrink: 0; color: var(--color-muted); font-size: 12px; }
body .results-section-upcoming { padding: 18px; border: 1px solid #c6d8ee; border-radius: var(--radius); background: #eaf1fb; }
body .results-section-upcoming .results-card { border-style: dashed; border-color: #9db4d5; }
body .results-section-cancelled .results-card { border-color: #e4c6d0; }
body .results-meta > .results-state { padding: 3px 7px; border-radius: 4px; background: #eef2f7; color: #52677f; font-size: 10px; font-weight: 600; }
body .results-section-upcoming .results-state { background: #dce8f8; color: #365a87; }
body .results-section-cancelled .results-state { background: #f3e0e5; color: #945464; }
body .results-section-empty { margin: 0; padding: 18px; border: 1px solid var(--color-line); border-radius: var(--radius); background: #fff; color: var(--color-muted); font-size: 14px; }
@media (max-width: 640px) {
    body .results-section-upcoming { padding: 12px; }
    body .results-section-heading { gap: 10px; }
    body .results-section-heading h3 { font-size: 19px; }
}

/* A completed fixture emphasises its winner, keeping the other name regular. */
body .results-section-played .results-team strong { font-weight: 400; }
body .results-section-played .results-team strong.results-winner { font-weight: 700; }

body .results-section-played .results-score strong { color: #738197; background: #f1f3f7; }
body .results-section-played .results-score strong.results-winner-score { color: var(--color-winner-score); background: var(--color-winner-score-bg); }

/* Every match summary uses the same winning-score color. */
body .report-page :is(.report-score > strong, .team-match-total > strong, .final-score-card > strong) { color: #738197; }
body .report-page :is(.team-match-total, .final-score-card) > strong { background: #f1f3f7; }
body .report-page :is(.report-score, .team-match-total, .final-score-card) .report-score-winner { color: var(--color-winner-score); }
body .report-page :is(.report-score, .team-match-total, .final-score-card) .report-score-leading { color: #245a95; }

/* Match report: one shared baseline for both players and the result. */
body .report-page .game-list { padding: 0 18px; }
body .report-page .game-column-headings { display: grid; grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); gap: 14px; padding: 12px 0 2px; color: var(--color-muted); font-size: 10px; font-weight: 500; }
body .report-page .game-column-headings > :nth-child(2) { text-align: center; }
body .report-page .game-row { padding: 12px 0; align-items: center; }
body .report-page .team-player { display: flex; flex-direction: column; gap: 6px; }
body .report-page .team-player select { display: block; height: 40px; font-weight: 400; line-height: normal; }
body .report-page .team-player select + select { margin-top: 0; }
body .report-page .game-row .team-player:last-child { order: initial; }
body .report-page .game-score { order: initial; min-width: 0; gap: 6px; }
body .report-page .game-score :is(input[type=number], .report-score-value) { width: 44px; height: 40px; padding: 0; border: 1px solid var(--color-line); border-radius: 5px; background: #f1f3f7; color: #738197; font-size: 16px; font-weight: 500; text-align: center; }
body .report-page .report-score-value { display: inline-grid; place-items: center; }
body .report-page .team-player.report-player-leading select { border-color: #bdcfe8; background-color: #eef4fd; color: #245a95; -webkit-text-fill-color: #245a95; font-weight: 700; }
body .report-page .team-player.report-player-winner select { border-color: var(--color-winner-score-border); background-color: var(--color-winner-score-bg); color: var(--color-winner-score); -webkit-text-fill-color: var(--color-winner-score); font-weight: 700; }
body .report-page .game-score :is(input, output).report-score-leading { border-color: #bdcfe8; background: #eef4fd; color: #245a95; -webkit-text-fill-color: #245a95; font-weight: 700; }
body .report-page .game-score :is(input, output).report-score-winner { border-color: var(--color-winner-score-border); background: var(--color-winner-score-bg); color: var(--color-winner-score); -webkit-text-fill-color: var(--color-winner-score); font-weight: 700; }

body .report-page .game-score .team-round-checkbox {
    appearance: none; display: grid; place-content: center; flex: none;
    width: 24px; height: 24px; margin: 0 10px; padding: 0;
    border: 1px solid #a8bad1; border-radius: 4px; background: #fff; cursor: pointer;
}
body .report-page .team-round-checkbox::before { content: ''; width: 6px; height: 11px; margin-top: -3px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
body .report-page .game-score .team-round-checkbox:checked { border-color: var(--color-winner-score); background: var(--color-winner-score); }
body .report-page .team-round-checkbox:checked::before { opacity: 1; }
body .report-page .team-round-checkbox:disabled { opacity: 1; cursor: default; }
@media (max-width: 560px) {
    body .report-page .game-list { padding: 0 10px; }
    body .report-page .game-column-headings { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); gap: 6px; font-size: 9px; }
    body .report-page .team-player select { font-size: 12px; padding: 0 4px; }
    body .report-page .game-score { gap: 3px; }
    body .report-page .game-score :is(input[type=number], .report-score-value) { width: 32px; font-size: 14px; }
    body .report-page .game-score .team-round-checkbox { margin: 0 4px; }
    body .report-page .game-section-heading h2 { font-size: 17px; }
}
@media print {
    body .report-page .game-column-headings { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 2mm; padding: 1mm 0; font-size: 6pt; }
    body .report-page .game-list { padding: 0 2mm; }
    body .report-page .game-row { padding: 1mm 0; }
    body .report-page .team-player { display: block; }
    body .report-page .team-player select + select { margin-top: 1px; }
    body .report-page .team-player select { height: 5mm; font-size: 8pt; }
    body .report-page .game-score { gap: 3px; }
    body .report-page .game-score :is(input[type=number], .report-score-value) { width: 22px; height: 22px; font-size: 9pt; }
    body .report-page .game-score .team-round-checkbox { width: 18px; height: 18px; margin: 0 2px; }
    body .report-page .game-score .team-round-checkbox:checked { background: #fff; }
    body .report-page .team-round-checkbox::before { width: 5px; height: 9px; border-color: var(--color-winner-score); }
}

body .report-page .report-print-player { display: none; }
@media print {
    body .report-page .team-player select { display: none; }
    body .report-page .report-print-player { display: block; min-height: 5mm; font-size: 8pt; line-height: 1.35; }
    body .report-page .report-player-winner .report-print-player { color: #245a95; font-weight: 700; }
}

/* Framed match numbers stay at the left edge inside each header. */
body .report-page .report-match { margin-top: 18px; }
body .report-page .report-match > .game-section { min-width: 0; margin-top: 0; }
body .report-page .game-section-heading > .game-match-number { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin: 0; padding: 0; border: 1px solid #9fb5d2; border-radius: 5px; background: #fff; color: #365a87; font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1; }
@media (max-width: 560px) {
    body .report-page .game-section-heading > .game-match-number { width: 28px; height: 32px; font-size: 14px; }
}
@media print {
    body .report-page .report-match { margin-top: 3mm; break-inside: avoid; page-break-inside: avoid; }
    body .report-page .game-section-heading > .game-match-number { width: 6mm; height: 6mm; border-radius: 2px; font-size: 9pt; }
}

/* Tight match blocks, separated by a quiet rule: pairs, three singles at a time, team. */
body .report-page .report-match-group { margin-top: 18px; }
body .report-page .report-match-group > .report-match { margin-top: 0; }
body .report-page .report-match-group > .report-match + .report-match { margin-top: 6px; }
body .report-page .report-match-group + .report-match-group { margin-top: 16px; padding-top: 16px; border-top: 2px solid #9fb5d2; }
@media (max-width: 560px) {
    body .report-page .report-match-group + .report-match-group { margin-top: 12px; padding-top: 12px; }
}
@media print {
    body .report-page .report-match-group { margin-top: 3mm; break-inside: avoid; page-break-inside: avoid; }
    body .report-page .report-match-group > .report-match + .report-match { margin-top: 1mm; }
    body .report-page .report-match-group + .report-match-group { margin-top: 3mm; padding-top: 3mm; }
}

/* The frame marks the alternating break; the tick still records the round winner. */
body .report-page .team-lag-control { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--color-line); background: #f5f8fd; }
body .report-page .team-lag-control > label { color: var(--color-ink); font-size: 12px; font-weight: 600; }
body .report-page .team-lag-select { min-width: 180px; max-width: 100%; padding: 8px 10px; border: 1px solid var(--color-line); border-radius: 5px; background: #fff; color: var(--color-ink); font: inherit; font-size: 13px; }
body .report-page .team-lag-select:disabled { opacity: 1; }
body .report-page .team-lag-control > small { color: var(--color-muted); font-size: 10px; }
body .report-page .team-lag-save { padding: 8px 10px; border: 1px solid #bdcfe8; border-radius: 5px; background: #eaf1fb; color: #365a87; font: inherit; font-size: 12px; cursor: pointer; }
body .report-page .team-lag-print { display: none; }
body .report-page .game-score .team-round-checkbox.team-round-starter { outline: 2px solid #5276a5; outline-offset: 3px; }
@media (max-width: 560px) {
    body .report-page .team-lag-control { gap: 8px; padding: 10px; }
    body .report-page .team-lag-select { min-width: 0; width: 100%; }
}
@media print {
    body .report-page .team-lag-control { gap: 2mm; padding: 2mm; }
    body .report-page .team-lag-control > label { font-size: 7pt; }
    body .report-page .team-lag-control > small { font-size: 6pt; }
    body .report-page :is(.team-lag-select, .team-lag-save) { display: none; }
    body .report-page .team-lag-print { display: inline; color: var(--color-ink); font-size: 7pt; }
    body .report-page .game-score .team-round-checkbox.team-round-starter { outline-width: 1.2pt; outline-offset: 1px; }
}

/* Brief confirmation for journal autosaves, without shifting the form. */
body .report-saved { position: fixed; right: 20px; bottom: 20px; z-index: 1100; padding: 9px 16px; border: 1px solid #bdcfe8; border-radius: 8px; background: #eef4fd; color: #245a95; box-shadow: 0 5px 20px #233f6720; font-size: 14px; font-weight: 600; pointer-events: none; }
@media print { body .report-saved { display: none !important; } }
body .report-saved[hidden] { display: none !important; }

body .csb-live-index .live-mini-score input[type=number] { width: 44px; height: 40px; padding: 0; border: 1px solid #bdcfe8; border-radius: 5px; background: #f1f5fb; color: #738197; font: inherit; font-weight: 600; text-align: center; }
body .csb-live-index .live-mini-score input.live-score-leading { background: #eef4fd; color: #245a95; }
body .csb-live-index .live-mini-score input[type=checkbox] { width: 22px; height: 22px; margin: 9px 3px; accent-color: var(--color-winner-score); }
body .csb-live-index .live-mini-score [hidden] { display: none !important; }
body .csb-live-index .live-report-list { --report-columns: 40px 112px minmax(0,1fr) 110px minmax(0,1fr) 224px; }
body .csb-live-index .live-team-round-row > .live-mini-score { gap: 4px; }
@media (max-width: 900px) {
    body .csb-live-index .live-report-row { grid-template-columns: 34px minmax(0,1fr) 90px minmax(0,1fr); }
    body .csb-live-index .live-mini-score input[type=number] { width: 36px; }
    body .csb-live-index .live-team-round-row { grid-template-columns: 24px minmax(0,1fr) 70px minmax(0,1fr); }
}

body .report-page .report-stream-meta > span { min-width: 0; flex: 1; }
body .report-page .report-stream-label { display: block; margin-bottom: 5px; color: var(--color-muted); font-size: 10px; font-weight: 600; }
body .report-page #report-stream-link { display: block; box-sizing: border-box; width: 100%; min-width: 0; height: 40px; padding: 8px 10px; border: 1px solid var(--color-line); border-radius: 5px; background: #fff; color: var(--color-ink); font: inherit; font-size: 13px; }
body .report-page .report-stream-meta a { margin-top: 5px; }
body .report-page .report-stream-meta .team-round-error { margin: 5px 0 0; }
@media print { body .report-page #report-stream-link, body .report-page .report-stream-meta .team-round-error { display: none; } }

/* Public live results and the compact header entry. */
body .site-brand { display:flex; align-items:center; gap:14px; min-width:0; }
body .site-brand .site-logo { min-width:0; }
body .site-live-link { display:inline-flex; align-items:center; gap:6px; flex:none; min-height:32px; padding:6px 9px; border:1px solid #ecc0c7; border-radius:5px; background:#fff3f5; color:#bd2944; font-size:12px; font-weight:700; letter-spacing:.05em; animation:csb-live-pulse 1.8s ease-in-out infinite; }
body .site-live-link>span { width:6px; height:6px; border-radius:50%; background:currentColor; }
body .site-live-link[hidden] { display:none!important; }
@keyframes csb-live-pulse { 0%,100% { box-shadow:0 0 0 0 #bd294400; opacity:1; } 50% { box-shadow:0 0 0 4px #bd294414; opacity:.72; } }
body .public-live-page { padding-top:32px; padding-bottom:64px; }
.public-live-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:0 0 24px; }
.public-live-heading h2 { margin:5px 0 9px; font-size:30px; line-height:1.25; }
.public-live-heading p { margin:0; color:var(--color-muted); font-size:13px; }
.public-live-back { display:inline-block; margin-bottom:20px; color:#38699c; font-size:13px; }
.public-live-connection { color:#5c7492; font-size:12px; }
.public-live-total { display:grid; grid-template-columns:auto auto auto; align-items:center; gap:8px; flex:none; padding:14px 24px; border:1px solid #cbd9ea; border-radius:7px; background:#edf3fc; font-size:30px; font-variant-numeric:tabular-nums; }
.public-live-total small { grid-column:1/-1; text-align:center; font-size:10px; font-weight:500; color:#60758f; }
.public-live-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:14px 24px; margin-bottom:28px; font-size:12px; color:#38699c; }
.public-live-fixtures { display:grid; gap:14px; }
.public-live-fixture { display:grid; grid-template-columns:56px minmax(0,1fr) 90px; align-items:center; gap:9px 14px; padding:20px; border:1px solid #ccd9ea; border-radius:7px; background:#fff; }
.public-live-fixture:hover { border-color:#769bc9; background:#f5f8fe; }
.public-live-tag { color:#bd2944; font-size:11px; font-weight:700; }
.public-live-fixture>strong { line-height:1.5; }
.public-live-fixture>b { text-align:center; font-size:25px; font-variant-numeric:tabular-nums; }
.public-live-fixture>small { grid-column:2; color:var(--color-muted); font-size:12px; }
.public-live-follow { grid-column:3; text-align:center; font-size:11px; color:#38699c; }
.public-live-group { margin:28px 0; }
.public-live-group h3 { display:flex; align-items:center; gap:10px; margin:0 0 12px; font-size:20px; }
.public-live-group h3 small { min-width:23px; padding:3px 6px; border-radius:4px; background:#e1eafa; color:#476486; font-size:11px; text-align:center; }
.public-live-game { margin:0 0 10px; border:1px solid #ccd9ea; border-radius:6px; background:#fff; overflow:hidden; }
.public-live-game[data-status=running] { border-color:#86a8d1; }
.public-live-game>header { display:flex; align-items:center; gap:10px; padding:9px 14px; background:#e8f0fc; color:#41638c; font-size:11px; }
.public-live-game>header>span { min-width:20px; font-weight:600; }.public-live-game>header>small { margin-left:auto; }
.public-live-result { display:grid; grid-template-columns:minmax(0,1fr) 86px minmax(0,1fr); align-items:center; gap:14px; padding:16px; }
.public-live-result>strong { min-width:0; font-size:14px; font-weight:500; line-height:1.6; overflow-wrap:anywhere; }.public-live-result>strong:last-child { text-align:right; }
.public-live-result>output { display:flex; justify-content:center; gap:8px; font-size:26px; color:#738197; font-variant-numeric:tabular-nums; }
.public-live-result .is-leading { color:#245a95; font-weight:700; }.public-live-result .is-winner { color:var(--color-winner-score); font-weight:700; }
.public-live-empty { padding:16px; border:1px solid #d4e0ef; border-radius:6px; background:#f5f8fd; color:var(--color-muted); font-size:13px; }
.public-live-rounds { padding:0 16px 12px; font-size:12px; }.public-live-rounds>summary { cursor:pointer; padding:9px 0; color:#41638c; }
.public-live-rounds>div { display:grid; grid-template-columns:24px minmax(0,1fr) 64px minmax(0,1fr); gap:8px; align-items:center; padding:8px 0; border-top:1px solid #e2e9f4; }
.public-live-rounds>div>output { text-align:center; }.public-live-rounds>div>span:last-child { text-align:right; }.public-live-rounds>div>span { min-width:0; overflow-wrap:anywhere; }
@media(max-width:600px) {
    body .site-brand { gap:8px; }
    body .site-brand:has([data-site-live]:not([hidden])) .site-logo img { width:clamp(118px,calc(100vw - 192px),170px); }
    body .site-live-link { padding:6px 7px; font-size:11px; }
    .public-live-heading { align-items:flex-start; flex-direction:column; gap:14px; }.public-live-heading h2 { font-size:24px; }
    .public-live-total { padding:10px 18px; font-size:26px; }.public-live-result { grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr); gap:8px; padding:12px; }.public-live-result>strong { font-size:12px; }.public-live-result>output { font-size:23px; gap:5px; }
    .public-live-fixture { grid-template-columns:42px minmax(0,1fr) 65px; padding:14px; gap:8px; }.public-live-fixture>strong { font-size:13px; }.public-live-fixture>b { font-size:22px; }.public-live-fixture>small { font-size:11px; }.public-live-follow { font-size:10px; }
    .public-live-rounds { padding:0 12px 8px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { body .site-live-link { animation:none; } }
@media print { body .site-live-link { display:none!important; } }
