/* Speldags: a calm, sport-neutral base. The sport's accent colour comes from data; tokens.css holds every colour. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--sd-ground);
    color: var(--sd-ink);
    font: 400 17px/1.5 var(--sd-font);
    font-optical-sizing: auto;
}

/* "Till innehållet": first on the page, shown when it has focus. */
.skip-link { position: absolute; left: var(--sd-space-4); top: -100px; z-index: 20; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sd-space-4); background: var(--sd-ground); border: 2px solid var(--sd-ink); border-radius: var(--sd-radius-pill); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--sd-space-2); }
main:focus { outline: none; }
a { color: var(--sd-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
/* A phone number never breaks in the middle. */
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sd-accent-text); outline-offset: 2px; }

h1, h2, h3 { font-weight: 800; margin: 0; text-wrap: balance; }
h1 { font-size: 36px; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: var(--sd-space-3); }
h2 { font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; margin: var(--sd-space-7) 0 var(--sd-space-3); }
h3 { font-size: 18px; line-height: 1.25; font-weight: 600; margin: var(--sd-space-6) 0 var(--sd-space-2); }
@media (min-width: 768px) {
    h1 { font-size: 48px; }
    h2 { font-size: 26px; }
}
p { margin: 0 0 var(--sd-space-4); }
ul { padding-left: 1.2rem; }
code { font-size: 0.9em; background: var(--sd-panel); padding: 0.1em 0.35em; border-radius: var(--sd-radius-image); }
.icon { flex: none; display: block; }
.figures { font-family: var(--sd-font-figures); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* The planned time, struck through under a time the delay has moved. */
.time-span { white-space: nowrap; }
.was { display: block; font: 600 15px/1.2 var(--sd-font-figures); font-variant-numeric: tabular-nums; color: var(--sd-muted); }

/* Layout: one left-aligned column, centred on wide screens. Panel bands run edge to edge. */
.wrap { width: 100%; max-width: calc(680px + 2 * var(--sd-space-5)); margin: 0 auto; padding: 0 var(--sd-space-5); }
@media (min-width: 768px) { .wrap { max-width: calc(680px + 2 * var(--sd-space-7)); padding: 0 var(--sd-space-7); } }
.wide .wrap { max-width: 74rem; }
main.wrap { flex: 1; padding-top: var(--sd-space-6); padding-bottom: var(--sd-space-8); }
main.full { flex: 1; }

.site-header .header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sd-space-4); min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--sd-ink); font: 800 22px/1 var(--sd-font); letter-spacing: -0.02em; }
.brand svg { flex: none; }
.header-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.admin-nav { display: flex; gap: var(--sd-space-5); align-items: center; font-weight: 600; flex-wrap: wrap; }
.admin-nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.admin-nav a:hover, .admin-nav .link-button:hover { text-decoration: underline; }
.admin-nav .link-button { text-decoration: none; font-weight: 600; }

.site-footer { color: var(--sd-muted); font-size: 15px; padding: var(--sd-space-2) 0 var(--sd-space-7); }
.site-footer p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sd-space-6); }
.site-footer a { color: var(--sd-muted); display: inline-flex; align-items: center; min-height: 44px; }

/* Sponsor: once per page, centred above the footer. */
.sponsor { margin: var(--sd-space-8) 0 0; padding: var(--sd-space-7) 0 var(--sd-space-6); border-top: 1.5px solid var(--sd-line); display: flex; flex-direction: column; align-items: center; gap: var(--sd-space-3); text-align: center; }
/* After a band the band's edge already divides, so the line and the gap above the sponsor go. Where the
   sponsor is inside the page (schedule, invitation), main adds no space below it, so the gap to the footer
   is the same --sd-space-6 as elsewhere. */
main:has(> .band:last-child) + .wrap .sponsor { border-top: 0; margin-top: 0; }
main:has(.print-sheet > .sponsor:last-child) { padding-bottom: 0; }
.sponsor-label { margin: 0; color: var(--sd-muted); font-size: 15px; }
.sponsor-logo { width: 180px; height: auto; display: block; }

/* 34em is about 65 characters of Bricolage at 17 px; ch is measured on the digit 0 and gave 80–85. */
.lead { font-size: 17px; color: var(--sd-muted); max-width: 34em; }
.muted { color: var(--sd-muted); }
.small { font-size: 15px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; margin-bottom: var(--sd-space-2); }
.prose { max-width: 34em; }
.prose h1 { margin-bottom: var(--sd-space-4); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--sd-space-5); margin: 0 0 var(--sd-space-5); }
.facts dt { color: var(--sd-muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts-note { display: block; font-weight: 400; color: var(--sd-muted); }

.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sd-space-3) var(--sd-space-5); padding: var(--sd-space-4) var(--sd-space-5); background: var(--sd-panel); border-radius: var(--sd-radius-card); margin: 0 0 var(--sd-space-6); }
.callout p { margin: 0; }

/* Shifts: one row per shift, free spots shown as dots. */
.role { margin: var(--sd-space-7) 0 0; }
.role h2 { margin: 0 0 var(--sd-space-1); }
.role > p, .role > .prose > * { margin: 0 0 var(--sd-space-2); }
.shift-list { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--sd-line); max-width: 30rem; }
.shift-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--sd-space-3); padding: var(--sd-space-3) 0; border-bottom: 1.5px solid var(--sd-line); }
.shift-list .time { font: 600 22px/1 var(--sd-font-figures); font-variant-numeric: tabular-nums; display: block; }
.spots { display: flex; align-items: center; gap: var(--sd-space-2); margin-top: 6px; color: var(--sd-muted); font-size: 15px; }
.bibs { display: inline-flex; gap: var(--sd-space-1); }
.bib { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--sd-accent-text); }
.bib.taken { background: var(--sd-accent-text); }
.shift-list li.is-full .time { color: var(--sd-muted); }
.state { font-size: 14px; color: var(--sd-muted); font-weight: 600; }

