/*
Theme Name: Beskydská laťka
Theme URI: https://beskydskalatka.cz/
Description: Lightweight theme for the Beskydská laťka indoor high jump meeting in Třinec. The bar is the brand device: it runs out of the hero photo, and results are drawn at their real height on a centimetre scale.
Version: 1.11.2
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: bl
License: GPL-2.0-or-later
*/

/* ---------- tokens: light by default, dark follows the visitor's system unless they pick one (data-theme) ---------- */
:root {
	--ground: #EEF1F4;
	--surface: #FFFFFF;
	--ink: #13202C;
	--ink-2: #4C5A68;
	--rule: #CCD4DD;
	--bar: #F6CC0E;
	--on-bar: #13202C;
	--mat: #1F3F99;
	--on-mat: #FFFFFF;
	--on-mat-2: #B9C7EE;
	--mat-rule: rgba(255, 255, 255, .26);
	--foot: #13202C;
	--on-foot: #E7ECF1;
	--on-foot-2: #A3B0BD;
	--focus: #1F3F99;
	--live: #D7263D;
	--display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
	--text: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--gutter: max(16px, 4vw);
	--radius: 2px;
	--head: 68px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ground: #0D161F;
		--surface: #15212C;
		--ink: #E6ECF2;
		--ink-2: #9DAAB8;
		--rule: #27364A;
		--mat: #1A3584;
		--on-mat-2: #B0C0EC;
		--foot: #070D13;
		--focus: #F6CC0E;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--ground: #0D161F;
	--surface: #15212C;
	--ink: #E6ECF2;
	--ink-2: #9DAAB8;
	--rule: #27364A;
	--mat: #1A3584;
	--on-mat-2: #B0C0EC;
	--foot: #070D13;
	--focus: #F6CC0E;
	color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--text);
	font-size: 17px;
	line-height: 1.55;
	font-variation-settings: "wdth" 100;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.site { overflow-x: clip; }
.wrap { max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: .95; text-transform: uppercase; letter-spacing: .005em; }
.lede { color: var(--ink-2); max-width: 60ch; }
.more { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.more:hover { text-decoration-color: var(--bar); }
.date { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--bar); color: var(--on-bar); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
main [id], #kontakt { scroll-margin-top: calc(var(--head) + 16px); }

/* ---------- buttons ---------- */
.btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 22px; border-radius: var(--radius);
	font: 600 16px/1.1 var(--text); text-decoration: none; text-align: center;
	border: 2px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer;
	transition: transform .12s ease;
}
.btn-primary, .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--bar); border-color: var(--bar); color: var(--on-bar); }
.btn:hover, .wp-block-button__link:hover { transform: translateY(-1px); }
.btn:active, .wp-block-button__link:active { transform: translateY(1px); }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ground); border-bottom: 1px solid var(--rule); }
.admin-bar .top { top: 32px; }
@media (max-width: 782px) { .admin-bar .top { top: 0; } }
.top-row { display: flex; align-items: center; gap: 24px; min-height: var(--head); }
.logo { display: grid; flex: none; text-decoration: none; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 19px; line-height: .9; letter-spacing: .01em; position: relative; padding-block: 4px; }
.logo span:last-child { margin-top: 7px; }
.logo::after { content: ""; position: absolute; left: -6px; right: -18px; top: calc(50% - 1px); height: 3px; background: var(--bar); }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.nav ul { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); margin: 0; padding: 0; list-style: none; }
.nav ul a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 600; font-size: 15px; font-variation-settings: "wdth" 92; padding-block: 6px; border-bottom: 3px solid transparent; color: var(--ink-2); transition: color .15s, border-color .15s; }
.nav ul a:hover { color: var(--ink); border-color: var(--rule); }
.nav ul a[aria-current], .nav .current-menu-item > a, .nav .current_page_parent > a { color: var(--ink); border-color: var(--bar); }
.nav .current-menu-ancestor > a { color: var(--ink); border-color: var(--bar); }
/* Drop-down sub-pages: open on hover, keyboard focus or the arrow button. */
.nav .menu-item-has-children { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle { display: grid; place-items: center; width: 24px; height: 28px; margin-right: -6px; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: 4px; }
.sub-toggle:hover { color: var(--ink); }
.sub-toggle svg { transition: transform .15s; }
.nav .menu-item-has-children.is-open > .sub-toggle svg { transform: rotate(180deg); }
.nav .sub-menu { display: none; position: absolute; z-index: 40; top: 100%; left: -14px; min-width: 230px; flex-direction: column; align-items: stretch; gap: 0; padding: 6px; background: var(--surface); background-clip: padding-box; border: 1px solid var(--rule); border-top: 10px solid transparent; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 16px 32px -16px rgba(8, 16, 24, .45); }
.nav .menu-item-has-children:hover > .sub-menu, .nav .menu-item-has-children:focus-within > .sub-menu, .nav .menu-item-has-children.is-open > .sub-menu { display: flex; }
.nav .menu-item-has-children.is-closed > .sub-menu { display: none; }
.nav > ul > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: -14px; }
.nav .sub-menu a { display: block; padding: 10px 12px; border-bottom: 0; border-radius: var(--radius); color: var(--ink); white-space: nowrap; }
.nav .sub-menu a:hover, .nav .sub-menu a:focus-visible { background: var(--ground); }
.nav .sub-menu .current-menu-item > a { box-shadow: inset 3px 0 0 var(--bar); }
.nav-live a { color: var(--ink) !important; }
.nav-live a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.lang { font-weight: 700; font-size: 14px; letter-spacing: .04em; text-decoration: none; color: var(--ink-2); padding: 8px 4px; line-height: 1.3; transition: color .15s; }
.lang:hover { color: var(--ink); }
.mnav .lang { display: inline-block; font-size: 17px; letter-spacing: 0; color: var(--ink); padding: 8px 0; text-decoration: underline; text-decoration-color: var(--bar); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.theme-btn { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; color: var(--ink-2); border-radius: 50%; cursor: pointer; padding: 0; transition: color .15s; }
.theme-btn:hover { color: var(--ink); }
.theme-btn svg { width: 19px; height: 19px; }
@media (min-width: 1021px) { .nav + .here + .theme-btn { margin-left: -8px; } }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
	:root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); color: var(--ink); border-radius: var(--radius); font: 600 15px var(--text); padding: 8px 14px; cursor: pointer; min-height: 44px; }
