/*
 * Paper-programme theme: ink on cream, hairline rules, no gradients or shadows.
 * Every text/background pair below is verified at WCAG AA or better.
 */
:root {
	color-scheme: light;
	--paper: #f4efe2;
	--paper-raised: #fbf8f1;
	--ink: #14120e;
	--ink-soft: #4f4a40;
	--rule: #c7bfac;
	--rule-soft: #ded7c6;
	--accent: #9b1f18;
	--display: Oswald, "Arial Narrow", system-ui, sans-serif;
	--body: Inter, system-ui, "Segoe UI", sans-serif;
	--gutter: clamp(1rem, 4vw, 2rem);
	--measure: 60rem;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--ink);
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.55;
	background: var(--paper);
	-webkit-text-size-adjust: 100%;
}

/* Links carry ink colour with a hairline underline; never the browser blue. */
a {
	color: var(--ink);
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

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

.skip-link {
	position: absolute;
	left: -100vw;
	padding: .5rem .9rem;
	color: var(--paper);
	font-weight: 700;
	background: var(--ink);
}

.skip-link:focus-visible {
	position: static;
	order: -1;
}

/* Masthead */

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem 2rem;
	padding: 1rem var(--gutter) .75rem;
	border-bottom: 3px solid var(--ink);
	background: var(--paper);
}

.brand {
	color: var(--ink);
	font-family: var(--display);
	font-size: clamp(1.05rem, 3.5vw, 1.35rem);
	font-weight: 700;
	letter-spacing: .1em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.25rem;
	margin-inline-start: auto;
}