/* My shift: the time is what the parent needs to remember. Cancelling comes last, after a question. */
.shift-when { margin: 0 0 var(--sd-space-5); }
.shift-time { display: block; white-space: nowrap; font: 600 30px/1.1 var(--sd-font-figures); font-variant-numeric: tabular-nums; color: var(--sd-accent-text); }
.shift-date { color: var(--sd-muted); }
.cancel { margin: var(--sd-space-7) 0 0; padding-top: var(--sd-space-6); border-top: 1.5px solid var(--sd-line); }
.cancel h2 { margin-top: 0; }
@media (min-width: 768px) { .shift-time { font-size: 36px; } }

/* Forms: label above the field, 16 px text in the field so iOS does not zoom. */
.panel { border: 1.5px solid var(--sd-line); border-radius: var(--sd-radius-card); padding: var(--sd-space-5); margin: 0 0 var(--sd-space-6); background: var(--sd-ground); }
.panel h2 { margin-top: 0; }
form .field { margin: 0 0 var(--sd-space-5); }
label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.field-text strong { display: block; font-size: 15px; margin: 0 0 6px; }
label .required, legend .required { font-weight: 400; color: var(--sd-muted); }
label.checkbox, .checkbox label { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: 17px; min-height: 44px; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--sd-accent); flex: none; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
    width: 100%;
    font: 400 16px/1.4 var(--sd-font);
    padding: var(--sd-space-3) var(--sd-space-4);
    border: 1.5px solid var(--sd-field-border);
    border-radius: var(--sd-radius-field);
    background: var(--sd-ground);
    color: var(--sd-ink);
    min-height: 48px;
}
input:focus, select:focus, textarea:focus { border-color: var(--sd-accent-text); border-width: 2px; padding: calc(var(--sd-space-3) - 0.5px) calc(var(--sd-space-4) - 0.5px); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sd-accent-text); outline-offset: 2px; }
input[type=checkbox]:focus, input[type=radio]:focus { padding: 0; }
textarea { min-height: 7.5rem; line-height: 1.45; }
::placeholder { color: var(--sd-muted); opacity: 1; }
.hint { color: var(--sd-muted); font-size: 15px; margin: 6px 0 0; }
.field-validation-error { display: block; color: var(--sd-error); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.validation-summary-errors { color: var(--sd-error); font-size: 15px; font-weight: 600; }
.validation-summary-errors ul { margin: 0 0 var(--sd-space-4); }
.validation-summary-valid { display: none; }
input.input-validation-error, select.input-validation-error, textarea.input-validation-error { border-color: var(--sd-error); }
fieldset.plain { border: 0; padding: 0; margin: 0 0 var(--sd-space-5); min-width: 0; }
fieldset.plain legend { padding: 0; margin: 0 0 6px; font-size: 15px; font-weight: 600; }
fieldset { border: 1.5px solid var(--sd-line); border-radius: var(--sd-radius-field); padding: var(--sd-space-4); margin: 0 0 var(--sd-space-4); }

.grid-2, .grid-3 { display: grid; gap: 0 var(--sd-space-4); }
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Buttons: filled pills. Ink on the start page and in admin, the sport's accent inside a sport scope. */
.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sd-space-2);
    min-height: 48px;
    padding: var(--sd-space-3) var(--sd-space-6);
    font: 600 16px/1.15 var(--sd-font);
    border-radius: var(--sd-radius-pill);
    border: 2px solid var(--sd-ink);
    background: var(--sd-ink);
    color: var(--sd-ground);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}
.sport .button, .sport button { background: var(--sd-accent); border-color: var(--sd-accent); color: var(--sd-on-accent); }
/* Dark mode: a filled button in the sport's colour gets an edge in AccentColorDark, which has at least 4.5:1
   against the dark background and panel, so a dark accent (Övriga, partly innebandy) never melts into the page. */
/* Outside a sport the ink pill would turn almost white and outshine the page; it becomes panel with an ink edge. */
@media screen and (prefers-color-scheme: dark) {
    :where(:root:not(.sd-light)) :is(.button, button):not(.secondary, .danger, .link-button) { background: var(--sd-panel); border-color: var(--sd-ink); color: var(--sd-ink); }
    :where(:root:not(.sd-light)) .sport :is(.button, button):not(.secondary, .danger, .link-button) { background: var(--sd-accent); border-color: var(--sd-accent-dark); color: var(--sd-on-accent); }
}
.button:hover, button:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.button.secondary, button.secondary, .sport .button.secondary, .sport button.secondary { background: var(--sd-ground); border-color: var(--sd-ink); color: var(--sd-ink); }
.button.small, button.small { min-height: 44px; padding: var(--sd-space-2) var(--sd-space-4); font-size: 15px; }
button.danger, .sport button.danger { background: var(--sd-ground); color: var(--sd-error); border-color: var(--sd-error); }
button[disabled] { opacity: 0.45; cursor: not-allowed; text-decoration: none; }
/* A button that looks like a link, with the 44 px target the spec asks for. */
.link-button, .sport .link-button { display: inline-flex; align-items: center; background: none; border: none; min-height: 44px; padding: 0; color: var(--sd-ink); text-decoration: underline; text-underline-offset: 0.18em; font: inherit; border-radius: 0; }
.actions { display: flex; gap: var(--sd-space-3) var(--sd-space-4); flex-wrap: wrap; align-items: center; margin: var(--sd-space-5) 0; }
form.inline { display: inline; }
form.inline select { width: auto; min-height: 44px; padding: var(--sd-space-1) var(--sd-space-2); margin-right: 6px; }
@media (max-width: 480px) {
    .panel .actions button[type=submit], form.registration .actions button[type=submit] { width: 100%; }
}