.here { display: none; font-weight: 600; font-size: 14px; color: var(--ink-2); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mnav { position: absolute; top: 100%; left: 0; right: 0; background: var(--ground); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 32px -18px rgba(8, 16, 24, .45); padding-block: 8px 24px; max-height: calc(100vh - var(--head)); max-height: calc(100dvh - var(--head)); overflow-y: auto; overscroll-behavior: contain; }
.mnav ul { list-style: none; margin: 0 0 20px; padding: 0; }
.mnav ul a { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--rule); }
.mnav ul a[aria-current], .mnav .current-menu-item > a { text-decoration: underline; text-decoration-color: var(--bar); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.mnav .nav-live a::before { width: 12px; height: 12px; }
.mnav .sub-toggle { display: none; }
.mnav .sub-menu { margin: 0 0 6px; padding-left: 18px; border-bottom: 1px solid var(--rule); }
.mnav .menu-item-has-children > a { border-bottom: 0; }
.mnav .sub-menu a { font-family: var(--text); font-weight: 600; font-size: 18px; text-transform: none; padding: 9px 0; border-bottom: 0; }
@media (max-width: 1020px) {
	.nav { display: none; }
	.menu-btn { display: inline-block; }
	.here:not(:empty) { display: block; }
	.theme-btn { margin-left: auto; width: 44px; height: 44px; }
	.here:not(:empty) ~ .theme-btn { margin-left: 12px; }
	/* The icon sits in a 44px tap area; pull the menu button in so the visible gap stays small. */
	.theme-btn + .menu-btn { margin-left: -22px; } /* cancels most of the 24px row gap */
}
@media (min-width: 1021px) { .mnav { display: none !important; } }

/* ---------- hero ---------- */
.hero {
	--pw: min(56vw, 900px);
	--ph: calc(var(--pw) / 1.5);
	/* --bar-pos is the centre of the bar in the photo; the web bar is centred on it with the same thickness. */
	--bar-y: calc(var(--ph) * var(--bar-pos, .322));
	--bar-h: max(4px, calc(var(--ph) * .0101));
	--top: clamp(24px, 3.5vw, 52px);
	max-width: 1600px; margin-inline: auto; position: relative;
	display: grid; grid-template-columns: minmax(0, 1fr) var(--pw);
	padding-top: var(--top);
}
.hero-copy { position: relative; padding-left: var(--gutter); padding-right: clamp(16px, 2.6vw, 40px); }
.tier { position: absolute; top: 0; left: var(--gutter); font-weight: 600; font-size: 15px; font-variation-settings: "wdth" 90; color: var(--ink-2); }
.wordmark {
	--fs: calc((min(100vw, 1600px) - var(--pw)) * .205);
	display: grid; grid-template-rows: var(--bar-y) auto;
	font-family: var(--display); font-weight: 900; text-transform: uppercase;
	font-size: var(--fs); line-height: .8; letter-spacing: .005em;
}
.wordmark .w1 { align-self: end; margin-bottom: .1em; }
.wordmark .w2 { margin-top: calc(var(--bar-h) / 2 + .2em); }
.wordmark .bar { position: absolute; top: calc(var(--bar-y) - var(--bar-h) / 2); height: var(--bar-h); left: -50vw; right: 0; background: var(--bar); transform-origin: right center; animation: bl-set-bar 1.1s cubic-bezier(.2, .7, .1, 1) .25s both; }
@keyframes bl-set-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.state { margin-top: clamp(18px, 2vw, 30px); display: grid; gap: 20px; max-width: 34rem; }
.state p { font-size: clamp(17px, 1.35vw, 19px); }
.state strong { font-weight: 700; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 15px; color: var(--ink-2); }
.cal-menu { position: relative; }
.cal-menu summary { list-style: none; width: 48px; padding: 0; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-menu[open] summary { background: var(--ink); color: var(--ground); }
.state .cal-pop p, .cal-pop p { margin: 0; padding: 6px 12px 4px; font-size: 13px; color: var(--ink-2); }
.cal-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 230px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.cal-pop a { display: block; padding: 10px 12px; color: var(--ink); font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.cal-pop a:hover, .cal-pop a:focus-visible { background: var(--ground); }
.cal-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.count { display: flex; gap: clamp(14px, 2vw, 28px); align-items: baseline; }
.count div { display: grid; }
.count b { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.2vw, 64px); line-height: .9; font-variant-numeric: tabular-nums; min-width: 1ch; }
.count span { font-size: 14px; color: var(--ink-2); }
.day-label { font-weight: 700; }
.live-now { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.live-now::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(215, 38, 61, .2); }
.hero-photo { margin: 0; width: var(--pw); max-width: 100%; aspect-ratio: 3 / 2; background: var(--mat); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
	.hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
	.hero-copy { padding-right: var(--gutter); }
	.tier { position: static; margin-bottom: 14px; }
	.wordmark { --fs: min(21vw, 150px); display: block; }
	.wordmark span { display: block; }
	.wordmark .w1 { margin-bottom: 0; }
	.wordmark .bar { position: relative; top: auto; left: calc(-1 * var(--gutter)); right: auto; width: 100vw; height: 6px; margin: .12em 0 .16em; }
	.wordmark .w2 { margin-top: 0; }
	.hero-photo { width: 100%; order: 3; }
	.board { order: 2; }
}

/* ---------- partner board (arena perimeter board) ---------- */
.board {
	grid-column: 1 / -1; margin-top: clamp(20px, 2.4vw, 32px);
	margin-inline: min(0px, calc((1600px - 100vw) / 2));
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
	background: #FFFFFF; color: #13202C; border-top: 4px solid var(--bar); min-height: 92px;
}
.board-label { display: grid; place-items: center; padding-inline: var(--gutter) 24px; background: #13202C; color: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.board-view { overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.board-track { display: flex; width: max-content; animation: bl-board 70s linear infinite; }
.board-track ul { display: flex; align-items: center; gap: 56px; padding: 0 56px 0 0; margin: 0; list-style: none; }
.board-track li { flex: 0 0 auto; display: grid; place-items: center; height: 92px; }
.board-track img { max-height: 50px; max-width: 170px; width: auto; height: auto; }
.board:hover .board-track, .board:focus-within .board-track, .board.is-paused .board-track { animation-play-state: paused; }
@keyframes bl-board { to { transform: translateX(-50%); } }
.board-pause { width: 56px; border: 0; border-left: 1px solid #D5DBE2; background: #FFFFFF; color: #13202C; cursor: pointer; display: grid; place-items: center; }
.board-pause svg { width: 18px; height: 18px; }
.board-pause .i-play, .board.is-paused .board-pause .i-pause { display: none; }
.board.is-paused .board-pause .i-play { display: block; }
@media (max-width: 900px) {
	.board { grid-template-columns: minmax(0, 1fr) auto; margin-inline: 0; min-height: 0; }
	.board-label { grid-column: 1 / -1; place-items: center start; padding: 6px var(--gutter); font-size: 16px; }
	.board-track li { height: 76px; }
	.board-track img { max-height: 40px; max-width: 130px; }
	.board-track ul { gap: 40px; padding-right: 40px; }
	.board-pause { width: 52px; }
}

/* ---------- section heads ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.sec-title { display: grid; gap: 12px; }

/* ---------- results ---------- */
.results { background: var(--mat); color: var(--on-mat); padding-block: clamp(56px, 7vw, 104px); }
.results .lede, .results .results-foot { color: var(--on-mat-2); }
.results .more { color: var(--on-mat); }
.results-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); }
.chart { position: relative; height: clamp(520px, 62vw, 640px); padding-left: 64px; }
.ruler { position: absolute; left: 0; top: 0; bottom: 0; width: 48px; border-right: 2px solid var(--mat-rule); background-image: linear-gradient(to bottom, var(--mat-rule) 1px, transparent 1px); background-size: 10px calc(100% / var(--span)); background-repeat: repeat-y; background-position: right top; }
.tick, .res, .group { top: calc((var(--max) - var(--h)) / var(--span) * 100%); }
.tick { position: absolute; right: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--on-mat-2); font-variant-numeric: tabular-nums; }
.tick::after { content: ""; width: 20px; height: 2px; background: var(--on-mat-2); }
.res { position: absolute; left: 64px; right: 0; height: 0; }
.res::before { content: ""; position: absolute; left: -16px; right: 0; top: -2px; height: 4px; background: var(--bar); }
.res.rec::before { background: none; border-top: 2px dashed var(--on-mat-2); top: -1px; height: 0; }
.res .who { position: absolute; left: 0; bottom: 6px; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 76px); }
.res .who em { font-style: normal; color: var(--on-mat-2); font-size: 13px; margin-left: 6px; font-variation-settings: "wdth" 90; }
.res .cm { position: absolute; right: 0; bottom: 5px; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.res .cm small { font-family: var(--text); font-weight: 500; font-size: 12px; margin-left: 3px; color: var(--on-mat-2); }
.res.rec .who, .res.rec .cm { color: var(--on-mat-2); }
.group { position: absolute; left: 64px; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.podiums { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.podiums figure { margin: 0; display: grid; gap: 8px; }
.podiums img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.podiums figcaption { font-size: 14px; color: var(--on-mat-2); }
.results-foot { margin-top: 28px; font-size: 14px; }
@media (max-width: 900px) {
	.results-grid { grid-template-columns: minmax(0, 1fr); }
	.podiums { flex-direction: row; }
	.podiums figure { flex: 1; min-width: 0; }
	.chart { padding-left: 52px; }
	.ruler { width: 40px; }
	.res, .group { left: 52px; }
	.res .who { font-size: 14px; }
	.res .cm { font-size: 22px; }
}
@media (max-width: 520px) { .podiums { flex-direction: column; } }

/* ---------- live results ---------- */
.live { background: var(--mat); color: var(--on-mat); padding-block: clamp(48px, 6vw, 88px); }
.live .lede, .live-meta { color: var(--on-mat-2); }
.live .more { color: var(--on-mat); }
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.live-event { display: grid; gap: 14px; align-content: start; min-width: 0; }
.live-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; padding-bottom: 8px; border-bottom: 4px solid var(--bar); }
.live .live-head h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1; text-transform: uppercase; }
.live-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(215, 38, 61, .3); animation: bl-pulse 1.6s ease-in-out infinite; }
@keyframes bl-pulse { 50% { box-shadow: 0 0 0 8px rgba(215, 38, 61, 0); } }
.live .live-height { max-width: none; }
.live-height { display: flex; align-items: baseline; gap: 10px; font-weight: 600; }
.live-height b { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 6vw, 72px); line-height: .9; color: var(--bar); font-variant-numeric: tabular-nums; }
.live-scroll { overflow-x: auto; }
.live-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.live-table th, .live-table td { padding: 8px 6px; border-bottom: 1px solid var(--mat-rule); text-align: left; white-space: nowrap; font-weight: 400; }
.live-table thead th { font-size: 12px; font-weight: 600; color: var(--on-mat-2); }
.live-table .c-place, .live-table .c-name { position: sticky; background: var(--mat); z-index: 1; }
.live-table .c-place { left: 0; min-width: 36px; }
.live-table .c-name { left: 36px; font-weight: 600; }
.live-table .c-name em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--on-mat-2); margin-left: 6px; }
.live-table td.c-res { font-family: var(--display); font-weight: 800; font-size: 20px; }
.live-table .c-res small { font-family: var(--text); font-weight: 600; font-size: 11px; color: var(--on-mat-2); margin-left: 5px; }
.live-table .c-h { text-align: center; }
.live-table thead .c-h.is-current { color: var(--bar); box-shadow: inset 0 -3px 0 var(--bar); }
.live-table .is-leader .c-place { color: var(--bar); font-weight: 800; }
.att { display: inline-block; min-width: 30px; padding: 2px 3px; border-radius: var(--radius); font-size: 12px; font-weight: 700; text-align: center; }
.live-table .c-h { padding-inline: 3px; }
.att-ok { background: var(--bar); color: var(--on-bar); }
.att-fail { color: var(--on-mat-2); }
.att-pass { color: var(--on-mat-2); opacity: .7; }
.live-empty { font-size: 18px; color: var(--on-mat-2); max-width: 60ch; }
.live-meta { margin-top: 20px; font-size: 14px; }
@media (max-width: 900px) { .live-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
	.live-table .c-name { min-width: 128px; max-width: 128px; white-space: normal; line-height: 1.2; }
	.live-table .c-name em { display: block; margin: 2px 0 0; }
	.live-table .c-res { position: sticky; left: 164px; background: var(--mat); z-index: 1; box-shadow: 6px 0 8px -6px rgba(0, 0, 0, .35); }
}