.site-nav a {
	padding: .15rem 0;
	border-bottom: 3px solid transparent;
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .95rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-nav a:hover {
	color: var(--ink);
	border-bottom-color: var(--rule);
}

.site-nav a.is-active,
.lang-switch a.is-active {
	color: var(--ink);
	border-bottom-color: var(--accent);
}

.lang-switch {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
}

.lang-switch a {
	padding: .15rem 0;
	border-bottom: 3px solid transparent;
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .95rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-decoration: none;
}

.lang-switch a:hover {
	color: var(--ink);
	border-bottom-color: var(--rule);
}

@media (pointer: coarse) {
	.site-header {
		align-items: center;
	}

	.site-nav a,
	.lang-switch a {
		display: inline-flex;
		align-items: center;
		min-height: 2.75rem;
		padding-inline: .4rem;
	}
}

/*
 * Site search: the field in the masthead (and on the people hub) with a suggestion panel that slides out below it.
 * Elements toggled through the hidden attribute (panel, note, listbox, key) never get a display value here.
 */

.site-search {
	position: relative;
	flex: 0 1 18rem;
	align-self: center;
}

.site-search-label {
	display: block;
	margin: 0 0 .4rem;
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.site-search-field {
	position: relative;
}

.site-search-field input {
	width: 100%;
	min-height: 2.5rem;
	padding: .45rem 2.75rem .45rem .75rem;
	border: 1px solid var(--rule);
	border-radius: 0;
	color: var(--ink);
	font: inherit;
	font-size: .95rem;
	background: var(--paper-raised);
	appearance: none;
}

.site-search-field input::placeholder {
	color: var(--ink-soft);
	opacity: 1;
}

.site-search-field input:hover {
	border-color: var(--ink-soft);
}

.site-search-field input:focus-visible {
	border-color: var(--ink);
	outline-offset: 0;
}

.site-search-submit {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 2.5rem;
	padding: 0;
	border: 0;
	color: var(--ink-soft);
	background: transparent;
	cursor: pointer;
}

.site-search-submit:hover {
	color: var(--accent);
}

.site-search-submit svg {
	vertical-align: middle;
}

.site-search-key {
	position: absolute;
	top: 50%;
	right: 2.6rem;
	padding: 0 .35rem;
	border: 1px solid var(--rule);
	color: var(--ink-soft);
	font: 500 .75rem/1.5 var(--body);
	background: var(--paper);
	transform: translateY(-50%);
	pointer-events: none;
}

.site-search-field input:focus ~ .site-search-key,
.site-search-field input:not(:placeholder-shown) ~ .site-search-key {
	visibility: hidden;
}

.site-search-panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + .35rem);
	right: 0;
	width: max(100%, 26rem);
	max-width: calc(100vw - 2 * var(--gutter));
	max-height: min(70vh, 34rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid var(--ink);
	border-top-width: 3px;
	background: var(--paper-raised);
	transform-origin: top;
	animation: site-search-open 160ms ease-out;
}

@keyframes site-search-open {
	from {
		opacity: 0;
		transform: translateY(-.4rem) scaleY(.97);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.site-search-note {
	margin: 0;
	padding: .65rem .85rem;
	border-bottom: 1px solid var(--rule-soft);
	color: var(--ink-soft);
	font-size: .85rem;
}

.site-search-group {
	position: sticky;
	top: 0;
	padding: .6rem .85rem .3rem;
	border-top: 1px solid var(--rule-soft);
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	background: var(--paper-raised);
}

[role="group"]:first-child > .site-search-group {
	border-top: 0;
}

.site-search-option {
	display: block;
	padding: .45rem .85rem .45rem calc(.85rem - 3px);
	border-left: 3px solid transparent;
	color: var(--ink);
	text-decoration: none;
}

.site-search-option-title {
	display: block;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.site-search-option-detail {
	display: block;
	margin-top: .1rem;
	color: var(--ink-soft);
	font-size: .8rem;
	line-height: 1.35;
}

.site-search-option mark,
.search-result mark {
	padding: 0;
	color: var(--accent);
	font-weight: 700;
	background: none;
}

.site-search-option:hover,
.site-search-option.is-active {
	border-left-color: var(--accent);
	background: var(--paper);
}

.site-search-option.is-active .site-search-option-title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

.site-search-all {
	padding-block: .7rem;
	border-top: 1px solid var(--rule);
	font-family: var(--display);
	font-size: .8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.site-search-all .site-search-option-title {
	font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
	.site-search-panel {
		animation: none;
	}
}

@media (forced-colors: active) {
	.site-search-option.is-active {
		outline: 2px solid Highlight;
		outline-offset: -2px;
	}
}

@media (pointer: coarse) {
	.site-search-field input {
		min-height: 2.75rem;
	}

	.site-search-submit {
		width: 2.75rem;
	}

	.site-search-option {
		min-height: 2.75rem;
		padding-block: .55rem;
	}
}

/* Below this width the masthead has no room for the field, so it takes a full row under the navigation. */
@media (max-width: 64rem) {
	.site-header > .site-search {
		order: 1;
		flex: 1 1 100%;
	}

	.site-header > .site-search .site-search-panel {
		left: 0;
		width: auto;
		max-width: none;
	}
}

/* Phones: the language switch shares the brand row and the navigation takes the next one, so the masthead has three rows. */
@media (max-width: 45rem) {
	.site-header > .lang-switch {
		margin-inline-start: auto;
	}

	.site-header > .site-nav {
		order: 1;
		flex: 1 1 100%;
		gap: .25rem .5rem;
		margin-inline-start: 0;
	}
}

/* Page shell */

.page {
	width: min(var(--measure), 100%);
	margin: 0 auto;
	padding: clamp(1.75rem, 6vw, 3rem) var(--gutter) 3rem;
}

.page-head {
	padding-bottom: 1.1rem;
	border-bottom: 3px solid var(--ink);
}

.kicker {
	margin: 0 0 .4rem;
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
}

h1 {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(1.9rem, 7vw, 3rem);
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.05;
	text-transform: uppercase;
}

.lede {
	max-width: 42rem;
	margin: .75rem 0 0;
	color: var(--ink-soft);
}

.crumbs {
	margin: 0 0 1.35rem;
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .15rem .15rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--ink-soft);
	font-size: .82rem;
	line-height: 1.4;
}

.crumbs li {
	display: inline-flex;
	align-items: baseline;
	max-width: 100%;
}

.crumbs li + li::before {
	margin: 0 .45rem 0 .3rem;
	color: var(--rule);
	content: "·";
}

.crumbs a {
	color: inherit;
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

.crumbs [aria-current="page"] {
	color: var(--ink);
}

.empty {
	margin: 2rem 0 0;
	padding: 1rem 1.15rem;
	border: 1px solid var(--rule);
	color: var(--ink-soft);
	background: var(--paper-raised);
}

/* Index (home) */

.index {
	margin: 2.5rem 0 0;
	padding: 0;
	border-top: 1px solid var(--rule);
	list-style: none;
}

.index a {
	display: block;
	padding: 1.1rem .25rem;
	border-bottom: 1px solid var(--rule-soft);
	color: inherit;
	text-decoration: none;
}

.index a:hover {
	background: var(--paper-raised);
}

.index-title {
	display: block;
	font-family: var(--display);
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.index a:hover .index-title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: .18em;
}

.index-note {
	display: block;
	margin-top: .15rem;
	color: var(--ink-soft);
	font-size: .95rem;
}

/*
 * Home: the cover of a match programme. Wider than the reading pages so the season fits in columns; every block has a
 * fixed number of entries, so the page keeps its height as the archive grows.
 */

.home-page {
	--measure: 72rem;
}

.cover {
	padding-bottom: clamp(1.25rem, 4vw, 2rem);
	border-bottom: 3px solid var(--ink);
}

.cover h1 {
	max-width: 22ch;
	margin: .25rem 0 1rem;
	font-size: clamp(2.3rem, 6.5vw, 4.25rem);
	line-height: .98;
}

.cover-lede {
	max-width: 46rem;
	margin: 0 0 1.5rem;
	color: var(--ink-soft);
	font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.cover .site-search {
	max-width: 40rem;
}

.cover .site-search-field input {
	min-height: 3.25rem;
	padding-inline-start: 1rem;
	border: 2px solid var(--ink);
	font-size: 1.1rem;
}

.cover .site-search-submit {
	width: 3.25rem;
	color: var(--ink);
}

.cover-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	max-width: 40rem;
	margin: 1.75rem 0 0;
}

.cover-stats div {
	display: flex;
	flex-direction: column-reverse;
	padding: 0 1rem;
	border-left: 1px solid var(--rule);
}

.cover-stats div:first-child {
	padding-left: 0;
	border-left: 0;
}

.cover-stats dd {
	margin: 0;
	font-family: var(--display);
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.cover-stats dt {
	color: var(--ink-soft);
	font-size: .8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.home-block {
	margin-top: clamp(2rem, 5vw, 3rem);
}

.block-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .25rem 1rem;
	padding-bottom: .5rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--ink);
}

.block-head h2 {
	margin: 0;
	font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.block-head a {
	flex: none;
	font-size: .9rem;
}

.block-head a::after,
.league-links a::after {
	content: " →";
}

.block-note {
	margin: -.5rem 0 .75rem;
	color: var(--ink-soft);
	font-size: .9rem;
}

.sub-head {
	margin: 1.5rem 0 .5rem;
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .95rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.league-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 1rem;
}

.league-card {
	display: flex;
	flex-direction: column;
	padding: 1.1rem 1.2rem 1rem;
	border: 1px solid var(--rule);
	border-top: 4px solid var(--rule);
	background: var(--paper-raised);
}

.league-card.is-top {
	border-top-color: var(--accent);
}

.league-tier {
	margin: 0;
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.league-card h3 {
	margin: .1rem 0 .8rem;
	font-size: 1.35rem;
}

.league-card h3 a,
.podium a,
.mini-table a,
.leaders a {
	text-decoration: none;
}

.league-card h3 a:hover,
.podium a:hover,
.mini-table a:hover,
.leaders a:hover {
	text-decoration: underline;
}

.podium,
.mini-table {
	display: grid;
	gap: .45rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.podium li {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-weight: 600;
	line-height: 1.25;
}

.medal {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	border: 2px solid;
	border-radius: 50%;
	font-family: var(--display);
	font-size: .85rem;
}

.medal-1 {
	border-color: #b08a1e;
	background: #f3e3a6;
}

.medal-2 {
	border-color: #8c8c8c;
	background: #e6e4df;
}

.medal-3 {
	border-color: #9a5b2b;
	background: #ecd0b5;
}

.mini-table li {
	display: grid;
	grid-template-columns: 1.6rem 1fr auto;
	gap: .6rem;
	align-items: baseline;
	line-height: 1.25;
}

.mini-table-position {
	color: var(--ink-soft);
	font-family: var(--display);
}

.mini-table-points {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.league-best {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .1rem .5rem;
	margin: auto 0 .75rem;
	padding-top: .75rem;
	border-top: 1px solid var(--rule-soft);
	font-size: .95rem;
}

.league-best span {
	flex-basis: 100%;
	color: var(--ink-soft);
	font-size: .8rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.league-best strong,
.leaders strong {
	margin-left: auto;
	font-family: var(--display);
	font-size: 1.2rem;
	font-variant-numeric: tabular-nums;
}

.league-links {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	margin: 0;
	font-size: .9rem;
}

.home-split {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 0 2.5rem;
}

/* The bar under each rider is the average as a share of the best one. */
.leaders {
	display: grid;
	gap: .2rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.leaders li {
	position: relative;
	display: grid;
	grid-template-columns: 1.5rem 1fr auto;
	align-items: baseline;
	column-gap: .5rem;
	padding: .5rem 0 .7rem;
	border-bottom: 1px solid var(--rule-soft);
}

/* --share is the average as a unitless percentage of the best one in the list */
.leaders li::after {
	content: "";
	position: absolute;
	left: 2rem;
	bottom: .25rem;
	width: calc((100% - 2rem) * var(--share, 0) / 100);
	height: 3px;
	background: var(--accent);
}

.leaders a {
	font-weight: 600;
}

.leader-position {
	color: var(--ink-soft);
	font-family: var(--display);
}

.leader-club {
	grid-column: 2 / -1;
	color: var(--ink-soft);
	font-size: .85rem;
}

.rival-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rival-card {
	display: grid;
	gap: .35rem;
	height: 100%;
	padding: 1rem 1.2rem;
	border: 1px solid var(--rule);
	background: var(--paper-raised);
	text-decoration: none;
}

.rival-card:hover {
	border-color: var(--ink);
}

.rival-teams {
	font-family: var(--display);
	font-size: 1.2rem;
	font-weight: 500;
	text-transform: uppercase;
}

.rival-dash {
	color: var(--accent);
}

.rival-tally {
	display: flex;
	gap: .4rem;
	font-family: var(--display);
	font-size: 2rem;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.rival-tally i {
	color: var(--ink-soft);
	font-style: normal;
	font-weight: 500;
}

.rival-tally i::before,
.rival-tally i::after {
	content: "–";
	padding: 0 .2rem;
	color: var(--rule);
}

.rival-note {
	color: var(--ink-soft);
	font-size: .85rem;
}

.season-chips,
.season-years,
.letters {
	display: grid;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.season-chips {
	grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}

.season-chips a {
	display: grid;
	padding: .6rem .8rem;
	border: 1px solid var(--rule);
	background: var(--paper-raised);
	text-decoration: none;
}

.season-chips b {
	font-family: var(--display);
	font-size: 1.5rem;
	line-height: 1.1;
}

.season-chips span {
	color: var(--ink-soft);
	font-size: .8rem;
}

.season-years {
	grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr));
}

.letters {
	grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr));
	gap: .35rem;
}

.season-years a,
.letters a {
	display: grid;
	place-items: center;
	min-height: 2.75rem;
	border: 1px solid var(--rule);
	background: var(--paper-raised);
	font-family: var(--display);
	font-size: 1.1rem;
	text-decoration: none;
}

.season-chips a:hover,
.season-years a:hover,
.letters a:hover {
	border-color: var(--ink);
}

@media (max-width: 52rem) {
	.home-split {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 45rem) {
	.cover-stats div {
		padding: 0 .6rem;
	}
}

.stamp {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .8rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

/* Season grid */

.season-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
	gap: .5rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.season-grid a {
	display: block;
	padding: .85rem 1rem;
	border: 1px solid var(--rule);
	color: inherit;
	font-family: var(--display);
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-decoration: none;
	text-transform: uppercase;
	background: var(--paper-raised);
	font-variant-numeric: tabular-nums;
}

.season-grid a:hover {
	border-color: var(--ink);
}

/* Directory tables */

.directory-table {
	width: 100%;
	margin: 2rem 0 0;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.directory-table th,
.directory-table td {
	padding: .7rem .85rem;
	text-align: left;
}

.directory-table th {
	border-bottom: 2px solid var(--ink);
	font-family: var(--display);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	white-space: nowrap;
}

.directory-table td {
	border-bottom: 1px solid var(--rule-soft);
}

.directory-table td:first-child {
	font-weight: 600;
}

.directory-table a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

.facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	align-items: baseline;
	gap: .35rem 1.25rem;
	margin: 2rem 0 0;
}

.facts dt {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.facts dd {
	margin: 0;
}

.directory-table tbody tr:nth-child(even) {
	background: var(--paper-raised);
}

.role-list {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.role-chip {
	display: inline-block;
	padding: .12rem .4rem;
	border: 1px solid var(--rule);
	font-family: var(--display);
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.role-RIDER {
	border-color: var(--ink);
	color: var(--ink);
}

.people-filters {
	grid-template-columns: minmax(14rem, 1fr) minmax(0, 2fr);
}

.people-hub-search {
	margin: 0 0 1.5rem;
	padding: 1rem;
	border: 1px solid var(--rule);
	background: var(--paper-raised);
}

.people-hub-search .site-search-panel {
	left: 0;
	width: auto;
	max-width: none;
}

/* Search results page */

.search-tabs {
	margin: 1.5rem 0 0;
}

.search-tab-count {
	margin-inline-start: .35rem;
	color: var(--ink-soft);
	font-family: var(--body);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: 0;
}

/* The tab links reuse the league sub-navigation, which frames every span in it. */
.search-tabs .search-tab-count {
	padding: 0;
	border: 0;
}

.search-notice {
	margin: 1.25rem 0 0;
	padding: .75rem 1rem;
	border-left: 3px solid var(--accent);
	background: var(--paper-raised);
}

.search-group {
	margin: 2rem 0 0;
}

.search-results {
	margin: .35rem 0 0;
	padding: 0;
	border-top: 1px solid var(--rule);
	list-style: none;
}

.search-results li {
	border-bottom: 1px solid var(--rule-soft);
}

.search-result {
	display: block;
	padding: .7rem .25rem;
	color: inherit;
	text-decoration: none;
}

.search-result:hover {
	background: var(--paper-raised);
}

.search-result:hover .search-result-title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: .18em;
}

.search-result-title {
	display: block;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.search-result-detail {
	display: block;
	color: var(--ink-soft);
	font-size: .85rem;
}

.search-more {
	margin: .75rem 0 0;
}

.search-browse {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin: .75rem 0 0;
	padding: 0;
	list-style: none;
}

.letter-index {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
	gap: .35rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.letter-index a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .15rem;
	min-height: 4rem;
	padding: .55rem .35rem;
	border: 1px solid var(--rule);
	color: inherit;
	text-decoration: none;
}

.letter-index a:hover,
.letter-index a.is-current {
	background: var(--paper-raised);
	border-color: var(--ink);
}

.letter-index-label {
	font-family: var(--display);
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: .04em;
	line-height: 1;
}

.letter-index-count {
	color: var(--ink-soft);
	font-size: .8rem;
	font-variant-numeric: tabular-nums;
}

.letter-nav {
	margin: 0 0 1.5rem;
}

.letter-index-compact {
	grid-template-columns: repeat(auto-fill, minmax(2.4rem, 1fr));
	margin-top: 0;
}

.letter-index-compact a {
	min-height: 2.4rem;
	padding: .35rem .2rem;
	font-family: var(--display);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: .04em;
}

.clubs-filters {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.sort-fallback {
	display: none;
}

.sortable-table th {
	padding: 0;
}

.sort-button {
	display: flex;
	align-items: center;
	gap: .35rem;
	width: 100%;
	padding: .7rem .85rem;
	border: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	text-align: left;
	background: transparent;
}

.sortable-table.is-sortable .sort-button {
	cursor: pointer;
}

.sortable-table.is-sortable .sort-button::after {
	color: var(--ink-soft);
	content: "↕";
}

.sortable-table.is-sortable th[aria-sort="ascending"] .sort-button::after {
	color: var(--ink);
	content: "↑";
}

.sortable-table.is-sortable th[aria-sort="descending"] .sort-button::after {
	color: var(--ink);
	content: "↓";
}

.sortable-table.is-sortable .sort-button:hover {
	background: var(--paper-raised);
}

.sort-button:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: -3px;
}

/* League standings */

.standings-section {
	margin: 2.5rem 0 0;
}

.section-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem 2rem;
	padding-bottom: .45rem;
	border-bottom: 2px solid var(--ink);
}

.section-title h2 {
	margin: 0;
	font-family: var(--display);
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.section-title p {
	margin: 0;
	color: var(--ink-soft);
	font-size: .78rem;
	text-align: right;
}

.standings-scroll {
	border-bottom: 1px solid var(--ink);
}

.standings-scroll:focus-visible {
	outline-offset: 3px;
}

.standings-table {
	width: 100%;
	min-width: 46rem;
	border-collapse: separate;
	border-spacing: 0;
	font-variant-numeric: tabular-nums;
}

.standings-table th,
.standings-table td {
	padding: .68rem .55rem;
	border-bottom: 1px solid var(--rule-soft);
}

.standings-table thead th {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.standings-table thead th:nth-child(n + 3),
.standings-table td:nth-child(n + 3) {
	text-align: right;
}

.standings-table tbody th {
	font-size: .9rem;
	font-weight: 600;
	text-align: left;
}

.standings-table tbody tr:nth-child(even) {
	background: var(--paper-raised);
}

.standings-table tbody tr:last-child th,
.standings-table tbody tr:last-child td {
	border-bottom: 0;
}

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

.standing-position {
	width: 2.5rem;
	color: var(--accent);
	font-family: var(--display);
	font-weight: 700;
	text-align: center;
}

.standing-points {
	font-weight: 800;
}

.classification-section {
	margin: 2.5rem 0 0;
}

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

.classification-table th,
.classification-table td {
	padding: .68rem .55rem;
	border-bottom: 1px solid var(--rule-soft);
}

.classification-table thead th {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.classification-table tbody th {
	font-size: .9rem;
	font-weight: 600;
	text-align: left;
}

.classification-table tbody tr:nth-child(even) {
	background: var(--paper-raised);
}

.classification-table tbody tr:last-child th,
.classification-table tbody tr:last-child td {
	border-bottom: 0;
}

.classification-table tbody tr:first-child th {
	border-left: .25rem solid var(--accent);
	padding-left: .7rem;
}

.standings-table tbody th a,
.classification-table tbody th a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

.league-subnav {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin: 1rem 0 0;
}

.league-subnav a,
.league-subnav span {
	padding: .45rem .75rem;
	border: 1px solid var(--rule);
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
	background: var(--paper-raised);
}

.league-subnav a:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.league-subnav [aria-current="page"] {
	border-color: var(--ink);
	border-bottom: 3px solid var(--accent);
	color: var(--ink);
}

/* Rider classification */

.classification-filters {
	display: grid;
	grid-template-columns: minmax(14rem, 1fr) minmax(0, 2fr);
	gap: 1rem 1.5rem;
	margin: 2rem 0 0;
	padding: 1rem;
	border: 1px solid var(--rule);
	background: var(--paper-raised);
}

.classification-search {
	grid-row: span 2;
}

.classification-search label,
.filter-group legend {
	display: block;
	margin: 0 0 .4rem;
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.classification-search input {
	width: 100%;
	min-height: 2.65rem;
	padding: .55rem .7rem;
	border: 1px solid var(--rule);
	border-radius: 0;
	color: var(--ink);
	font: inherit;
	background: var(--paper);
}

.filter-group {
	min-width: 0;
	padding: 0;
	border: 0;
	margin: 0;
}

.filter-chips {
	display: flex;
	overflow-x: auto;
	gap: .35rem;
	padding: 0 0 .2rem;
}

.filter-chips input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.filter-chips label {
	flex: 0 0 auto;
	padding: .38rem .65rem;
	border: 1px solid var(--rule);
	color: var(--ink-soft);
	font-size: .76rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	background: var(--paper);
}

.filter-chips label:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.filter-chips input:checked + label {
	border-color: var(--ink);
	color: var(--paper-raised);
	background: var(--ink);
}

.filter-chips input:focus-visible + label {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

.filter-reset {
	justify-self: start;
	padding: .25rem 0;
	border: 0;
	border-bottom: 1px solid currentColor;
	color: var(--ink-soft);
	font: inherit;
	font-size: .76rem;
	cursor: pointer;
	background: transparent;
}

.filter-reset:hover {
	color: var(--ink);
}

.classification-summary {
	display: flex;
	justify-content: space-between;
	gap: .5rem 2rem;
	margin: 1rem 0 .45rem;
	color: var(--ink-soft);
	font-size: .78rem;
}

.classification-summary p {
	margin: 0;
}

.classification-summary p:first-child {
	color: var(--ink);
	font-weight: 700;
}

.rider-classification-scroll {
	border-block: 2px solid var(--ink);
}

.rider-classification-scroll:focus-visible {
	outline-offset: 3px;
}

.rider-classification-table {
	width: 100%;
	min-width: 76rem;
	border-collapse: separate;
	border-spacing: 0;
	font-size: .82rem;
	font-variant-numeric: tabular-nums;
}

.rider-classification-table th,
.rider-classification-table td {
	padding: .58rem .5rem;
	border-bottom: 1px solid var(--rule-soft);
	white-space: nowrap;
}

.rider-classification-table thead th {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .07em;
	text-align: right;
	text-transform: uppercase;
	background: var(--paper);
}

.rider-classification-table thead th:nth-child(2),
.rider-classification-table thead th:nth-child(3),
.rider-classification-table tbody th,
.rider-classification-table .rider-team {
	text-align: left;
}

.rider-classification-table tbody td {
	text-align: right;
}

.rider-classification-table tbody th {
	font-size: .86rem;
	font-weight: 700;
}

.rider-classification-table tbody tr:nth-child(even) {
	background: var(--paper-raised);
}

.rider-classification-table tbody tr:last-child th,
.rider-classification-table tbody tr:last-child td {
	border-bottom: 0;
}

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

.rider-classification-table .rider-team {
	max-width: 15rem;
	overflow: hidden;
	color: var(--ink-soft);
	text-overflow: ellipsis;
}

.rider-classification-table .rider-total,
.rider-classification-table .rider-average {
	font-weight: 800;
}

.rider-classification-table .average-column,
.rider-classification-table .rider-average {
	border-inline: 1px solid var(--rule);
	background: #ebe2d0;
}

.scroll-hint {
	display: none;
	margin: .45rem 0 .15rem;
	color: var(--ink-soft);
	font-size: .78rem;
}

.scroll-hint-wide {
	display: block;
}

@media (max-width: 50rem) {
	.scroll-hint-standings {
		display: block;
	}
}

.standings-table > thead > tr > th:nth-child(-n + 2),
.standings-table > tbody > tr > td:first-child,
.standings-table > tbody > tr > th,
.rider-classification-table > thead > tr > th:nth-child(-n + 2),
.rider-classification-table > tbody > tr > td:first-child,
.rider-classification-table > tbody > tr > th {
	position: sticky;
	background: var(--paper);
}

.standings-table > thead > tr > th:first-child,
.standings-table > tbody > tr > td:first-child,
.rider-classification-table > thead > tr > th:first-child,
.rider-classification-table > tbody > tr > td:first-child {
	left: 0;
	z-index: 2;
}

.standings-table > thead > tr > th:nth-child(2),
.standings-table > tbody > tr > th,
.rider-classification-table > thead > tr > th:nth-child(2),
.rider-classification-table > tbody > tr > th {
	left: 2.5rem;
	z-index: 1;
	border-inline-end: 1px solid var(--rule);
}

.standings-table > tbody > tr:nth-child(even) > td:first-child,
.standings-table > tbody > tr:nth-child(even) > th,
.rider-classification-table > tbody > tr:nth-child(even) > td:first-child,
.rider-classification-table > tbody > tr:nth-child(even) > th {
	background: var(--paper-raised);
}

.classification-no-results {
	margin-top: 1rem;
}

/* Rider pairs */

.pairs-note {
	max-width: 52rem;
	margin: 1.25rem 0 0;
	color: var(--ink-soft);
	font-size: .86rem;
}

.pair-list {
	display: grid;
	gap: .85rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.pairs-filters {
	margin: 1.25rem 0 0;
}

.pair-card {
	display: grid;
	grid-template-columns: 2.5rem minmax(12rem, 1.4fr) repeat(3, minmax(7.5rem, .32fr));
	grid-template-areas:
		"rank identity heats average balance"
		"rank summary summary results results";
	border: 1px solid var(--rule);
	border-left: .3rem solid var(--ink);
	background: var(--paper-raised);
	scroll-margin-top: 1rem;
}

.pair-card:target {
	border-color: var(--accent);
	border-left-color: var(--accent);
}

.pair-rank {
	grid-area: rank;
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid var(--rule);
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .8rem;
	font-variant-numeric: tabular-nums;
}

.pair-identity {
	grid-area: identity;
	padding: .85rem 1rem;
}

.pair-team {
	margin: 0 0 .25rem;
	color: var(--accent);
	font-family: var(--display);
	font-size: .66rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.pair-team a,
.pair-heading a {
	color: inherit;
}

.pair-heading {
	display: flex;
	flex-wrap: wrap;
	gap: .15rem .45rem;
	align-items: baseline;
	margin: 0;
	font-family: var(--display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
}

.pair-ampersand {
	color: var(--ink-soft);
	font-family: serif;
	font-style: italic;
	font-weight: 400;
}

.pair-lead-stat {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: .65rem .85rem;
	border-left: 1px solid var(--rule);
	text-align: right;
}

.pair-lead-stat[data-sort-stat="heats"] {
	grid-area: heats;
}

.pair-lead-stat[data-sort-stat="average"] {
	grid-area: average;
}

.pair-lead-stat[data-sort-stat="points"] {
	grid-area: points;
}

.pair-balance {
	grid-area: balance;
}

.pair-list-compact .pair-card {
	grid-template-columns: 2.5rem minmax(12rem, 1.4fr) repeat(4, minmax(6.5rem, .3fr));
	grid-template-areas: "rank identity heats points average balance";
}

.pair-list[data-sorted="heats"] [data-sort-stat="heats"],
.pair-list[data-sorted="points"] [data-sort-stat="points"],
.pair-list[data-sorted="average"] [data-sort-stat="average"],
.pair-list[data-sorted="balance"] [data-sort-stat="balance"] {
	background: var(--paper);
}

.pair-lead-stat span,
.pair-summary dt {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .62rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pair-lead-stat strong {
	margin-top: .15rem;
	font-family: var(--display);
	font-size: 1.25rem;
	font-variant-numeric: tabular-nums;
}

.pair-lead-stat .positive,
.pair-detail-lead .positive {
	color: #1f6a4d;
}

.pair-lead-stat .negative,
.pair-detail-lead .negative {
	color: #9b352b;
}

.pair-summary {
	display: grid;
	grid-area: summary;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid var(--rule-soft);
	background: var(--paper);
}

.pair-summary div {
	padding: .55rem .8rem;
	border-right: 1px solid var(--rule-soft);
}

.pair-summary dd {
	margin: .15rem 0 0;
	font-size: .82rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.pair-results {
	display: grid;
	grid-area: results;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid var(--rule-soft);
	background: var(--paper);
}

.pair-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: .45rem .3rem;
	border-left: 1px solid var(--rule-soft);
	font-variant-numeric: tabular-nums;
}

.pair-result span {
	color: var(--ink-soft);
	font-size: .62rem;
}

.pair-result strong {
	font-size: .86rem;
}

.pair-result-win {
	border-top: .18rem solid #527963;
}

.pair-result-draw {
	border-top: .18rem solid #a88d54;
}

.pair-result-loss {
	border-top: .18rem solid #a35b50;
}

/* Rounds and meetings */

.round-list {
	display: grid;
	gap: 1.75rem;
	margin: 2rem 0 0;
}

.round-head {
	margin: 0;
	padding-bottom: .35rem;
	border-bottom: 2px solid var(--ink);
	font-family: var(--display);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.meeting-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.meeting {
	display: grid;
	grid-template-columns: 6.5rem 1fr 4.25rem 1fr;
	gap: .25rem .9rem;
	align-items: baseline;
	padding: .55rem .25rem;
	border-bottom: 1px solid var(--rule-soft);
	color: inherit;
	font-size: .85rem;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}

.meeting:hover {
	background: var(--paper-raised);
}

.meeting:hover .meeting-home,
.meeting:hover .meeting-away {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

.meeting-date {
	color: var(--ink-soft);
	white-space: nowrap;
}

.meeting-home {
	text-align: right;
}

.meeting-score {
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
}

.inline-empty {
	margin: .55rem 0 0;
	font-size: .85rem;
}

/* Play-off ties */

.barrage-section {
	margin: 2.5rem 0 0;
}

.tie + .tie {
	margin-top: 1.75rem;
}

.tie-label {
	margin: .9rem 0 0;
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .72rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tie-aggregate {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: .25rem 1.1rem;
	align-items: center;
	margin: .5rem 0 .35rem;
	padding: .75rem .25rem;
	border-bottom: 1px solid var(--ink);
}

.tie-team {
	display: grid;
	gap: .15rem;
	font-size: .95rem;
}

.tie-home {
	text-align: right;
}

.tie-league {
	color: var(--ink-soft);
	font-size: .75rem;
}

.tie-score {
	font-family: var(--display);
	font-size: clamp(1.5rem, 5vw, 2.2rem);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.meeting.is-current {
	background: var(--paper-raised);
	font-weight: 600;
}

.tie-outcome {
	margin: .6rem 0 0;
	font-size: .85rem;
	font-weight: 600;
}

.tie-outcome:empty {
	display: none;
}

/* Event programme */

.event-head {
	position: relative;
	padding-inline-end: clamp(5rem, 18vw, 9rem);
}

.event-score {
	position: absolute;
	right: 0;
	bottom: 1rem;
	margin: 0;
	font-family: var(--display);
	font-size: clamp(2rem, 7vw, 3.4rem);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.program-section {
	margin: 2.5rem 0 0;
}

.section-heading {
	margin: 0 0 1rem;
	padding-bottom: .45rem;
	border-bottom: 2px solid var(--ink);
	font-family: var(--display);
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.officials-section {
	max-width: 52rem;
}

.officials-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	border: 1px solid var(--rule);
	background: var(--paper-raised);
}

.official {
	padding: .7rem 1rem;
	border-bottom: 1px solid var(--rule-soft);
}

.official:nth-child(even) {
	border-left: 1px solid var(--rule-soft);
}

.official dt,
.team-manager span {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.official dd {
	margin: .18rem 0 0;
	font-size: .92rem;
	font-weight: 600;
}

.official-referee {
	grid-column: 1 / -1;
	padding-block: .85rem;
	border-left: .25rem solid var(--accent);
}

.official-referee dt {
	color: var(--accent);
}

.official-referee dd {
	font-family: var(--display);
	font-size: 1.05rem;
}

.team-scorecards,
.heat-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
}

.team-scorecard,
.heat-card {
	border: 1px solid var(--rule);
	background: var(--paper-raised);
}

.team-scorecard > header,
.heat-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: .8rem 1rem;
	border-bottom: 1px solid var(--rule);
}

.team-scorecard h3,
.heat-head h3 {
	margin: 0;
	font-family: var(--display);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.team-scorecard header strong {
	font-family: var(--display);
	font-size: 1.5rem;
	font-variant-numeric: tabular-nums;
}

.team-manager {
	display: flex;
	align-items: baseline;
	gap: .55rem;
	margin: 0;
	padding: .55rem 1rem;
	border-bottom: 1px solid var(--rule-soft);
	background: var(--paper);
}

.team-manager strong {
	font-size: .82rem;
	font-weight: 600;
}

.table-scroll {
	overflow-x: auto;
	overscroll-behavior-x: contain;
}

.program-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .88rem;
	font-variant-numeric: tabular-nums;
}

.program-table th,
.program-table td {
	padding: .45rem .55rem;
	border-bottom: 1px solid var(--rule-soft);
	text-align: left;
	vertical-align: top;
}

.program-table th {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.program-table tbody tr:last-child td {
	border-bottom: 0;
}

.program-table .points {
	font-weight: 700;
	text-align: right;
}

.program-table .bonus {
	color: var(--accent);
}

.lineup-rider-visual {
	display: flex;
	flex-direction: column;
	gap: .08rem;
	line-height: 1.3;
}

.lineup-rider-visual small {
	color: var(--ink-soft);
	font-size: .76rem;
}

.lineup-rider-visual s {
	text-decoration-color: var(--ink-soft);
	text-decoration-thickness: 1px;
}

.bonus-mark {
	color: var(--accent);
	font-size: .7em;
	font-weight: 700;
}

.helmet {
	display: inline-grid;
	width: 1.65rem;
	height: 1.65rem;
	place-items: center;
	border: 1px solid var(--ink);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--display);
	font-size: .68rem;
	font-weight: 700;
	line-height: 1;
}

.helmet-red {
	background: #a92b25;
	color: #fff;
}

.helmet-blue {
	background: #285b91;
	color: #fff;
}

.helmet-yellow {
	background: #e4b522;
}

.helmet-white {
	background: #fff;
}

.helmet-unknown {
	border-color: var(--rule);
	color: var(--ink-soft);
}

.heat-results {
	white-space: nowrap;
}

.heat-results .heat-result + .heat-result::before {
	margin: 0 .2rem;
	color: var(--rule);
	content: "·";
}

.heat-head p {
	margin: 0;
	font-family: var(--display);
	font-size: 1.1rem;
	font-weight: 700;
	white-space: nowrap;
}

.heat-head small {
	display: block;
	color: var(--ink-soft);
	font-family: var(--body);
	font-size: .7rem;
	font-weight: 400;
}

.heat-run {
	padding: .75rem 1rem 0;
}

.heat-table {
	background: var(--paper);
}

.heat-time {
	margin: .75rem 1rem;
	color: var(--ink-soft);
	font-size: .78rem;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 45rem) {
	.section-title {
		display: block;
	}

	.section-title p {
		margin-top: .35rem;
		text-align: left;
	}

	.classification-filters,
	.people-filters {
		grid-template-columns: 1fr;
	}

	.classification-search {
		grid-row: auto;
	}

	.classification-summary {
		display: block;
	}

	.classification-summary p + p {
		margin-top: .25rem;
	}

	.pair-card {
		grid-template-columns: 2.25rem repeat(3, minmax(0, 1fr));
		grid-template-areas:
			"rank identity identity identity"
			"rank heats average balance"
			"rank results results results"
			"rank summary summary summary";
	}

	.pair-rank {
		align-items: flex-start;
		padding-top: 1rem;
	}

	.pair-lead-stat {
		border-top: 1px solid var(--rule-soft);
		text-align: left;
	}

	.pair-results {
		border-left: 0;
	}

	.pair-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pair-summary div:nth-child(n + 3) {
		border-top: 1px solid var(--rule-soft);
	}

	.pair-list-compact .pair-card {
		grid-template-columns: 2.25rem repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"rank identity identity"
			"rank heats points"
			"rank average balance";
	}

	.event-head {
		padding-inline-end: 0;
	}

	.event-score {
		position: static;
		margin: .75rem 0 0;
	}

	.team-scorecards,
	.heat-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.officials-list {
		grid-template-columns: 1fr;
	}

	.official,
	.official:nth-child(even) {
		border-left: 0;
	}

	.official-referee {
		border-left: .25rem solid var(--accent);
	}

	.sort-fallback {
		display: contents;
	}

	.clubs-filters {
		display: grid;
		margin: 2rem 0 0;
		padding: 1rem;
		border: 1px solid var(--rule);
		background: var(--paper-raised);
	}

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

	.directory-table tr {
		display: block;
		padding: .75rem .25rem;
		border-bottom: 1px solid var(--rule);
	}

	.directory-table td {
		display: grid;
		grid-template-columns: 6rem 1fr;
		gap: .75rem;
		padding: .1rem 0;
		border: 0;
	}

	.directory-table td:first-child {
		font-size: 1.1rem;
	}

	.directory-table td::before {
		color: var(--ink-soft);
		font-family: var(--display);
		font-size: .72rem;
		font-weight: 500;
		letter-spacing: .14em;
		text-transform: uppercase;
		content: attr(data-label);
	}

	.meeting {
		grid-template-columns: 1fr auto 1fr;
		gap: .15rem .6rem;
	}

	.meeting-date {
		grid-column: 1 / -1;
		font-size: .78rem;
	}

	.standings-table > tbody > tr > th,
	.rider-classification-table > tbody > tr > th {
		max-width: 8.5rem;
		white-space: normal;
	}
}

/* Footer */

.site-footer {
	display: flex;
	flex-direction: column;
	gap: .45rem;
	width: min(var(--measure), 100%);
	margin: 0 auto;
	padding: 1rem var(--gutter) 2.5rem;
	border-top: 1px solid var(--rule);
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: inherit;
}

.site-footer .footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem 1.1rem;
}

.site-footer button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

.privacy-copy {
	max-width: 42rem;
	margin: 1.75rem 0 0;
}

.privacy-copy section + section {
	margin-top: 1.75rem;
}

.privacy-copy p,
.privacy-copy li {
	margin: .55rem 0 0;
}

.privacy-copy ul {
	margin: .35rem 0 0;
	padding-left: 1.15rem;
}

.privacy-copy code {
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
	font-size: .92em;
}

.privacy-copy table {
	width: 100%;
	margin-top: .8rem;
	border-collapse: collapse;
	font-size: .92rem;
}

.privacy-copy th,
.privacy-copy td {
	padding: .45rem .55rem;
	border-bottom: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}

.privacy-copy thead th {
	font-family: var(--display);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.privacy-links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .35rem;
}

.site-footer .stamp {
	font-size: inherit;
	letter-spacing: inherit;
}

.season-jump {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 1.75rem 0 0;
}

.season-jump a {
	padding: .35rem .7rem;
	border: 1px solid var(--rule);
	color: inherit;
	font-family: var(--display);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-decoration: none;
	text-transform: uppercase;
}

.season-jump a:hover {
	border-color: var(--ink);
}

/* Person card and club hub: one row per season (year, entries, link), fixed columns so links line up */

.person-season,
.club-season {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 34rem) auto;
	justify-content: start;
	align-items: baseline;
	gap: .35rem 1.5rem;
	padding: .8rem 0;
	border-top: 1px solid var(--rule-soft);
}

.facts + .club-season,
.empty + .club-season {
	margin-top: 2rem;
	border-top: 2px solid var(--ink);
}

.page-head + .person-season {
	margin-top: 1rem;
	border-top: 0;
}

.person-season:last-of-type,
.club-season:last-of-type {
	border-bottom: 1px solid var(--rule-soft);
}

.person-season h2,
.club-season h2 {
	margin: 0;
	font-family: var(--display);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.person-season-link,
.club-season-link,
.person-partner-details {
	color: inherit;
	font-family: var(--display);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-underline-offset: .18em;
	text-transform: uppercase;
}

.person-season-link::after,
.club-season-link::after {
	content: "\00a0→";
}

.page-head + .person-role-block {
	margin-top: 1.5rem;
	padding-top: 0;
	border-top: 0;
}

.person-entry + .person-entry {
	margin-top: .75rem;
}

.person-entry-head,
.club-entry-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .15rem .5rem;
	margin: 0;
	font-family: var(--display);
	font-size: 1.02rem;
	font-weight: 500;
	letter-spacing: .03em;
}

.person-entry-head a,
.club-entry-head a,
.person-block-head h2 a,
.meeting-club a {
	color: inherit;
}

.person-entry-head .role-chip {
	align-self: center;
}

.person-entry-sep {
	color: var(--rule);
}

.person-entry-club {
	color: var(--ink-soft);
	font-family: var(--body);
	font-size: .9rem;
	font-weight: 400;
	letter-spacing: 0;
}

.person-stat-row {
	display: grid;
	grid-template-columns: repeat(6, minmax(2.6rem, max-content)) minmax(4.5rem, max-content) 1fr;
	align-items: end;
	margin: .55rem 0 0;
	font-variant-numeric: tabular-nums;
}

.person-stat-row > div {
	padding-inline: .8rem;
	border-left: 1px solid var(--rule-soft);
}

.person-stat-row > div:first-child {
	padding-inline-start: 0;
	border-left: 0;
}

.person-stat-row dt {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .62rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.person-stat-row dd {
	margin: .1rem 0 0;
	font-weight: 600;
}

.person-stat-average dd {
	font-family: var(--display);
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.15;
}

.person-stat-row > .person-stat-status {
	align-self: center;
	justify-self: start;
	padding-inline-end: 0;
	border-left: 0;
}

.person-stat-status dd {
	display: inline-block;
	padding: .12rem .45rem;
	border: 1px solid var(--rule);
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.person-stat-status dd.is-classified {
	border-color: var(--ink);
	color: var(--ink);
}

.person-stat-empty {
	margin: .45rem 0 0;
	color: var(--ink-soft);
	font-size: .88rem;
}

/* Person season page */

.person-role-block {
	margin: 2.25rem 0 0;
	padding-top: 1rem;
	border-top: 2px solid var(--ink);
}

.person-block-head h2 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .35rem .65rem;
	margin: 0;
	font-family: var(--display);
	font-size: 1.3rem;
	font-weight: 500;
	letter-spacing: .04em;
	line-height: 1.2;
}

.person-block-head .person-entry-head {
	margin-top: .3rem;
}

.person-partners h3,
.person-meetings-head {
	margin: 0;
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.person-meetings-head {
	margin: 1.5rem 0 .2rem;
}

.person-partners {
	margin: 1.25rem 0 0;
	padding: .85rem 1rem;
	border: 1px solid var(--rule);
	background: var(--paper-raised);
}

.person-partner-list {
	display: grid;
	gap: 0;
	margin: .65rem 0 0;
	padding: 0;
	list-style: none;
}

.person-partner-list > li {
	display: grid;
	grid-template-columns: minmax(12rem, 1fr) minmax(20rem, 1.5fr) auto;
	gap: .5rem 1rem;
	align-items: center;
	padding: .65rem 0;
	border-top: 1px solid var(--rule-soft);
}

.person-partner-identity {
	display: grid;
	gap: .15rem;
}

.person-partner-identity > a:first-child {
	color: inherit;
	font-family: var(--display);
	font-weight: 600;
}

.person-partner-club {
	color: var(--ink-soft);
	font-size: .78rem;
}

.person-partner-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .35rem;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.person-partner-stats div {
	padding-inline-start: .6rem;
	border-left: 1px solid var(--rule-soft);
}

.person-partner-stats dt {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .62rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.person-partner-stats dd {
	margin: .1rem 0 0;
	font-weight: 600;
}

.person-partners-empty {
	margin: .65rem 0 0;
	color: var(--ink-soft);
	font-size: .84rem;
}

.meeting-round,
.meeting-club {
	margin: .15rem 0 .4rem 6.5rem;
	color: var(--ink-soft);
	font-size: .8rem;
}

@media (pointer: coarse) {
	.club-season-link,
	.person-season-link {
		display: inline-flex;
		align-items: center;
		min-height: 2.75rem;
	}
}

@media (max-width: 45rem) {
	.meeting-round,
	.meeting-club {
		margin-left: 0;
	}

	.person-stat-row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		row-gap: .6rem;
	}

	.person-stat-row > div:nth-child(4n + 1) {
		padding-inline-start: 0;
		border-left: 0;
	}

	.person-stat-row > .person-stat-status {
		grid-column: 1 / -1;
		justify-self: start;
		padding-inline: 0;
	}

	.person-partner-list > li {
		grid-template-columns: minmax(0, 1fr);
	}

	.person-partner-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: .5rem;
	}

	.person-partner-stats div:nth-child(odd) {
		padding-inline-start: 0;
		border-left: 0;
	}
}

/* Club hub row: league and final place side by side */

.club-season-name {
	margin: 0 0 .2rem;
	color: var(--ink-soft);
	font-size: .85rem;
}

.club-entry {
	display: grid;
	grid-template-columns: 14rem auto;
	align-items: baseline;
	gap: .2rem 1.25rem;
}

.club-entry + .club-entry {
	margin-top: .4rem;
}

.club-entry-place {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .2rem .6rem;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.club-entry-place dt {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .62rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.club-entry-place dd {
	display: flex;
	align-items: baseline;
	gap: .35rem;
	margin: 0;
}

.club-entry-place .standing-position {
	width: auto;
	min-width: 1.2rem;
}

/* The stat row needs about 30rem; below this width the link moves under it instead of squeezing it */
@media (max-width: 52rem) {
	.person-season {
		grid-template-columns: 4.5rem minmax(0, 1fr);
	}

	.person-season-link {
		grid-column: 2;
		justify-self: start;
	}
}

@media (max-width: 45rem) {
	.person-season,
	.club-season {
		grid-template-columns: 3.25rem minmax(0, 1fr);
		column-gap: 1rem;
	}

	.club-season-link {
		grid-column: 2;
		justify-self: start;
	}

	.club-entry {
		grid-template-columns: minmax(0, 1fr);
	}
}

.club-competition {
	margin: 1.5rem 0 0;
}

.club-competition-head h2 {
	margin: 0 0 .55rem;
	font-family: var(--display);
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: .04em;
}

.club-competition-head h2 a {
	color: inherit;
}

.club-place {
	display: grid;
	gap: .75rem 1.5rem;
	margin: .85rem 0 0;
	max-width: 40rem;
}

.club-place > div {
	display: grid;
	gap: .2rem;
}

.club-place dt {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.club-place dd {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .35rem .85rem;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.season-jump a.is-active {
	border-color: var(--ink);
	color: var(--paper-raised);
	background: var(--ink);
	text-decoration: none;
}

.event-program h1 a {
	color: inherit;
}

.team-scorecard h3 a {
	color: inherit;
}

/* Pair page: the two riders, the full pair statistics and every shared meeting with its heats */

.pair-page-team a {
	color: inherit;
}

.pair-riders {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	margin: 1.5rem 0 0;
}

.pair-riders a {
	display: grid;
	gap: .2rem;
	padding: .75rem 1rem;
	border: 1px solid var(--rule);
	border-left: .3rem solid var(--ink);
	background: var(--paper-raised);
	color: inherit;
	text-decoration: none;
}

.pair-riders a:hover {
	border-color: var(--ink);
}

.pair-rider-name {
	font-family: var(--display);
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

.pair-rider-season {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .7rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pair-rider-season::after {
	content: "\00a0→";
}

.pair-detail,
.pair-meetings {
	margin: 2.25rem 0 0;
}

.pair-detail-card {
	margin: .85rem 0 0;
	border: 1px solid var(--rule);
	border-left: .3rem solid var(--ink);
	background: var(--paper-raised);
}

.pair-detail-lead {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.pair-detail-lead > div {
	padding: .75rem 1rem;
	border-left: 1px solid var(--rule-soft);
}

.pair-detail-lead > div:first-child {
	border-left: 0;
}

.pair-detail-lead dt {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .62rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pair-detail-lead dd {
	margin: .15rem 0 0;
	font-family: var(--display);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.15;
}

.pair-detail-card .pair-summary div:last-child,
.pair-detail-card .pair-result:first-child {
	border-right: 0;
	border-left: 0;
}

.pair-meeting-heats {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin: .35rem 0 .65rem 6.5rem;
	padding: 0;
	list-style: none;
	font-size: .78rem;
	font-variant-numeric: tabular-nums;
}

.pair-meeting-heats li {
	display: inline-flex;
	align-items: baseline;
	gap: .35rem;
	padding: .12rem .5rem;
	border: 1px solid var(--rule-soft);
	border-top: .16rem solid var(--rule);
	background: var(--paper-raised);
}

.pair-meeting-heats span {
	color: var(--ink-soft);
}

.pair-meeting-heats .is-win {
	border-top-color: #527963;
}

.pair-meeting-heats .is-draw {
	border-top-color: #a88d54;
}

.pair-meeting-heats .is-loss {
	border-top-color: #a35b50;
}

.pair-meeting-heats .pair-meeting-total {
	border-color: var(--ink);
	background: var(--paper);
}

@media (max-width: 45rem) {
	.pair-riders {
		grid-template-columns: minmax(0, 1fr);
	}

	.pair-detail-lead {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pair-detail-lead > div:nth-child(3) {
		border-left: 0;
	}

	.pair-detail-lead > div:nth-child(n + 3) {
		border-top: 1px solid var(--rule-soft);
	}

	.pair-meeting-heats {
		margin-left: 0;
	}
}

/* Head to head */

.head-to-head-names {
	margin: .5rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--ink-soft);
	font-size: .85rem;
}

.head-to-head-levels,
.head-to-head-level {
	margin: 2.25rem 0 0;
}

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

.head-to-head-table th,
.head-to-head-table td {
	padding: .6rem .55rem;
	border-bottom: 1px solid var(--rule-soft);
	text-align: right;
}

.head-to-head-table thead th {
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.head-to-head-table th:first-child {
	text-align: left;
}

.head-to-head-table tbody th {
	font-size: .9rem;
	font-weight: 600;
}

.head-to-head-table tbody tr:nth-child(even) {
	background: var(--paper-raised);
}

.head-to-head-table tbody th a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
}

.head-to-head-wins {
	margin: 1rem 0 0;
}

.head-to-head-wins h3 {
	margin: 0 0 .4rem;
	color: var(--ink-soft);
	font-family: var(--display);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.head-to-head-wins ul {
	display: grid;
	gap: .3rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .88rem;
	font-variant-numeric: tabular-nums;
}

.head-to-head-wins a {
	margin-left: .5rem;
	color: inherit;
	text-underline-offset: .15em;
}

.head-to-head-wins time {
	margin-left: .4rem;
	color: var(--ink-soft);
}

.head-to-head-more,
.event-head-to-head {
	margin: 1rem 0 0;
	font-family: var(--display);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.event-head-to-head {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1rem;
	color: var(--ink-soft);
}

.head-to-head-more a,
.event-head-to-head a {
	color: var(--ink);
	text-underline-offset: .18em;
}

.head-to-head-more a::after,
.event-head-to-head a::after {
	content: "\00a0→";
}

@media print {
	.site-nav,
	.lang-switch,
	.site-search,
	.skip-link {
		display: none;
	}

	body {
		background: white;
	}

	.page,
	.site-footer {
		width: auto;
		padding-inline: 0;
	}
}