/* Notices */
.notice { border-left: 4px solid var(--sd-ok); background: var(--sd-ok-bg); color: var(--sd-ink); padding: var(--sd-space-3) var(--sd-space-4); border-radius: 0 var(--sd-radius-field) var(--sd-radius-field) 0; margin: 0 0 var(--sd-space-5); }
.notice.warn { border-color: var(--sd-warn); background: var(--sd-warn-bg); }
.notice.error { border-color: var(--sd-error); background: var(--sd-error-bg); }
.notice ul { margin: var(--sd-space-2) 0 0; }
.error-summary p { margin: 0; }
.error-summary li { margin: var(--sd-space-1) 0; }
details.notice summary { cursor: pointer; font-weight: 600; }
.panel details { margin: 0 0 var(--sd-space-4); }
details.details { margin: 0 0 var(--sd-space-4); }
details.details summary { cursor: pointer; padding: var(--sd-space-3) 0; }
details.details p { margin: 0; }
.panel summary { cursor: pointer; font-weight: 600; margin: 0 0 var(--sd-space-3); }

/* Status labels: 14 px, weight 600, sentence case. */
.badge { display: inline-block; font: 600 14px/1.6 var(--sd-font); padding: 0 var(--sd-space-3); border-radius: var(--sd-radius-pill); background: var(--sd-panel); border: 1.5px solid var(--sd-line); color: var(--sd-ink); vertical-align: middle; white-space: nowrap; }
.badge.warn { background: var(--sd-warn-bg); border-color: var(--sd-warn); color: var(--sd-warn); }
.badge.ok { background: var(--sd-ok-bg); border-color: var(--sd-ok); color: var(--sd-ok); }
.badge.strong { background: var(--sd-ground); border-color: var(--sd-ink); }

/* Tables */
.table-scroll { overflow-x: auto; margin: 0 0 var(--sd-space-5); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: var(--sd-space-3) var(--sd-space-2); border-bottom: 1.5px solid var(--sd-line); vertical-align: top; }
th { font-size: 14px; color: var(--sd-muted); font-weight: 600; border-bottom-width: 2px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
/* Superadmin: many small tables, so tighter rows. Row headings read as labels, not column headings. */
table.compact th, table.compact td { padding: var(--sd-space-2) var(--sd-space-2); font-size: 15px; }
table.compact tbody th { color: var(--sd-ink); border-bottom-width: 1.5px; white-space: nowrap; }
.card table.compact tr:last-child > * { border-bottom: none; }
.nowrap { white-space: nowrap; }

/* Admin: same tokens and controls, denser. */
.event-head { margin: 0 0 var(--sd-space-5); }
/* The sport's icon in its accent before the event's name, in the event list and the event head. */
.event-head-title, .event-list-title { display: flex; align-items: center; gap: var(--sd-space-3); }
.event-list-title { gap: var(--sd-space-2); }
.event-head-title .icon, .event-list-title .icon { color: var(--sd-accent-text); }
.event-head .meta { display: flex; flex-wrap: wrap; gap: var(--sd-space-2) var(--sd-space-4); align-items: center; color: var(--sd-muted); margin: 0; }
.tabs { display: flex; gap: var(--sd-space-1) var(--sd-space-6); flex-wrap: wrap; scrollbar-width: thin; border-bottom: 1.5px solid var(--sd-line); margin: 0 0 var(--sd-space-6); }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--sd-muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.tabs a:hover { color: var(--sd-ink); }
.tabs a.active { color: var(--sd-ink); border-bottom-color: var(--sd-ink); }

/* Admin on a phone: the menu and the tabs scroll sideways instead of taking two lines, and tables
   marked .stack show each row as a block with labels. */
@media (max-width: 640px) {
    .admin-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: var(--sd-space-5); scrollbar-width: thin; }
    .admin-nav a, .admin-nav .link-button { white-space: nowrap; }
    .tabs { flex-wrap: nowrap; overflow-x: auto; }
    .tabs a { white-space: nowrap; }
    table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    table.stack tr { display: block; padding: var(--sd-space-3) 0; border-bottom: 1.5px solid var(--sd-line); }
    table.stack td { display: flex; gap: var(--sd-space-3); align-items: center; flex-wrap: wrap; padding: var(--sd-space-1) 0; border: 0; }
    table.stack td[data-label]::before { content: attr(data-label); min-width: 5rem; color: var(--sd-muted); font-size: 14px; font-weight: 600; }
    table.stack td:empty { display: none; }
    table.stack .stack-title { font-weight: 600; }
}

.card { background: var(--sd-panel); border-radius: var(--sd-radius-card); padding: var(--sd-space-4) var(--sd-space-5); margin: 0 0 var(--sd-space-5); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.hint + .card { margin-top: var(--sd-space-5); }
.checklist ul { list-style: none; padding: 0; margin: 0 0 var(--sd-space-2); display: grid; gap: var(--sd-space-2); }
.checklist li { display: flex; gap: var(--sd-space-3); align-items: baseline; }
.checklist .badge { min-width: 4.5rem; text-align: center; }
.card.dev { background: transparent; border: 1.5px dashed var(--sd-placeholder); margin-top: var(--sd-space-8); }

.stat-line { font-size: 17px; margin: 0 0 var(--sd-space-2); }
.stat-line strong { font: 700 26px/1 var(--sd-font-figures); font-variant-numeric: tabular-nums; }

.event-list { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--sd-line); }
.event-list li { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: var(--sd-space-4); align-items: center; padding: var(--sd-space-3) 0; border-bottom: 1.5px solid var(--sd-line); }
.event-list .date { font: 700 22px/1 var(--sd-font-figures); }
.event-list .date span { display: block; font: 400 14px/1.4 var(--sd-font); color: var(--sd-muted); }
.event-list a { font-weight: 600; }
/* Rows without a date: text and badge. Long addresses break instead of running under the badge. */
.event-list li.no-date { grid-template-columns: 1fr auto; }
.event-list li.no-date > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
    /* The badge goes under the title, so it does not squeeze it. */
    .event-list li:not(.no-date) { grid-template-columns: 5.5rem 1fr; }
    .event-list .event-list-status { grid-column: 2; }
}
.event-list li span .small { display: block; }