/* ---------- news ---------- */
.news { padding-block: clamp(56px, 7vw, 104px); }
.news-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); }
.feature { display: grid; gap: 16px; align-content: start; text-decoration: none; }
.feature img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.feature h3 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3vw, 44px); line-height: .98; text-transform: uppercase; }
.feature p:not(.date) { color: var(--ink-2); max-width: 60ch; }
.feature:hover h3 { text-decoration: underline; text-decoration-color: var(--bar); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.list { display: grid; align-content: start; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 20px; padding-block: 22px; border-top: 1px solid var(--rule); text-decoration: none; }
.item:first-child { padding-top: 0; border-top: 0; }
.item:last-child { border-bottom: 1px solid var(--rule); }
.item h3 { font-size: 21px; line-height: 1.2; font-weight: 700; font-variation-settings: "wdth" 88; margin-top: 4px; }
.item img { width: 112px; aspect-ratio: 4 / 5; object-fit: cover; }
.item:hover h3 { text-decoration: underline; text-decoration-color: var(--bar); text-decoration-thickness: 3px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .item { grid-template-columns: minmax(0, 1fr) 84px; } .item img { width: 84px; } }

/* ---------- instagram ---------- */
.insta { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--rule); }
.handle { font-weight: 600; color: var(--ink-2); }
.ig-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
.ig-post { display: grid; gap: 8px; align-content: start; text-decoration: none; position: relative; }
.ig-post:first-child { grid-column: span 2; grid-row: span 2; }
.ig-post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.ig-post p { font-size: 14px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ig-post:first-child p { font-size: 16px; color: var(--ink); }
.ig-post .kind { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; background: rgba(19, 32, 44, .72); color: #FFFFFF; border-radius: 50%; }
.ig-post .kind svg { width: 12px; height: 12px; }
.ig-post:hover p { text-decoration: underline; text-decoration-color: var(--bar); text-decoration-thickness: 2px; }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ig-post:first-child { grid-row: auto; } }

/* ---------- programme ---------- */
.program { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--rule); }
.program-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--rule); position: relative; }
.tl time { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.tl li.main { padding-block: 18px; }
.tl li.main time { font-size: 40px; font-weight: 900; }
.tl li.main span { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 2.6vw, 36px); text-transform: uppercase; line-height: 1; }
.tl li.main::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--bar); }
.info { display: grid; align-content: start; }
.info > div { padding-block: 20px; border-top: 1px solid var(--rule); display: grid; gap: 6px; justify-items: start; }
.info > div:first-child { border-top: 3px solid var(--ink); }
.info h3 { font-size: 14px; font-weight: 700; color: var(--ink-2); font-variation-settings: "wdth" 90; }
.info p { font-size: 18px; }
@media (max-width: 900px) { .program-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .tl li { grid-template-columns: 4.4rem minmax(0, 1fr); gap: 10px; } .tl li.main time { font-size: 32px; } }

