/* Orava hokej — mobile-first sports scores. System fonts, no web fonts,
   light/dark via prefers-color-scheme. Single stylesheet for all pages. */

:root {
	color-scheme: light dark;
	--bg: #f4f6f8;
	--card: #ffffff;
	--text: #14202b;
	--muted: #5b6b7a;
	--line: #e2e8ee;
	--accent: #0b3d66;
	--accent-soft: #e3edf5;
	--win: #0a6b2d;
	--chip-bg: #eef2f6;
	--link: #0b5cad;
	--radius: 12px;
	--maxw: 720px;
	--topbar-h: 57px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e141b;
		--card: #18222c;
		--text: #e8eef4;
		--muted: #93a3b3;
		--line: #2a3642;
		--accent: #7fb8e8;
		--accent-soft: #1c2f40;
		--win: #5fd38a;
		--chip-bg: #243140;
		--link: #7fb8e8;
	}
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	padding-bottom: env(safe-area-inset-bottom);
}

a {
	color: var(--link);
}

.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--card);
	padding: 0.75rem 1rem;
	z-index: 100;
}

.skip:focus {
	left: 0.5rem;
	top: 0.5rem;
}

/* Sticky top bar: brand + competition switcher. */
.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--card);
	border-bottom: 1px solid var(--line);
	padding-top: env(safe-area-inset-top);
}

.topbar-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0.5rem 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--text);
	font-weight: 700;
	font-size: 1.05rem;
	white-space: nowrap;
	min-height: 44px;
}

.brand-icon {
	width: 28px;
	height: 28px;
	flex: none;
}

.comp-switch {
	display: flex;
	gap: 0.25rem;
	margin-left: auto;
	overflow-x: auto;
	scrollbar-width: none;
}

.comp-switch::-webkit-scrollbar {
	display: none;
}

.comp-link {
	flex: none;
	text-decoration: none;
	color: var(--muted);
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.65rem 0.7rem;
	border-radius: 999px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.comp-link.active {
	background: var(--accent-soft);
	color: var(--accent);
}

/* Banners. */
.banner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0.6rem 0.75rem;
	font-size: 0.9rem;
	text-align: center;
}

.banner-stale {
	background: #fff4d6;
	color: #5c4300;
	border-bottom: 1px solid #e8d48a;
}

@media (prefers-color-scheme: dark) {
	.banner-stale {
		background: #3a2f0a;
		color: #ffe9a3;
		border-bottom-color: #6b5a1c;
	}
}

.banner-offline {
	background: var(--accent-soft);
	color: var(--accent);
	border-bottom: 1px solid var(--line);
}

main {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0.75rem 0.75rem 2rem;
}