.row-edit { display: flex; gap: var(--sd-space-3); align-items: center; margin: 0 0 var(--sd-space-3); max-width: 30rem; }
.row-edit input[type=text] { flex: 1; }
.row-edit label.checkbox { margin: 0; white-space: nowrap; }

.role-block { border-left: 2px solid var(--sd-line); padding: var(--sd-space-1) 0 var(--sd-space-1) var(--sd-space-4); margin: var(--sd-space-7) 0; }
.role-block h2 { margin: 0 0 var(--sd-space-1); }
.role-block > .prose > * { margin: 0 0 var(--sd-space-1); }
.shift-admin { padding: var(--sd-space-3) 0; border-bottom: 1.5px solid var(--sd-line); }
.shift-admin:last-child { border-bottom: none; }
.shift-admin header { display: flex; flex-wrap: wrap; gap: var(--sd-space-2) var(--sd-space-4); align-items: center; }
.shift-admin .time { font: 600 20px/1 var(--sd-font-figures); font-variant-numeric: tabular-nums; }
.shift-admin .table-scroll { margin: var(--sd-space-2) 0 0; }
.shift-admin tr:last-child td { border-bottom: none; }

.versions { display: flex; gap: var(--sd-space-2); flex-wrap: wrap; align-items: center; margin: 0 0 var(--sd-space-4); }
.versions a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sd-space-4); border: 1.5px solid var(--sd-line); border-radius: var(--sd-radius-pill); text-decoration: none; color: var(--sd-ink); font-weight: 600; font-size: 15px; }
.versions a.active { border: 2px solid var(--sd-ink); }

/* Screens in admin: the address in plain text and as a QR code, to carry over to the TV. */
.screen-list { list-style: none; padding: 0; margin: 0 0 var(--sd-space-6); border-top: 1.5px solid var(--sd-line); }
.screen-item { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--sd-space-5); align-items: start; padding: var(--sd-space-4) 0; border-bottom: 1.5px solid var(--sd-line); }
.screen-item > div:only-child { grid-column: 1 / -1; }
.screen-item h3 { margin: 0 0 var(--sd-space-1); }
.screen-item p { margin: 0 0 var(--sd-space-2); }
.screen-item .actions { margin: var(--sd-space-3) 0 0; }
.screen-qr svg { display: block; width: 100%; height: auto; }
.screen-address code { word-break: break-all; }
.screen-short strong { display: block; font-size: 30px; line-height: 1.2; letter-spacing: 0.01em; }
@media (max-width: 480px) { .screen-item { grid-template-columns: 1fr; } .screen-qr { max-width: 9rem; } }

/* Schedule grid */
table.schedule td.round { font: 700 20px/1 var(--sd-font-figures); color: var(--sd-muted); width: 3rem; }
table.schedule td.time { font: 600 20px/1 var(--sd-font-figures); font-variant-numeric: tabular-nums; width: 5rem; }
table.schedule td.slot { min-width: 13rem; }
.match { display: block; padding: var(--sd-space-2) var(--sd-space-3); border-left: 3px solid var(--sd-ink); background: var(--sd-panel); border-radius: 0 var(--sd-radius-image) var(--sd-radius-image) 0; }
.match .teams { font-weight: 600; }
.match .ref { display: block; font-size: 14px; color: var(--sd-muted); }
.match .edit { display: block; margin-top: var(--sd-space-1); font-size: 14px; }
.match .edit a { display: inline-flex; align-items: center; min-height: 44px; }
td.selected .match { border-left-color: var(--sd-warn); background: var(--sd-warn-bg); outline: 2px solid var(--sd-warn); }
.empty-slot { color: var(--sd-muted); }

/* A team's matches */
.matches { list-style: none; padding: 0; margin: 0 0 var(--sd-space-4); border-top: 1.5px solid var(--sd-line); }
.matches li { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--sd-space-3); align-items: baseline; padding: var(--sd-space-3) 0; border-bottom: 1.5px solid var(--sd-line); }
.matches .time { font: 700 26px/1 var(--sd-font-figures); font-variant-numeric: tabular-nums; }
.matches .court { display: block; color: var(--sd-muted); font-size: 15px; }

/* Rounds as a list: the time in scoreboard figures, then court and teams. Public schedule and team page. */
.round-list { list-style: none; padding: 0; margin: 0 0 var(--sd-space-5); border-top: 1.5px solid var(--sd-line); }
.round-list li { display: grid; grid-template-columns: minmax(4rem, max-content) 1fr; gap: var(--sd-space-3); padding: var(--sd-space-3) 0; border-bottom: 1.5px solid var(--sd-line); }
.round-time { font: 600 22px/1.2 var(--sd-font-figures); font-variant-numeric: tabular-nums; }
.round-matches { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.round-match { display: grid; grid-template-columns: minmax(4.5rem, max-content) 1fr; gap: var(--sd-space-3); }
.round-court { color: var(--sd-muted); }
/* "Visa matcher för": a plain GET form, so it works without JavaScript. */
.team-filter { margin: 0 0 var(--sd-space-5); }
.team-filter-row { display: flex; gap: var(--sd-space-3); }
.team-filter .select { flex: 1; min-width: 0; }
/* On the event day: the round in progress says so in text, rounds played are toned down. */
.round-now { display: block; font: 600 14px/1.3 var(--sd-font); color: var(--sd-accent-text); }
.round-list li.current .round-time { color: var(--sd-accent-text); }
.round-list li.played { color: var(--sd-muted); }
/* A team's name never breaks; on a phone each team gets a line, the second after a muted dash. */
.round-teams .team { white-space: nowrap; }
.round-teams .vs { color: var(--sd-muted); }
@media (max-width: 420px) {
    .round-match { grid-template-columns: 1fr; gap: 0; }
    .round-court { font-size: 15px; }
    .round-teams .team { display: block; }
}

/* Delay controls, used one-handed on a phone in the hall */
.delay-panel { background: var(--sd-panel); border-radius: var(--sd-radius-card); padding: var(--sd-space-6) var(--sd-space-5); margin: 0 0 var(--sd-space-4); text-align: center; }
.delay-value { font: 700 64px/1 var(--sd-font-figures); margin: 0 0 var(--sd-space-2); font-variant-numeric: tabular-nums; }
.delay-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sd-space-3); margin: var(--sd-space-5) 0 var(--sd-space-3); }
.delay-buttons button { min-height: 72px; font-size: 22px; }