/* ---------- gallery strip ---------- */
.gal-section { padding-block: clamp(56px, 7vw, 104px); background: var(--surface); }
.gal-inner { max-width: 1600px; margin-inline: auto; }
.gal-tools { display: flex; align-items: center; gap: 20px; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-left: var(--gutter); padding-bottom: 12px; scrollbar-width: thin; scroll-padding-left: var(--gutter); }
.strip::after { content: ""; flex: 0 0 var(--gutter); }
.strip img { flex: 0 0 auto; height: clamp(220px, 30vw, 420px); width: auto; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: start; }
.strip-nav { display: flex; gap: 8px; }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--radius); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .strip-nav { display: none; } }

/* ---------- footer ---------- */
.foot { background: var(--foot); color: var(--on-foot); padding-block: clamp(48px, 6vw, 80px) 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 3fr)); gap: 32px; }
@media (max-width: 1200px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand p { color: var(--on-foot-2); max-width: 30ch; }
.foot .logo { font-size: 30px; justify-self: start; }
.foot h2 { font-family: var(--text); font-size: 14px; font-weight: 700; color: var(--on-foot-2); margin-bottom: 10px; font-variation-settings: "wdth" 90; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-underline-offset: 3px; }
.foot .lang { padding: 0; font-weight: 400; font-size: inherit; letter-spacing: 0; color: inherit; text-decoration: underline; }
.foot .small { color: var(--on-foot-2); font-size: 14px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot .small a { color: inherit; display: inline-block; padding: 4px 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- subpages ---------- */
.page-head { padding-block: clamp(36px, 5vw, 72px) clamp(24px, 3vw, 40px); display: grid; gap: 12px; }
.page-title { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 8vw, 7rem); line-height: .85; text-transform: uppercase; }
.page-title-post { font-size: clamp(2.5rem, 5.5vw, 5rem); line-height: .9; max-width: 18ch; }
.page-bar { display: block; height: 6px; background: var(--bar); margin-left: calc(-1 * var(--gutter)); width: min(calc(100% + var(--gutter)), 720px); }
.page-bar.is-down { transform: rotate(-4deg); transform-origin: left center; margin-top: 18px; }
.notfound { padding-bottom: clamp(56px, 8vw, 120px); gap: 24px; }
.post-cover { margin-block: 0 clamp(24px, 3vw, 40px); }
.post-cover img { width: 100%; max-width: 1000px; }
.legacy { padding-bottom: clamp(48px, 6vw, 96px); }

/* ---------- practical information ---------- */
.prose > .info-page { margin-top: 0; }
.info-page { padding-bottom: clamp(56px, 7vw, 104px); }
.info-q { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px clamp(24px, 4vw, 64px); padding-block: 22px 26px; border-top: 1px solid var(--rule); max-width: 1200px; }
.info-q:first-child { border-top: 3px solid var(--bar); }
.prose .info-q h2 { margin: 0; font-family: var(--text); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.3; text-transform: none; letter-spacing: 0; }
.info-a > * { margin: 0; max-width: 62ch; }
.info-a > * + * { margin-top: .75em; }
.info-tl { list-style: none; padding: 0 !important; display: grid; gap: 4px; }
.info-tl li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.prose .info-tl li + li { margin-top: 0; }
.info-tl time { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.info-tl .main span { font-weight: 700; }
@media (max-width: 800px) {
	.info-q { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- tickets ---------- */
.tk { padding-block: clamp(8px, 2vw, 24px) clamp(56px, 7vw, 104px); }
.tk-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.tk-intro { display: grid; gap: 16px; }
.prose > .tk { margin-top: 0; padding-top: 0; }
.tk .h2 { font-size: clamp(2.25rem, 4vw, 3.25rem); margin: 0; }
.tk .lede { margin: 0; }
.prose .tk-preview { max-width: none; }
.tk-steps { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: tk; display: grid; gap: 14px; }
.tk-steps li { counter-increment: tk; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: baseline; max-width: 46ch; }
.tk-steps li::before { content: counter(tk); font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--ink); border-bottom: 3px solid var(--bar); text-align: center; padding-bottom: 2px; }
.prose .tk-steps li + li { margin-top: 0; }
.tk-box { background: var(--surface); border: 1px solid var(--rule); border-top: 6px solid var(--bar); padding: clamp(20px, 3vw, 36px); }
.tk-form { display: grid; gap: 18px; }
.tk-field { display: grid; gap: 6px; margin: 0; }
.tk-field label { font-weight: 700; font-size: 15px; }
.tk-field label span { font-weight: 400; color: var(--ink-2); }
.tk-field input { width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--rule); border-radius: var(--radius); background: var(--ground); color: var(--ink); font: 500 18px/1.2 var(--text); }
.tk-field input:focus { outline: none; border-color: var(--focus); }
.tk-note { margin: -6px 0 0; font-size: 14px; color: var(--ink-2); max-width: 52ch; }
.tk-note a { color: var(--ink); }
#tk-code { font-weight: 700; font-size: 22px; letter-spacing: .08em; font-variant-numeric: tabular-nums; text-transform: uppercase; }
#tk-code::placeholder { letter-spacing: .08em; color: var(--rule); }
.tk-form .btn { justify-self: start; }
.tk-msg { margin: 0; min-height: 1.5em; color: var(--live); font-weight: 600; }
.tk-msg:empty { min-height: 0; }
.tk-preview { margin: 0; padding: 8px 12px; background: var(--bar); color: var(--on-bar); font-weight: 600; font-size: 14px; }
.tk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tk-closed { margin: 0; font-size: 18px; font-weight: 600; }
.tk-out { display: grid; gap: 20px; justify-items: start; scroll-margin-top: calc(var(--head) + 24px); }

/* The ticket stays light in dark mode: it is a paper ticket, and scanners want black on white. */
.tk-ticket {
	--t-ink: #13202C; --t-ink-2: #4C5A68;
	width: min(100%, 420px); background: #fff; color: var(--t-ink);
	display: grid; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(19, 32, 44, .55);
	position: relative;
}
.tk-band { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; background: var(--tk-bg); color: var(--tk-fg); font-weight: 700; font-size: 13px; }
.tk-cat { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.tk-main { padding: 16px 22px 18px; position: relative; }
.tk-main::before { content: ""; position: absolute; left: 0; right: 0; top: 62px; height: 4px; background: var(--bar); }
.tk-event { margin: 0 0 22px; font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; text-transform: uppercase; }
.tk-edition { margin: 0 0 12px; font-size: 14px; color: var(--t-ink-2); }
.tk-facts { margin: 0; display: grid; gap: 6px; }
.tk-facts div { display: grid; grid-template-columns: 56px 1fr; gap: 8px; }
.tk-facts dt { font-size: 13px; color: var(--t-ink-2); padding-top: 2px; }
.tk-facts dd { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.35; }
/* Tear line between the stub and the QR part. */
.tk-qr { padding: 18px 22px 8px; border-top: 2px dashed #CCD4DD; position: relative; display: grid; justify-items: center; gap: 6px; }
.tk-qr::before, .tk-qr::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); }
.tk-qr::before { left: -10px; }
.tk-qr::after { right: -10px; }
.tk-qr-svg { width: min(100%, 240px); height: auto; display: block; }
.tk-code { margin: 0; font-weight: 700; font-size: 20px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.tk-desc, .tk-note { margin: 0; padding: 0 22px; font-size: 13px; line-height: 1.45; color: var(--t-ink-2); text-align: center; }
.tk-desc { padding-top: 6px; color: var(--t-ink); }
.tk-note { padding-top: 8px; padding-bottom: 20px; }
.tk-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tk-actions form { margin: 0; }
.tk-again { border-color: transparent; text-decoration: underline; text-decoration-color: var(--bar); text-decoration-thickness: 2px; text-underline-offset: 4px; padding-inline: 8px; }

@media (max-width: 900px) {
	/* On phones the form comes right after the heading, the steps below it. */
	.tk-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.tk-intro { display: contents; }
	.tk-steps { order: 2; margin-top: 8px; }
}
@media (max-width: 520px) {
	.tk-box { padding: 20px 16px; margin-inline: calc(-1 * var(--gutter) + 8px); }
	.tk-event { font-size: 32px; }
	.tk-actions .btn, .tk-actions form { width: 100%; }
}

/* Printing from the ticket page: only the ticket. */
@media print {
	body.tk-printing * { visibility: hidden; }
	body.tk-printing .tk-ticket, body.tk-printing .tk-ticket * { visibility: visible; }
	body.tk-printing .tk-ticket { position: absolute; left: 0; top: 0; box-shadow: none; border: 1px solid #CCD4DD; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	body.tk-printing .tk-qr::before, body.tk-printing .tk-qr::after { display: none; }
}

.prose { padding-bottom: clamp(56px, 7vw, 104px); }
.prose > * { max-width: 820px; }
.page-head + .prose, .post-cover + .prose { margin-top: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; text-transform: uppercase; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 700; margin-top: 1.4em; }
.prose h4 { font-size: 1rem; font-weight: 700; margin-top: 1.2em; }
.prose p, .prose li { max-width: 68ch; }
.prose a:not(.wp-block-button__link):not(.wp-block-file__button) { text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--bar); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; height: 4px; background: var(--bar); width: 96px; margin-block: 2em; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 4px solid var(--bar); font-size: 1.15em; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.prose > .alignwide, .prose > .logo-grid { max-width: 1200px; }
.prose > .logo-grid { margin-block: 28px; }
.prose > .alignfull, .prose > [data-sec] { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.prose table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prose .wp-block-table { margin-inline: 0; }
.prose .wp-block-table table { border-collapse: collapse; }
.prose .wp-block-table th, .prose .wp-block-table td { text-align: left; padding: 10px 24px 10px 0; border: 0; border-bottom: 1px solid var(--rule); vertical-align: top; word-break: normal; }
.prose .wp-block-table thead { border-bottom: 2px solid var(--ink); }
.prose .wp-block-table th { font-size: 14px; color: var(--ink-2); font-weight: 700; border-bottom: 0; }
.prose .wp-block-table td:first-child { font-weight: 600; }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.prose .wp-block-file__button { background: var(--bar); color: var(--on-bar); border-radius: var(--radius); padding: 10px 18px; font-weight: 600; text-decoration: none; }
.prose .wp-block-embed iframe { width: 100%; }
.prose .wp-block-gallery { gap: 10px; }
.prose .wp-block-gallery img { object-fit: cover; }
.prose .wp-block-columns { gap: clamp(20px, 3vw, 40px); }
.prose .wp-block-group.has-background { padding: clamp(20px, 3vw, 32px); }

.archive { padding-bottom: clamp(56px, 7vw, 104px); }
.archive-list { display: grid; gap: 0; }
.archive-item { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding-block: 28px; border-top: 1px solid var(--rule); text-decoration: none; align-items: start; }
.archive-item:first-child { border-top: 0; padding-top: 0; }
.archive-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.archive-item > div { display: grid; gap: 10px; }
.archive-item h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1; text-transform: uppercase; }
.archive-item .excerpt { color: var(--ink-2); max-width: 60ch; }
.archive-item:hover h2 { text-decoration: underline; text-decoration-color: var(--bar); text-decoration-thickness: 4px; text-underline-offset: 6px; }
@media (max-width: 700px) { .archive-item { grid-template-columns: minmax(0, 1fr); } }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border: 2px solid var(--rule); text-decoration: none; font-weight: 600; }
.pagination .current { border-color: var(--bar); background: var(--bar); color: var(--on-bar); }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 402px)); gap: 16px; padding-bottom: clamp(56px, 7vw, 104px); }
.post-nav a { display: grid; gap: 4px; padding-top: 16px; border-top: 3px solid var(--ink); text-decoration: none; font-weight: 700; }
.post-nav a span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.post-nav .next { grid-column: 2; text-align: right; }
@media (max-width: 600px) { .post-nav { grid-template-columns: minmax(0, 1fr); } .post-nav .next { grid-column: 1; text-align: left; } }

/* ---------- blocks inside subpages ---------- */
.prose > [data-sec] { margin-top: clamp(32px, 4vw, 56px); }
.prose > [data-sec] + * { margin-top: clamp(32px, 4vw, 56px); }
.prose:has(> [data-sec]:last-child) { padding-bottom: 0; }
.results .podiums figcaption { color: var(--on-mat-2); }
.logo-grid { list-style: none; margin: 0; padding: clamp(16px, 3vw, 40px); background: #FFFFFF; border-radius: var(--radius); display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 24px; }
.logo-grid li { display: grid; place-items: center; height: 110px; padding: 12px; max-width: none; margin: 0; }
.logo-grid img { max-height: 70px; max-width: 100%; width: auto; }
.bl-embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.bl-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 32px; margin: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } .facts dd { margin-bottom: 10px; } }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image img { aspect-ratio: 3 / 2; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(50% - 5px); flex-grow: 0; }
@media (min-width: 700px) { .prose .wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) { width: calc(25% - 7.5px); } }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.prose .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--ink); color: var(--ink); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.wordmark .bar { animation: none; }
	.btn:hover, .btn:active, .wp-block-button__link:hover { transform: none; }
	.board-track { animation: none; }
	.board-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.board-track ul[aria-hidden] { display: none; }
	.board-pause { display: none; }
	.live-dot { animation: none; }
}