.page h1 {
	font-size: 1.35rem;
	margin: 0.25rem 0 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.page h2 {
	font-size: 1.05rem;
	margin: 1.25rem 0 0.5rem;
}

.page-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.season {
	font-weight: 400;
	color: var(--muted);
	font-size: 1rem;
}

.empty {
	color: var(--muted);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem;
}

.crumbs {
	color: var(--muted);
	font-size: 0.85rem;
	margin: 0.25rem 0 0.75rem;
}

.more {
	margin: 1rem 0 0;
	font-weight: 600;
}

/* Tabs Prehľad / Kolá / Tabuľka. */
.tabs {
	display: flex;
	gap: 0.25rem;
	background: var(--chip-bg);
	border-radius: var(--radius);
	padding: 0.25rem;
	margin-bottom: 0.75rem;
}

.tab {
	flex: 1;
	text-align: center;
	text-decoration: none;
	color: var(--muted);
	font-weight: 700;
	padding: 0.65rem;
	border-radius: 9px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tab.active {
	background: var(--card);
	color: var(--text);
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}
/* Phase + season selectors. */
.phases,
.seasons {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin-bottom: 0.6rem;
}

.phase,
a.season {
	text-decoration: none;
	color: var(--muted);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.5rem 0.85rem;
	font-size: 0.9rem;
	font-weight: 600;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.phase.active,
a.season.active {
	color: var(--accent);
	border-color: var(--accent);
}

.season-switch {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--muted);
}

.season-switch select {
	font: inherit;
	color: var(--text);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 0.55rem 0.6rem;
	min-height: 44px;
}

/* Round chips: horizontal scroll, sticky under the top bar. */
.rounds {
	position: sticky;
	top: var(--topbar-h);
	z-index: 40;
	display: flex;
	gap: 0.4rem;
	overflow-x: auto;
	padding: 0.5rem 0.1rem;
	margin: 0 -0.1rem 0.5rem;
	background: var(--bg);
	scrollbar-width: thin;
}

.round {
	flex: none;
	text-decoration: none;
	color: var(--muted);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.5rem 0.9rem;
	font-size: 0.9rem;
	font-weight: 600;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	scroll-margin: 0.5rem;
}

.round.active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

@media (prefers-color-scheme: dark) {
	.round.active {
		color: #0e141b;
	}
}

.list-tools {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.filter-chip {
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--muted);
	border-radius: 999px;
	padding: 0.5rem 0.9rem;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	min-height: 44px;
	cursor: pointer;
}

.filter-chip[aria-pressed="true"] {
	color: var(--accent);
	border-color: var(--accent);
}

/* Match cards. */
.cards {
	display: grid;
	gap: 0.6rem;
}

.match-card {
	display: block;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.65rem 0.8rem;
	text-decoration: none;
	color: var(--text);
}

.match-card:active {
	background: var(--accent-soft);
}

.match-comp {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.72rem;
}

.match-meta {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	color: var(--muted);
	margin-bottom: 0.3rem;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
}

.match-meta > * + *::before {
	content: "·";
	margin-right: 0.35rem;
}

/* The day heading already says it; cloned favorites keep the day. */
.day-group .match-when {
	display: none;
}

.match-venue {
	overflow: hidden;
	text-overflow: ellipsis;
}

.match-body {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.match-body .match-teams {
	flex: 1;
	min-width: 0;
}

.match-kickoff {
	flex: none;
	font-weight: 800;
	font-size: 1.1rem;
	font-variant-numeric: tabular-nums;
	padding-left: 0.75rem;
	border-left: 1px solid var(--line);
	align-self: stretch;
	display: flex;
	align-items: center;
}

.venue {
	background: var(--chip-bg);
	border-radius: 6px;
	padding: 0.1rem 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
}

.match-teams {
	display: grid;
	gap: 0.15rem;
}

.match-team {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 30px;
}

.team-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.match-team.winner .team-name {
	font-weight: 700;
}

.score {
	font-weight: 700;
	font-size: 1.25rem;
	font-variant-numeric: tabular-nums;
	min-width: 2ch;
	text-align: right;
}

.match-foot {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.3rem;
	flex-wrap: wrap;
}

.periods {
	font-size: 0.8rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

.badge {
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.66rem;
	font-weight: 800;
	color: #fff;
	background: hsl(var(--badge-hue, 210) 55% 42%);
	text-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
}

.badge-logo {
	background: transparent;
	text-shadow: none;
}

.badge-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Status chips. */
.chip {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	border-radius: 999px;
	padding: 0.2rem 0.6rem;
	background: var(--chip-bg);
	color: var(--muted);
}

.chip-played {
	background: #e2f3e8;
	color: #0a6b2d;
}

@media (prefers-color-scheme: dark) {
	.chip-played {
		background: #123d22;
		color: #7ce3a1;
	}
}

.chip-awaiting_result,
.chip-result_missing {
	background: #fff4d6;
	color: #5c4300;
}

@media (prefers-color-scheme: dark) {
	.chip-awaiting_result,
	.chip-result_missing {
		background: #3a2f0a;
		color: #ffe9a3;
	}
}

.chip-removed {
	background: #fde3e3;
	color: #8f1d1d;
}

@media (prefers-color-scheme: dark) {
	.chip-removed {
		background: #471414;
		color: #ffb4b4;
	}
}

.chip-resched {
	background: var(--accent-soft);
	color: var(--accent);
}

/* Favorite highlight + star. */
.match-card.fav,
.bye.fav {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.fav-star {
	border: 1px solid var(--line);
	background: var(--card);
	border-radius: 50%;
	width: 48px;
	height: 48px;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--muted);
	cursor: pointer;
	flex: none;
}

.fav-star[aria-pressed="true"] {
	color: #b8860b;
	border-color: #b8860b;
}

.bye {
	background: var(--card);
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	padding: 0.65rem 0.8rem;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.bye-label {
	color: var(--muted);
	font-style: italic;
}

.day-heading {
	font-size: 0.95rem;
	color: var(--muted);
	margin: 1rem 0 0.5rem;
}

.day-group:first-child .day-heading {
	margin-top: 0;
}

.comp-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.comp-link-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.8rem 1rem;
	text-decoration: none;
	color: var(--text);
	min-height: 52px;
}

.comp-link-card span {
	color: var(--muted);
	font-size: 0.9rem;
}

/* Standings table. */
.table-wrap {
	overflow-x: auto;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	-webkit-overflow-scrolling: touch;
}

table {
	border-collapse: collapse;
	width: 100%;
	font-variant-numeric: tabular-nums;
}

.standings caption,
.sync-status caption,
.history caption {
	text-align: left;
	padding: 0.7rem 0.8rem;
	font-weight: 700;
}

.standings th,
.standings td {
	padding: 0.6rem 0.5rem;
	text-align: center;
	border-top: 1px solid var(--line);
	white-space: nowrap;
}

.standings thead th {
	border-top: 0;
	color: var(--muted);
	font-size: 0.8rem;
}

.standings .c-pos {
	padding-left: 0.8rem;
}

.standings .c-team {
	text-align: left;
	min-width: 11rem;
}

.standings tbody .c-team {
	position: sticky;
	left: 0;
	background: var(--card);
}

.standings tbody .c-team a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--text);
	min-height: 44px;
}

.standings .c-pts {
	font-weight: 800;
	padding-right: 0.8rem;
}

.standings tr[data-team].fav-team {
	background: var(--accent-soft);
}

/* Phones: V/R/P collapse into one column so points stay on screen. */
.standings .c-vrp {
	display: none;
}

@media (max-width: 480px) {
	.standings .c-wdl {
		display: none;
	}

	.standings .c-vrp {
		display: table-cell;
		white-space: nowrap;
	}

	.standings th,
	.standings td {
		padding: 0.55rem 0.3rem;
	}

	.standings {
		font-size: 0.9rem;
	}

	.standings .c-team {
		min-width: 0;
	}

	/* Badges give way to the numbers; names ellipsize. */
	.standings .badge {
		display: none;
	}

	.standings tbody .c-team a {
		display: block;
		min-height: 0;
		line-height: 2.25rem;
		max-width: 9.5rem;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

@media (max-width: 400px) {
	.standings th,
	.standings td {
		padding: 0.5rem 0.2rem;
	}

	.standings tbody .c-team a {
		max-width: 7.5rem;
	}
}

/* Match detail. */
.detail {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1rem;
}

.detail-teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.5rem;
	align-items: center;
	text-align: center;
}

.detail-team {
	display: grid;
	gap: 0.4rem;
	justify-items: center;
	font-weight: 600;
}

.detail-team .badge {
	width: 44px;
	height: 44px;
	font-size: 1rem;
}

.detail-score {
	font-size: 2rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.detail-score .suffix {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--muted);
	margin-left: 0.3rem;
}

.period-list {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid var(--line);
	display: grid;
	gap: 0.35rem;
}

.period-list li {
	display: flex;
	justify-content: space-between;
	font-variant-numeric: tabular-nums;
}

.period-name {
	color: var(--muted);
}

.detail-meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.35rem 1rem;
	margin: 1rem 0 0;
	padding: 0.75rem 0 0;
	border-top: 1px solid var(--line);
}

.detail-meta dt {
	color: var(--muted);
}

.detail-meta dd {
	margin: 0;
	font-weight: 600;
}

.term-change,
.source {
	color: var(--muted);
	font-size: 0.9rem;
}

.revisions {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.revisions li {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.65rem 0.8rem;
}

.rev-when {
	color: var(--muted);
	font-size: 0.85rem;
}

/* Team page. */
.form {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.4rem;
}

.form-mark {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	background: var(--chip-bg);
	color: var(--muted);
}

.form-V {
	background: #e2f3e8;
	color: #0a6b2d;
}

.form-R {
	background: #fff4d6;
	color: #5c4300;
}

.form-P {
	background: #fde3e3;
	color: #8f1d1d;
}

@media (prefers-color-scheme: dark) {
	.form-V {
		background: #123d22;
		color: #7ce3a1;
	}

	.form-R {
		background: #3a2f0a;
		color: #ffe9a3;
	}

	.form-P {
		background: #471414;
		color: #ffb4b4;
	}
}

.positions {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.4rem;
}

.positions li {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.65rem 0.8rem;
}

.roster {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.8rem 1rem;
	margin-bottom: 0.6rem;
	min-width: 0;
	overflow-wrap: anywhere;
}

.roster h3 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.roster-version,
.roster-history {
	font-size: 0.85rem;
}

.roster-scroll {
	position: relative;
	width: 100%;
	max-width: 100%;
}

.roster-scroll:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.roster-table {
	min-width: 30rem;
	font-size: 0.85rem;
}

.roster-table th,
.roster-table td {
	padding: 0.55rem 0.6rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.roster-table thead th {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.roster-table tbody th {
	min-width: 9rem;
	font-weight: 600;
}

.roster-table td {
	white-space: nowrap;
}

.roster-table del {
	display: inline-block;
	font-weight: 400;
}

.roster-table abbr {
	text-decoration: none;
	cursor: help;
}

.roster-change {
	color: #b42318;
	font-weight: 600;
}

@media (prefers-color-scheme: dark) {
	.roster-change {
		color: #ff9b93;
	}
}

.roster-row-state {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.7rem;
}

.roster-removed,
.roster-history {
	margin-top: 0.85rem;
}

.roster-removed summary,
.roster-history summary {
	cursor: pointer;
}

.roster-removed ul,
.roster-history ol {
	padding-left: 1.2rem;
}

.roster-removed li,
.roster-history li {
	margin: 0.6rem 0;
}

.roster-old-values {
	margin: 0.35rem 0;
	font-size: 0.8rem;
}

.roster-old-values > div {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.6rem;
}

.roster-old-values dt {
	color: var(--muted);
}

.roster-old-values dd {
	margin: 0;
}

.roster-logo-change {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	font-size: 0.85rem;
}

.roster-logo-change > span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.roster-logo img,
.roster-logo-change img {
	object-fit: contain;
}

/* News, history, about. */
.news-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.news-list article {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.8rem 1rem;
}

.news-list h2 {
	margin: 0.15rem 0 0.3rem;
	font-size: 1.05rem;
}

.news-source {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.news-list time {
	font-size: 0.85rem;
	color: var(--muted);
}

.news-excerpt {
	margin: 0.4rem 0 0;
}

.history th,
.history td,
.sync-status th,
.sync-status td {
	padding: 0.6rem 0.7rem;
	border-top: 1px solid var(--line);
	text-align: left;
}

.history thead th,
.sync-status thead th {
	border-top: 0;
	color: var(--muted);
	font-size: 0.85rem;
}

.partial {
	display: inline-block;
	margin-left: 0.4rem;
	font-size: 0.75rem;
	font-weight: 700;
	background: #fff4d6;
	color: #5c4300;
	border-radius: 999px;
	padding: 0.1rem 0.5rem;
}

@media (prefers-color-scheme: dark) {
	.partial {
		background: #3a2f0a;
		color: #ffe9a3;
	}
}

.prose p {
	max-width: 60ch;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	border-radius: 10px;
	padding: 0.7rem 1.4rem;
	min-height: 48px;
}

@media (prefers-color-scheme: dark) {
	.button {
		color: #0e141b;
	}
}

/* Round reports (spravodajstvo) and the story on the match page. */
.report,
.match-story {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 0.9rem 1rem;
	line-height: 1.55;
}

.match-story {
	margin-top: 1rem;
}

.report h1 {
	margin-bottom: 0.25rem;
}

.report-meta,
.ev-note,
.ev-count {
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 400;
}

.report p,
.match-story p {
	max-width: 65ch;
}

.report .cards,
.report .table-wrap {
	margin: 0.75rem 0;
}

.report-story {
	border-top: 1px solid var(--line);
	margin-top: 1rem;
	scroll-margin-top: 4.5rem;
}

.report-story h2,
.match-story h2 {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	flex-wrap: wrap;
	margin-top: 0.9rem;
}

.match-story h2 {
	margin-top: 0;
}

.match-story h3 {
	font-size: 0.95rem;
	margin: 0.75rem 0 0.4rem;
}

.story-score {
	font-variant-numeric: tabular-nums;
	background: var(--chip-bg);
	border-radius: 999px;
	padding: 0.05rem 0.55rem;
	font-size: 0.9rem;
}

.fixture-row {
	margin: 0;
	padding: 0.6rem 0.8rem;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
}

.report-table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.9rem;
}

.report-table th,
.report-table td {
	padding: 0.45rem 0.55rem;
	border-top: 1px solid var(--line);
	text-align: left;
	white-space: nowrap;
}

.report-table thead th {
	border-top: 0;
	color: var(--muted);
	font-size: 0.8rem;
}

.events {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}

.events li {
	display: grid;
	grid-template-columns: 2.4rem auto 1fr;
	align-items: center;
	gap: 0.5rem;
}

.ev-min {
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	text-align: right;
}

.ev-assist {
	color: var(--muted);
	font-size: 0.9rem;
}

.report-links {
	margin: 0;
	padding-left: 1.2rem;
}

.report-links li {
	margin: 0.3rem 0;
}

.round-report {
	margin: 0 0 0.75rem;
	font-weight: 600;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Footer. */
.footer {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 1rem 0.75rem calc(2rem + env(safe-area-inset-bottom));
	color: var(--muted);
	font-size: 0.85rem;
	text-align: center;
	border-top: 1px solid var(--line);
}

.footer nav {
	margin: 0.5rem 0;
}

.footer-note {
	margin: 0.5rem 0 0;
}

/* Wider screens: a bit more air, cards in two columns where it fits. */
@media (min-width: 560px) {
	.cards {
		grid-template-columns: 1fr 1fr;
	}

	.day-group .cards {
		grid-template-columns: 1fr 1fr;
	}
}