/* Registration: each team row is a surface in panel colour. It stays a fieldset with a legend for screen
   readers; only the look changes. The fields keep 3:1 against the panel through --sd-field-border. */
.team-row { border: 0; background: var(--sd-panel); border-radius: var(--sd-radius-card); padding: var(--sd-space-4); margin: 0 0 var(--sd-space-3); min-width: 0; }
.team-row legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--sd-space-3); font: 600 14px/1.3 var(--sd-font); color: var(--sd-ink); }
.team-row > :not(legend) { clear: both; }
.team-row .field:last-child, .team-row .grid-team { margin-bottom: 0; }

/* A select with the chevron from _Icon instead of the browser's own arrow. */
.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; }
.select select:focus { padding-right: calc(2.5rem - 0.5px); }
.select .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--sd-ink); }
.grid-team { display: grid; gap: 0 var(--sd-space-3); grid-template-columns: 1fr 1fr; }
.grid-team .field:first-child { grid-column: 1 / -1; }
@media (min-width: 640px) {
    .grid-team { grid-template-columns: 1.6fr 1.4fr 1fr 1fr; }
    .grid-team .field:first-child { grid-column: auto; }
}

/* Invitation: one A4, in the new fonts and the sport's accent. */
.invitation .print-tip { margin: 0 0 var(--sd-space-3); }
.invitation .board { margin: 0 0 var(--sd-space-5); padding: var(--sd-space-6); border: 1.5px solid var(--sd-line); border-radius: var(--sd-radius-ticket); }
.invitation .board .class { color: var(--sd-muted); margin: 0 0 var(--sd-space-1); }
.invitation .board h1 { margin: 0 0 var(--sd-space-2); }
.invitation .board-facts { display: flex; flex-wrap: wrap; gap: var(--sd-space-3) var(--sd-space-7); margin: var(--sd-space-4) 0 0; }
.invitation .board-facts div { display: flex; flex-direction: column; }
.invitation .board-facts dt { order: 2; font-size: 14px; color: var(--sd-muted); }
.invitation .board-facts dd { margin: 0; font: 700 36px/1.05 var(--sd-font-figures); font-variant-numeric: tabular-nums; color: var(--sd-accent-text); }
.invitation-facts { grid-template-columns: 11rem 1fr; }
.invitation-signup { display: flex; gap: var(--sd-space-6); align-items: center; border: 1.5px solid var(--sd-line); border-radius: var(--sd-radius-card); padding: var(--sd-space-4) var(--sd-space-5); margin: var(--sd-space-6) 0; }
.invitation-signup h2 { margin: 0 0 6px; }
.invitation-signup p { margin: 0 0 var(--sd-space-1); }
.invitation-signup .signup-link { font-weight: 600; word-break: break-all; }
.qr { width: 160px; height: 160px; flex: none; }
@media (max-width: 480px) {
    .invitation-signup { flex-direction: column; align-items: flex-start; }
    .invitation-facts { grid-template-columns: 1fr; }
    .invitation-facts dd { margin-bottom: var(--sd-space-2); }
}

.admin-link { margin: var(--sd-space-7) 0 0; font-size: 15px; }
.admin-link a { color: var(--sd-muted); }

/* ---- Components ---- */

/* Event card (_EventCard): a ticket with a date stub in the sport's colour. The whole card is one link. */
.event-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sd-space-4); }
.event-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(84px, auto) 1fr;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: "stub sport" "stub title" "stub meta" "stub status";
    min-height: 136px;
    border: 1.5px solid var(--sd-line);
    border-radius: var(--sd-radius-card);
    background: var(--sd-ground);
    color: var(--sd-ink);
    text-decoration: none;
}
.event-card > :not(.event-card-stub) { padding: 0 var(--sd-space-4); border-left: 2px dashed var(--sd-line-strong); }
.event-card-stub {
    position: relative;
    grid-area: stub;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sd-space-3) var(--sd-space-1);
    background: var(--sd-accent);
    color: var(--sd-on-accent);
    border-radius: calc(var(--sd-radius-card) - 1.5px) 0 0 calc(var(--sd-radius-card) - 1.5px);
    font-family: var(--sd-font-figures);
    text-align: center;
}
/* Dark mode: the stub gets an edge in AccentColorDark like the sport buttons, so a dark accent (Övriga) stays visible. */
@media screen and (prefers-color-scheme: dark) {
    :where(:root:not(.sd-light)) .event-card-stub { box-shadow: inset 0 0 0 1.5px var(--sd-accent-dark); }
}
.event-card-weekday, .event-card-month { font: 600 16px/1.1 var(--sd-font); }
.event-card-day { font: 700 46px/1 var(--sd-font-figures); font-variant-numeric: tabular-nums; }
.event-card-sport { grid-area: sport; display: flex; align-items: center; gap: 6px; padding-top: var(--sd-space-4) !important; color: var(--sd-accent-text); font-size: 14px; font-weight: 600; }
.event-card-title { grid-area: title; font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; padding-top: var(--sd-space-1) !important; }
.event-card-meta { grid-area: meta; color: var(--sd-muted); font-size: 15px; padding-top: var(--sd-space-1) !important; }
.event-card-status { grid-area: status; font-size: 14px; font-weight: 600; padding-top: var(--sd-space-2) !important; padding-bottom: var(--sd-space-4) !important; }
.event-card:hover .event-card-title { text-decoration: underline; text-underline-offset: 0.18em; }
.event-card:hover { border-color: var(--sd-line-strong); }
/* Half-circle notches at the seam, above and below. Only the half inside the card shows its edge. They hang
   from the stub, so they stay at the seam when the stub grows with larger text. */