/* ---------- history ---------- */
.prose .bl-history table { min-width: 560px; }
.prose .bl-history td:nth-child(1), .prose .bl-history td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose .bl-history td:nth-child(4), .prose .bl-history td:nth-child(6) { font-variant-numeric: tabular-nums; font-weight: 700; }
.prose .bl-history td[colspan] { color: var(--ink-2); font-style: italic; font-weight: 400; }
.prose .bl-source { font-size: 14px; color: var(--ink-2); }
.prose .bl-records td:nth-child(3) { font-variant-numeric: tabular-nums; font-weight: 700; }
/* Galleries with three columns (the default in the theme is two). */
.prose .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) { width: calc(33.333% - 7px); }
@media (max-width: 600px) { .prose .wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) { width: calc(50% - 5px); } }
.prose .wp-block-image figcaption, .prose .wp-element-caption { font-size: 13px; line-height: 1.45; }

/* ---------- history: winning heights chart ---------- */
.hc { --hc-m: var(--ink); --hc-w: #1F3F99; margin: clamp(36px, 4.5vw, 64px) 0 clamp(48px, 6vw, 88px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hc { --hc-w: #86A2F2; } }
:root[data-theme="dark"] .hc { --hc-w: #86A2F2; }
.prose > .hc { max-width: 1200px; }
.prose .hc-title { margin-top: 0; }
.hc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.hc-key { display: inline-block; width: 22px; height: 4px; margin-right: 8px; vertical-align: middle; background: var(--hc-m); }
.hc-key.hc-women { background: var(--hc-w); }
.hc-key.is-rec { background: var(--bar); }
.hc-scroll { overflow-x: auto; margin-top: 18px; padding: 10px 0 6px; scrollbar-width: thin; }
.hc-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hc-plot { position: relative; min-width: 1040px; padding: 0 38px 0 40px; }
.hc-area { position: relative; height: clamp(260px, 30vw, 360px); border-bottom: 2px solid var(--ink); }
.hc-grid, .hc-rec { position: absolute; right: 0; bottom: var(--y); pointer-events: none; }
.hc-grid { left: -40px; right: -38px; border-top: 1px solid var(--rule); }
.hc-grid b { position: absolute; left: 0; top: -9px; font: 600 12px/1 var(--text); color: var(--ink-2); font-variant-numeric: tabular-nums; background: var(--ground); padding-right: 4px; }
.hc-grid::after { content: attr(data-cm); position: absolute; right: 0; top: -9px; padding-left: 4px; font: 600 12px/1 var(--text); color: var(--ink-2); background: var(--ground); font-variant-numeric: tabular-nums; }
.hc-rec { left: 0; border-top: 2px dashed var(--bar); z-index: 2; }
.hc-rec b { position: absolute; left: 6px; bottom: 5px; padding: 1px 6px; font: 600 12px/1.3 var(--text); color: var(--ink); background: var(--ground); }
.hc-cols { position: absolute; inset: 0; display: flex; margin: 0; padding: 0; list-style: none; }
.prose .hc-cols li + li { margin-top: 0; }
.hc-col { position: relative; flex: 1 1 0; min-width: 0; }
.hc-col button { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.hc-col button:hover, .hc-col button[aria-pressed="true"] { background: color-mix(in srgb, var(--bar) 22%, transparent); }
.hc-col button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.hc-mark { position: absolute; left: 16%; right: 16%; bottom: var(--y); height: 4px; margin-bottom: -2px; background: var(--hc-m); }
.hc-mark.hc-women { background: var(--hc-w); }
.hc-mark.is-rec { height: 6px; margin-bottom: -3px; background: var(--bar); box-shadow: 0 0 0 1.5px var(--ink); z-index: 3; }
.hc-unknown { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 700 15px/1 var(--text); color: var(--ink-2); }
.hc-x { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 7px; font: 700 12px/1 var(--text); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hc-gap { flex: 2 1 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 0 3px; text-align: center; background: repeating-linear-gradient(135deg, transparent 0 7px, var(--rule) 7px 8px); }
.hc-gap.is-long { flex-grow: 3; }
.hc-gap span { font: 800 17px/1 var(--display); text-transform: uppercase; color: var(--ink); background: var(--ground); padding: 2px 3px; }
.hc-gap small { font-size: 10px; line-height: 1; color: var(--ink-2); background: var(--ground); padding: 1px 3px; }
.hc-bands { display: flex; margin-top: 30px; }
.hc-band { position: relative; flex: 1 1 0; min-width: 0; padding: 11px 6px 0 0; font: 700 13px/1.2 var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-band::before { content: ""; position: absolute; top: 0; left: 2px; right: 2px; height: 4px; background: var(--ink); }
.hc-band:not(:empty) { padding-left: 2px; }
.hc-band.is-werk::before { background: var(--bar); }
.hc-band.is-gap::before { display: none; }
.hc-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px clamp(20px, 3vw, 40px); min-height: 104px; margin-top: 18px; padding-top: 16px; border-top: 3px solid var(--bar); }
.prose .hc-panel > * { margin: 0; }
.hc-p-year { display: grid; gap: 4px; }
.hc-p-year b { font: 800 clamp(3rem, 6vw, 4.5rem)/.85 var(--display); font-variant-numeric: tabular-nums; }
.hc-p-year span { font-size: 14px; color: var(--ink-2); }
.hc-p-list { display: grid; gap: 6px; margin: 0; }
.hc-p-list div { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: baseline; }
.hc-p-list dt { font-size: 14px; color: var(--ink-2); }
.hc-p-list dt::before { content: ""; display: inline-block; width: 16px; height: 4px; margin-right: 8px; vertical-align: middle; background: var(--hc-m); }
.hc-p-women dt::before { background: var(--hc-w); }
.hc-p-list dd { margin: 0; font-weight: 600; }
.hc-p-list dd .hc-cm { white-space: nowrap; margin-left: 6px; }
.hc-p-list dd b { font: 800 1.5rem/1 var(--display); }
@media (max-width: 600px) {
	.hc-panel { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- history: chapters on a timeline ---------- */
.prose .bl-lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.45; max-width: 44ch; }
.prose > .bl-era { max-width: 1120px; }
.prose .bl-era:not(:has(> .wp-block-group__inner-container)), .prose .bl-era > .wp-block-group__inner-container {
	display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); align-items: start;
}
.prose .bl-era { margin-top: clamp(40px, 5vw, 72px); padding-top: 22px; border-top: 1px solid var(--rule); }
.prose .bl-era h2 { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: calc(var(--head) + 24px); margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.15; color: var(--ink-2); }
.prose .bl-era h2 .bl-era-years { display: block; margin-bottom: 8px; font-size: clamp(2.4rem, 3.8vw, 3.5rem); line-height: .88; color: var(--ink); white-space: nowrap; }
.prose .bl-era h2 .bl-era-years::after { content: ""; display: block; width: 64px; height: 5px; margin-top: 10px; background: var(--bar); }
.prose .bl-era :is(p, figure) { grid-column: 2; margin: 0 0 1.1em; max-width: 68ch; }
.prose .bl-era figure { max-width: none; }
@media (max-width: 800px) {
	.prose .bl-era:not(:has(> .wp-block-group__inner-container)), .prose .bl-era > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr); }
	.prose .bl-era h2 { grid-row: auto; position: static; margin-bottom: 16px; }
	.prose .bl-era :is(p, figure) { grid-column: 1; }
}

/* ---------- start list ---------- */
.prose > .startlist { margin-top: 0; }
.startlist { padding-bottom: clamp(56px, 7vw, 104px); }
.startlist .wrap > * + * { margin-top: 1.1em; }
.startlist .lead { max-width: 60ch; }
.sl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); margin-top: clamp(24px, 3vw, 40px) !important; }
.sl-event { display: grid; gap: 10px; align-content: start; min-width: 0; }
.sl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-bottom: 8px; border-bottom: 4px solid var(--bar); }
.prose .sl-head h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); }
.sl-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.sl-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.sl-table th, .sl-table td { padding: 8px 6px; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; vertical-align: baseline; }
.sl-table thead th { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sl-table abbr { text-decoration: none; }
.sl-table .c-place { width: 2.2em; color: var(--ink-2); }
.sl-table .c-name { font-weight: 600; }
.sl-table .c-name em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--ink-2); margin-left: 6px; }
.sl-table .c-name small { font-weight: 400; font-size: 12px; color: var(--ink-2); margin-left: 4px; }
.sl-table .c-res { text-align: right; width: 3.4em; }
.sl-table td.c-res { font-family: var(--display); font-weight: 800; font-size: 20px; }
.sl-table .is-best td.c-res:nth-last-child(2) { box-shadow: inset 0 -3px 0 var(--bar); }
.sl-note { font-size: 14px; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 900px) { .sl-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- history: all winners ---------- */
.prose > .hw { max-width: 1120px; margin-top: clamp(48px, 6vw, 88px); }
.hw-scroll { overflow-x: auto; }
.hw-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.hw-table th, .hw-table td { padding: 8px 16px 8px 0; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.hw-table thead th { font-size: 13px; color: var(--ink-2); font-weight: 700; border-bottom: 2px solid var(--ink); }
.hw-table tbody th { white-space: nowrap; font-weight: 400; }
.hw-table tbody th b { font: 800 1.25rem/1 var(--display); font-variant-numeric: tabular-nums; }
.hw-table tbody th small { margin-left: 8px; font-size: 12px; color: var(--ink-2); }
.hw-table .hw-cm { width: 3.5em; font-variant-numeric: tabular-nums; font-weight: 700; }
.hw-table .hw-era th { padding-top: 26px; font: 800 1.1rem/1 var(--display); text-transform: uppercase; border-bottom: 3px solid var(--bar); }
.hw-table .hw-gap th, .hw-table .hw-gap td, .hw-table .hw-unknown { color: var(--ink-2); font-style: italic; }

/* ---------- contact list (block bl/contact) ---------- */
.prose .bl-contact { list-style: none; padding: 0; }
.bl-contact li { padding-block: 4px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- donations (block bl/donate) ---------- */
.prose > .dn { margin-top: clamp(28px, 4vw, 48px); max-width: none; }
.dn-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding-top: 22px; border-top: 3px solid var(--bar); }
.dn-pay { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.dn-amounts { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dn-amounts legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.dn-amounts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dn-amounts label { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 2px solid var(--rule); border-radius: var(--radius); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.dn-amounts label:hover { border-color: var(--ink); }
.dn-amounts input:checked + label { background: var(--bar); border-color: var(--bar); color: var(--on-bar); }
.dn-amounts input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.dn-qrs { width: clamp(180px, 22vw, 240px); }
.dn-qr { display: none; margin: 0; }
.dn-qr svg { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.dn-qr figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.dn:has(#dn-a50:checked) .dn-qr-50, .dn:has(#dn-a100:checked) .dn-qr-100, .dn:has(#dn-a200:checked) .dn-qr-200, .dn:has(#dn-a500:checked) .dn-qr-500, .dn:has(#dn-a1000:checked) .dn-qr-1000, .dn:has(#dn-a0:checked) .dn-qr-0 { display: block; }
.dn-acc { margin: 0; display: grid; gap: 14px; align-content: start; }
.dn-acc dt { font-size: 13px; color: var(--ink-2); }
.dn-acc dd { margin: 2px 0 0; font-weight: 600; font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; overflow-wrap: anywhere; }
.dn-copy { min-height: 32px; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--radius); background: transparent; color: var(--ink); font: 600 13px/1 var(--text); cursor: pointer; }
.dn-copy:hover { border-color: var(--ink); }
.dn-sum { display: grid; gap: 6px; padding: clamp(20px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.prose .dn-sum p { margin: 0; }
.dn-label { font-weight: 700; }
.dn-total { font: 800 clamp(44px, 5vw, 72px)/1 var(--display); font-variant-numeric: tabular-nums; }
.dn-count, .dn-goal, .dn-updated { color: var(--ink-2); font-size: 15px; }
.dn-first { font-size: 1.15rem; }
.dn-bar { height: 12px; margin-top: 12px; background: var(--ground); border-radius: 6px; overflow: hidden; }
.dn-bar span { display: block; height: 100%; background: var(--bar); }
.prose .dn-sum .dn-transparent { margin-top: 14px; font-size: 15px; }
.dn-updated { font-size: 13px; }
.dn-note { margin-bottom: 16px !important; }
@media (max-width: 900px) { .dn-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
	.dn-pay { grid-template-columns: minmax(0, 1fr); }
	.dn-qrs { width: min(260px, 100%); }
}

/* ---------- donations call-outs: home strip (block bl/support) and header button ---------- */
.support { background: var(--bar); color: var(--on-bar); padding-block: clamp(40px, 5vw, 72px); }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.support .h2 { color: var(--on-bar); }
.support-copy { display: grid; gap: 16px; justify-items: start; }
.support-copy > * { margin: 0; }
.support-text { font-size: clamp(17px, 1.35vw, 19px); max-width: 52ch; }
.support-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.support-btn { background: var(--on-bar); border-color: var(--on-bar); color: var(--bar); }
.support-btn:focus-visible { outline: 3px solid var(--on-bar); outline-offset: 3px; }
.support-amounts { font-size: 15px; font-weight: 600; }
.support-note { padding: 8px 12px; border: 2px dashed currentColor; border-radius: var(--radius); font-size: 14px; font-weight: 600; max-width: 60ch; }
.support-raised { display: grid; gap: 4px; min-width: 200px; }
.support-raised p { margin: 0; }
.support-label { font-weight: 700; }
.support-total { font: 800 clamp(44px, 5vw, 72px)/1 var(--display); font-variant-numeric: tabular-nums; }
.support-bar { height: 10px; margin-top: 8px; background: rgba(19, 32, 44, .18); border-radius: 5px; overflow: hidden; }
.support-bar span { display: block; height: 100%; background: var(--on-bar); }
.support-goal { font-size: 15px; font-weight: 600; }
.support-qr { margin: 0; width: 140px; }
.support-qr svg { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.support-qr figcaption { margin-top: 6px; font-size: 13px; font-weight: 600; text-align: center; }
@media (max-width: 900px) { .support-grid { grid-template-columns: minmax(0, 1fr) auto; } .support-qr { display: none; } }
@media (max-width: 560px) { .support-grid { grid-template-columns: minmax(0, 1fr); } }

.nav .nav-support a { gap: 6px; padding: 7px 12px; border: 0; border-radius: var(--radius); background: var(--bar); color: var(--on-bar); }
.nav .nav-support a:hover, .nav .nav-support a[aria-current] { color: var(--on-bar); box-shadow: inset 0 -3px 0 rgba(19, 32, 44, .35); }
.mnav .nav-support svg { width: 22px; height: 22px; color: var(--bar); }

/* ---------- results archive (block bl/archive) ---------- */
.archive { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--rule); }
.prose > .archive { margin-top: 0; }
.ar-years { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.ar-years a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--rule); border-radius: var(--radius); font: 800 20px/1 var(--display); text-decoration: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.ar-years a:hover { border-color: var(--ink); }
.ar-years a[aria-current] { background: var(--bar); border-color: var(--bar); color: var(--on-bar); }
.sl-head h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); line-height: 1; text-transform: uppercase; }
.ar-table .is-medal .c-place { font-weight: 800; color: var(--ink); }
.ar-table .c-res small { font-family: var(--text); font-weight: 600; font-size: 11px; color: var(--ink-2); margin-left: 4px; }
.hw-table th b a { color: inherit; text-decoration-color: var(--bar); text-decoration-thickness: 2px; text-underline-offset: 3px; }