.event-card-stub::before, .event-card-stub::after {
    content: "";
    position: absolute;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--sd-ground);
    border: 1.5px solid transparent;
    transform: rotate(45deg);
}
.event-card-stub::before { top: -8.75px; border-right-color: var(--sd-line); border-bottom-color: var(--sd-line); }
.event-card-stub::after { bottom: -8.75px; border-left-color: var(--sd-line); border-top-color: var(--sd-line); }

/* Ticket (_Ticket): the one prominent element on the event page. */
.ticket { position: relative; margin: 0 0 var(--sd-space-6); border: 1.5px solid var(--sd-line); border-radius: var(--sd-radius-ticket); background: var(--sd-ground); }
.ticket-top {
    position: relative;
    overflow: hidden;
    padding: var(--sd-space-6) var(--sd-space-6) var(--sd-space-6);
    background: var(--sd-accent);
    color: var(--sd-on-accent);
    border-radius: calc(var(--sd-radius-ticket) - 1.5px) calc(var(--sd-radius-ticket) - 1.5px) 0 0;
}
.ticket-top p { position: relative; margin: 0; }
/* The watermark stays to the right of the text, so text never lies on it (22 % white lowers the contrast). */
.ticket-mark { position: absolute; right: -96px; top: -40px; opacity: 0.22; }
.ticket-weekday { font: 600 17px/1.3 var(--sd-font); }
.ticket-date { font: 700 64px/0.95 var(--sd-font-figures); font-variant-numeric: tabular-nums; margin: var(--sd-space-1) 0 var(--sd-space-3) !important; }
.ticket-time { font: 600 30px/1.1 var(--sd-font-figures); font-variant-numeric: tabular-nums; }
.ticket-matches { font-size: 16px; margin-top: var(--sd-space-1) !important; }
.ticket-perforation { position: relative; margin: 0 var(--sd-space-6); border-top: 2px dashed var(--sd-line-strong); }
.ticket-perforation::before, .ticket-perforation::after {
    content: "";
    position: absolute;
    top: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sd-ground);
    border: 1.5px solid transparent;
    transform: rotate(45deg);
}
.ticket-perforation::before { left: calc(-1 * var(--sd-space-6) - 10.75px); border-top-color: var(--sd-line); border-right-color: var(--sd-line); }
.ticket-perforation::after { right: calc(-1 * var(--sd-space-6) - 10.75px); border-bottom-color: var(--sd-line); border-left-color: var(--sd-line); }
.ticket-facts { list-style: none; margin: 0; padding: var(--sd-space-5) var(--sd-space-6) var(--sd-space-6); display: grid; gap: var(--sd-space-3); }
.ticket-facts li { display: flex; align-items: flex-start; gap: var(--sd-space-3); }
.ticket-facts .icon { color: var(--sd-accent-text); }
.ticket-address { display: block; color: var(--sd-muted); font-size: 15px; }
.ticket-address a { color: var(--sd-ink); white-space: nowrap; }
@media (min-width: 768px) {
    .ticket-date { font-size: 80px; }
    .ticket-time { font-size: 36px; }
    .ticket-top { padding: var(--sd-space-7); }
    .ticket-facts { padding: var(--sd-space-6) var(--sd-space-7) var(--sd-space-7); display: flex; flex-wrap: wrap; gap: var(--sd-space-3) var(--sd-space-7); }
    .ticket-perforation { margin: 0 var(--sd-space-7); }
    .ticket-perforation::before { left: calc(-1 * var(--sd-space-7) - 10.75px); }
    .ticket-perforation::after { right: calc(-1 * var(--sd-space-7) - 10.75px); }
}

/* Timeline (_Timeline): start times in a column of at least 64 px, dots joined by a 2 px line. The column grows
   with larger text, and the line hangs from the dot's rail rather than a fixed offset, so it follows. */
.day-timeline { list-style: none; padding: 0; margin: 0 0 var(--sd-space-6); }
.day-timeline li { display: grid; grid-template-columns: minmax(4rem, max-content) 24px 1fr; column-gap: var(--sd-space-2); padding-bottom: var(--sd-space-5); }
.day-timeline li:last-child { padding-bottom: 0; }
.day-rail { position: relative; }
.day-rail::before { content: ""; position: absolute; left: 11px; top: 18px; bottom: calc(-1 * var(--sd-space-5) - 6px); width: 2px; background: var(--sd-line); }
.day-timeline li:last-child .day-rail::before { display: none; }
.day-time { font: 600 22px/1.2 var(--sd-font-figures); font-variant-numeric: tabular-nums; }
.day-dot { display: block; position: relative; z-index: 1; width: 14px; height: 14px; margin: 6px auto 0; border-radius: 50%; border: 2px solid var(--sd-ink); background: var(--sd-ground); }
.day-body { display: flex; flex-direction: column; padding-top: 1px; }
.day-title { font-weight: 600; }
.day-sub { color: var(--sd-muted); font-size: 15px; }
.day-now { align-self: flex-start; margin-top: var(--sd-space-1); font-size: 14px; font-weight: 600; color: var(--sd-accent-text); }
/* The organizer's description: the first paragraph under the title, the rest folded behind "Läs mer". */
.day-text { margin-top: var(--sd-space-1); font-size: 15px; }
.day-text > *, .day-more .prose > * { margin: 0 0 var(--sd-space-2); }
.day-text > :last-child, .day-more .prose > :last-child { margin-bottom: 0; }
.day-more { font-size: 15px; }
.day-more summary { cursor: pointer; font-weight: 600; padding: var(--sd-space-1) 0; }
.day-more[open] summary { margin-bottom: var(--sd-space-1); }
/* Only the dot marks the matches; the time is the same colour as the others. */
.day-timeline li.rounds .day-dot, .day-timeline li.current .day-dot { background: var(--sd-accent-text); border-color: var(--sd-accent-text); }

/* Action bar at the bottom (_StickyActionBar): mobile only. */
.action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--sd-space-4);
    padding: var(--sd-space-3) var(--sd-space-5) calc(var(--sd-space-3) + env(safe-area-inset-bottom));
    background: var(--sd-ground);
    border-top: 1px solid var(--sd-line);
}
.action-bar-status { margin: 0; display: flex; flex-direction: column; font-size: 15px; line-height: 1.3; }
.action-bar-status span { color: var(--sd-muted); }
.action-bar .button { min-height: 52px; width: 100%; }
/* The space the bar takes. The page keeps it free at the bottom, and scrolling to a focused element keeps
   it clear of the bar (WCAG 2.4.11). In rem, so it grows with the text. */
:root { --sd-action-bar-space: calc(max(76px, 4.75rem) + env(safe-area-inset-bottom)); }
.has-action-bar { scroll-padding-bottom: var(--sd-action-bar-space); }
.has-action-bar body { padding-bottom: var(--sd-action-bar-space); }
@media (min-width: 768px) {
    .action-bar { display: none; }
    .has-action-bar { scroll-padding-bottom: 0; }
    .has-action-bar body { padding-bottom: 0; }
}

/* ---- Pages ---- */

/* Edge-to-edge band in panel colour; its content follows the column. */
.band { margin: var(--sd-space-8) 0 0; padding: var(--sd-space-7) 0; background: var(--sd-panel); }
.band h2 { margin-top: 0; }
.band p { max-width: 34em; }
.band .actions { margin-bottom: 0; }

/* Start page: a big left-aligned headline, the symbol as decoration over the column's right edge. The mark
   sits in the column (.wrap), so it follows the column on wide screens; the hero clips it at the window. */
.hero { overflow: hidden; padding: var(--sd-space-7) 0 var(--sd-space-4); }
.hero .wrap { position: relative; }
.hero h1 { position: relative; font-size: 46px; line-height: 1.02; letter-spacing: -0.03em; max-width: 11ch; margin-bottom: var(--sd-space-4); }
.hero .lead { position: relative; max-width: 34ch; }
.hero-mark { position: absolute; right: -140px; top: 50%; transform: translateY(-50%); color: var(--sd-line); }
.hero-mark .icon { width: 280px; height: 280px; }
@media (min-width: 768px) {
    .hero { padding: var(--sd-space-8) 0 var(--sd-space-6); }
    .hero h1 { font-size: 64px; }
    .hero-mark { right: -110px; }
    .hero-mark .icon { width: 360px; height: 360px; }
}
.upcoming h2 { margin-top: var(--sd-space-6); }

/* Event page */
.event-hero { padding: var(--sd-space-5) 0 var(--sd-space-6); }
.event-hero h1 { margin: var(--sd-space-2) 0 var(--sd-space-3); }
.event-hero .lead { margin: 0; }
.sport-line { display: flex; align-items: center; gap: var(--sd-space-2); margin: 0; color: var(--sd-accent-text); font-weight: 600; }
/* The head of the pages under an event (_PageHead). */
.page-head { padding: var(--sd-space-2) 0 var(--sd-space-5); }
.page-head h1 { margin: var(--sd-space-2) 0 var(--sd-space-3); }
.page-head .lead { margin: 0; }
.page-head .sport-line a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sd-ink); }
/* The action under the ticket: the action bar's status and button, shown where the bar is not. */
.ticket-action { display: none; }
@media (min-width: 768px) {
    .ticket-action { display: flex; align-items: center; justify-content: space-between; gap: var(--sd-space-4); margin: calc(-1 * var(--sd-space-2)) 0 var(--sd-space-7); }
    .ticket-action .button { min-width: 220px; min-height: 52px; }
}

/* Desktop: from 1024 px the start page and the event page get a wider column. On the event page the ticket,
   the status and the main button stand in a column of their own on the right. */
@media (min-width: 1024px) {
    .two-columns .wrap { max-width: calc(1040px + 2 * var(--sd-space-7)); }
    .event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "hero aside" "main aside"; column-gap: var(--sd-space-8); align-items: start; }
    .event-hero { grid-area: hero; }
    .event-main { grid-area: main; min-width: 0; }
    .event-aside { grid-area: aside; position: sticky; top: var(--sd-space-6); padding-top: var(--sd-space-6); }
    .event-main > section:first-child h2 { margin-top: 0; }
    .event-aside .ticket-top { padding: var(--sd-space-6); }
    .event-aside .ticket-date { font-size: 72px; }
    .event-aside .ticket-mark { right: -124px; }
    .event-aside .ticket-facts { display: grid; padding: var(--sd-space-5) var(--sd-space-6) var(--sd-space-6); }
    .event-aside .ticket-perforation { margin: 0 var(--sd-space-6); }
    .event-aside .ticket-perforation::before { left: calc(-1 * var(--sd-space-6) - 10.75px); }
    .event-aside .ticket-perforation::after { right: calc(-1 * var(--sd-space-6) - 10.75px); }
    .event-aside .ticket-action { flex-direction: column; align-items: stretch; margin: 0; }
    .event-aside .ticket-action .button { width: 100%; }
    .two-columns .event-cards { grid-template-columns: 1fr 1fr; }
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

@page { size: A4 portrait; margin: 12mm; }

/* Printouts: posters per court and sheets per team */
.segmented { display: flex; flex-wrap: wrap; gap: var(--sd-space-2); margin: 0 0 var(--sd-space-4); }
.segmented a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sd-space-4); border: 2px solid var(--sd-ink); border-radius: var(--sd-radius-pill); text-decoration: none; color: var(--sd-ink); font-weight: 600; }
.segmented a.active { background: var(--sd-ink); color: var(--sd-ground); }
.poster { background: var(--sd-ground); border: 1.5px solid var(--sd-line); border-radius: var(--sd-radius-card); padding: var(--sd-space-7); margin: 0 0 var(--sd-space-6); }
.poster-event { margin: 0; color: var(--sd-muted); font-size: 18px; }
.poster-court { font: 800 64px/1 var(--sd-font); letter-spacing: -0.03em; margin: var(--sd-space-1) 0 var(--sd-space-6); }
.poster-table { width: 100%; border-collapse: collapse; font-size: 26px; table-layout: fixed; }
.poster-table td { padding: var(--sd-space-2); border-bottom: 2px solid var(--sd-line); vertical-align: baseline; }
.poster-table .time { font: 700 30px/1 var(--sd-font-figures); font-variant-numeric: tabular-nums; width: 18%; }
.poster-table .vs { color: var(--sd-muted); font-size: 0.65em; margin-right: 0.3em; }
.poster-table tr.rest td { color: var(--sd-muted); }
.poster-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--sd-space-3); margin: var(--sd-space-6) 0 0; font-size: 15px; color: var(--sd-muted); }
.poster-logo { height: 28px; vertical-align: middle; margin-left: 6px; }
.team-sheet { border: 1.5px dashed var(--sd-line-strong); border-radius: var(--sd-radius-card); padding: var(--sd-space-5); margin: 0 0 var(--sd-space-4); background: var(--sd-ground); }
.team-sheet h2 { margin: 0 0 var(--sd-space-1); }
.team-sheet .muted { margin: 0; }
.team-sheet-table { width: 100%; border-collapse: collapse; margin: var(--sd-space-3) 0; table-layout: fixed; }
.team-sheet-table th:nth-child(1) { width: 18%; }
.team-sheet-table th:nth-child(2) { width: 22%; }
.team-sheet-table th, .team-sheet-table td { text-align: left; padding: 6px var(--sd-space-2); border-bottom: 1.5px solid var(--sd-line); }
.team-sheet-table .time { font: 700 18px/1.2 var(--sd-font-figures); font-variant-numeric: tabular-nums; }
.team-sheet-day { display: flex; flex-wrap: wrap; gap: var(--sd-space-1) var(--sd-space-4); font-size: 15px; margin: 0; }
/* A sign per club for its changing room: one landscape A4, the name as large as fits. */
.club-sign { display: flex; flex-direction: column; min-height: 420px; background: var(--sd-ground); border: 1.5px solid var(--sd-line); border-radius: var(--sd-radius-card); padding: var(--sd-space-7); margin: 0 0 var(--sd-space-6); }
.club-sign-name { flex: 1; display: flex; align-items: center; margin: var(--sd-space-4) 0; font: 800 88px/1.05 var(--sd-font); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.club-sign-teams { margin: 0; font-size: 28px; font-weight: 600; }
@page club-sign { size: A4 landscape; margin: 15mm; }

@media print {
    .site-header, .site-footer, .no-print, .tabs, .actions, .event-head { display: none; }
    .poster { border: none; border-radius: 0; padding: 0; margin: 0; break-after: page; }
    .poster:last-of-type { break-after: auto; }
    .club-sign { page: club-sign; break-after: page; height: 178mm; box-sizing: border-box; border: none; border-radius: 0; padding: 0; margin: 0; }
    .club-sign:last-of-type { break-after: auto; }
    .club-sign-name { font-size: 80pt; margin: 6mm 0; }
    .club-sign-teams { font-size: 22pt; color: var(--sd-print-ink); }
    .poster-event { font-size: 14pt; color: var(--sd-print-ink); }
    .poster-court { font-size: 60pt; margin: 2mm 0 8mm; }
    .poster-table { font-size: 20pt; }
    .poster-table .time { font-size: 24pt; }
    .poster-table td { padding: 3mm 2mm; border-bottom: 0.4mm solid var(--sd-print-rule); }
    .poster-foot { font-size: 10pt; color: var(--sd-print-ink); margin-top: 8mm; }
    .team-sheet { break-inside: avoid; border: none; border-bottom: 0.4mm dashed var(--sd-print-rule); border-radius: 0; padding: 4mm 0 6mm; margin: 0; }
    .team-sheet-table th, .team-sheet-table td { border-bottom: 0.3mm solid var(--sd-print-rule); }
    body { background: var(--sd-ground); color: var(--sd-print-ink); font-size: 11pt; min-height: 0; display: block; }
    main.wrap { padding: 0; max-width: none; }
    .print-sheet .page-head { padding: 0; }
    .print-sheet .page-head .sport-line a { min-height: 0; }
    .print-sheet h1 { font-size: 22pt; margin: 0 0 2mm; }
    .print-sheet .lead { font-size: 11pt; margin: 0 0 4mm; color: var(--sd-print-ink); }
    .round-list { break-inside: avoid; border-top: 0.3mm solid var(--sd-print-rule); }
    .round-list li { padding: 1.4mm 0; border-bottom: 0.3mm solid var(--sd-print-rule); grid-template-columns: 16mm 1fr; }
    .round-time { font-size: 13pt; }
    .round-matches { gap: 0.6mm; }
    .round-court { color: var(--sd-print-ink); }
    .sponsor { margin-top: 5mm; padding-top: 3mm; }
    .sponsor-logo { width: 35mm; }
    .invitation .board { padding: 5mm 6mm; border-color: var(--sd-print-rule); }
    .invitation .board-facts dd, .sport-line { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .invitation h1 { font-size: 26pt; }
    .invitation-facts { font-size: 11pt; }
    .invitation-signup { margin: 6mm 0; }
    .qr { width: 40mm; height: 40mm; }
    a { color: var(--sd-print-ink); text-decoration: none; }
}
