/*
Theme Name:   TrailSeries Child (Exhibz)
Theme URI:    https://trailseries.bg
Description:  Child theme of Exhibz for trailseries.bg — Bulgarian trail running series.
              Results data and rendering belong to the trailseries-results plugin (ADR-002).
Author:       TrailSeries.bg
Version:      0.3.0
Template:     exhibz
Requires at least: 6.4
Requires PHP: 8.3
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  exhibz-child
*/

/*
 * Self-hosted web fonts (audit L15; families changed 2026-11-13 with the
 * design pass) — Ubuntu 500/700 (headings) and Geist variable 100–900 (text),
 * woff2, Latin, Latin Extended and Cyrillic subsets only.
 * Licences in fonts/LICENSE.txt: Ubuntu — Ubuntu Font Licence 1.0;
 * Geist — SIL Open Font License 1.1. Source: fonts.gstatic.com.
 */
@font-face {
	font-family: 'Geist';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('fonts/geist-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Geist';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('fonts/geist-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Geist';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('fonts/geist-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/ubuntu-500-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/ubuntu-500-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/ubuntu-500-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/ubuntu-700-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/ubuntu-700-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Ubuntu';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/ubuntu-700-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ─────────────────────────────────────────────────────────── */
/*
 * Brand palette
 * --tsr-blue   #00AADD  electric/sky blue — primary brand colour
 * --tsr-navy   #0a1628  deep night navy — hero, dark sections, table headers
 * --tsr-orange #e05c1e  trail orange — accent, CTAs only
 * Greens are entirely removed.
 */
:root {
	--tsr-blue:    #00aadd;
	--tsr-blue-dk: #00739c;   /* darker blue: links/text on light backgrounds, hover, white-text buttons (≥4.5:1; was #0088bb) */
	--tsr-navy:    #0a1628;   /* near-black navy for hero + dark sections   */
	--tsr-navy-2:  #0d2040;   /* slightly lighter navy for gradient depth   */
	--tsr-orange:  #c4480f;   /* accent / CTA — white text on it ≥4.5:1 (was #e05c1e)  */
	--tsr-climb:   #dc2626;   /* track profile/map — uphill segments (≥3% grade)   */
	--tsr-descent: #16a34a;   /* track profile/map — downhill segments (≤-3% grade) */
	--tsr-text:    #111827;   /* near-black body text                        */
	--tsr-muted:   #5b6472;   /* secondary / meta text — ≥4.5:1 on #f2f4f7 (the old #6b7280 was ~4.4:1) */
	--tsr-bg:      #f2f4f7;   /* light neutral page background               */
	--tsr-white:   #ffffff;
	--tsr-border:  #e2e6ea;
	--tsr-radius:  18px;  /* cards, panels (design pass 2026-11-13) */
	--tsr-max-w:   1160px;
	--tsr-gap:     2rem;
}

/* ── Base typography ───────────────────────────────────────────────────────
   The child theme owns its fonts: the parent's master.css + fontfaceobserver
   pipeline (html.fonts-loaded gating) is dequeued for performance in
   functions.php, so these rules must not depend on it. The families match
   what the parent applied (Geist body / Ubuntu headings since 2026-11-13) — loaded via a
   single trimmed Google Fonts css2 request with display=swap. */
body {
	font-family: "Geist", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size:   16px;
	line-height: 1.6;
	color:       var(--tsr-text);
	background:  var(--tsr-white);
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	line-height: 1.25;
}

/* ── Layout utilities ──────────────────────────────────────────────────────── */
.tsr-container {
	max-width: var(--tsr-max-w);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.tsr-section {
	padding-block: 4rem;
}

.tsr-section__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	margin-bottom: 2rem;
	color: var(--tsr-navy);
	position: relative;
	letter-spacing: -0.01em;
}

.tsr-section__title::after {
	content: '';
	display: block;
	width: 3rem;
	height: 3px;
	background: var(--tsr-blue);
	margin-top: 0.45rem;
	border-radius: 2px;
}

.tsr-empty {
	color: var(--tsr-muted);
	font-style: italic;
}

/* ── Hero — dark navy, night mountain run feel ─────────────────────────────── */
.tsr-hero {
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	/*
	 * Layered background:
	 *  1. Radial blue "lens flare" glow at top-left — the runner's headlamp
	 *  2. Deep navy gradient — night sky above mountain ridge
	 */
	background:
		radial-gradient(ellipse 70% 55% at 25% 30%, rgba(0, 170, 221, 0.18) 0%, transparent 65%),
		linear-gradient(170deg, var(--tsr-navy) 0%, var(--tsr-navy-2) 55%, #060f1e 100%);
	color: var(--tsr-white);
	position: relative;
	overflow: hidden;
}

/* Subtle grain texture */
.tsr-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
	pointer-events: none;
}

/* Mountain ridge silhouette at the bottom, blending into the page bg */
.tsr-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 110px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpolygon points='0,110 200,60 400,85 600,18 800,55 1050,25 1250,70 1440,40 1440,110' fill='%23f2f4f7'/%3E%3C/svg%3E") no-repeat bottom center / 100% auto;
	pointer-events: none;
}

.tsr-hero__inner {
	position: relative;
	z-index: 1;
	padding: 4rem 1.25rem 7rem;
	max-width: 720px;
	width: 100%;
}

.tsr-hero__eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tsr-blue);
	margin-bottom: 1.1rem;
	font-weight: 600;
}

.tsr-hero__title {
	font-size: clamp(2.6rem, 7vw, 5rem);
	font-weight: 900;
	line-height: 1.0;
	margin-bottom: 0.6rem;
	color: var(--tsr-white);
	letter-spacing: -0.03em;
}

/* "Series" word in brand blue */
.tsr-hero__title span {
	color: var(--tsr-blue);
}

.tsr-hero__subtitle {
	font-size: clamp(1rem, 2.2vw, 1.2rem);
	color: rgba(255, 255, 255, 0.65);
	margin-bottom: 3rem;
	font-weight: 400;
}

/* ── Countdown timer ───────────────────────────────────────────────────────── */
.tsr-countdown {
	display: flex;
	justify-content: center;
	gap: 0.875rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.tsr-countdown__block {
	background: rgba(0, 170, 221, 0.12);
	border: 1px solid rgba(0, 170, 221, 0.3);
	border-radius: var(--tsr-radius);
	padding: 0.8rem 1.25rem;
	min-width: 78px;
	text-align: center;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.tsr-countdown__num {
	display: block;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	line-height: 1;
	color: var(--tsr-white);
	font-variant-numeric: tabular-nums;
}

.tsr-countdown__label {
	display: block;
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tsr-blue);
	margin-top: 0.35rem;
	font-weight: 600;
}

.tsr-countdown__done {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--tsr-blue);
}

.tsr-hero__anniversary {
	font-size: 0.78rem;
	/* 0.55 alpha ≈ 6.2:1 on --tsr-navy; the old 0.38 measured ~3.6:1 (AA fail) */
	color: rgba(255, 255, 255, 0.55);
	margin-top: 0.25rem;
}

/* ── Accessibility: skip link ──────────────────────────────────────────────
   The child theme fully replaces header.php, so it must carry its own
   .screen-reader-text rules — the parent's may not load in every context.
   The :focus state deliberately reverses the hiding so the link is
   keyboard-reachable (Lighthouse: "skip link is not focusable"). */
.screen-reader-text {
	position:  absolute;
	width:     1px;
	height:    1px;
	margin:    -1px;
	padding:   0;
	overflow:  hidden;
	clip-path: inset(50%);
	border:    0;
}

.skip-link:focus {
	position:        fixed;
	top:             8px;
	left:            8px;
	z-index:         100000;
	width:           auto;
	height:          auto;
	margin:          0;
	padding:         0.75rem 1.25rem;
	overflow:        visible;
	clip-path:       none;
	background:      var(--tsr-navy);
	color:           #fff;
	font-weight:     700;
	border-radius:   var(--tsr-radius);
	box-shadow:      0 2px 12px rgba(0, 0, 0, 0.4);
	text-decoration: none;
	outline:         2px solid var(--tsr-blue);
	outline-offset:  2px;
}

/* ── Generic card grid ─────────────────────────────────────────────────────── */
.tsr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--tsr-gap);
}

.tsr-card {
	background: var(--tsr-white);
	border-radius: var(--tsr-radius);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tsr-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(0, 170, 221, 0.1);
	transform: translateY(-3px);
}

.tsr-card__body {
	padding: 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tsr-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--tsr-text);
	line-height: 1.35;
	margin: 0;
}

.tsr-card__meta {
	font-size: 0.8rem;
	color: var(--tsr-muted);
	margin: 0;
}

.tsr-card__link {
	margin-top: auto;
	padding-top: 0.75rem;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--tsr-blue-dk);
	text-decoration: none;
	letter-spacing: 0.01em;
}

.tsr-card__link::after {
	content: '→';
	transition: transform 0.15s ease;
}

.tsr-card__link:hover {
	color: var(--tsr-orange);
}

.tsr-card__link:hover::after {
	transform: translateX(3px);
}

/* ── Upcoming events ───────────────────────────────────────────────────────── */
.tsr-upcoming {
	background: var(--tsr-bg);
}

.tsr-event-date {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--tsr-blue-dk);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0;
}

/* ── Upcoming events — image-background card grid ───────────────────────────── */

.tsr-event-cards {
	display:               grid;
	grid-template-columns: repeat(3, 1fr);
	gap:                   1.25rem;
}

.tsr-event-card {
	position:            relative;
	height:              380px;
	border-radius:       12px;
	overflow:            hidden;
	background-size:     cover;
	background-position: center;
	background-color:    var(--tsr-navy);
	transition:          transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card photo (<img>, audit M18) — fills the card under the gradient */
.tsr-event-card__img,
.tsr-zero-card__img {
	position:   absolute;
	inset:      0;
	width:      100%;
	height:     100%;
	object-fit: cover;
	z-index:    0;
}

.tsr-event-card:hover {
	transform:  scale(1.03);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* Full-card link sits above gradient, below date/content */
.tsr-event-card__link {
	position: absolute;
	inset:    0;
	z-index:  2;
}

/* Dark gradient — light at top, heavy at bottom for text legibility */
.tsr-event-card::after {
	content:    '';
	position:   absolute;
	inset:      0;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.22) 0%,
		rgba(0, 0, 0, 0.08) 30%,
		rgba(0, 0, 0, 0.60) 65%,
		rgba(0, 0, 0, 0.88) 100%
	);
	z-index: 1;
}

/* Date badge — top-left, above gradient */
.tsr-event-card__date {
	position:        absolute;
	top:             1rem;
	left:            1rem;
	z-index:         3;
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	background:      var(--tsr-blue);
	border-radius:   8px;
	padding:         0.4rem 0.65rem;
	min-width:       2.75rem;
	line-height:     1.1;
	text-align:      center;
}

.tsr-event-card__day {
	font-size:   1.5rem;
	font-weight: 900;
	color:       #fff;
}

.tsr-event-card__month {
	font-size:      0.65rem;
	font-weight:    700;
	color:          rgba(255, 255, 255, 0.85);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* Title + location — pinned to bottom, above gradient */
.tsr-event-card__content {
	position: absolute;
	bottom:   0;
	left:     0;
	right:    0;
	z-index:  3;
	padding:  1.25rem;
}

.tsr-event-card__title {
	font-size:   1.05rem;
	font-weight: 800;
	color:       #fff;
	margin:      0 0 0.4rem;
	line-height: 1.25;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.tsr-event-card__meta-row {
	display:     flex;
	align-items: center;
	gap:         0.35rem;
	font-size:   0.8rem;
	color:       rgba(255, 255, 255, 0.78);
	margin:      0.2rem 0 0;
}

.tsr-event-card__meta-row svg {
	flex-shrink: 0;
	color:       var(--tsr-blue);
}

@media (max-width: 768px) {
	.tsr-event-cards {
		grid-template-columns: 1fr;
	}
}

/* ── Past results list ─────────────────────────────────────────────────────── */
.tsr-past {
	background: var(--tsr-white);
}

.tsr-result-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.tsr-result-list__item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.9rem 1.25rem;
	background: var(--tsr-bg);
	border-radius: var(--tsr-radius);
	border-left: 3px solid var(--tsr-blue);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.tsr-result-list__item:hover {
	border-left-color: var(--tsr-orange);
	background: #eaf6fb;
}

.tsr-result-list__title {
	flex: 1;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--tsr-text);
	text-decoration: none;
}

.tsr-result-list__title:hover {
	color: var(--tsr-blue-dk);
}

.tsr-result-list__meta {
	font-size: 0.78rem;
	color: var(--tsr-muted);
	white-space: nowrap;
}

/* ── News section ──────────────────────────────────────────────────────────── */
.tsr-news {
	background: var(--tsr-bg);
}

.tsr-card__thumb {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

/* ── Stats bar — dark navy, mirrors the hero ───────────────────────────────── */
.tsr-stats {
	background: var(--tsr-navy);
	color: var(--tsr-white);
	padding-block: 3.5rem;
}

.tsr-stats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 2rem;
	text-align: center;
}

.tsr-stat__num {
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 900;
	line-height: 1;
	color: var(--tsr-blue);
	font-variant-numeric: tabular-nums;
}

.tsr-stat__label {
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.48);
	margin-top: 0.5rem;
}

/* ── Section "view all" link row ───────────────────────────────────────────── */
.tsr-view-all {
	margin-top: 2rem;
}

/* ── Results table (plugin output — active theme must own this CSS) ──────────── */
.tsr-results-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Scroll hint on wide (nowrap) tables — mobile only, both the plugin's
   own wrapper and the theme's compact-table wrapper (runner/event pages). */
@media (max-width: 640px) {
	.tsr-results-wrap,
	.tsr-compact-wrap {
		position: relative;
	}

	.tsr-results-wrap::before,
	.tsr-compact-wrap::before {
		content:        '→ плъзнете за повече';
		display:        block;
		font-size:      0.72rem;
		font-weight:    600;
		color:          var(--tsr-muted);
		text-align:     right;
		margin-bottom:  0.35rem;
	}

	.tsr-results-wrap::after,
	.tsr-compact-wrap::after {
		content:        '';
		position:       absolute;
		top:            0;
		right:          0;
		bottom:         0;
		width:          28px;
		pointer-events: none;
		background:     linear-gradient(to right, transparent, rgba(0, 0, 0, 0.14));
	}
}

.tsr-results {
	border-collapse: collapse;
	width: 100%;
	font-variant-numeric: tabular-nums;
	font-size: 0.9rem;
}

.tsr-results th,
.tsr-results td {
	border: 1px solid var(--tsr-border);
	padding: 0.4rem 0.65rem;
	text-align: left;
	white-space: nowrap;
}

.tsr-results thead th {
	background: var(--tsr-navy);
	color: var(--tsr-white);
	font-weight: 600;
	position: sticky;
	top: 0;
}

.tsr-results tbody tr:nth-child(even) {
	background: #f5f7fa;
}

.tsr-results tbody tr:hover {
	background: #e0f4fb;
}

.tsr-results tr.tsr-status-dnf td,
.tsr-results tr.tsr-status-dns td,
.tsr-results tr.tsr-status-dsq td,
.tsr-results tr.tsr-status-otl td {
	color: var(--tsr-muted);
}

/* ── Inner-page hero (all pages except homepage) ───────────────────────────── */
.tsr-page-hero {
	background:
		radial-gradient(ellipse 60% 50% at 20% 50%, rgba(0, 170, 221, 0.14) 0%, transparent 60%),
		linear-gradient(160deg, var(--tsr-navy) 0%, #0d2040 100%);
	color: var(--tsr-white);
	padding: 3.5rem 0 3rem;
}

.tsr-page-hero__kicker {
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tsr-blue);
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.tsr-page-hero__title {
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 900;
	color: var(--tsr-white);
	margin: 0 0 0.5rem;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.tsr-page-hero__subtitle {
	font-size: clamp(0.9rem, 2vw, 1.05rem);
	color: rgba(255, 255, 255, 0.6);
	margin: 0;
}

/* ── Inner page content wrapper ─────────────────────────────────────────────── */
.tsr-page-content {
	padding-block: 3rem;
}

.tsr-prose-section {
	margin-bottom: 3rem;
}

/* Generic page fallback (page.php) — the migrated event landing pages carry
   arbitrary legacy markup (2012-era images with fixed sizes, registration
   iframes, tables), so contain anything that could overflow the column.
   The 72ch cap sits on the SECTION, not just its <p> children like the
   base .tsr-prose-section rule: legacy text lives inside divs/tables/bare
   nodes that the p-only rule never touched, so the content stretched to
   the full 1160px container. Matches .tsr-single-content. */
.tsr-page-generic {
	max-width: 72ch;
}

.tsr-page-generic img {
	max-width: 100%;
	height:    auto;
}

.tsr-page-generic iframe,
.tsr-page-generic embed,
.tsr-page-generic object,
.tsr-page-generic video {
	max-width: 100%;
}

.tsr-page-generic table {
	display:    block;
	max-width:  100%;
	overflow-x: auto;
}

.tsr-page-generic p {
	margin-bottom: 1rem;
	line-height:   1.7;
}

.tsr-prose-section h2 {
	font-size: clamp(1.2rem, 2.5vw, 1.6rem);
	font-weight: 800;
	color: var(--tsr-navy);
	margin-bottom: 1rem;
	letter-spacing: -0.01em;
}

.tsr-prose-section p {
	max-width: 72ch;
	line-height: 1.7;
	color: var(--tsr-text);
}

/* ── Single post ──────────────────────────────────────────────────────────── */

.tsr-single-thumbnail {
	margin-bottom: 2rem;
}

.tsr-single-thumbnail img {
	width:         100%;
	max-width:     860px;
	height:        auto;
	border-radius: var(--tsr-radius);
	display:       block;
}

.tsr-single-content {
	max-width: 72ch;
}

.tsr-single-content img {
	max-width:     100%;
	height:        auto;
	border-radius: var(--tsr-radius);
}

/* ── Правила — scoring category cards ──────────────────────────────────────── */
.tsr-scoring-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.tsr-scoring-card {
	background: var(--tsr-white);
	border-radius: var(--tsr-radius);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	border-top: 4px solid var(--tsr-blue);
}

.tsr-scoring-card--medium { border-top-color: var(--tsr-blue-dk); }
.tsr-scoring-card--long   { border-top-color: var(--tsr-navy); }
.tsr-scoring-card--bonus  { border-top-color: var(--tsr-orange); }

.tsr-scoring-card__badge {
	display: block;
	padding: 0.6rem 1rem 0;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tsr-blue-dk);
}

.tsr-scoring-card--medium .tsr-scoring-card__badge { color: var(--tsr-blue-dk); }
.tsr-scoring-card--long   .tsr-scoring-card__badge { color: var(--tsr-navy); }
.tsr-scoring-card--bonus  .tsr-scoring-card__badge { color: var(--tsr-orange); }

.tsr-scoring-card__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--tsr-text);
	margin: 0.25rem 1rem 0;
}

.tsr-scoring-card__max {
	font-size: 1.8rem;
	font-weight: 900;
	color: var(--tsr-navy);
	margin: 0.25rem 1rem;
	line-height: 1;
}

.tsr-scoring-card__max strong {
	color: var(--tsr-blue-dk);
}

.tsr-scoring-card__formula {
	font-size: 0.8rem;
	color: var(--tsr-muted);
	margin: 0 1rem 0.75rem;
}

.tsr-scoring-card__formula code {
	background: var(--tsr-bg);
	padding: 0.1rem 0.35rem;
	border-radius: 3px;
	font-size: 0.8rem;
}

.tsr-scoring-card__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.82rem;
}

.tsr-scoring-card__table th,
.tsr-scoring-card__table td {
	padding: 0.3rem 1rem;
	text-align: left;
	border-top: 1px solid var(--tsr-border);
}

.tsr-scoring-card__note {
	margin:     0;
	padding:    0 1rem 0.75rem;
	font-size:  0.8rem;
	color:      var(--tsr-muted);
	line-height: 1.45;
}

.tsr-scoring-card__table--bonus th,
.tsr-scoring-card__table--bonus td {
	padding:    0.3rem 0.35rem;
	text-align: center;
}

.tsr-scoring-card__table--bonus th:first-child,
.tsr-scoring-card__table--bonus td:first-child {
	padding-left: 0.75rem;
	text-align:   left;
}

.tsr-scoring-card__table thead th {
	background: var(--tsr-bg);
	font-weight: 700;
	color: var(--tsr-muted);
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ── Правила — rules list ───────────────────────────────────────────────────── */
.tsr-rules-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.tsr-rules-list li {
	padding: 0.85rem 1.25rem;
	background: var(--tsr-bg);
	border-left: 3px solid var(--tsr-blue);
	border-radius: var(--tsr-radius);
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--tsr-text);
}

/* ── Summary table category badges ─────────────────────────────────────────── */
.tsr-cat-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 3px;
	font-weight: 800;
	font-size: 0.8rem;
	color: var(--tsr-white);
}

.tsr-cat-badge--a { background: var(--tsr-blue); }
.tsr-cat-badge--b { background: var(--tsr-blue-dk); }
.tsr-cat-badge--c { background: var(--tsr-navy); }
.tsr-cat-badge--d { background: var(--tsr-orange); }

/* ── Рекорди — event group titles ──────────────────────────────────────────── */
.tsr-records-event {
	margin-bottom: 2.5rem;
}

.tsr-records-event__title {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--tsr-navy);
	margin-bottom: 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--tsr-blue);
	display: inline-block;
}

/* ── Result hub — legacy multi-category page as accordion ───────────────────── */
.tsr-result-hub__section {
	border: 1px solid var(--tsr-border);
	border-radius: var(--tsr-radius);
	margin-bottom: 0.75rem;
	overflow: hidden;
}

.tsr-result-hub__summary {
	cursor:      pointer;
	user-select: none;
	padding:     0.75rem 1.1rem;
	font-size:   0.92rem;
	font-weight: 700;
	color:       var(--tsr-navy);
	background:  rgba(0, 170, 221, 0.06);
	list-style:  none;
}

.tsr-result-hub__summary::-webkit-details-marker {
	display: none;
}

.tsr-result-hub__summary::before {
	content:      '▸';
	display:      inline-block;
	margin-right: 0.55rem;
	color:        var(--tsr-blue);
	transition:   transform 0.15s ease;
}

.tsr-result-hub__section[open] > .tsr-result-hub__summary::before {
	transform: rotate(90deg);
}

.tsr-result-hub__summary:hover {
	background: rgba(0, 170, 221, 0.12);
}

.tsr-result-hub__section > .tsr-results-wrap,
.tsr-result-hub__section > table {
	margin: 0;
}

.tsr-result-hub__section[open] {
	padding-bottom: 0.25rem;
}

.tsr-standings-note {
	font-size: 0.82rem;
	color: var(--tsr-muted);
	margin-bottom: 1.25rem;
}

/* ── Notice / alert boxes ───────────────────────────────────────────────────── */
.tsr-notice {
	padding: 1rem 1.25rem;
	border-radius: var(--tsr-radius);
	margin-bottom: 1.5rem;
	font-size: 0.88rem;
	line-height: 1.55;
}

.tsr-notice--info {
	background: rgba(0, 170, 221, 0.08);
	border-left: 3px solid var(--tsr-blue);
	color: var(--tsr-text);
}

.tsr-notice code {
	background: rgba(0, 0, 0, 0.06);
	padding: 0.1rem 0.35rem;
	border-radius: 3px;
	font-size: 0.82rem;
}

/* ── История — timeline ─────────────────────────────────────────────────────── */
.tsr-timeline {
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
}

.tsr-timeline::before {
	content: '';
	position: absolute;
	left: 4.5rem;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--tsr-border);
}

.tsr-timeline__item {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 2rem;
	position: relative;
}

.tsr-timeline__item::before {
	content: '';
	position: absolute;
	left: calc(4.5rem - 5px);
	top: 0.35rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--tsr-blue);
	border: 2px solid var(--tsr-white);
	box-shadow: 0 0 0 2px var(--tsr-blue);
}

.tsr-timeline__item--future::before {
	background: var(--tsr-orange);
	box-shadow: 0 0 0 2px var(--tsr-orange);
}

.tsr-timeline__year {
	min-width: 4.5rem;
	padding-top: 0.1rem;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--tsr-muted);
	text-align: right;
	flex-shrink: 0;
}

.tsr-timeline__body {
	padding-bottom: 0.5rem;
}

.tsr-timeline__label {
	font-size: 1rem;
	font-weight: 700;
	color: var(--tsr-navy);
	margin: 0 0 0.25rem;
}

.tsr-timeline__item--future .tsr-timeline__label {
	color: var(--tsr-orange);
}

.tsr-timeline__desc {
	font-size: 0.88rem;
	color: var(--tsr-muted);
	margin: 0;
	line-height: 1.55;
}

/* ── Zero to HERO section (front page) ─────────────────────────────────────── */

.tsr-zero-section {
	background: var(--tsr-navy);
}

.tsr-zero-section .tsr-section__title {
	color: var(--tsr-white);
}

.tsr-zero-section .tsr-section__title::after {
	background: var(--tsr-orange);
}

/* Two-tone heading — accent word carries a warm gradient, the rest stays
   plain white. Reference: sliderrevolution.com's "How do you want to
   start?" treatment (coral accent word + bold rest), adapted to our navy
   section background instead of their white one. */
.tsr-zero-title__accent {
	background:            linear-gradient(100deg, #ff8a4c 0%, var(--tsr-orange) 55%, #c94e16 100%);
	-webkit-background-clip: text;
	background-clip:       text;
	-webkit-text-fill-color: transparent;
	color:                  var(--tsr-orange); /* fallback if background-clip:text is unsupported */
}

/* ── Zero to HERO — single-row sliding carousel ──────────────────────────────
   .tsr-zero-carousel (position: relative, holds nav + dots)
     └ .tsr-zero-viewport (overflow: hidden — clips the track horizontally,
                            padded/negative-margined vertically so card hover
                            lift + box-shadow aren't clipped)
         └ .tsr-zero-track (flex row, JS translateX()s it in real px)
             └ .tsr-zero-card × N (JS sizes flex-basis in px; the CSS calc()
                                    below is the pre-JS / no-JS fallback,
                                    driven by --tsr-zero-visible from PHP) */

.tsr-zero-carousel {
	position: relative;
}

.tsr-zero-viewport {
	overflow: hidden;
	/* Real (uncancelled) padding, not a negative-margin trick — the latter
	   collapses through .tsr-zero-carousel since it has no border/padding
	   of its own to establish a containing block boundary. A few extra px
	   of section height is a fair trade for that risk: this is just
	   breathing room so a card's hover lift/box-shadow isn't clipped by
	   the overflow:hidden that makes the horizontal slide work. */
	padding:  10px 0 22px;
}

.tsr-zero-track {
	display:    flex;
	gap:        var(--tsr-gap);
	transition: transform 0.5s ease;
}

/* Full-bleed photo card — the athlete's photo IS the card background
   again (user: the plain-white cards "не е гот", wanted the photo back
   like the original design), with a dark gradient scrim so title/excerpt
   stay legible. The eyebrow pill survives as an overlay badge straight on
   the photo instead of sitting on a white surface. */
.tsr-zero-card {
	position:            relative;
	height:              280px;
	flex:                0 0 calc((100% - (var(--tsr-zero-visible, 3) - 1) * var(--tsr-gap)) / var(--tsr-zero-visible, 3));
	border-radius:       var(--tsr-radius);
	overflow:            hidden;
	background-color:    var(--tsr-navy-2);
	background-size:     cover;
	background-position: center;
	display:             flex;
	flex-direction:      column;
	justify-content:     flex-end;
	transition:          transform 0.2s ease, box-shadow 0.2s ease;
}

.tsr-zero-card:hover {
	transform:  translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--tsr-orange);
}

.tsr-zero-card__eyebrow {
	position:       absolute;
	top:            1rem;
	left:           1rem;
	z-index:        1;
	display:        inline-block;
	font-size:      0.7rem;
	font-weight:    700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color:          var(--tsr-white);
	background:     rgba(10, 22, 40, 0.55);
	padding:        0.3rem 0.7rem;
	border-radius:  999px;
}

.tsr-zero-card__body {
	position:       relative; /* above the card photo */
	z-index:        1;
	padding:        1.25rem;
	background:     linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
	display:        flex;
	flex-direction: column;
	gap:            0.35rem;
}

.tsr-zero-card__title {
	font-size:   1rem;
	font-weight: 700;
	color:       var(--tsr-white);
	line-height: 1.3;
	margin:      0;
}

.tsr-zero-card__excerpt {
	font-size:   0.8rem;
	color:       rgba(255, 255, 255, 0.68);
	margin:      0;
	line-height: 1.5;
}

.tsr-zero-card__link {
	display:         inline-flex;
	align-items:     center;
	gap:             0.2rem;
	font-size:       0.82rem;
	font-weight:     700;
	color:           var(--tsr-orange);
	text-decoration: none;
	letter-spacing:  0.01em;
	margin-top:      0.25rem;
	transition:      color 0.15s ease;
}

.tsr-zero-card__link:hover {
	color: #c94e16;
}

/* Prev/next arrows — 44px tap targets, vertically centred over the row */
.tsr-zero-nav {
	position:        absolute;
	top:             50%;
	transform:       translateY(-50%);
	z-index:         2;
	width:           44px;
	height:          44px;
	display:         flex;
	align-items:     center;
	justify-content: center;
	border:          none;
	border-radius:   50%;
	background:      rgba(10, 22, 40, 0.55);
	color:           #fff;
	font-size:       1.7rem;
	line-height:     1;
	cursor:          pointer;
	transition:      background 0.15s ease;
}

.tsr-zero-nav:hover,
.tsr-zero-nav:focus-visible {
	background: var(--tsr-orange);
}

.tsr-zero-nav--prev { left: 8px; }
.tsr-zero-nav--next { right: 8px; }

/* Dot indicators — top centre, 44px hit area each with a small visual dot
   (the bottom of the row is occupied by the card body/link). top:10px lines
   up with .tsr-zero-viewport's padding-top so dots sit flush against the
   card row itself, not the extra breathing room above it. */
.tsr-zero-dots {
	position:  absolute;
	top:       10px;
	left:      50%;
	transform: translateX(-50%);
	z-index:   2;
	display:   flex;
}

.tsr-zero-dot {
	width:           44px;
	height:          44px;
	display:         flex;
	align-items:     center;
	justify-content: center;
	padding:         0;
	border:          none;
	background:      transparent;
	cursor:          pointer;
}

.tsr-zero-dot::before {
	content:       '';
	width:         9px;
	height:        9px;
	border-radius: 50%;
	background:    rgba(255, 255, 255, 0.5);
	box-shadow:    0 1px 3px rgba(0, 0, 0, 0.6);
	transition:    background 0.15s ease, transform 0.15s ease;
}

.tsr-zero-dot:hover::before {
	background: rgba(255, 255, 255, 0.85);
}

.tsr-zero-dot.is-active::before {
	background: var(--tsr-orange);
	transform:  scale(1.35);
}

@media (max-width: 768px) {
	/* One card per row on mobile — overrides the --tsr-zero-visible calc()
	   fallback; the carousel script sizes to the same 1-per-row above this
	   breakpoint anyway (see the vpWidth <= 768 check in layout()). */
	.tsr-zero-card {
		flex-basis: 100%;
		height:     240px;
	}
}

/* ── Map section (front page — Трасетата) ──────────────────────────────────── */

.tsr-map-section {
	background:     #060f1e;   /* darker than tsr-navy for contrast below news */
	padding-bottom: 0;
}

.tsr-map-section .tsr-section__title       { color: var(--tsr-white); }
.tsr-map-section .tsr-section__title::after { background: var(--tsr-blue); }

.tsr-map {
	height:     480px;
	width:      100%;
	display:    block;
	margin-top: 2rem;
	isolation:  isolate; /* keep Leaflet's z-index 400–1000 panes/controls under the sticky header */
	background: var(--tsr-navy); /* shown until the map loads on scroll (audit M19) */
}

/* Custom pin markers */
.leaflet-marker-icon {
	overflow: visible; /* allow scale(1.4) to bleed outside the icon bounding box */
}

.tsr-map-pin {
	width:            28px;
	height:           28px;
	position:         relative;
	cursor:           pointer;
	transform-origin: 50% 92%; /* scale from the pin's tip, not the icon's bounding box */
	transition:       transform 0.18s ease, filter 0.18s ease;
	/* White halo (layered drop-shadows) keeps the pin legible over the
	   satellite basemap's photographic greens/browns. */
	filter:           drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.tsr-map-pin svg {
	display: block;
}

.tsr-map-pin--active { color: #00aadd; }
.tsr-map-pin--hist   { color: #888888; }

.leaflet-marker-icon:hover .tsr-map-pin {
	transform: scale(1.4);
	filter:    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

/* Dark popup skin */
.tsr-map .leaflet-popup-content-wrapper,
.tsr-map .leaflet-popup-tip {
	background: #0d2040;
	color:      rgba(255, 255, 255, 0.88);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tsr-map .leaflet-popup-content-wrapper {
	border-radius: var(--tsr-radius);
}

.tsr-map .leaflet-popup-content {
	margin:      10px 14px;
	font-size:   0.85rem;
	line-height: 1.55;
}

.tsr-map .leaflet-popup-content strong  { color: var(--tsr-white); font-size: 0.95rem; }
.tsr-map .leaflet-popup-content em      { color: rgba(255, 255, 255, 0.62); font-style: normal; }

.tsr-popup-dist {
	color:       var(--tsr-blue-dk);
	font-weight: 600;
}

.tsr-map .leaflet-popup-close-button       { color: rgba(255, 255, 255, 0.7) !important; }
.tsr-map .leaflet-popup-close-button:hover { color: var(--tsr-white) !important; }

/* Legend */
.tsr-map-legend {
	background:       rgba(10, 22, 40, 0.92);
	color:            rgba(255, 255, 255, 0.82);
	padding:          0.55rem 0.875rem;
	border-radius:    var(--tsr-radius);
	font-size:        0.78rem;
	line-height:      1.9;
	backdrop-filter:  blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.tsr-map-legend__dot {
	display:        inline-block;
	width:          10px;
	height:         10px;
	border-radius:  50%;
	margin-right:   6px;
	vertical-align: middle;
	border:         2px solid rgba(255, 255, 255, 0.55);
}

.tsr-map-legend__dot--active { background: #00aadd; }
.tsr-map-legend__dot--hist   { background: #888; }

/* ── Calendar page — two-section layout ────────────────────────────────────── */

.tsr-cal-section__title {
	font-size:     1.25rem;
	font-weight:   700;
	color:         var(--tsr-white);
	margin-bottom: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tsr-cal-section__title--past {
	color: rgba(255, 255, 255, 0.5);
	font-size: 1rem;
}

.tsr-cal-divider {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin: 3rem 0;
}

.tsr-cal-past {
	opacity: 0.75;
}

/* ── Calendar — month group + event rows ────────────────────────────────────── */

/* (calendar list rules removed 2026-11-13 — cards, see "Calendar cards" below) */

/* ── Трасета page — track groups, stats, star ratings ─────────────────────── */
.tsr-track-group {
	margin-bottom: 2.5rem;
}

.tsr-track-group__title {
	font-size:      1.25rem;
	font-weight:    800;
	color:          var(--tsr-navy);
	margin:         0 0 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom:  2px solid var(--tsr-blue);
}

.tsr-track-list {
	list-style:     none;
	margin:         0;
	padding:        0;
	display:        flex;
	flex-direction: column;
	gap:            0.6rem;
}

.tsr-track {
	display:       flex;
	flex-wrap:     wrap;
	align-items:   center;
	gap:           0.5rem 1.25rem;
	padding:       0.85rem 1.1rem;
	background:    var(--tsr-white);
	border-radius: var(--tsr-radius);
	border-left:   3px solid var(--tsr-blue);
}

.tsr-track__head {
	display:     flex;
	align-items: center;
	gap:         0.75rem;
	flex-basis:  100%;
}

.tsr-track__name {
	font-weight: 700;
	font-size:   1rem;
	color:       var(--tsr-navy);
}

/*
 * Fixed-width columns, same order on every row (Дистанция, Изкачване,
 * Спускане, Височина) — a grid, not flex-wrap, so a stat that's present on
 * one row and missing on another (or a "обиколки" badge that only some
 * rows carry) can never push the columns of one card out of line with the
 * cards above and below it. tsr_track_row() always renders all four
 * cells, using "—" as a placeholder value, to guarantee that alignment.
 */
.tsr-track__meta {
	display:               grid;
	grid-template-columns: 7.5rem 7rem 7rem 9rem;
	column-gap:            1.25rem;
	row-gap:               0.4rem;
	align-items:           center;
	flex:                  1;
}

.tsr-track__stat {
	display:     flex;
	align-items: center;
	gap:         0.45rem;
	min-width:   0;
}

.tsr-track__stat-icon {
	flex:      0 0 auto;
	color:     var(--tsr-blue);
}

.tsr-track__stat-body {
	display:        flex;
	flex-direction: column;
	line-height:    1.3;
	min-width:      0;
}

.tsr-track__stat-label {
	font-size:      0.75rem;
	font-weight:    700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color:          var(--tsr-muted);
}

.tsr-track__stat-value {
	font-size:   0.9rem;
	font-weight: 700;
	color:       var(--tsr-navy);
	white-space: nowrap;
}

.tsr-track__gpx {
	display:         inline-flex;
	align-items:     center;
	gap:             0.35rem;
	padding:         0.35rem 0.85rem;
	font-size:       0.8rem;
	font-weight:     700;
	color:           #fff;
	background:      var(--tsr-blue);
	border-radius:   999px;
	text-decoration: none;
	transition:      background 0.15s ease;
}

/* Same cascade trap as .tsr-modal__status: an unconditional `display` here
   would otherwise beat the browser's default [hidden]{display:none}, since
   author rules win over the user-agent stylesheet regardless of specificity.
   Without this, the modal's KML/Strava buttons (toggled via .hidden in
   traseta-modal.js) would show up empty/broken on every track missing that
   file — i.e. most tracks, since only 4/49 have a Strava route so far. */
.tsr-track__gpx[hidden] {
	display: none;
}

.tsr-track__gpx:hover {
	background: var(--tsr-navy);
	color:      #fff;
}

.tsr-track__badge {
	display:        inline-block;
	padding:        0.15rem 0.6rem;
	font-size:      0.65rem;
	font-weight:    700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius:  999px;
	line-height:    1.4;
}

.tsr-track__badge--current {
	background: var(--tsr-blue);
	color:      #fff;
}

.tsr-track__badge--legacy {
	background: var(--tsr-border);
	color:      var(--tsr-muted);
}

.tsr-track__badge--laps {
	background:     transparent;
	color:          var(--tsr-orange);
	border:         1px solid var(--tsr-orange);
	text-transform: none;
	letter-spacing: normal;
	font-size:      0.75rem;
	padding:        0.1rem 0.55rem;
	margin-top:     0.2rem;
	align-self:     flex-start;
}

.tsr-track--legacy {
	border-left-color: var(--tsr-border);
	opacity:           0.85;
}

.tsr-track--legacy .tsr-track__name {
	color: var(--tsr-muted);
}

.tsr-track-divider {
	border:     none;
	border-top: 1px solid var(--tsr-border);
	margin:     1rem 0 0;
}

.tsr-track-legacy-group {
	margin-top: 0.6rem;
}

.tsr-track-legacy-group__summary {
	cursor:      pointer;
	font-size:   0.85rem;
	font-weight: 700;
	color:       var(--tsr-muted);
	padding:     0.35rem 0;
	user-select: none;
}

.tsr-track-legacy-group__summary:hover {
	color: var(--tsr-navy);
}

.tsr-track-legacy-group[open] .tsr-track-legacy-group__summary {
	margin-bottom: 0.6rem;
}

.tsr-track[data-title] {
	cursor: pointer;
}

/* Track name is the row's <button> (audit L20) — looks like the old text */
.tsr-track__open {
	padding:    0;
	margin:     0;
	border:     0;
	background: none;
	font:       inherit;
	font-weight: 700;
	font-size:  1rem;
	color:      var(--tsr-navy);
	text-align: left;
	cursor:     pointer;
	min-height: 24px;
}

.tsr-track[data-title]:hover {
	background: #eaf6fb;
}

.tsr-track--legacy[data-title]:hover {
	background: var(--tsr-white);
	opacity:    1;
}

.tsr-track__gpx--secondary {
	background: var(--tsr-navy);
}

.tsr-track__gpx--secondary:hover {
	background: var(--tsr-blue);
}

.tsr-track__gpx--strava {
	background: var(--tsr-orange);
}

.tsr-track__gpx--strava:hover {
	background: var(--tsr-navy);
}

/* Keyboard focus — the default outline is suppressed by the parent theme's
   reset, so without these a keyboard user has no idea where they are. */
.tsr-track__open:focus-visible,
.tsr-track__gpx:focus-visible,
.tsr-modal__close:focus-visible,
.tsr-track-legacy-group__summary:focus-visible {
	outline:        2px solid var(--tsr-blue-dk);
	outline-offset: 2px;
}

.tsr-track:has(.tsr-track__open:focus-visible) {
	outline:        2px solid var(--tsr-blue-dk);
	outline-offset: 2px;
}

/* The row ring replaces the button's own ring (one focus indicator, not
   two); browsers without :has() keep the button ring from the rule above. */
@supports selector(:has(*)) {
	.tsr-track__open:focus-visible {
		outline: none;
	}
}

/* Touch devices: lift the pill buttons to a ~44px tap target. */
@media (pointer: coarse) {
	.tsr-track__gpx {
		padding: 0.6rem 1.05rem;
	}
}

/* ── Трасета — track detail modal ───────────────────────────────────────────── */
.tsr-modal {
	position: fixed;
	inset:    0;
	z-index:  10000;
	display:  flex;
	align-items:     center;
	justify-content: center;
	padding: 1rem;
}

.tsr-modal[hidden] {
	display: none;
}

body.tsr-modal-open {
	overflow: hidden;
}

.tsr-modal__overlay {
	position:   absolute;
	inset:      0;
	background: rgba(10, 22, 40, 0.72);
}

.tsr-modal__dialog {
	position:      relative;
	width:         min(860px, 100%);
	max-height:    calc(100vh - 2rem);
	overflow-y:    auto;
	background:    #fff;
	border-radius: var(--tsr-radius);
	padding:       1.5rem;
	box-shadow:    0 20px 60px rgba(0, 0, 0, 0.35);
}

.tsr-modal__close {
	position:    absolute;
	top:         0.75rem;
	right:       0.75rem;
	width:       2.2rem;
	height:      2.2rem;
	border:      0;
	border-radius: 50%;
	background:  var(--tsr-navy);
	color:       #fff;
	font-size:   1.3rem;
	line-height: 1;
	cursor:      pointer;
	z-index:     1;
}

.tsr-modal__close:hover {
	background: var(--tsr-blue);
}

.tsr-modal__title {
	font-size:    1.35rem;
	font-weight:  800;
	color:        var(--tsr-navy);
	margin:       0 2.5rem 1rem 0;
}

/* Title splits into "{event name} – {distance/variant}" (buildTitleHtml(),
   traseta-modal.js): the event name is toned down to --tsr-muted so the
   distance — left at the title's own navy/800 default — reads as the
   dominant, contrasting half instead of both running together as one
   same-weight phrase. */
.tsr-modal-title__event {
	color:       var(--tsr-muted);
	font-weight: 700;
}

.tsr-modal__map {
	height:        340px;
	border-radius: var(--tsr-radius);
	margin-bottom: 1rem;
	z-index:       0;
}

/* Fetch status line (loading / error) — sized like the map it stands in for,
   so the dialog doesn't collapse and then jump when the map appears. */
.tsr-modal__status {
	display:         flex;
	align-items:     center;
	justify-content: center;
	gap:             0.6rem;
	min-height:      120px;
	margin-bottom:   1rem;
	border-radius:   var(--tsr-radius);
	background:      #f4f7fa;
	font-size:       0.9rem;
	font-weight:     600;
	color:           var(--tsr-muted);
	text-align:      center;
	padding:         1rem;
}

/* An author `display` declaration otherwise wins over the browser's default
   [hidden]{display:none} UA rule regardless of specificity (origin beats
   specificity in the cascade) — without this, the status box stayed visible
   (empty) even while its `hidden` attribute was set. */
.tsr-modal__status[hidden] {
	display: none;
}

.tsr-modal__status--error {
	background: #fdf2f0;
	color:      #b3401f;
}

.tsr-spinner {
	width:         18px;
	height:        18px;
	flex:          0 0 auto;
	border:        2.5px solid var(--tsr-border);
	border-top-color: var(--tsr-blue);
	border-radius: 50%;
	animation:     tsr-spin 0.8s linear infinite;
}

@keyframes tsr-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.tsr-spinner {
		animation: none;
	}
}

.tsr-modal__chart-wrap {
	position:      relative;
	margin-bottom: 1rem;
}

.tsr-modal__chart {
	display:     block;
	width:       100%;
	height:      auto;
	cursor:      crosshair;
	touch-action: none;
}

.tsr-chart__hover-line {
	stroke:        var(--tsr-navy);
	stroke-width:  1;
	opacity:       0;
	pointer-events: none;
}

.tsr-chart__hover-dot {
	fill:          #fff;
	stroke:        var(--tsr-orange);
	stroke-width:  2.5;
	opacity:       0;
	pointer-events: none;
}

.tsr-chart-tooltip {
	position:      absolute;
	transform:     translate(-50%, -125%);
	pointer-events: none;
	background:    var(--tsr-navy);
	color:         #fff;
	font-size:     0.72rem;
	line-height:   1.5;
	padding:       0.35rem 0.6rem;
	border-radius: 6px;
	white-space:   nowrap;
	z-index:       2;
	box-shadow:    0 4px 12px rgba(0, 0, 0, 0.25);
}

.tsr-chart-tooltip__row {
	display: block;
}

/* Elevation-hover marker on the Leaflet map: white circle, green dot.
   Passing our own `className` to L.divIcon() replaces Leaflet's default
   'leaflet-div-icon' class entirely (Leaflet does a plain options
   overwrite, not a class merge) — the marker never carries that class, so
   there is no default background/border to strip here. Critical box-model
   properties are also inlined in the marker's HTML (see hoverIcon in
   traseta-modal.js) so the marker renders correctly even before/without
   this stylesheet — these rules are the belt to that inline-style
   suspenders, keeping the two in sync when either is edited. */
.tsr-hover-marker {
	display:       block;
	width:         16px;
	height:        16px;
	border-radius: 50%;
	background:    #fff;
	border:        2px solid #2ecc71;
	box-shadow:    0 1px 4px rgba(0, 0, 0, 0.45);
	position:      relative;
	box-sizing:    border-box;
}

.tsr-hover-marker__dot {
	position:      absolute;
	top:           50%;
	left:          50%;
	width:         6px;
	height:        6px;
	border-radius: 50%;
	background:    #2ecc71;
	transform:     translate(-50%, -50%);
}

/* Discreet per-km marker on the route: a small plain dot, deliberately much
   quieter than the hover marker above — it's a passive distance reference,
   not something to click or focus on. Shows "N км" in a tooltip on hover. */
.tsr-km-marker {
	display:       block;
	width:         7px;
	height:        7px;
	border-radius: 50%;
	background:    #fff;
	border:        1.5px solid var(--tsr-navy);
	opacity:       0.75;
	box-sizing:    border-box;
}

.tsr-chart__grid {
	stroke:       var(--tsr-border);
	stroke-width: 1;
}

.tsr-chart__tick {
	stroke:       var(--tsr-muted);
	stroke-width: 1;
}

/* Discreet, unlabeled tick at every whole km — thinner and fainter than
   .tsr-chart__tick (the labeled "nice interval" ticks), so the km grid
   reads as a subtle texture rather than competing with the labeled ones. */
.tsr-chart__km-tick {
	stroke:       var(--tsr-border);
	stroke-width: 1;
	opacity:      0.8;
}

/* Segment stroke color is set inline per-path (climb/descent/flat vary
   within one chart) — this class only fixes width/join, shared by all three. */
.tsr-chart__line {
	stroke-width:    2;
	stroke-linejoin: round;
}

.tsr-chart__ylabel {
	font-size:   11px;
	fill:        var(--tsr-muted);
	text-anchor: end;
	dominant-baseline: middle;
}

.tsr-chart__xlabel {
	font-size:   11px;
	fill:        var(--tsr-muted);
	text-anchor: middle;
}

/* SVG text font-size resolves in the chart's own viewBox coordinate space,
   so it scales with the viewBox regardless of screen pixels. JS switches to
   a narrower (440 vs 800) viewBox at this same breakpoint — this bump keeps
   the *rendered* label size legible on a ~340px-wide modal instead of the
   ~4-5px that 11px/800-wide would produce. */
@media (max-width: 640px) {
	.tsr-chart__ylabel,
	.tsr-chart__xlabel {
		font-size: 16px;
	}
}

/* Legend for the grade colors on the profile + map — without it the
   red/blue/green segments are unexplained, and for red-green colorblind
   visitors the labels are the only reliable decoding. */
.tsr-chart-legend {
	display:         flex;
	justify-content: center;
	gap:             1.25rem;
	margin-top:      0.35rem;
	font-size:       0.72rem;
	font-weight:     600;
	color:           var(--tsr-muted);
}

.tsr-chart-legend__item {
	display:     inline-flex;
	align-items: center;
	gap:         0.35rem;
}

.tsr-chart-legend__swatch {
	width:         14px;
	height:        4px;
	border-radius: 2px;
}

.tsr-chart-legend__swatch--climb   { background: var(--tsr-climb); }
.tsr-chart-legend__swatch--flat    { background: var(--tsr-blue); }
.tsr-chart-legend__swatch--descent { background: var(--tsr-descent); }

.tsr-modal__stats {
	margin-bottom: 1rem;
}

.tsr-modal__actions {
	display: flex;
	gap:     0.6rem;
}

@media (max-width: 600px) {
	.tsr-modal__map {
		height: 240px;
	}

	.tsr-modal__dialog {
		padding: 1rem;
	}
}

.tsr-stars {
	display:     inline-flex;
	gap:         0.1rem;
	line-height: 1;
}

.tsr-star {
	font-size: 0.95rem;
	color:     var(--tsr-border);
}

.tsr-star--on {
	color: var(--tsr-orange);
}

@media (max-width: 600px) {
	.tsr-track__meta {
		flex-basis:             100%;
		grid-template-columns:  1fr 1fr;
		row-gap:                0.6rem;
	}
}

/* ── Новини archive — pagination ────────────────────────────────────────────── */
.tsr-pagination {
	margin-top: 2.5rem;
	display: flex;
	justify-content: center;
}

.tsr-pagination .nav-links {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
}

.tsr-pagination .page-numbers {
	padding: 0.4rem 0.75rem;
	border-radius: var(--tsr-radius);
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--tsr-blue-dk);
	text-decoration: none;
	border: 1px solid var(--tsr-border);
	transition: background 0.15s, color 0.15s;
}

.tsr-pagination .page-numbers.current,
.tsr-pagination .page-numbers:hover {
	background: var(--tsr-blue);
	color: var(--tsr-white);
	border-color: var(--tsr-blue);
}

/* menu-highlight orange pill — defined in the site-header section below */

/* ── Резултати archive — year accordion ─────────────────────────────────────── */
.tsr-results-archive {
	margin-top: 2rem;
}

.tsr-year-group {
	border: 1px solid rgba(0, 170, 221, 0.18);
	border-radius: 8px;
	margin-bottom: 1rem;
	overflow: hidden;
}

.tsr-year-group__summary {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	gap:             1rem;
	padding:         0.85rem 1.25rem;
	background:      var(--tsr-navy);
	color:           #fff;
	cursor:          pointer;
	list-style:      none;
	user-select:     none;
}
/* Remove the default disclosure triangle in all browsers */
.tsr-year-group__summary::-webkit-details-marker { display: none; }
.tsr-year-group__summary::marker               { display: none; }

.tsr-year-group__summary::after {
	content:     '▸';
	font-size:   0.85em;
	transition:  transform 0.2s ease;
	flex-shrink: 0;
}
.tsr-year-group[open] > .tsr-year-group__summary::after {
	transform: rotate(90deg);
}

.tsr-year-group__year {
	font-size:   1.15rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.tsr-year-group__count {
	font-size:   0.8rem;
	opacity:     0.7;
	white-space: nowrap;
}

/* ── Event list inside each year ── */
.tsr-event-list {
	list-style: none;
	margin:     0;
	padding:    0.5rem 0 0.75rem;
}

.tsr-event-item {
	padding:       0.55rem 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.tsr-event-item:last-child {
	border-bottom: none;
}

.tsr-event-item__name {
	display:     inline-block;
	font-weight: 600;
	font-size:   0.95rem;
	color:       var(--tsr-navy);
	text-decoration: none;
	margin-bottom: 0.3rem;
}
.tsr-event-item__name:hover {
	color:           var(--tsr-blue-dk);
	text-decoration: underline;
}

/* Event date next to a landing-page link on /sabitia/ (page-sabitia.php) */
.tsr-sabitia-date {
	margin-left: 0.6rem;
	font-size:   0.8rem;
	color:       var(--tsr-muted);
	white-space: nowrap;
}

/* ── Site header — single-row layout ────────────────────────────────────
 *
 * [logo] ........... [nav menu]
 *
 * Rendered by header.php in this child theme; id="masthead" kept for
 * any JS or third-party code that targets it.
 * ──────────────────────────────────────────────────────────────────────── */

#masthead {
	position:   sticky !important;
	top:        0;
	z-index:    500;
	width:      100%;
	background: var(--tsr-navy);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06),
	            0 2px 14px rgba(0, 0, 0, .32);
}

/* ── Single-row inner layout ─────────────────────────────────────────── */

.tsr-header-inner {
	display:         flex !important;
	flex-direction:  row !important;
	align-items:     center !important;
	justify-content: center;
	gap:             3rem;
	padding-block:   0.75rem;
	transition:      padding-block 0.3s ease;
}

.tsr-header-brand {
	display:     flex;
	flex-direction: row;
	align-items: center;
	gap:         0.75rem;
	flex-shrink: 0;
}

.tsr-header-nav {
	display:     flex !important;
	align-items: center !important;
}

.tsr-header-logo a   { display: block; line-height: 0; }
.tsr-header-logo img { max-height: 70px; width: auto; transition: max-height 0.3s ease; }


.tsr-nav-list {
	display:     flex;
	flex-wrap:   wrap;
	align-items: center;
	list-style:  none;
	margin:      0;
	padding:     0;
}

#masthead .tsr-nav-list > li > a {
	display:         block;
	padding:         0.6rem 0.875rem;
	color:           rgba(255, 255, 255, 0.78);
	font-size:       0.875rem;
	font-weight:     600;
	text-decoration: none;
	white-space:     nowrap;
	letter-spacing:  0.03em;
	background:      none;
	border:          none;
	border-bottom:   2px solid transparent;
	border-radius:   0;
	box-shadow:      none;
	transition:      color 0.2s ease, border-color 0.2s ease;
}

#masthead .tsr-nav-list > li > a:hover,
#masthead .tsr-nav-list > .current-menu-item > a,
#masthead .tsr-nav-list > .current_page_item > a {
	color:               var(--tsr-blue);
	border-bottom-color: var(--tsr-blue);
}

/* Orange-pill highlight — add class "menu-highlight" in WP menu editor */
#masthead .tsr-nav-list > .menu-highlight > a,
#masthead .tsr-nav-list > .menu-highlight > a:visited {
	background:    var(--tsr-orange);
	color:         #fff !important;
	border:        none;
	border-radius: 999px;
	padding:       0.3em 1em;
	margin-inline: 0.25rem;
	font-weight:   600;
	box-shadow:    none;
	transition:    background 0.2s ease, box-shadow 0.2s ease;
}

#masthead .tsr-nav-list > .menu-highlight > a:hover {
	background: #c94e16;
	box-shadow: 0 2px 8px rgba(224, 92, 30, 0.4);
	color:      #fff !important;
}

/* Temporarily hide an unfinished menu item without deleting it — add class
   "tsr-menu-hidden" in WP menu editor. Currently on "Рекорди" (2026-08-27)
   while that section is reworked; remove the class in the menu editor to
   bring it back, no template changes needed. */
#masthead .tsr-nav-list > .tsr-menu-hidden {
	display: none;
}

/* ── Mobile nav toggle (hamburger) ───────────────────────────────────── */

.tsr-nav-toggle {
	display:    none;   /* desktop: nav is inline, no toggle */
	flex-direction: column;
	justify-content: center;
	gap:        5px;
	width:      44px;
	height:     44px;
	padding:    10px;
	background: transparent;
	border:     none;
	cursor:     pointer;
}

.tsr-nav-toggle__bar {
	display:       block;
	width:         100%;
	height:        2px;
	border-radius: 2px;
	background:    #fff;
	transition:    transform 0.25s ease, opacity 0.2s ease;
}

/* Bars → X when open */
#masthead.tsr-nav-open .tsr-nav-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

#masthead.tsr-nav-open .tsr-nav-toggle__bar:nth-child(2) {
	opacity: 0;
}

#masthead.tsr-nav-open .tsr-nav-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.tsr-header-inner {
		padding-block:   0.6rem;
		flex-wrap:       wrap;
		justify-content: space-between;
		gap:             0;
	}

	.tsr-header-logo img { max-height: 50px; }

	.tsr-nav-toggle {
		display: flex;
	}

	/* Nav collapses into a slide-down panel spanning the full header width. */
	.tsr-header-nav {
		display:    block !important;   /* base rule uses flex !important */
		flex-basis: 100%;
		max-height: 0;
		overflow:   hidden;
		transition: max-height 0.3s ease;
	}

	#masthead.tsr-nav-open .tsr-header-nav {
		max-height: 80vh;
		overflow-y: auto;
	}

	.tsr-nav-list {
		flex-direction: column;
		align-items:    stretch;
		padding:        0.5rem 0 1rem;
	}

	#masthead .tsr-nav-list > li > a {
		padding:       0.8rem 0.5rem;
		font-size:     0.95rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	#masthead .tsr-nav-list > li:last-child > a {
		border-bottom: none;
	}

	#masthead .tsr-nav-list > li > a:hover,
	#masthead .tsr-nav-list > .current-menu-item > a,
	#masthead .tsr-nav-list > .current_page_item > a {
		border-bottom-color: rgba(255, 255, 255, 0.08);
	}

	#masthead .tsr-nav-list > .menu-highlight {
		margin-top: 0.75rem;
	}

	#masthead .tsr-nav-list > .menu-highlight > a {
		display:    inline-block;
		align-self: flex-start;
	}
}

/* ── Sticky shrink — scrolled state (JS adds .tsr-header--scrolled) ──────── */

#masthead.tsr-header--scrolled .tsr-header-inner {
	padding-block: 0.4rem;
}

#masthead.tsr-header--scrolled .tsr-header-logo img {
	max-height: 32px;
}

@media (max-width: 640px) {
	.tsr-section {
		padding-block: 2.5rem;
	}

	.tsr-countdown {
		gap: 0.5rem;
	}

	.tsr-countdown__block {
		min-width: 62px;
		padding: 0.65rem 0.875rem;
	}

	.tsr-result-list__meta {
		display: none;
	}

	.tsr-timeline::before {
		left: 3rem;
	}

	.tsr-timeline__item::before {
		left: calc(3rem - 5px);
	}

	.tsr-timeline__year {
		min-width: 3rem;
		font-size: 0.75rem;
	}

	.tsr-scoring-grid {
		grid-template-columns: 1fr;
	}

	.tsr-page-hero {
		padding: 2.5rem 0 2rem;
	}

	.tsr-map {
		height: 360px;
	}
}

/* ── Runner Profile page ────────────────────────────────────────────────────── */

.tsr-runner-search {
	display:       flex;
	gap:           0.75rem;
	margin-bottom: 2.5rem;
	flex-wrap:     wrap;
}

.tsr-runner-search__input {
	flex:         1;
	min-width:    200px;
	padding:      0.65rem 1rem;
	border:       1px solid var(--tsr-border);
	border-radius: var(--tsr-radius);
	font-size:    1rem;
	color:        var(--tsr-text);
	background:   var(--tsr-white);
}

.tsr-runner-search__input:focus {
	outline:    none;
	border-color: var(--tsr-blue);
	box-shadow: 0 0 0 3px rgba(0, 170, 221, 0.15);
}

.tsr-runner-search__btn {
	padding:       0.65rem 1.5rem;
	background:    var(--tsr-blue-dk);
	color:         var(--tsr-white);
	border:        none;
	border-radius: var(--tsr-radius);
	font-size:     1rem;
	font-weight:   600;
	cursor:        pointer;
	white-space:   nowrap;
	transition:    background 0.15s;
}

.tsr-runner-search__btn:hover {
	background: var(--tsr-blue-dk);
}

/* "Which runner?" list (audit H4) — several people match the search */
.tsr-runner-choices {
	list-style:    none;
	margin:        0 0 2rem;
	padding:       0;
	columns:       2 18rem;
	column-gap:    2rem;
}

.tsr-runner-choices li {
	break-inside:  avoid;
	padding:       0.15rem 0;
}

.tsr-runner-choices a {
	display:       inline-block;
	min-height:    24px; /* touch target, WCAG 2.5.8 (audit L17) */
	padding:       0.2rem 0;
	color:         var(--tsr-blue-dk);
	font-weight:   700;
}

.tsr-runner-choices__count,
.tsr-runner-choices__more {
	color:         var(--tsr-muted);
	font-size:     0.9rem;
}

/* Stats strip */
.tsr-runner-stats {
	display:       grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap:           1rem;
	margin-bottom: 2.5rem;
}

.tsr-runner-stat {
	background:    var(--tsr-navy);
	border-radius: var(--tsr-radius);
	padding:       1rem 1.25rem;
	text-align:    center;
}

.tsr-runner-stat__num {
	font-size:   2rem;
	font-weight: 900;
	color:       var(--tsr-blue-dk);
	line-height: 1;
}

.tsr-runner-stat__label {
	font-size:      0.72rem;
	color:          rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
	letter-spacing: 0.09em;
	margin-top:     0.35rem;
}

/* Season group */
.tsr-runner-season {
	margin-bottom: 2rem;
}

.tsr-runner-season__heading {
	font-size:     1.1rem;
	font-weight:   800;
	color:         var(--tsr-navy);
	margin-bottom: 0.75rem;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid var(--tsr-blue);
}

.tsr-runner-season__count {
	font-weight: 400;
	color:       var(--tsr-muted);
	font-size:   0.9rem;
}

/* Compact table (shared by runner + event pages) */
.tsr-compact-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tsr-compact-table {
	width:           100%;
	border-collapse: collapse;
	font-size:       0.88rem;
}

.tsr-compact-table th {
	background:     var(--tsr-navy);
	color:          rgba(255, 255, 255, 0.72);
	font-size:      0.72rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding:        0.45rem 0.875rem;
	text-align:     left;
	white-space:    nowrap;
}

.tsr-compact-table td {
	padding:     0.55rem 0.875rem;
	border-bottom: 1px solid var(--tsr-border);
	color:       var(--tsr-text);
	white-space: nowrap;
}

.tsr-compact-table tbody tr:last-child td {
	border-bottom: none;
}

.tsr-compact-table tbody tr:hover td {
	background: rgba(0, 170, 221, 0.04);
}

.tsr-compact-table__place {
	font-weight: 700;
	color:       var(--tsr-blue-dk);
}

.tsr-compact-table__time {
	font-variant-numeric: tabular-nums;
}

.tsr-compact-table__link {
	color:           var(--tsr-navy);
	text-decoration: none;
	font-weight:     600;
}

.tsr-compact-table__link:hover {
	color:           var(--tsr-blue-dk);
	text-decoration: underline;
}

/* Non-finisher rows */
.tsr-runner-row--dnx td {
	color: var(--tsr-muted);
}

/* ── Event History page ─────────────────────────────────────────────────────── */

/* Course records heading */
.tsr-event-records {
	margin-bottom: 2rem;
}

.tsr-event-records__title {
	font-size:      0.78rem;
	font-weight:    700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color:          var(--tsr-muted);
	margin-bottom:  0.875rem;
}

/* Editions list */
.tsr-editions {
	display:        flex;
	flex-direction: column;
	gap:            0.6rem;
}

.tsr-edition-item {
	display:     flex;
	align-items: baseline;
	gap:         1rem;
	padding:     0.7rem 1rem;
	background:  var(--tsr-bg);
	border-radius: var(--tsr-radius);
	border-left: 3px solid var(--tsr-blue);
}

.tsr-edition-item--multi {
	flex-direction: column;
	align-items:    flex-start;
	gap:            0.4rem;
}

.tsr-edition-item__year {
	font-weight: 800;
	color:       var(--tsr-navy);
	min-width:   3.25rem;
	flex-shrink: 0;
	font-size:   0.95rem;
}

.tsr-edition-item__links {
	display:   flex;
	flex-wrap: wrap;
	gap:       0.4rem 0.75rem;
}

.tsr-edition-item__link {
	color:           var(--tsr-blue-dk);
	text-decoration: none;
	font-size:       0.9rem;
	font-weight:     500;
}

.tsr-edition-item__link:hover {
	text-decoration: underline;
}

/* Event browse list */
.tsr-event-index {
	list-style: none;
	margin:     0;
	padding:    0;
	display:    grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap:        0.5rem;
}

.tsr-event-index__link {
	display:       block;
	padding:       0.55rem 0.875rem;
	background:    var(--tsr-bg);
	border-radius: var(--tsr-radius);
	border-left:   3px solid var(--tsr-blue);
	color:         var(--tsr-navy);
	text-decoration: none;
	font-weight:   600;
	font-size:     0.9rem;
	transition:    background 0.15s, color 0.15s;
}

.tsr-event-index__link:hover {
	background: var(--tsr-blue);
	color:      var(--tsr-white);
}

/* ── Breadcrumbs (single-ts_result.php) ──────────────────────────────────── */
.tsr-breadcrumbs {
	font-size:     0.85rem;
	color:         var(--tsr-muted);
	margin-bottom: 1rem;
}

.tsr-breadcrumbs__link {
	color:           var(--tsr-blue-dk);
	text-decoration: none;
}

.tsr-breadcrumbs__link:hover {
	text-decoration: underline;
}

.tsr-breadcrumbs__sep {
	margin: 0 0.4em;
	color:  var(--tsr-border);
}

.tsr-breadcrumbs__current {
	color:       var(--tsr-text);
	font-weight: 600;
}

/* ── Партньори (page-partniori.php) ──────────────────────────────────────── */
.tsr-partners-grid {
	display:               grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap:                   var(--tsr-gap);
}

.tsr-partner-card {
	display:         flex;
	flex-direction:  column;
	align-items:     center;
	gap:             0.75rem;
	padding:         1.5rem 1rem;
	background:      var(--tsr-white);
	border:          1px solid var(--tsr-border);
	border-radius:   var(--tsr-radius);
	text-decoration: none;
	transition:      transform 0.15s, box-shadow 0.15s;
}

a.tsr-partner-card:hover {
	transform:  translateY(-3px);
	box-shadow: 0 8px 20px rgba(10, 22, 40, 0.10);
}

/* Fixed width AND height (not just height) — real partner logos vary
   wildly in aspect ratio (wide wordmarks vs. a circular badge), and
   height-only sizing let a tall/square logo fill its box while a wide
   one shrank to fit, reading as inconsistent sizes. An equal box on both
   axes gives every logo the same visual weight regardless of its shape. */
.tsr-partner-card__logo {
	display:         flex;
	align-items:     center;
	justify-content: center;
	width:           150px;
	height:          80px;
	margin:          0 auto;
}

.tsr-partner-card__logo img {
	max-width:  100%;
	max-height: 100%;
	object-fit: contain;
}

.tsr-partner-card__logo--ph {
	border-radius: var(--tsr-radius);
	color:         var(--tsr-white);
	font-size:     2rem;
	font-weight:   700;
	letter-spacing: 0.05em;
}

.tsr-partner-card__name {
	color:       var(--tsr-navy);
	font-weight: 600;
	font-size:   0.95rem;
	text-align:  center;
}

.tsr-partner-cta {
	margin:        3.5rem 0 1rem;
	padding:       2.5rem 1.5rem;
	background:    linear-gradient(170deg, var(--tsr-navy) 0%, var(--tsr-navy-2) 100%);
	border-radius: var(--tsr-radius);
	text-align:    center;
	color:         var(--tsr-white);
}

.tsr-partner-cta__title {
	margin:    0 0 0.75rem;
	color:     var(--tsr-white);
	font-size: 1.6rem;
}

.tsr-partner-cta__text {
	max-width: 560px;
	margin:    0 auto 1.5rem;
	color:     rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
	line-height: 1.6;
}

.tsr-partner-cta__btn {
	display:         inline-block;
	padding:         0.7rem 1.8rem;
	background:      var(--tsr-orange);
	border-radius:   var(--tsr-radius);
	color:           var(--tsr-white);
	font-weight:     600;
	text-decoration: none;
	transition:      background 0.15s;
}

.tsr-partner-cta__btn:hover {
	background: #c94e15;
	color:      var(--tsr-white);
}

/* ── Партньори strip (front-page.php) ──────────────────────────────────────
   Front page only — plain, large logos in a row (no card box), matching
   the event-template mockup's sponsor band. /partniori/'s own grid keeps
   the bordered .tsr-partner-card look untouched — these overrides are all
   scoped under .tsr-partners-strip so they don't leak there. */
.tsr-partners-strip {
	display:         flex;
	flex-wrap:       wrap;
	justify-content: center;
	align-items:     center;
	gap:             3.5rem;
}

.tsr-partners-strip .tsr-partner-card {
	width:      auto;
	padding:    0;
	background: none;
	border:     none;
	gap:        0.4rem;
}

.tsr-partners-strip a.tsr-partner-card:hover {
	transform:  none;
	box-shadow: none;
}

.tsr-partners-strip .tsr-partner-card__logo {
	width:  190px;
	height: 100px;
}

/* Real logos are each a different brand color (red, blue, black...) —
   full color together reads as busy/inconsistent. Mute to grayscale so
   the row reads as one calm, cohesive strip (like the mockup's uniform
   grey wordmarks), full color back on hover as the reward for looking. */
.tsr-partners-strip .tsr-partner-card__logo img {
	filter:     grayscale(1) opacity(0.55);
	transition: filter 0.2s ease;
}

.tsr-partners-strip a.tsr-partner-card:hover .tsr-partner-card__logo img {
	filter: grayscale(0) opacity(1);
}

.tsr-partners-strip .tsr-partner-card__logo--ph {
	font-size:     2.2rem;
	width:         130px;
	border-radius: var(--tsr-radius);
}

/* The logo already carries the brand name — a caption under it is
   redundant clutter the mockup doesn't have either. */
.tsr-partners-strip .tsr-partner-card__name {
	display: none;
}

@media (max-width: 640px) {
	.tsr-partners-strip {
		gap: 2rem;
	}

	.tsr-partners-strip .tsr-partner-card__logo {
		width:  130px;
		height: 70px;
	}
}

/* ── Accessibility: 44×44 touch targets on touch devices ─────────────────────
   Lighthouse flags interactive elements under 44px tall on mobile. Scoped to
   coarse pointers / small viewports so desktop density is unchanged. Inline
   links grow via min-height (inline-flex keeps them on the text baseline
   row); block-level items use flex so they keep their full width. */
@media (pointer: coarse), (max-width: 768px) {
	.tsr-card__link,
	.tsr-zero-card__link,
	.tsr-edition-item__link,
	.tsr-compact-table__link,
	.tsr-breadcrumbs__link,
	.tsr-dist-row__links a,
	.tsr-race-card__more a {
		display:     inline-flex;
		align-items: center;
		min-height:  44px;
	}

	.tsr-event-index__link,
	.tsr-event-item__name {
		display:     flex;
		align-items: center;
		min-height:  44px;
	}

	#masthead .tsr-nav-list > li > a {
		display:     flex;
		align-items: center;
		min-height:  44px;
	}

	.tsr-runner-search__btn {
		min-height: 44px;
	}
}

/* ── Single event page — EventON plugin overrides ────────────────────────────
   The plugin's own boxes ship flat grey that reads as washed-out against
   our white page background — two separate rules in eventon_styles.css:
   .evocard_box (#f3f3f3 — Event Details/Time/Location/Calendar/Get
   Directions) and .desc_trig (#e6e6e6 — the top thumbnail+date+title
   summary bar). Overridden here rather than editing the plugin's CSS
   directly — wp-content/plugins/* is gitignored and updates would wipe an
   in-place edit. Pale pastel blue, same tone already used for the traseta
   row hover state, so it reads as intentional brand accent rather than a
   mismatched grey. */
.evocard_box,
.desc_trig {
	background-color: #eaf6fb;
}

/* ══════════════════════════════════════════════════════════════════════════
   Results & ranking pages — one season at a time (audit M17 redesign)
   page-rezultati.php, page-klasiraniya.php; season form from
   tsr_season_select() (functions.php), tabs from js/tsr-ui.js.
   ══════════════════════════════════════════════════════════════════════════ */

/* Season toolbar */
.tsr-toolbar {
	display:       flex;
	flex-wrap:     wrap;
	align-items:   center;
	gap:           0.5rem 0.75rem;
	margin:        0 0 1.5rem;
}

.tsr-toolbar__label {
	font-weight:   700;
	color:         var(--tsr-navy);
}

.tsr-select {
	min-height:    44px;
	padding:       0.5rem 2.25rem 0.5rem 0.85rem;
	border:        1px solid var(--tsr-border);
	border-radius: var(--tsr-radius);
	background:    var(--tsr-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a1628' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
	font:          inherit;
	font-weight:   700;
	color:         var(--tsr-navy);
	appearance:    none;
	max-width:     100%;
	cursor:        pointer;
}

.tsr-select:focus-visible {
	outline:        3px solid var(--tsr-blue);
	outline-offset: 2px;
}

.tsr-toolbar__go {
	min-height:    44px;
	padding:       0 1rem;
	border:        0;
	border-radius: var(--tsr-radius);
	background:    var(--tsr-blue-dk);
	color:         var(--tsr-white);
	font-weight:   700;
	cursor:        pointer;
}

.tsr-toolbar__note {
	color:         var(--tsr-muted);
	font-size:     0.95rem;
}

.tsr-season-heading {
	font-size:     1.5rem;
	margin:        0 0 1.25rem;
	color:         var(--tsr-navy);
}

/* Race cards (Резултати) */
.tsr-race-cards {
	display:       grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap:           1rem;
	margin-bottom: 2.5rem;
}

.tsr-race-card {
	display:        flex;
	flex-direction: column;
	background:     var(--tsr-white);
	border:         1px solid var(--tsr-border);
	border-top:     4px solid var(--tsr-blue);
	border-radius:  var(--tsr-radius);
	padding:        1rem 1.25rem;
}

.tsr-race-card__head {
	margin-bottom: 0.75rem;
}

.tsr-race-card__title {
	font-size:     1.15rem;
	line-height:   1.25;
	margin:        0;
}

.tsr-race-card__title a {
	color:         var(--tsr-navy);
	text-decoration: none;
}

.tsr-race-card__title a:hover,
.tsr-race-card__title a:focus-visible {
	color:         var(--tsr-blue-dk);
	text-decoration: underline;
}

.tsr-race-card__date {
	display:       block;
	margin-top:    0.2rem;
	color:         var(--tsr-muted);
	font-size:     0.9rem;
}

.tsr-dist-rows {
	margin:        0;
	flex:          1;
}

.tsr-dist-row {
	display:       flex;
	align-items:   baseline;
	gap:           0.75rem;
	padding:       0.35rem 0;
	border-top:    1px solid var(--tsr-border);
}

.tsr-dist-row:first-child {
	border-top:    0;
}

.tsr-dist-row__km {
	flex:          0 0 4.5rem;
	font-weight:   800;
	color:         var(--tsr-navy);
	font-variant-numeric: tabular-nums;
}

.tsr-dist-row__links {
	margin:        0;
	display:       flex;
	flex-wrap:     wrap;
	align-items:   center;
	gap:           0 0.35rem;
}

.tsr-dist-row__links a {
	display:       inline-block;
	min-height:    24px;  /* touch target, WCAG 2.5.8 (audit L17) */
	padding:       0.15rem 0.1rem;
	color:         var(--tsr-blue-dk);
	font-weight:   700;
}

.tsr-dist-row__sep {
	color:         var(--tsr-muted);
}

.tsr-race-card__more {
	margin:        0.75rem 0 0;
	text-align:    right;
	font-size:     0.9rem;
}

.tsr-race-card__more a {
	display:       inline-block;
	min-height:    24px;
	padding:       0.15rem 0;
	color:         var(--tsr-blue-dk);
}

/* Ranking: gender tabs */
.tsr-tabs {
	display:       flex;
	gap:           0.25rem;
	border-bottom: 2px solid var(--tsr-border);
	margin-bottom: 1.5rem;
}

.tsr-tabs[hidden] {
	display:       none;
}

.tsr-tabs__tab {
	min-height:    44px;
	padding:       0.5rem 1.25rem;
	margin-bottom: -2px;
	border:        0;
	border-bottom: 3px solid transparent;
	background:    none;
	font:          inherit;
	font-weight:   800;
	color:         var(--tsr-muted);
	cursor:        pointer;
}

.tsr-tabs__tab[aria-selected="true"] {
	color:         var(--tsr-navy);
	border-bottom-color: var(--tsr-blue);
}

.tsr-tabs__tab:focus-visible {
	outline:        3px solid var(--tsr-blue);
	outline-offset: -3px;
}

.tsr-tabs__count {
	font-weight:   400;
	font-size:     0.85rem;
	color:         var(--tsr-muted);
	margin-left:   0.25rem;
}

.tsr-standings-panel {
	margin-bottom: 2rem;
}

/* A 4-column table needs no more than this; full width spread the numbers
   far from the names on desktop. Tabs, podium and table share the edge. */
.tsr-standings {
	max-width:     880px;
}

.tsr-standings-panel__heading {
	font-size:     1.2rem;
	color:         var(--tsr-navy);
	margin:        0 0 1rem;
}

/* With JS tabs the heading repeats the tab label: hide visually, keep for AT */
.tsr-tabs-on .tsr-standings-panel__heading {
	position:      absolute;
	width:         1px;
	height:        1px;
	overflow:      hidden;
	clip:          rect(0 0 0 0);
	white-space:   nowrap;
}

/* Ranking: podium (top 3) */
.tsr-podium {
	list-style:    none;
	margin:        0 0 1.5rem;
	padding:       0;
	display:       grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap:           0.75rem;
}

.tsr-podium__item {
	display:       grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"place name"
		"place pts";
	column-gap:    0.85rem;
	align-items:   center;
	background:    var(--tsr-navy);
	color:         var(--tsr-white);
	border-radius: var(--tsr-radius);
	padding:       0.9rem 1rem;
}

.tsr-podium__place {
	grid-area:     place;
	display:       grid;
	place-items:   center;
	width:         2.5rem;
	height:        2.5rem;
	border-radius: 50%;
	background:    var(--tsr-blue);
	color:         var(--tsr-navy);
	font-weight:   900;
	font-size:     1.2rem;
}

.tsr-podium__item--1 .tsr-podium__place {
	background:    #f2c94c; /* gold — decorative only; the rank is also in the order */
}

.tsr-podium__name {
	grid-area:     name;
	color:         var(--tsr-white);
	font-weight:   800;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.tsr-podium__name:hover,
.tsr-podium__name:focus-visible {
	text-decoration: underline;
}

.tsr-podium__pts {
	grid-area:     pts;
	font-weight:   700;
	color:         var(--tsr-blue);
}

.tsr-podium__meta {
	font-weight:   400;
	color:         #c7d2e0;
}

.tsr-standings-table td:nth-child(2) a {
	color:         var(--tsr-navy);
	font-weight:   700;
	text-decoration: none;
}

.tsr-standings-table td:nth-child(2) a:hover,
.tsr-standings-table td:nth-child(2) a:focus-visible {
	color:         var(--tsr-blue-dk);
	text-decoration: underline;
}

.tsr-standings-more {
	margin:        0.75rem 0 0;
}

.tsr-standings-more a {
	display:       inline-block;
	min-height:    44px;
	padding:       0.6rem 1.1rem;
	border:        1px solid var(--tsr-blue-dk);
	border-radius: var(--tsr-radius);
	color:         var(--tsr-blue-dk);
	font-weight:   700;
	text-decoration: none;
}

.tsr-standings-more a:hover,
.tsr-standings-more a:focus-visible {
	background:    var(--tsr-blue-dk);
	color:         var(--tsr-white);
}

/* Phones: the 4-column standings table fits without scrolling once the cell
   padding is tighter, so the "плъзнете" hint is not needed for it. */
@media (max-width: 480px) {
	.tsr-standings-table th,
	.tsr-standings-table td {
		padding-left:  0.5rem;
		padding-right: 0.5rem;
	}

	.tsr-results-wrap:has(> .tsr-standings-table)::before,
	.tsr-results-wrap:has(> .tsr-standings-table)::after {
		content: none;
	}
}

/* ── Single event page (EventON): readable date + title in the top box ───────
   EventON prints the event-top box in "white text" mode (.clrW) on its light
   grey #f1f1f1 background on single event pages — the date and title were
   white on grey (1.1:1). Only the single page is touched: the /calendar/
   list keeps white text on its coloured event backgrounds. */
.evo_sin_page .evo_eventtop .evoet_dayblock em,
.evo_sin_page .evo_eventtop .evcal_event_title {
	color: var(--tsr-navy) !important;
}

.evo_sin_page .evo_eventtop .evoet_dayblock em.month {
	color: var(--tsr-muted) !important;
}

/* Official standings (audit H1 step 2): names without a runner profile are
   plain text — same weight and colour as the linked ones. */
.tsr-standings-table td:nth-child(2) > span {
	color:       var(--tsr-navy);
	font-weight: 700;
}

span.tsr-podium__name {
	color: var(--tsr-white);
}

/* ══════════════════════════════════════════════════════════════════════════
   Design pass 1 (owner-approved 2026-11-13, reference: docs/design/
   gtws-ui-research-2026-11-13.md). Colours unchanged. --tsr-radius is 18px
   and buttons are pills; the page hero keeps square corners, and
   /rezultati/ keeps its previous look until its own redesign.
   ══════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
	font-weight:    700;
	letter-spacing: -0.01em;
}

/* Pills */
.tsr-btn,
.tsr-toolbar__go,
.tsr-standings-more a,
.tsr-runner-search__btn {
	border-radius: 999px;
}

/* /rezultati/ — unchanged for now (owner: different reference to come) */
.tsr-race-card {
	border-radius: 6px;
}

.tsr-select {
	border-radius: 6px;
}

/* More air between home-page sections */
.tsr-section {
	padding-block: 6rem;
}

@media (max-width: 768px) {
	.tsr-section {
		padding-block: 3.5rem;
	}
}

/* ── Ranking ── */
.tsr-standings {
	max-width: 960px;
}

/* Tabs left, season right, one row (stacked on phones) */
.tsr-rank-bar {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	flex-wrap:       wrap;
	gap:             0.75rem 1rem;
	margin-bottom:   1.5rem;
}

.tsr-rank-bar .tsr-toolbar {
	margin: 0;
}

.tsr-rank-bar .tsr-toolbar__label {
	position:    absolute;
	width:       1px;
	height:      1px;
	overflow:    hidden;
	clip:        rect(0 0 0 0);
	white-space: nowrap;
}

.tsr-rank-bar .tsr-select {
	border-radius: 999px;
	border-color:  var(--tsr-blue);
}

.tsr-tabs {
	width:         fit-content;
	margin:        0;
	padding:       4px;
	gap:           0;
	border-bottom: 0;
	border-radius: 999px;
	background:    var(--tsr-bg);
}

.tsr-tabs__tab {
	min-height:    40px;
	margin:        0;
	padding:       0.4rem 1.25rem;
	border:        0;
	border-radius: 999px;
	font-size:     0.95rem;
}

.tsr-tabs__tab[aria-selected="true"] {
	background: var(--tsr-blue-dk);
	color:      var(--tsr-white);
}

.tsr-tabs__tab[aria-selected="true"] .tsr-tabs__count {
	color: rgba(255, 255, 255, 0.9);
}

.tsr-tabs__tab:focus-visible {
	outline-offset: 2px;
}

/* List in a light rounded card; rows with a bottom line only */
.tsr-standings .tsr-results-wrap {
	padding:       0.5rem 1.25rem 0.75rem;
	border-radius: var(--tsr-radius);
	background:    var(--tsr-bg);
}

.tsr-standings-table {
	background: transparent;
}

.tsr-standings-table th,
.tsr-standings-table td {
	padding:       0.7rem 0.5rem;
	border:        0;
	border-bottom: 1px solid #d9dee5;
}

.tsr-standings-table thead th {
	position:    static;
	background:  transparent;
	color:       var(--tsr-muted);
	font-size:   0.85rem;
	font-weight: 500;
}

.tsr-standings-table tbody tr:nth-child(even) {
	background: transparent;
}

.tsr-standings-table tbody tr:hover {
	background: rgba(0, 136, 187, 0.06);
}

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

/* Place: large numeral in the darker blue (3:1 on the light card as large text) */
.tsr-standings-table td:first-child {
	width:       4.5rem;
	font-family: "Ubuntu", system-ui, sans-serif;
	font-size:   1.5rem;
	font-weight: 700;
	line-height: 1;
	color:       var(--tsr-blue-dk);
}

.tsr-standings-table td:nth-child(3) {
	font-weight: 700;
}

.tsr-podium__place {
	font-family: "Ubuntu", system-ui, sans-serif;
}

@media (max-width: 480px) {
	.tsr-rank-bar .tsr-toolbar,
	.tsr-rank-bar .tsr-select {
		width: 100%;
	}

	.tsr-standings .tsr-results-wrap {
		padding: 0.25rem 0.75rem 0.5rem;
	}

	.tsr-standings-table th,
	.tsr-standings-table td {
		padding: 0.6rem 0.3rem;
	}

	.tsr-standings-table td:first-child {
		width:     2.75rem;
		font-size: 1.25rem;
	}

	.tsr-standings-table td:nth-child(2) {
		white-space: normal;
	}
}

/* Top 10 of a season run with an honorary orange bib next season (owner,
   2026-11-13): places 4–10 get the orange numeral (1–3 are the podium cards). */
.tsr-standings-table tr.tsr-top10 td:first-child {
	color: var(--tsr-orange);
}

.tsr-top10-mark {
	display:        inline-block;
	width:          0.75rem;
	height:         0.75rem;
	margin-right:   0.35rem;
	border-radius:  50%;
	background:     var(--tsr-orange);
	vertical-align: -0.05em;
}

.tsr-standings-note--top10 {
	margin-bottom: 0.35rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   Calendar cards — page-calendar.php (design pass 2, 2026-11-13)
   ══════════════════════════════════════════════════════════════════════════ */

.tsr-cal-past {
	opacity:    1; /* the fade is per card now */
	margin-top: 3.5rem;
}

.tsr-cal-count {
	margin:    -0.5rem 0 0;
	color:     var(--tsr-muted);
	font-size: 1.05rem;
}

.tsr-cal-cards {
	display:               grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap:                   1.25rem;
	margin:                1.5rem 0 0;
	padding:               0;
	list-style:            none;
}

.tsr-cal-card {
	position:        relative;
	isolation:       isolate;
	display:         flex;
	flex-direction:  column;
	justify-content: space-between;
	min-width:       0;
	height:          400px;
	padding:         1.1rem;
	overflow:        hidden;
	border-radius:   var(--tsr-radius);
	color:           var(--tsr-white);
	background:
		radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 170, 221, 0.28) 0%, transparent 60%),
		linear-gradient(160deg, var(--tsr-navy) 0%, #0d2040 100%);
	transition:      transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.tsr-cal-card:hover,
.tsr-cal-card:focus-within {
	transform:  translateY(-4px);
	box-shadow: 0 14px 34px rgba(10, 22, 40, 0.35);
}

.tsr-cal-card__img {
	position:   absolute;
	inset:      0;
	z-index:    -2;
	width:      100%;
	height:     100%;
	object-fit: cover;
}

.tsr-cal-card--photo::after {
	content:    '';
	position:   absolute;
	inset:      0;
	z-index:    -1;
	background: linear-gradient(to bottom, rgba(10, 22, 40, 0.2) 0%, rgba(10, 22, 40, 0.2) 40%, rgba(10, 22, 40, 0.93) 100%);
}

/* No photo: the day as a watermark */
.tsr-cal-card__mark {
	position:    absolute;
	right:       -1rem;
	top:         28%;
	z-index:     -1;
	font-family: "Ubuntu", system-ui, sans-serif;
	font-size:   9rem;
	font-weight: 700;
	line-height: 1;
	color:       rgba(255, 255, 255, 0.06);
}

.tsr-cal-card__top {
	display:         flex;
	flex-wrap:       wrap;
	align-items:     flex-start;
	justify-content: space-between;
	gap:             0.4rem;
}

.tsr-cal-card__date {
	display:       inline-flex;
	align-items:   baseline;
	gap:           0.35rem;
	padding:       0.4rem 0.7rem;
	border-radius: 14px;
	background:    var(--tsr-white);
	color:         var(--tsr-navy);
	font-family:   "Ubuntu", system-ui, sans-serif;
	font-weight:   700;
	white-space:   nowrap;
}

.tsr-cal-card__day {
	font-size:   1.4rem;
	line-height: 1;
}

.tsr-cal-card__mon {
	font-size:      0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.tsr-cal-card__in {
	padding:       0.35rem 0.65rem;
	border-radius: 999px;
	background:    rgba(10, 22, 40, 0.78);
	font-size:     0.78rem;
	font-weight:   600;
	white-space:   nowrap;
}

.tsr-cal-card__in--past {
	background: rgba(255, 255, 255, 0.92);
	color:      var(--tsr-navy);
}

.tsr-cal-card__title {
	margin:      0 0 0.35rem;
	font-size:   1.3rem;
	line-height: 1.15;
	color:       var(--tsr-white);
	overflow-wrap: anywhere;
}

.tsr-cal-card__title a {
	color:           inherit;
	text-decoration: none;
}

/* Whole card is the link */
.tsr-cal-card__title a::after {
	content:  '';
	position: absolute;
	inset:    0;
}

.tsr-cal-card__title a:focus-visible {
	outline: none;
}

.tsr-cal-card:has(.tsr-cal-card__title a:focus-visible) {
	outline:        3px solid var(--tsr-blue);
	outline-offset: 3px;
}

.tsr-cal-card__meta {
	margin:    0;
	font-size: 0.92rem;
	color:     #e3e9f1;
}

.tsr-cal-card__dist {
	display:    flex;
	flex-wrap:  wrap;
	gap:        0.4rem;
	margin:     0.75rem 0 0;
	padding:    0;
	list-style: none;
}

.tsr-cal-card__dist li {
	padding:       0.2rem 0.6rem;
	border:        1px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
	font-size:     0.8rem;
	font-weight:   600;
}

/* Past races: slightly faded until hovered or focused */
.tsr-cal-card--past {
	opacity: 0.8;
}

.tsr-cal-card--past .tsr-cal-card__img {
	filter: saturate(0.55);
}

.tsr-cal-card--past:hover,
.tsr-cal-card--past:focus-within {
	opacity: 1;
}

@media (max-width: 1100px) {
	.tsr-cal-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.tsr-cal-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.tsr-cal-card {
		height: 300px;
	}

	.tsr-cal-card--photo {
		height: 380px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsr-cal-card {
		transition: none;
	}

	.tsr-cal-card:hover,
	.tsr-cal-card:focus-within {
		transform: none;
	}
}

/* Calendar section titles on the light page (they were white, coloured only
   through .tsr-prose-section, which the card layout no longer uses) */
.tsr-cal-upcoming .tsr-cal-section__title,
.tsr-cal-past .tsr-cal-section__title {
	margin:    0 0 1rem;
	font-size: 1.5rem;
	color:     var(--tsr-navy);
}

.tsr-cal-count {
	margin-top: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   History page — page-istoriya.php (design pass 3, 2026-11-14)
   Photo + text blocks joined by a dashed trail, photo bands, compact years.
   ══════════════════════════════════════════════════════════════════════════ */

.tsr-history {
	padding-bottom: 0;
}

.tsr-story {
	display:               grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap:                   3rem;
	align-items:           center;
	margin:                0;
}

.tsr-story__text {
	grid-column: span 5;
}

.tsr-story__media {
	grid-column: span 7;
	margin:      0;
}

.tsr-story--flip .tsr-story__text  { order: 2; }
.tsr-story--flip .tsr-story__media { order: 1; }

.tsr-story--upright .tsr-story__text  { grid-column: span 7; }
.tsr-story--upright .tsr-story__media { grid-column: span 5; }

.tsr-story__media img {
	display:       block;
	width:         100%;
	height:        auto;
	aspect-ratio:  4 / 3;
	object-fit:    cover;
	border-radius: var(--tsr-radius);
}

.tsr-story--upright .tsr-story__media img {
	aspect-ratio:    4 / 5;
	object-position: 50% 25%;
}

.tsr-story--creators .tsr-story__media img {
	aspect-ratio:    3 / 2;
	object-position: 50% 30%;
}

.tsr-story__media figcaption {
	margin-top: 0.6rem;
	font-size:  0.9rem;
	color:      var(--tsr-muted);
}

.tsr-story__year {
	margin:      0;
	font-family: "Ubuntu", system-ui, sans-serif;
	font-size:   clamp(3.5rem, 7vw, 5.5rem);
	font-weight: 700;
	line-height: 1;
	color:       var(--tsr-blue-dk);
}

.tsr-story__season {
	margin:         0.4rem 0 0;
	font-size:      0.8rem;
	font-weight:    700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color:          var(--tsr-muted);
}

.tsr-story__title {
	margin:    0.35rem 0 1rem;
	font-size: 1.75rem;
	color:     var(--tsr-navy);
}

.tsr-story--creators .tsr-story__title {
	font-size: 2rem;
}

.tsr-story__text p:not([class]) {
	margin:      0;
	line-height: 1.7;
	color:       var(--tsr-text);
}

/* Dashed trail from one photo to the next */
.tsr-trail {
	height: 7rem;
	margin: 0.75rem 0;
}

.tsr-trail__curve {
	display:  block;
	width:    100%;
	height:   100%;
	overflow: visible;
}

.tsr-trail__curve path {
	fill:             none;
	stroke:           var(--tsr-blue);
	stroke-width:     3;
	stroke-linecap:   round;
	stroke-dasharray: 2 12;
}

.tsr-trail__straight {
	display: none;
}

/* Full-width photo with the text on it */
.tsr-band {
	position:  relative;
	isolation: isolate;
	overflow:  hidden;
	padding:   6rem 0;
	color:     var(--tsr-white);
}

.tsr-band__img {
	position:   absolute;
	inset:      0;
	z-index:    -2;
	width:      100%;
	height:     100%;
	object-fit: cover;
}

.tsr-band::after {
	content:    '';
	position:   absolute;
	inset:      0;
	z-index:    -1;
	background: linear-gradient(90deg, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.62) 55%, rgba(10, 22, 40, 0.2) 100%);
}

.tsr-band__in {
	max-width: 38rem;
}

.tsr-band .tsr-story__year,
.tsr-band .tsr-story__title {
	color: var(--tsr-white);
}

.tsr-band .tsr-story__title {
	font-size: 2rem;
}

.tsr-band .tsr-story__season {
	color: #cfe9f5;
}

.tsr-band p:not([class]) {
	margin:      0 0 0.75rem;
	line-height: 1.7;
	color:       #eef3f8;
}

.tsr-band--closing {
	margin-top: 5rem;
}

/* Remaining years */
.tsr-history__years {
	margin-top: 6rem;
}

.tsr-history__h2 {
	margin:    0 0 1.5rem;
	font-size: 1.75rem;
	color:     var(--tsr-navy);
}

.tsr-years {
	display:               grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap:                   1rem 2rem;
	margin:                0;
	padding:               0;
	list-style:            none;
}

.tsr-years li {
	display:       flex;
	align-items:   baseline;
	gap:           1.25rem;
	padding:       1rem 1.25rem;
	border-radius: var(--tsr-radius);
	background:    var(--tsr-bg);
}

.tsr-years__y {
	min-width:   4.5rem;
	font-family: "Ubuntu", system-ui, sans-serif;
	font-size:   1.75rem;
	font-weight: 700;
	color:       var(--tsr-blue-dk);
}

.tsr-years h3 {
	margin:    0;
	font-size: 1.05rem;
	color:     var(--tsr-navy);
}

.tsr-years p {
	margin:    0.35rem 0 0;
	font-size: 0.95rem;
	color:     var(--tsr-text);
}

@media (max-width: 900px) {
	.tsr-story {
		grid-template-columns: minmax(0, 1fr);
		gap:                   1.5rem;
	}

	.tsr-story > * {
		grid-column: auto !important;
		order:       0 !important;
	}

	.tsr-story .tsr-story__media {
		order: -1 !important; /* photo first, then its text */
	}

	.tsr-trail {
		height: 4.5rem;
	}

	.tsr-trail__curve {
		display: none;
	}

	.tsr-trail__straight {
		display:     block;
		width:       0;
		height:      100%;
		margin:      0 auto;
		border-left: 3px dotted var(--tsr-blue);
	}

	.tsr-band {
		padding: 4rem 0;
	}

	.tsr-band::after {
		background: rgba(10, 22, 40, 0.74);
	}

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

/* History: About, people, photo credit (owner's texts, 2026-11-14) */
.tsr-about {
	margin: 0 0 6rem;
}

.tsr-about__title {
	max-width: 22ch;
	margin:    0.5rem 0 2rem;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.1;
	color:     var(--tsr-navy);
}

.tsr-about__text {
	columns:    2 24rem;
	column-gap: 3rem;
}

.tsr-about__text p {
	margin:       0 0 1rem;
	line-height:  1.75;
	break-inside: avoid;
}

.tsr-about__h3 {
	margin:    3rem 0 1.25rem;
	font-size: 1.5rem;
	color:     var(--tsr-navy);
}

.tsr-values {
	display:               grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap:                   1.25rem;
	margin:                0;
	padding:               0;
	list-style:            none;
}

.tsr-values li {
	padding:       1.5rem;
	border-radius: var(--tsr-radius);
	background:    var(--tsr-bg);
	box-shadow:    inset 0 4px 0 var(--tsr-blue);
}

.tsr-values h4 {
	margin:    0 0 0.6rem;
	font-size: 1.15rem;
	color:     var(--tsr-navy);
}

.tsr-values p {
	margin:      0;
	line-height: 1.65;
}

.tsr-about__closing {
	max-width:   52rem;
	margin:      2.5rem 0 0;
	font-size:   1.15rem;
	line-height: 1.7;
	color:       var(--tsr-navy);
}

.tsr-people {
	display:               grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap:                   1.25rem;
	margin:                3rem 0 0;
}

.tsr-person {
	padding:       1.5rem;
	border-radius: var(--tsr-radius);
	background:    var(--tsr-bg);
}

.tsr-person h3 {
	margin:    0 0 0.6rem;
	font-size: 1.3rem;
	color:     var(--tsr-navy);
}

.tsr-person p {
	margin:      0;
	line-height: 1.7;
}

.tsr-people__closing {
	max-width:   40rem;
	margin:      3rem auto 0;
	text-align:  center;
	font-size:   1.15rem;
	font-weight: 600;
	line-height: 1.6;
	color:       var(--tsr-navy);
}

.tsr-band__credit {
	margin:     2rem 0 -4rem;
	text-align: right;
	font-size:  0.8rem;
	color:      rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
	.tsr-values,
	.tsr-people {
		grid-template-columns: minmax(0, 1fr);
	}

	.tsr-about {
		margin-bottom: 4rem;
	}

	.tsr-band__credit {
		margin-bottom: -2.5rem;
	}
}

/* History: races in the season, under the block title */
.tsr-story__races {
	display:       inline-block;
	margin:        -0.4rem 0 1rem;
	padding:       0.3rem 0.8rem;
	border-radius: 999px;
	background:    var(--tsr-bg);
	color:         var(--tsr-navy);
	font-size:     0.9rem;
	font-weight:   700;
}

.tsr-band .tsr-story__races {
	background: rgba(255, 255, 255, 0.92);
}

/* Home hero photo (2026-11-14): photo under a navy shade; the grain stays,
   the ridge silhouette stays on top. */
.tsr-hero--photo {
	background: var(--tsr-navy);
}

.tsr-hero__photo {
	position:   absolute;
	inset:      0;
	z-index:    0;
	width:      100%;
	height:     100%;
	object-fit: cover;
}

.tsr-hero--photo::before {
	z-index:    1; /* shade above the photo */
	background:
		linear-gradient(180deg, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0.45) 40%, rgba(10, 22, 40, 0.82) 100%),
		radial-gradient(ellipse 60% 50% at 50% 48%, rgba(10, 22, 40, 0.35) 0%, transparent 70%);
}

.tsr-hero--photo::after {
	z-index: 2;
}

.tsr-hero--photo .tsr-hero__inner {
	z-index: 3;
}

/* Small line above the title: light, readable on any photo */
.tsr-hero--photo .tsr-hero__eyebrow {
	color: #cfe9f5;
}

/* Home countdown on phones: four blocks on one row (Geist is wider than the
   old Roboto, so the 4th block wrapped at 412 px). */
@media (max-width: 480px) {
	.tsr-countdown {
		flex-wrap: nowrap;
		gap:       0.5rem;
	}

	.tsr-countdown__block {
		flex:      1 1 0;
		min-width: 0;
		padding:   0.7rem 0.4rem;
	}

	.tsr-countdown__num {
		font-size: 1.85rem;
	}

	.tsr-countdown__label {
		font-size:      0.58rem;
		letter-spacing: 0.08em;
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   Home map redesign (2026-11-14): dark basemap, numbered pins, list beside
   the map; Zero to Hero cards clickable; dark sections less tall.
   ══════════════════════════════════════════════════════════════════════════ */

.tsr-map-section {
	padding-block: 4rem;
}

@media (max-width: 768px) {
	.tsr-map-section {
		padding-block: 2.5rem;
	}
}

.tsr-map-layout {
	display:               grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap:                   1rem;
	margin-top:            2rem;
}

.tsr-map-wrap {
	position:  relative;
	isolation: isolate; /* the Pirin button stays under the sticky header */
}

.tsr-map-section .tsr-map {
	height:        540px;
	margin:        0;
	border-radius: var(--tsr-radius);
	overflow:      hidden;
}

.tsr-map-pirin {
	position:      absolute;
	top:           12px;
	right:         12px;
	z-index:       500;
	min-height:    36px;
	padding:       0.4rem 0.9rem;
	border:        0;
	border-radius: 999px;
	background:    var(--tsr-white);
	color:         var(--tsr-navy);
	font:          inherit;
	font-size:     0.85rem;
	font-weight:   700;
	box-shadow:    0 4px 14px rgba(0, 0, 0, 0.35);
	cursor:        pointer;
}

/* Numbered teardrop pin */
.tsr-pin {
	display:       grid;
	place-items:   center;
	width:         34px;
	height:        34px;
	border:        3px solid var(--tsr-white);
	border-radius: 50% 50% 50% 0;
	background:    var(--tsr-blue-dk);
	box-shadow:    0 3px 10px rgba(0, 0, 0, 0.5);
	transform:     rotate(-45deg);
	transition:    transform 0.15s ease, background 0.15s ease;
}

.tsr-pin b {
	transform:   rotate(45deg);
	font-family: "Ubuntu", system-ui, sans-serif;
	font-size:   13px;
	font-weight: 700;
	color:       var(--tsr-white);
}

.tsr-pin--hist {
	background: #6b7280;
}

.leaflet-marker-icon:hover .tsr-pin,
.leaflet-marker-icon.is-on .tsr-pin {
	background: var(--tsr-orange);
	transform:  rotate(-45deg) scale(1.15);
}

.tsr-map .leaflet-popup-content hr {
	margin:     0.5rem 0;
	border:     0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* List beside the map */
.tsr-map-list {
	max-height:    540px;
	margin:        0;
	padding:       0.5rem;
	overflow-y:    auto;
	list-style:    none;
	border-radius: var(--tsr-radius);
	background:    var(--tsr-white);
}

.tsr-map-list__item {
	display:       flex;
	align-items:   center;
	gap:           0.7rem;
	width:         100%;
	padding:       0.5rem;
	border:        0;
	border-radius: 12px;
	background:    none;
	text-align:    left;
	font:          inherit;
	cursor:        pointer;
}

.tsr-map-list__item:hover,
.tsr-map-list__item:focus-visible {
	background: #eaf6fb;
}

.tsr-map-list__num {
	display:       grid;
	place-items:   center;
	flex:          0 0 auto;
	width:         1.9rem;
	height:        1.9rem;
	border-radius: 50%;
	background:    var(--tsr-blue-dk);
	color:         var(--tsr-white);
	font-family:   "Ubuntu", system-ui, sans-serif;
	font-size:     0.85rem;
	font-weight:   700;
}

.tsr-map-list__item--hist .tsr-map-list__num {
	background: #6b7280;
}

.tsr-map-list__text strong {
	display:     block;
	font-size:   0.95rem;
	line-height: 1.3;
	color:       var(--tsr-navy);
}

.tsr-map-list__text span {
	font-size: 0.8rem;
	color:     var(--tsr-muted);
}

@media (max-width: 900px) {
	.tsr-map-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.tsr-map-section .tsr-map {
		height: 420px;
	}

	.tsr-map-list {
		max-height: 320px;
	}
}

/* Zero to HERO: the whole card opens the story; the section is less tall */
.tsr-zero-section {
	padding-block: 4rem;
}

.tsr-zero-card {
	isolation: isolate;
}

.tsr-zero-card__img {
	z-index: -1;
}

.tsr-zero-card__body {
	position: static;
}

.tsr-zero-card__link::after {
	content:  '';
	position: absolute;
	inset:    0;
	z-index:  2;
}

.tsr-zero-card:has(.tsr-zero-card__link:focus-visible) {
	outline:        3px solid var(--tsr-orange);
	outline-offset: 3px;
}

@media (max-width: 768px) {
	.tsr-zero-section {
		padding-block: 2.5rem;
	}
}

/* Home: last three races with results, one compact row each (2026-11-14) */
.tsr-past-races {
	display:               grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap:                   1rem;
	margin:                0;
	padding:               0;
	list-style:            none;
}

.tsr-past-race {
	position:      relative;
	display:       flex;
	align-items:   center;
	gap:           0.9rem;
	padding:       0.75rem;
	border-radius: var(--tsr-radius);
	background:    var(--tsr-bg);
	transition:    background 0.15s ease;
}

.tsr-past-race:hover {
	background: #e6eef5;
}

.tsr-past-race__img {
	flex:          0 0 auto;
	width:         76px;
	height:        76px;
	border-radius: 12px;
	object-fit:    cover;
}

.tsr-past-race__img--none {
	display:     grid;
	place-items: center;
	background:  linear-gradient(160deg, var(--tsr-navy) 0%, #0d2040 100%);
	color:       rgba(255, 255, 255, 0.35);
	font-family: "Ubuntu", system-ui, sans-serif;
	font-size:   1.8rem;
	font-weight: 700;
}

.tsr-past-race__body {
	min-width: 0;
}

.tsr-past-race__title {
	margin:    0 0 0.1rem;
	font-size: 1.02rem;
	line-height: 1.25;
}

.tsr-past-race__title a {
	color:           var(--tsr-navy);
	text-decoration: none;
}

.tsr-past-race__title a:hover,
.tsr-past-race__title a:focus-visible {
	color:           var(--tsr-blue-dk);
	text-decoration: underline;
}

.tsr-past-race__date {
	margin:    0 0 0.35rem;
	font-size: 0.82rem;
	color:     var(--tsr-muted);
}

.tsr-past-race__dists {
	display:     flex;
	flex-wrap:   wrap;
	align-items: center;
	gap:         0 0.3rem;
	margin:      0;
	font-size:   0.85rem;
	font-weight: 700;
	color:       var(--tsr-muted);
}

.tsr-past-race__dists a {
	display:    inline-block;
	min-height: 24px;
	padding:    0.15rem 0;
	color:      var(--tsr-blue-dk);
}

.tsr-past .tsr-view-all {
	margin-top: 1.25rem;
}

@media (max-width: 900px) {
	.tsr-past-races {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   Home page tightening + footer (owner-approved mockup, 2026-11-14)
   ══════════════════════════════════════════════════════════════════════════ */

.tsr-section {
	padding-block: 3.25rem;
}

.tsr-section__title {
	margin-bottom: 1.25rem;
}

.tsr-view-all,
.tsr-past .tsr-view-all {
	margin-top: 1rem;
}

.tsr-hero {
	min-height: 68vh;
}

.tsr-zero-section,
.tsr-map-section {
	padding-block: 3.25rem;
}

.tsr-stats {
	padding-block: 2.25rem;
}

/* Upcoming = calendar cards, shorter */
.tsr-upcoming .tsr-cal-cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top:            0;
}

.tsr-upcoming .tsr-cal-card {
	height:  250px;
	padding: 0.9rem;
}

.tsr-upcoming .tsr-cal-card__mark {
	top:       22%;
	font-size: 6.5rem;
}

/* Latest results rows */
.tsr-past-race {
	padding: 0.55rem;
}

.tsr-past-race__img {
	width:  60px;
	height: 60px;
}

/* News: shorter photos, two-line excerpt */
.tsr-news .tsr-card__thumb {
	height: 130px;
}

.tsr-news .tsr-card__body {
	padding: 0.85rem 1rem;
}

.tsr-news .tsr-card__body p:not(.tsr-card__meta) {
	display:            -webkit-box;
	margin-bottom:      0.4rem;
	overflow:           hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Zero to HERO: shorter cards, title only, arrows outside the photos */
.tsr-zero-card {
	height: 220px;
}

.tsr-zero-card__excerpt {
	display: none;
}

.tsr-zero-nav--prev { left: -3.25rem; }
.tsr-zero-nav--next { right: -3.25rem; }

@media (max-width: 1300px) {
	.tsr-zero-nav--prev { left: -0.5rem; }
	.tsr-zero-nav--next { right: -0.5rem; }
}

/* Partners: logos only, one row of five (three on phones) */
.tsr-partners-strip {
	display:               grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap:                   1rem;
}

.tsr-partners-strip .tsr-partner-card {
	gap:     0.4rem;
	padding: 0.6rem 0.5rem;
}

.tsr-partners-home .tsr-partner-card__name {
	position:    absolute;
	width:       1px;
	height:      1px;
	overflow:    hidden;
	clip:        rect(0 0 0 0);
	white-space: nowrap;
}

.tsr-partners-strip img {
	width:      auto;
	max-height: 56px;
}

/* Map */
.tsr-map-section .tsr-map {
	height: 440px;
}

.tsr-map-list {
	max-height: 440px;
}

/* Footer */
.tsr-footer {
	padding:    3.5rem 0 1.5rem;
	background: var(--tsr-navy);
	color:      #cfd8e3;
}

.tsr-footer__grid {
	display:               grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
	gap:                   2rem;
	align-items:           start;
}

.tsr-footer__brand {
	display:        flex;
	flex-direction: column;
	gap:            0.75rem;
}

.tsr-footer__logo {
	width:  72px;
	height: auto;
}

.tsr-footer__word {
	margin:         0;
	font-family:    "Ubuntu", system-ui, sans-serif;
	font-size:      2.4rem;
	font-weight:    700;
	line-height:    1;
	letter-spacing: -0.01em;
	color:          var(--tsr-white);
}

.tsr-footer__word span {
	color: var(--tsr-blue);
}

.tsr-footer__tag {
	max-width: 22rem;
	margin:    0;
	font-size: 0.95rem;
	color:     #9fb0c3;
}

.tsr-footer__h {
	margin:         0 0 0.9rem;
	font-family:    "Geist", system-ui, sans-serif;
	font-size:      0.78rem;
	font-weight:    700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color:          var(--tsr-blue);
}

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

.tsr-footer__col a {
	display:         inline-block;
	min-height:      24px;
	padding:         0.1rem 0;
	color:           var(--tsr-white);
	text-decoration: none;
}

.tsr-footer__col a:hover,
.tsr-footer__col a:focus-visible {
	color:           var(--tsr-blue);
	text-decoration: underline;
}

.tsr-footer__bottom {
	display:         flex;
	flex-wrap:       wrap;
	justify-content: space-between;
	gap:             0.5rem 1rem;
	margin-top:      2.5rem;
	padding-top:     1.25rem;
	border-top:      1px solid rgba(255, 255, 255, 0.12);
}

.tsr-footer .tsr-footer__copy {
	margin:    0;
	font-size: 0.85rem;
	color:     #8798ab;
}

@media (max-width: 900px) {
	.tsr-upcoming .tsr-cal-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.tsr-upcoming .tsr-cal-card {
		height: 210px;
	}

	.tsr-map-section .tsr-map {
		height: 340px;
	}

	.tsr-map-list {
		max-height: 260px;
	}

	.tsr-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.tsr-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.tsr-section,
	.tsr-zero-section,
	.tsr-map-section {
		padding-block: 2.25rem;
	}

	.tsr-hero {
		min-height: 0;
	}

	.tsr-partners-strip {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Home partners grid: logo boxes shrink with their column (a fixed 130px
   box overflowed three columns at 360–412px) */
.tsr-partners-strip .tsr-partner-card {
	min-width: 0;
}

.tsr-partners-strip .tsr-partner-card__logo {
	width:     100%;
	max-width: 130px;
}

.tsr-partners-strip .tsr-partner-card__logo img {
	max-width: 100%;
	height:    auto;
}

/* Home partners, round 2 (owner 2026-11-14): bigger, visually even logos in
   one row. Every logo gets the same box; images are contained in it. */
.tsr-partners-strip {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap:                   1.5rem;
	align-items:           center;
}

.tsr-partners-strip .tsr-partner-card__logo {
	width:     100%;
	max-width: 190px;
	height:    96px;
	overflow:  hidden;
}

.tsr-partners-strip .tsr-partner-card__logo img {
	width:      100%;
	height:     100%;
	max-height: none;
	object-fit: contain;
}

/* Mizuno's file is a square with the wordmark small in the middle: zoom in
   so it reads at the same size as the others. */
.tsr-partner-card--mizuno .tsr-partner-card__logo img {
	transform: scale(2.1);
}

@media (max-width: 768px) {
	.tsr-partners-strip {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap:                   0.5rem;
	}

	.tsr-partners-strip .tsr-partner-card {
		padding: 0.25rem;
	}

	.tsr-partners-strip .tsr-partner-card__logo {
		height: 52px;
	}
}

/* Less space between the home sections (round 2) */
.tsr-upcoming,
.tsr-past,
.tsr-news,
.tsr-zero-section,
.tsr-map-section,
.tsr-partners-home {
	padding-block: 2.25rem;
}

.tsr-upcoming .tsr-section__title,
.tsr-past .tsr-section__title,
.tsr-news .tsr-section__title,
.tsr-zero-section .tsr-section__title,
.tsr-map-section .tsr-section__title,
.tsr-partners-home .tsr-section__title {
	margin-bottom: 1rem;
}

.tsr-map-layout {
	margin-top: 1rem;
}

@media (max-width: 768px) {
	.tsr-upcoming,
	.tsr-past,
	.tsr-news,
	.tsr-zero-section,
	.tsr-map-section,
	.tsr-partners-home {
		padding-block: 1.75rem;
	}
}

@media (max-width: 768px) {
	/* narrow box: less zoom so the Mizuno wordmark is not cut */
	.tsr-partner-card--mizuno .tsr-partner-card__logo img {
		transform: scale(1.45);
	}
}

@media (max-width: 440px) {
	.tsr-partner-card--mizuno .tsr-partner-card__logo img {
		transform: scale(1.2);
	}
}

/* Latest results: the whole row (photo, date, empty space) opens the race's
   results; the distance links stay on top and keep their own targets. */
.tsr-past-race {
	cursor: pointer;
}

.tsr-past-race__title a::after {
	content:  '';
	position: absolute;
	inset:    0;
	z-index:  1;
}

.tsr-past-race__dists a {
	position: relative;
	z-index:  2;
}

.tsr-past-race:has(.tsr-past-race__title a:focus-visible) {
	outline:        3px solid var(--tsr-blue);
	outline-offset: 2px;
}

.tsr-past-race__title a:focus-visible {
	outline: none;
}

/* Footer: five columns with "Последвай ни"; Strava club widget (2026-11-14) */
.tsr-footer__grid {
	grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
}

.tsr-footer__strava {
	display:       block;
	max-width:     100%;
	margin-top:    0.5rem;
	border:        0;
	border-radius: 12px;
}

@media (max-width: 900px) {
	.tsr-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   Header "Серия" mega menu (2026-11-14, after goldentrailseries.com)
   ══════════════════════════════════════════════════════════════════════════ */
#masthead .tsr-header-inner {
	position: relative;
}

#masthead .tsr-nav-list > .tsr-mega-item {
	position: static;
}

.tsr-mega-toggle {
	display:     inline-flex;
	align-items: center;
	gap:         0.4rem;
	min-height:  44px;
	padding:     0 0.85rem;
	border:      0;
	background:  none;
	color:       inherit;
	font:        inherit;
	font-weight: 700;
	cursor:      pointer;
}

#masthead .tsr-mega-toggle {
	color: rgba(255, 255, 255, 0.85);
}

#masthead .tsr-mega-item.is-open .tsr-mega-toggle,
#masthead .tsr-mega-toggle:hover {
	color: var(--tsr-blue);
}

.tsr-mega-toggle__chev {
	width:        0.45rem;
	height:       0.45rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform:    translateY(-2px) rotate(45deg);
	transition:   transform 0.2s ease;
}

.tsr-mega-item.is-open .tsr-mega-toggle__chev {
	transform: translateY(2px) rotate(-135deg);
}

.tsr-mega {
	position:      absolute;
	top:           calc(100% + 6px);
	left:          50%;
	z-index:       2000;
	width:         min(1060px, calc(100vw - 2rem));
	padding:       1.5rem 1.75rem 1.75rem;
	border-radius: var(--tsr-radius);
	background:    var(--tsr-white);
	box-shadow:    0 24px 60px rgba(10, 22, 40, 0.35);
	transform:     translateX(-50%);
	text-align:    left;
}

.tsr-mega[hidden] {
	display: none;
}

.tsr-mega__head {
	display:         flex;
	align-items:     baseline;
	justify-content: space-between;
	margin-bottom:   1rem;
}

.tsr-mega__title {
	margin:      0;
	font-family: "Ubuntu", system-ui, sans-serif;
	font-size:   1.25rem;
	font-weight: 700;
	color:       var(--tsr-navy);
}

#masthead .tsr-mega a {
	text-decoration: none;
}

#masthead .tsr-mega__more {
	font-size:   0.9rem;
	font-weight: 700;
	color:       var(--tsr-blue-dk);
}

.tsr-mega__main {
	display:               grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap:                   0.65rem;
	margin:                0;
	padding:               0;
	list-style:            none;
}

#masthead .tsr-mega__main a {
	display:       grid;
	place-items:   center;
	min-height:    52px;
	padding:       0.4rem;
	border:        1.5px solid var(--tsr-blue);
	border-radius: 16px;
	color:         var(--tsr-navy);
	font-weight:   600;
	text-align:    center;
	transition:    background 0.15s ease, color 0.15s ease;
}

#masthead .tsr-mega__main a:hover,
#masthead .tsr-mega__main a:focus-visible {
	background: var(--tsr-blue-dk);
	border-color: var(--tsr-blue-dk);
	color:      var(--tsr-white);
}

.tsr-mega__h {
	margin:      1.25rem 0 0.75rem;
	padding-top: 1.1rem;
	border-top:  1px solid var(--tsr-border);
	font-weight: 600;
	color:       var(--tsr-navy);
}

.tsr-mega__races {
	display:               grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap:                   0.55rem;
	margin:                0;
	padding:               0;
	list-style:            none;
}

.tsr-mega__race {
	display:        flex;
	flex-direction: column;
	padding:        0.65rem 0.85rem;
	border-radius:  14px;
	background:     var(--tsr-bg);
}

.tsr-mega__race-name {
	font-weight: 600;
	color:       var(--tsr-navy);
}

.tsr-mega__race-month {
	margin:    0.05rem 0 0.3rem;
	font-size: 0.78rem;
	color:     var(--tsr-muted);
}

.tsr-mega__race-links {
	display: flex;
	gap:     0.9rem;
}

#masthead .tsr-mega__race-links a {
	display:    inline-block;
	min-height: 24px;
	color:      var(--tsr-muted);
	font-size:  0.85rem;
}

#masthead .tsr-mega__race-links a:hover,
#masthead .tsr-mega__race-links a:focus-visible {
	color:           var(--tsr-blue-dk);
	text-decoration: underline;
}

/* Phones: the panel opens in place inside the burger menu */
@media (max-width: 768px) {
	#masthead .tsr-nav-list > .tsr-mega-item {
		width: 100%;
	}

	.tsr-mega-toggle {
		width:           100%;
		justify-content: space-between;
		padding:         0.75rem 1.25rem;
	}

	.tsr-mega {
		position:      static;
		width:         auto;
		margin:        0 0.75rem 0.75rem;
		padding:       1rem;
		transform:     none;
		box-shadow:    none;
	}

	.tsr-mega__main,
	.tsr-mega__races {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#masthead .tsr-mega__main a {
		min-height: 44px;
		font-size:  0.9rem;
	}
}

/* 9 buttons in the "Серия" panel: 5 + 4 on desktop */
.tsr-mega__main {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 768px) {
	.tsr-mega__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   /rezultati/ — calendar-style cards, 4 per row (owner, 2026-11-14)
   ══════════════════════════════════════════════════════════════════════════ */
.tsr-rez-bar {
	display:         flex;
	flex-wrap:       wrap;
	align-items:     center;
	justify-content: space-between;
	gap:             0.75rem 1rem;
	margin:          0 0 1.25rem;
}

.tsr-rez-bar .tsr-season-heading {
	margin: 0;
}

.tsr-rez-bar .tsr-toolbar {
	margin: 0;
}

.tsr-rez-bar .tsr-toolbar__label {
	position:    absolute;
	width:       1px;
	height:      1px;
	overflow:    hidden;
	clip:        rect(0 0 0 0);
	white-space: nowrap;
}

.tsr-rez-bar .tsr-select {
	border-color:  var(--tsr-blue);
	border-radius: 999px;
}

.tsr-rez-cards {
	margin: 0 0 2.5rem;
}

.tsr-rez-card {
	height: 300px;
}

.tsr-rez-card .tsr-cal-card__title {
	margin-bottom: 0.15rem;
}

/* the whole card opens the race results */
.tsr-rez-card .tsr-cal-card__title a::after {
	z-index: 1;
}


.tsr-rez-chips {
	position:   relative;
	z-index:    2; /* above the card link */
	display:    flex;
	flex-wrap:  wrap;
	gap:        0.35rem;
	margin:     0;
	padding:    0;
	list-style: none;
}

.tsr-rez-chips li {
	display:       inline-flex;
	align-items:   stretch;
	overflow:      hidden;
	border:        1px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
	font-size:     0.78rem;
	font-weight:   700;
}

.tsr-rez-chips span:not(.screen-reader-text) {
	display:     inline-flex;
	align-items: center;
	padding:     0.2rem 0.5rem;
}

.tsr-rez-chips a {
	display:         inline-flex;
	align-items:     center;
	min-height:      24px;
	padding:         0.15rem 0.5rem;
	border-left:     1px solid rgba(255, 255, 255, 0.35);
	color:           var(--tsr-white);
	text-decoration: none;
}

.tsr-rez-chips li > a:first-child {
	border-left: 0;
}

.tsr-rez-chips a:hover,
.tsr-rez-chips a:focus-visible {
	background: var(--tsr-white);
	color:      var(--tsr-navy);
}

@media (max-width: 600px) {
	.tsr-rez-card {
		height: auto;
		min-height: 230px;
	}
}

/* /rezultati/: distance count pill in brand blue (owner, 2026-11-14) */
.tsr-rez-card .tsr-cal-card__in {
	background: var(--tsr-blue-dk);
	color:      var(--tsr-white);
}

/* ══════════════════════════════════════════════════════════════════════════
   Result pages: season / race / distance bar (owner-approved 2026-11-14)
   ══════════════════════════════════════════════════════════════════════════ */
.tsr-rnav {
	position:      sticky;
	top:           94px; /* JS keeps it equal to the header height */
	z-index:       60;
	margin:        0 0 1rem;
	padding:       0.75rem 0.9rem;
	border:        1px solid var(--tsr-border);
	border-radius: var(--tsr-radius);
	background:    var(--tsr-white);
	box-shadow:    0 6px 22px rgba(10, 22, 40, 0.12);
}

.tsr-rnav__row {
	display:     flex;
	flex-wrap:   wrap;
	align-items: center;
	gap:         0.5rem 0.75rem;
}

.tsr-rnav__select {
	position:      relative;
	display:       inline-flex;
	align-items:   center;
	gap:           0.4rem;
	min-height:    42px;
	padding:       0 0.4rem 0 0.95rem;
	border:        1.5px solid var(--tsr-blue);
	border-radius: 999px;
	background:    var(--tsr-white);
}

.tsr-rnav__select-label {
	font-size: 0.85rem;
	color:     var(--tsr-muted);
}

.tsr-rnav__select select {
	min-height:  38px;
	max-width:   22rem;
	padding:     0 1.6rem 0 0.1rem;
	border:      0;
	background:  transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a1628' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.4rem center;
	font:        inherit;
	font-weight: 700;
	color:       var(--tsr-navy);
	appearance:  none;
	cursor:      pointer;
}

.tsr-rnav__select select:focus-visible {
	outline:        3px solid var(--tsr-blue);
	outline-offset: 3px;
	border-radius:  999px;
}

.tsr-rnav__steps {
	display:     flex;
	gap:         0.4rem;
	margin-left: auto;
}

.tsr-rnav__step {
	display:         inline-flex;
	align-items:     center;
	gap:             0.3rem;
	min-height:      40px;
	padding:         0 0.85rem;
	border-radius:   999px;
	background:      var(--tsr-bg);
	color:           var(--tsr-navy);
	font-size:       0.85rem;
	font-weight:     600;
	text-decoration: none;
}

.tsr-rnav__step:hover,
.tsr-rnav__step:focus-visible {
	background: #e0eef6;
}

.tsr-rnav__dists {
	display:    flex;
	flex-wrap:  wrap;
	gap:        0.5rem;
	margin:     0.65rem 0 0;
	padding:    0;
	list-style: none;
}

.tsr-rnav__dist {
	display:       inline-flex;
	align-items:   stretch;
	overflow:      hidden;
	border:        1px solid #d5dbe2;
	border-radius: 999px;
	font-size:     0.88rem;
	font-weight:   700;
}

.tsr-rnav__km {
	display:     inline-flex;
	align-items: center;
	padding:     0 0.7rem;
	background:  var(--tsr-bg);
	color:       var(--tsr-navy);
}

.tsr-rnav__dist a {
	display:         inline-flex;
	align-items:     center;
	min-height:      36px;
	padding:         0 0.8rem;
	border-left:     1px solid #d5dbe2;
	color:           var(--tsr-blue-dk);
	text-decoration: none;
}

.tsr-rnav__dist > a:first-child {
	border-left: 0;
}

.tsr-rnav__dist a:hover,
.tsr-rnav__dist a:focus-visible {
	background: #e0eef6;
}

.tsr-rnav__dist a[aria-current] {
	background: var(--tsr-blue-dk);
	color:      var(--tsr-white);
}

.tsr-rnav__all {
	display:         inline-flex;
	align-items:     center;
	min-height:      36px;
	padding:         0 0.9rem;
	border-radius:   999px;
	color:           var(--tsr-muted);
	font-size:       0.85rem;
	font-weight:     600;
	text-decoration: none;
}

.tsr-rnav__all[aria-current] {
	background: var(--tsr-blue-dk);
	color:      var(--tsr-white);
}

.tsr-rnav__compact {
	display: none;
}

@media (max-width: 768px) {
	.tsr-rnav {
		position:      relative;
		top:           auto;
		padding:       0.6rem;
		border-radius: 14px;
	}

	.tsr-rnav__select {
		flex: 1 1 100%;
	}

	.tsr-rnav__select select {
		flex:      1;
		max-width: none;
	}

	.tsr-rnav__steps {
		width:       100%;
		margin-left: 0;
		justify-content: space-between;
	}

	.tsr-rnav__dists {
		flex-wrap:  nowrap;
		overflow-x: auto;
	}

	.tsr-rnav__dist,
	.tsr-rnav__dists > li {
		flex: 0 0 auto;
	}

	/* scrolled past: one line, fixed under the header; tap opens the bar */
	.tsr-rnav.is-compact {
		position: sticky;
		top:      68px;
	}

	.tsr-rnav.is-compact .tsr-rnav__compact {
		display:         flex;
		align-items:     center;
		justify-content: space-between;
		gap:             0.5rem;
		width:           100%;
		min-height:      40px;
		padding:         0 0.4rem;
		border:          0;
		background:      none;
		font:            inherit;
		font-weight:     700;
		color:           var(--tsr-navy);
		text-align:      left;
		cursor:          pointer;
	}

	.tsr-rnav__compact > span:first-child {
		overflow:      hidden;
		white-space:   nowrap;
		text-overflow: ellipsis;
	}

	.tsr-rnav__compact-cta {
		flex:          0 0 auto;
		padding:       0.3rem 0.8rem;
		border-radius: 999px;
		background:    var(--tsr-blue-dk);
		color:         var(--tsr-white);
		font-size:     0.85rem;
	}

	.tsr-rnav.is-compact .tsr-rnav__body {
		display: none;
	}

	.tsr-rnav.is-compact.is-open .tsr-rnav__body {
		display:    block;
		margin-top: 0.5rem;
	}
}

/* Trail Series panel: row 1 = Правила, Годишен ранкинг, Бегаческа статистика
   (3 wide); row 2 = Резултати, Рекорди, Партньори (3). Трасета, Новини and
   Календар are only in the top bar (owner 2026-11-28). */
.tsr-mega__main--row1 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tsr-mega__main--row2 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 0.65rem;
}

@media (max-width: 768px) {
	.tsr-mega__main--row2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.tsr-mega__main--row1 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   /runner/ — search suggestions + runner profile (owner-approved mockup,
   2026-11-14; markup in inc/runner.php, charts in js/runner-profile.js)
   ══════════════════════════════════════════════════════════════════════════ */
.tsr-runner-search {
	position: relative;
}

.tsr-rs-list {
	position:      absolute;
	z-index:       40;
	top:           calc(100% + 6px);
	left:          0;
	right:         0;
	max-height:    min(60vh, 420px);
	margin:        0;
	padding:       0.35rem;
	overflow:      auto;
	list-style:    none;
	border-radius: var(--tsr-radius);
	background:    var(--tsr-white);
	box-shadow:    0 14px 40px rgba(10, 22, 40, 0.3);
}

.tsr-rs-list[hidden] {
	display: none;
}

.tsr-rs-opt {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	gap:             0.75rem;
	min-height:      56px;
	padding:         0.5rem 0.75rem;
	border-radius:   12px;
	cursor:          pointer;
}

.tsr-rs-opt:hover,
.tsr-rs-opt[aria-selected="true"] {
	background: #e0f4fb;
}

.tsr-rs-opt__name {
	display:     block;
	font-weight: 600;
	color:       var(--tsr-text);
}

.tsr-rs-opt__meta {
	display:   block;
	font-size: 0.8rem;
	color:     var(--tsr-muted);
}

.tsr-rs-opt__n {
	flex:        0 0 auto;
	font-size:   0.8rem;
	color:       var(--tsr-muted);
	text-align:  right;
	white-space: nowrap;
}

.tsr-rs-opt__n b {
	display:     block;
	font-family: "Ubuntu", sans-serif;
	font-size:   1.05rem;
	color:       var(--tsr-navy);
}

.tsr-rs-none {
	padding:   0.75rem;
	font-size: 0.9rem;
	color:     var(--tsr-muted);
}

/* ── summary ───────────────────────────────────────────────────────────── */
.tsr-rp-summary {
	margin:        0 0 1rem;
	padding:       1.25rem 1rem;
	border-radius: var(--tsr-radius);
	background:    radial-gradient(ellipse 70% 90% at 15% 0%, rgba(0, 170, 221, 0.28), transparent 60%),
	               linear-gradient(160deg, var(--tsr-navy), var(--tsr-navy-2));
	color:         var(--tsr-white);
}

.tsr-rp-kicker {
	margin:         0 0 0.25rem;
	font-size:      0.72rem;
	font-weight:    700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color:          var(--tsr-blue);
}

.tsr-rp-summary .tsr-rp-name {
	margin:      0;
	font-size:   clamp(1.9rem, 7vw, 3rem);
	line-height: 1.1;
	color:       var(--tsr-white);
}

.tsr-rp-sub {
	margin:    0.4rem 0 0;
	font-size: 0.95rem;
	color:     #c6d2e3;
}

.tsr-rp-sub b {
	color: var(--tsr-white);
}

.tsr-rp-aka {
	margin:    0.2rem 0 0;
	font-size: 0.8rem;
	color:     #9fb0c7;
}

.tsr-rp-insight {
	margin:        1rem 0 0;
	padding:       0.8rem 1rem;
	border-left:   3px solid var(--tsr-orange);
	border-radius: 0 12px 12px 0;
	background:    rgba(255, 255, 255, 0.07);
	font-size:     0.95rem;
	color:         #e6edf6;
}

.tsr-rp-insight b {
	color: var(--tsr-white);
}

.tsr-rp-kpis {
	display:               grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap:                   0.6rem;
	margin-top:            1rem;
}

.tsr-rp-kpi {
	padding:       0.7rem 0.85rem;
	border:        1px solid rgba(255, 255, 255, 0.1);
	border-radius: 14px;
	background:    rgba(255, 255, 255, 0.07);
}

.tsr-rp-kpi__n {
	font-family:          "Ubuntu", sans-serif;
	font-size:            1.6rem;
	font-weight:          700;
	line-height:          1.1;
	color:                var(--tsr-blue);
	font-variant-numeric: tabular-nums;
}

.tsr-rp-kpi__l {
	font-size:      0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color:          #c6d2e3;
}

.tsr-rp-kpi__s {
	font-size: 0.75rem;
	color:     #9fb0c7;
}

/* ── cards ─────────────────────────────────────────────────────────────── */
.tsr-rp-grid {
	display: grid;
	gap:     1rem;
}

.tsr-rp-card {
	min-width:     0;
	padding:       1rem;
	border:        1px solid var(--tsr-border);
	border-radius: var(--tsr-radius);
	background:    var(--tsr-white);
}

.tsr-rp-card[hidden] {
	display: none;
}

.tsr-rp-card h2 {
	margin:    0 0 0.15rem;
	font-size: 1.15rem;
}

.tsr-rp-card__sub {
	margin:    0 0 0.85rem;
	font-size: 0.85rem;
	color:     var(--tsr-muted);
}

.tsr-rp-tag {
	display:       inline-block;
	padding:       0.15rem 0.55rem;
	border-radius: 999px;
	background:    #e0f4fb;
	font-size:     0.72rem;
	font-weight:   700;
	color:         #075e80;
}

.tsr-rp-tag--ok {
	background: #dcfce7;
	color:      #14532d;
}

.tsr-rp-tag--warn {
	background: #ffedd5;
	color:      #7c2d12;
}

.tsr-rp-bar {
	height:        6px;
	margin-top:    0.3rem;
	overflow:      hidden;
	border-radius: 99px;
	background:    #dde3ea;
}

.tsr-rp-bar i {
	display:       block;
	height:        100%;
	border-radius: 99px;
	background:    var(--tsr-blue-dk);
}

/* season */
.tsr-rp-season {
	display:     flex;
	align-items: center;
	gap:         1rem;
}

.tsr-rp-ring {
	position: relative;
	flex:     0 0 auto;
	width:    92px;
	height:   92px;
}

.tsr-rp-ring svg {
	transform: rotate(-90deg);
}

.tsr-rp-ring__t {
	position:      absolute;
	inset:         0;
	display:       grid;
	place-content: center;
	font-family:   "Ubuntu", sans-serif;
	font-size:     1.35rem;
	font-weight:   700;
	line-height:   1;
	color:         var(--tsr-navy);
	text-align:    center;
}

.tsr-rp-ring__t small {
	display:     block;
	margin-top:  0.15rem;
	font-family: "Geist", sans-serif;
	font-size:   0.65rem;
	font-weight: 500;
	color:       var(--tsr-muted);
}

.tsr-rp-facts {
	margin:     0;
	padding:    0;
	list-style: none;
	font-size:  0.9rem;
}

.tsr-rp-facts li {
	margin: 0.25rem 0;
}

.tsr-rp-races {
	display:    flex;
	flex-wrap:  wrap;
	gap:        0.35rem;
	margin:     0.9rem 0 0;
	padding:    0;
	list-style: none;
}

.tsr-rp-races li {
	padding:       0.3rem 0.6rem;
	border:        1px solid var(--tsr-border);
	border-radius: 999px;
	font-size:     0.78rem;
	font-weight:   600;
}

.tsr-rp-races .is-done {
	border-color: #bbf7d0;
	background:   #dcfce7;
	color:        #14532d;
}

.tsr-rp-races .is-missed {
	color:           var(--tsr-muted);
	text-decoration: line-through;
}

.tsr-rp-races .is-next {
	border-color: var(--tsr-navy);
	background:   var(--tsr-navy);
	color:        var(--tsr-white);
}

.tsr-rp-next {
	margin-top:    0.9rem;
	padding:       0.8rem 1rem;
	border-radius: 14px;
	background:    var(--tsr-bg);
	font-size:     0.9rem;
}

.tsr-rp-next b {
	color: var(--tsr-navy);
}

.tsr-rp-cmp {
	display:               grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap:                   0.5rem;
	margin-top:            0.9rem;
}

.tsr-rp-cmp div {
	padding:       0.55rem 0.6rem;
	border-radius: 12px;
	background:    var(--tsr-bg);
	text-align:    center;
}

.tsr-rp-cmp b {
	display:              block;
	font-family:          "Ubuntu", sans-serif;
	font-size:            1.1rem;
	color:                var(--tsr-navy);
	font-variant-numeric: tabular-nums;
}

.tsr-rp-cmp span {
	font-size: 0.72rem;
	color:     var(--tsr-muted);
}

.tsr-rp-cmp em {
	display:     block;
	font-size:   0.72rem;
	font-style:  normal;
	font-weight: 700;
	color:       var(--tsr-muted);
}

.tsr-rp-cmp em.is-up {
	color: #15803d;
}

.tsr-rp-cmp em.is-down {
	color: #b45309;
}

/* charts */
.tsr-rp-chart svg {
	display:  block;
	width:    100%;
	height:   auto;
	overflow: visible;
}

.tsr-rp-chart text {
	font-family: "Geist", sans-serif;
	font-size:   10px;
	font-weight: 500;
	fill:        var(--tsr-muted);
}

.tsr-rp-legend {
	display:    flex;
	flex-wrap:  wrap;
	gap:        0.3rem 0.9rem;
	margin:     0.5rem 0 0;
	padding:    0;
	list-style: none;
	font-size:  0.78rem;
	color:      var(--tsr-muted);
}

.tsr-rp-legend i {
	display:        inline-block;
	width:          10px;
	height:         10px;
	margin-right:   0.35rem;
	border-radius:  50%;
	vertical-align: -1px;
}

.tsr-rp-readout {
	min-height:    2.6em;
	margin:        0.5rem 0 0;
	padding:       0.5rem 0.7rem;
	border-radius: 10px;
	background:    var(--tsr-bg);
	font-size:     0.82rem;
}

.tsr-rp-dot {
	cursor: pointer;
}

.tsr-rp-dot:focus {
	outline: none;
}

.tsr-rp-dot:focus-visible circle + circle,
.tsr-rp-dot.is-on circle + circle {
	stroke:       var(--tsr-navy);
	stroke-width: 3;
}

/* badges */
.tsr-rp-badges {
	display:               grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap:                   0.6rem;
	margin:                0;
	padding:               0;
	list-style:            none;
}

.tsr-rp-badge {
	display:       flex;
	align-items:   center;
	gap:           0.6rem;
	min-width:     0;
	padding:       0.65rem;
	border-radius: 14px;
	background:    var(--tsr-bg);
}

.tsr-rp-badge__i {
	display:       grid;
	flex:          0 0 auto;
	place-content: center;
	width:         44px;
	height:        44px;
	border-radius: 50%;
	background:    linear-gradient(160deg, var(--tsr-blue), var(--tsr-blue-dk));
	font-family:   "Ubuntu", sans-serif;
	font-size:     0.85rem;
	font-weight:   700;
	color:         var(--tsr-white);
}

.tsr-rp-badge.is-locked .tsr-rp-badge__i {
	background: #cfd6df;
	color:      #3f4753;
}

.tsr-rp-badge__t {
	flex:      1;
	min-width: 0;
}

.tsr-rp-badge b {
	display:     block;
	font-size:   0.85rem;
	line-height: 1.2;
}

.tsr-rp-badge span {
	display:   block;
	font-size: 0.72rem;
	color:     var(--tsr-muted);
}

/* records */
.tsr-rp-prs {
	margin:     0;
	padding:    0;
	list-style: none;
}

.tsr-rp-pr {
	display:               grid;
	grid-template-columns: 1fr auto;
	gap:                   0.1rem 0.75rem;
	padding:               0.7rem 0;
	border-top:            1px solid var(--tsr-border);
}

.tsr-rp-pr:first-child {
	border-top: 0;
}

.tsr-rp-pr__c {
	font-weight: 600;
}

.tsr-rp-pr__t {
	font-family:          "Ubuntu", sans-serif;
	font-size:            1.05rem;
	font-weight:          700;
	color:                var(--tsr-navy);
	text-align:           right;
	font-variant-numeric: tabular-nums;
}

.tsr-rp-pr__m,
.tsr-rp-pr__l {
	font-size: 0.78rem;
	color:     var(--tsr-muted);
}

.tsr-rp-pr__l {
	text-align: right;
}

.tsr-rp-pr__l b {
	color: var(--tsr-text);
}

.tsr-rp-spark {
	grid-column: 1 / -1;
	margin-top:  0.25rem;
}

/* history */
.tsr-rp-year {
	border-top: 1px solid var(--tsr-border);
}

.tsr-rp-year:first-of-type {
	border-top: 0;
}

.tsr-rp-year summary {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	gap:             0.5rem;
	min-height:      52px;
	font-weight:     700;
	list-style:      none;
	cursor:          pointer;
}

.tsr-rp-year summary::-webkit-details-marker {
	display: none;
}

.tsr-rp-year summary span {
	margin-left: auto;
	font-size:   0.82rem;
	font-weight: 500;
	color:       var(--tsr-muted);
	text-align:  right;
}

.tsr-rp-year summary::after {
	content:       "";
	flex:          0 0 auto;
	width:         0.5rem;
	height:        0.5rem;
	border-right:  2px solid var(--tsr-navy);
	border-bottom: 2px solid var(--tsr-navy);
	transform:     rotate(45deg);
	transition:    transform 0.2s;
}

.tsr-rp-year[open] summary::after {
	transform: rotate(-135deg);
}

.tsr-rp-run {
	display:               grid;
	grid-template-columns: 1fr auto;
	gap:                   0.1rem 0.75rem;
	padding:               0.6rem 0;
	border-top:            1px dashed var(--tsr-border);
}

.tsr-rp-run__e {
	font-weight: 600;
}

.tsr-rp-run__e a {
	color:           inherit;
	text-decoration: none;
}

.tsr-rp-run__e a:hover,
.tsr-rp-run__e a:focus-visible {
	color:           var(--tsr-blue-dk);
	text-decoration: underline;
}

.tsr-rp-run__t {
	font-family:          "Ubuntu", sans-serif;
	font-size:            0.95rem;
	font-weight:          700;
	text-align:           right;
	font-variant-numeric: tabular-nums;
}

.tsr-rp-run__k,
.tsr-rp-run__p {
	font-size: 0.78rem;
	color:     var(--tsr-muted);
}

.tsr-rp-run__p {
	text-align: right;
}

.tsr-rp-run .tsr-rp-bar {
	grid-column: 1 / -1;
}

.tsr-rp-report {
	margin:    1.25rem 0 0;
	font-size: 0.85rem;
	color:     var(--tsr-muted);
}

@media (min-width: 720px) {
	.tsr-rp-kpis {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tsr-rp-badges {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.tsr-rp-summary {
		padding: 1.75rem;
	}

	.tsr-rp-kpis {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}

	.tsr-rp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap:                   1.25rem;
	}

	.tsr-rp-span {
		grid-column: 1 / -1;
	}

	.tsr-rp-card {
		padding: 1.35rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsr-rp-year summary::after {
		transition: none;
	}
}

/* /pravila/: distance range beside the category name */
.tsr-scoring-card__title small {
	display:     block;
	font-size:   0.8rem;
	font-weight: 500;
	opacity:     0.8;
}

/* ── Menu fixes (owner, 2026-11-17) ───────────────────────────────────────
   1. Phones: the "Новини" pill is 44 px tall (tap target) but its text sat at
      the top — centre it.
   2. "Trail Series" panel buttons: filled blue, dark blue on hover. #0077aa
      keeps white text readable (5:1); the hover blue is darker still. */
@media (max-width: 768px) {
	#masthead .tsr-nav-list > .menu-highlight > a {
		display:         inline-flex;
		align-items:     center;
		justify-content: center;
		align-self:      flex-start;
		line-height:     1.2;
	}
}

#masthead .tsr-mega__main a {
	border-color: #0077aa;
	background:   #0077aa;
	color:        var(--tsr-white);
}

#masthead .tsr-mega__main a:hover,
#masthead .tsr-mega__main a:focus-visible {
	border-color: #0a3d62;
	background:   #0a3d62;
	color:        var(--tsr-white);
}

/* ── Трасета — race cards (design A, 2026-11-19) ──────────────────────────────
   One card per race: calendar photo, month and place, then one row per
   distance. Category colours: short green, medium blue, long red, the
   7 Hills Hard Core 26 km dark red (.tsr-trk--xl). Colours pass 4.5:1 on white. */
.tsr-tc {
	--tc-short:  #15803d;
	--tc-medium: #0077aa;
	--tc-long:   #dc2626;
	--tc-xl:     #7f1d1d;
}
.tsr-tc__bar {
	display:     flex;
	flex-wrap:   wrap;
	gap:         0.5rem;
	margin:      0 0 1rem;
}
.tsr-tc__chip {
	display:       inline-flex;
	align-items:   center;
	gap:           0.4rem;
	min-height:    44px;
	padding:       0 1rem;
	border:        1.5px solid var(--tsr-border);
	border-radius: 999px;
	background:    var(--tsr-white);
	color:         var(--tsr-navy);
	font:          600 0.9rem/1 Geist, system-ui, sans-serif;
	cursor:        pointer;
}
.tsr-tc__chip small {
	font-weight: 500;
	color:       var(--tsr-muted);
}
.tsr-tc__chip:hover {
	border-color: var(--tsr-navy);
}
.tsr-tc__chip[aria-pressed="true"] {
	background:   var(--tsr-navy);
	border-color: var(--tsr-navy);
	color:        #fff;
}
.tsr-tc__chip[aria-pressed="true"] small {
	color: #cfd8e3;
}
.tsr-tc__chip:focus-visible,
.tsr-trk__open:focus-visible,
.tsr-tc__old summary:focus-visible {
	outline:        3px solid var(--tsr-blue-dk);
	outline-offset: 2px;
}
.tsr-tc__dot {
	width:         10px;
	height:        10px;
	border-radius: 50%;
	display:       inline-block;
}
.tsr-tc__dot--short  { background: var(--tc-short); }
.tsr-tc__dot--medium { background: var(--tc-medium); }
.tsr-tc__dot--long   { background: var(--tc-long); }
.tsr-tc__sub {
	margin:    0 0 1rem;
	color:     var(--tsr-muted);
	font-size: 0.9rem;
}
.tsr-tc__h2 {
	margin: 2.5rem 0 0.3rem;
	font:   700 1.4rem/1.2 Ubuntu, sans-serif;
	color:  var(--tsr-navy);
}
.tsr-tc__grid {
	display:               grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap:                   1.25rem;
	align-items:           start;
}
.tsr-tc__card {
	min-width:     0;
	overflow:      hidden;
	border:        1px solid var(--tsr-border);
	border-radius: 20px;
	background:    var(--tsr-white);
}
.tsr-tc__top {
	position:    relative;
	isolation:   isolate;
	display:     flex;
	align-items: flex-end;
	min-height:  5.5rem;
	padding:     1rem 1.1rem;
	color:       #fff;
	background:  linear-gradient(160deg, var(--tsr-navy), var(--tsr-navy-2));
}
.tsr-tc__card--photo .tsr-tc__top {
	height: 170px;
}
.tsr-tc__img {
	position:   absolute;
	inset:      0;
	z-index:    -2;
	width:      100%;
	height:     100%;
	object-fit: cover;
}
.tsr-tc__card--photo .tsr-tc__top::after {
	content:    '';
	position:   absolute;
	inset:      0;
	z-index:    -1;
	background: linear-gradient(to bottom, rgba(10, 22, 40, 0.1), rgba(10, 22, 40, 0.85));
}
.tsr-tc__name {
	margin: 0;
	font:   700 1.45rem/1.1 Ubuntu, sans-serif;
	color:  #fff;
}
.tsr-tc__place {
	margin:    0.2rem 0 0;
	font-size: 0.85rem;
	color:     #dbe5f1;
}
.tsr-tc__month {
	position:       absolute;
	top:            0.9rem;
	left:           1rem;
	padding:        0.3rem 0.65rem;
	border-radius:  12px;
	background:     #fff;
	color:          var(--tsr-navy);
	font:           700 0.72rem Ubuntu, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.tsr-tc__rows {
	margin:     0;
	padding:    0;
	list-style: none;
}
.tsr-trk {
	--c:                   var(--tsr-muted);
	position:              relative;
	display:               grid;
	grid-template-columns: 4.8rem minmax(0, 1fr) auto;
	gap:                   0.25rem 0.85rem;
	align-items:           center;
	padding:               0.7rem 1.1rem 0.7rem 1.25rem;
	border-top:            1px solid var(--tsr-border);
	cursor:                pointer;
}
.tsr-tc__rows > .tsr-trk:first-child {
	border-top: 0;
}
.tsr-trk::before {
	content:       '';
	position:      absolute;
	left:          0;
	top:           0.6rem;
	bottom:        0.6rem;
	width:         4px;
	border-radius: 0 4px 4px 0;
	background:    var(--c);
}
.tsr-trk--short  { --c: var(--tc-short); }
.tsr-trk--medium { --c: var(--tc-medium); }
.tsr-trk--long   { --c: var(--tc-long); }
.tsr-trk--xl     { --c: var(--tc-xl); }
.tsr-trk[hidden] {
	display: none;
}
.tsr-trk:hover {
	background: var(--tsr-bg);
}
.tsr-trk__open {
	padding:    0;
	border:     0;
	background: none;
	color:      var(--tsr-navy);
	font:       700 1.15rem/1.1 Ubuntu, sans-serif;
	text-align: left;
	cursor:     pointer;
	white-space: nowrap;
}
.tsr-trk__open::after { /* the whole row is the click target */
	content:  '';
	position: absolute;
	inset:    0;
}
.tsr-trk__km small {
	display:        block;
	margin-top:     0.15rem;
	color:          var(--c);
	font:           700 0.68rem Geist, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.tsr-trk__mid {
	min-width: 0;
}
.tsr-trk__stats {
	display:     flex;
	flex-wrap:   wrap;
	align-items: center;
	gap:         0.15rem 0.75rem;
	font-size:   0.82rem;
	color:       var(--tsr-muted);
}
.tsr-trk__stats b {
	color: var(--tsr-navy);
}
.tsr-trk__stats .tsr-star {
	font-size: 0.8rem;
}
.tsr-trk__laps {
	padding:       0.1rem 0.5rem;
	border-radius: 999px;
	background:    var(--tsr-bg);
	font-size:     0.72rem;
	font-weight:   600;
}
.tsr-trk__spark {
	display:    block;
	width:      100%;
	height:     30px;
	margin-top: 0.3rem;
	color:      var(--c);
}
.tsr-trk__go {
	color:       var(--tsr-blue-dk);
	font-size:   1.4rem;
	font-weight: 700;
}
.tsr-tc__old {
	border-top: 1px solid var(--tsr-border);
}
.tsr-tc__old[hidden] {
	display: none;
}
.tsr-tc__old summary {
	padding:   0.65rem 1.25rem;
	color:     var(--tsr-muted);
	font-size: 0.85rem;
	font-weight: 600;
	cursor:    pointer;
}
.tsr-tc__old .tsr-trk {
	opacity: 0.8;
}
.tsr-tc__old .tsr-tc__rows > .tsr-trk:first-child {
	border-top: 1px solid var(--tsr-border);
}
.tsr-tc__none {
	padding:       1.5rem;
	border-radius: var(--tsr-radius);
	background:    var(--tsr-white);
	color:         var(--tsr-muted);
	text-align:    center;
}
@media (max-width: 900px) {
	.tsr-tc__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 600px) {
	.tsr-tc__chip small {
		display: none;
	}
	.tsr-tc__card--photo .tsr-tc__top {
		height: 150px;
	}
	.tsr-trk {
		grid-template-columns: 4rem minmax(0, 1fr) auto;
		padding:               0.65rem 0.9rem 0.65rem 1.1rem;
	}
}

/* ── Трасета — track modal, design 2026-11-19 ─────────────────────────────────
   Heading (race · month · place, "13 км" + category pill + stars), key-number
   tiles, map + profile, typical finish times + finishers per year, and an
   action bar that stays at the bottom of the dialog while it scrolls. */
.tsr-modal__dialog {
	width:          min(980px, 100%);
	padding-bottom: 0;
	--tc-short:  #15803d;
	--tc-medium: #0077aa;
	--tc-long:   #dc2626;
	--tc-xl:     #7f1d1d;
}
.tsr-md__head {
	margin:        -0.25rem 2.75rem 0 0;
}
.tsr-md__kicker {
	margin:    0;
	color:     var(--tsr-muted);
	font:      600 0.85rem/1.35 Geist, system-ui, sans-serif;
}
.tsr-md__kicker:empty {
	display: none;
}
.tsr-md__head .tsr-modal__title {
	display:     flex;
	flex-wrap:   wrap;
	align-items: center;
	gap:         0.35rem 0.65rem;
	margin:      0.2rem 0 0;
	font:        700 1.9rem/1.15 Ubuntu, sans-serif;
}
.tsr-md__pill {
	padding:        0.28rem 0.65rem;
	border-radius:  999px;
	background:     var(--tsr-muted);
	color:          #fff;
	font:           700 0.72rem/1 Geist, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.tsr-md__pill--short  { background: var(--tc-short); }
.tsr-md__pill--medium { background: var(--tc-medium); }
.tsr-md__pill--long   { background: var(--tc-long); }
.tsr-md__pill--xl     { background: var(--tc-xl); }
.tsr-md__diff {
	color: var(--tsr-muted);
	font:  600 0.85rem Geist, sans-serif;
}
.tsr-md__diff b {
	color:          var(--tsr-orange);
	letter-spacing: 1px;
}
.tsr-md__diff i {
	color:          var(--tsr-border);
	font-style:     normal;
	letter-spacing: 1px;
}
.tsr-md__laps {
	padding:       0.25rem 0.6rem;
	border-radius: 999px;
	background:    var(--tsr-bg);
	color:         var(--tsr-navy);
	font:          600 0.75rem Geist, sans-serif;
}
.tsr-md__kpis {
	display:               grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap:                   0.6rem;
	margin:                1.1rem 0 1rem;
}
.tsr-md__kpi {
	padding:       0.7rem 0.8rem;
	border-radius: 14px;
	background:    var(--tsr-bg);
}
.tsr-md__kpi span {
	display:        block;
	color:          var(--tsr-muted);
	font:           600 0.68rem Geist, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.tsr-md__kpi b {
	display:    block;
	margin-top: 0.15rem;
	color:      var(--tsr-navy);
	font:       700 1.2rem/1.2 Ubuntu, sans-serif;
}
.tsr-md__kpi small {
	color:     var(--tsr-muted);
	font-size: 0.72rem;
}
.tsr-md__sec {
	display:               grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap:                   1.5rem;
	margin-top:            1.25rem;
	padding-top:           1.1rem;
	border-top:            1px solid var(--tsr-border);
}
.tsr-md__sec[hidden] {
	display: none;
}
.tsr-md__sec h3 {
	margin: 0 0 0.2rem;
	color:  var(--tsr-navy);
	font:   700 1.1rem Ubuntu, sans-serif;
}
.tsr-md__note {
	margin:    0 0 0.9rem;
	color:     var(--tsr-muted);
	font-size: 0.82rem;
}
.tsr-md__note--pace {
	margin-top: 2.6rem;
}
.tsr-md__band {
	position: relative;
	height:   54px;
	margin:   1.7rem 2.2rem 0.4rem;
}
.tsr-md__band-track,
.tsr-md__band-fill {
	position:      absolute;
	top:           22px;
	height:        10px;
	border-radius: 99px;
}
.tsr-md__band-track {
	left:       -2.2rem;
	right:      -2.2rem;
	background: #e6ebf0;
}
.tsr-md__band-fill {
	background: linear-gradient(90deg, #7cc4e4, #0077aa, #7cc4e4);
}
.tsr-md__band-mid {
	position:      absolute;
	top:           14px;
	width:         3px;
	height:        26px;
	margin-left:   -1.5px;
	border-radius: 2px;
	background:    var(--tsr-navy);
}
.tsr-md__band-lbl {
	position:   absolute;
	top:        38px;
	transform:  translateX(-50%);
	color:      var(--tsr-muted);
	font-size:  0.72rem;
	text-align: center;
	white-space: nowrap;
}
.tsr-md__band-lbl--top {
	top: -24px;
}
.tsr-md__band-lbl b {
	display: block;
	color:   var(--tsr-navy);
	font:    700 0.95rem Ubuntu, sans-serif;
}
.tsr-md__yrs {
	display:     flex;
	align-items: flex-end;
	gap:         5px;
	height:      92px;
}
.tsr-md__yr {
	flex:           1;
	min-width:      0;
	display:        flex;
	flex-direction: column;
	align-items:    center;
	gap:            3px;
}
.tsr-md__stk {
	display:        flex;
	flex-direction: column;
	width:          100%;
	max-width:      26px;
	border-radius:  5px 5px 0 0;
	overflow:       hidden;
}
.tsr-md__stk i,
.tsr-md__leg i {
	display: block;
}
.tsr-md__yr span {
	color:     var(--tsr-muted);
	font-size: 0.66rem;
}
.tsr-md__yrs .m, .tsr-md__leg .m { background: var(--tsr-navy); }
.tsr-md__yrs .f, .tsr-md__leg .f { background: var(--tsr-orange); }
.tsr-md__yrs .o, .tsr-md__leg .o { background: #9aa5b1; }
.tsr-md__leg {
	display:   flex;
	flex-wrap: wrap;
	gap:       0.4rem 0.9rem;
	margin-top: 0.5rem;
	color:     var(--tsr-muted);
	font-size: 0.75rem;
}
.tsr-md__leg i {
	display:       inline-block;
	width:         9px;
	height:        9px;
	margin-right:  0.3rem;
	border-radius: 2px;
}
.tsr-md__acts {
	position:   sticky;
	bottom:     0;
	z-index:    2;
	display:    flex;
	flex-wrap:  wrap;
	gap:        0.5rem;
	margin:     1.4rem -1.5rem 0;
	padding:    0.9rem 1.5rem;
	border-top: 1px solid var(--tsr-border);
	background: rgba(255, 255, 255, 0.97);
}
.tsr-md__sp {
	flex: 1;
}
.tsr-md__btn {
	display:       inline-flex;
	align-items:   center;
	justify-content: center;
	gap:           0.4rem;
	min-height:    44px;
	padding:       0 1rem;
	border:        1.5px solid var(--tsr-border);
	border-radius: 999px;
	background:    #fff;
	color:         var(--tsr-navy);
	font:          700 0.85rem/1 Geist, system-ui, sans-serif;
	text-decoration: none;
	cursor:        pointer;
}
.tsr-md__btn[hidden] {
	display: none;
}
.tsr-md__btn:hover {
	border-color: var(--tsr-navy);
	color:        var(--tsr-navy);
}
.tsr-md__btn--gpx {
	background:   #0077aa;
	border-color: #0077aa;
	color:        #fff;
}
.tsr-md__btn--gpx:hover {
	background:   #0a3d62;
	border-color: #0a3d62;
	color:        #fff;
}
.tsr-md__btn--strava {
	background:   #fc4c02;
	border-color: #fc4c02;
	color:        #fff;
}
.tsr-md__btn--strava:hover {
	background:   #d94102;
	border-color: #d94102;
	color:        #fff;
}
.tsr-md__btn--garmin {
	background:   #000;
	border-color: #000;
	color:        #fff;
}
.tsr-md__btn--garmin:hover {
	background:   #333;
	border-color: #333;
	color:        #fff;
}
.tsr-md__btn:focus-visible {
	outline:        3px solid var(--tsr-blue-dk);
	outline-offset: 2px;
}
@media (max-width: 700px) {
	.tsr-modal {
		padding: 0;
	}
	.tsr-modal__dialog {
		width:         100%;
		height:        100dvh;
		max-height:    100dvh;
		border-radius: 0;
		padding:       1rem 1rem 0;
	}
	.tsr-md__head {
		margin: 0 3rem 0 0;
	}
	.tsr-md__head .tsr-modal__title {
		font-size: 1.55rem;
	}
	.tsr-md__kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tsr-md__kpi:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
	.tsr-md__sec {
		grid-template-columns: minmax(0, 1fr);
	}
	.tsr-md__acts {
		margin:  1.2rem -1rem 0;
		padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
	}
	.tsr-md__sp {
		display: none;
	}
	.tsr-md__acts .tsr-md__btn {
		flex: 1 1 auto;
	}
}

/* ── Page hero with a photo (/istoriya/, design A 2026-11-19) ───────────────────
   Square corners like every page hero; photo under a navy gradient so the
   white text keeps its contrast; logo, title, subtitle and key numbers. */
.tsr-page-hero--photo {
	position:    relative;
	isolation:   isolate;
	display:     flex;
	align-items: flex-end;
	min-height:  440px;
	padding:     3rem 0 2.25rem;
	background:  var(--tsr-navy);
}
.tsr-page-hero--photo .tsr-container {
	width: 100%;
}
.tsr-page-hero__img {
	position:        absolute;
	inset:           0;
	z-index:         -2;
	width:           100%;
	height:          100%;
	object-fit:      cover;
	object-position: center 40%;
}
.tsr-page-hero--photo::after {
	content:    '';
	position:   absolute;
	inset:      0;
	z-index:    -1;
	background: linear-gradient(to bottom, rgba(10, 22, 40, 0.25) 0%, rgba(10, 22, 40, 0.55) 45%, rgba(10, 22, 40, 0.92) 100%);
}
.tsr-page-hero__brand {
	display:     flex;
	align-items: center;
	gap:         1.1rem;
}
.tsr-page-hero__logo {
	flex:       none;
	width:      92px;
	height:     92px;
	padding:    6px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.tsr-page-hero__logo img {
	display:    block;
	width:      100%;
	height:     100%;
	object-fit: contain;
}
.tsr-page-hero--photo .tsr-page-hero__kicker {
	margin-bottom: 0.4rem;
	color:         #7fd3f0;
}
.tsr-page-hero--photo .tsr-page-hero__title {
	margin:    0;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	line-height: 1;
}
.tsr-page-hero--photo .tsr-page-hero__subtitle {
	margin-top: 0.6rem;
	color:      rgba(255, 255, 255, 0.88);
	font-size:  1.05rem;
}
.tsr-page-hero__nums {
	display:     flex;
	flex-wrap:   wrap;
	gap:         0.75rem 2.5rem;
	margin:      1.75rem 0 0;
	padding-top: 1.25rem;
	border-top:  1px solid rgba(255, 255, 255, 0.22);
}
.tsr-page-hero__nums div {
	display:        flex;
	flex-direction: column-reverse;
}
.tsr-page-hero__nums dt {
	color:          rgba(255, 255, 255, 0.8);
	font-size:      0.8rem;
	font-weight:    500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.tsr-page-hero__nums dd {
	margin: 0;
	color:  #fff;
	font:   800 1.9rem/1.1 Ubuntu, sans-serif;
}
@media (max-width: 600px) {
	.tsr-page-hero--photo {
		min-height: 380px;
	}
	.tsr-page-hero__logo {
		width:  68px;
		height: 68px;
	}
	.tsr-page-hero__nums {
		gap: 0.75rem 1.5rem;
	}
	.tsr-page-hero__nums dd {
		font-size: 1.5rem;
	}
}

/* Footer photo credit: "Снимки:" + KrisoK logo linking to the photographer. */
.tsr-footer__credit {
	display:     flex;
	align-items: center;
	gap:         0.55rem;
}
.tsr-footer__credit a {
	display:       inline-flex;
	padding:       2px;
	border-radius: 4px;
	opacity:       0.85;
	transition:    opacity 0.15s;
}
.tsr-footer__credit a:hover,
.tsr-footer__credit a:focus-visible {
	opacity: 1;
}
.tsr-footer__credit a:focus-visible {
	outline: 2px solid var(--tsr-blue);
}
.tsr-footer__credit img {
	display: block;
	width:   74px;
	height:  auto;
}

/* ══════════════════════════════════════════════════════════════════════════
   Single event page (single-ajde_events.php, owner-approved 2026-11-19)
   ══════════════════════════════════════════════════════════════════════════ */
.tsr-ev {
	--tc-short:  #15803d;
	--tc-medium: #0077aa;
	--tc-long:   #dc2626;
	--tc-xl:     #7f1d1d;
	--kom:       var(--tsr-orange);
	background:  var(--tsr-white);
}
.tsr-ev--short  { --c: var(--tc-short); }
.tsr-ev--medium { --c: var(--tc-medium); }
.tsr-ev--long   { --c: var(--tc-long); }
.tsr-ev--xl     { --c: var(--tc-xl); }

.tsr-ev__hero {
	position:    relative;
	isolation:   isolate;
	display:     flex;
	align-items: flex-end;
	min-height:  460px;
	padding:     6rem 0 2rem;
	overflow:    hidden;
	color:       #fff;
	background:  linear-gradient(160deg, var(--tsr-navy), var(--tsr-navy-2));
}
.tsr-ev__hero .tsr-container { width: 100%; }
.tsr-ev__hero-img {
	position:   absolute;
	inset:      0;
	z-index:    -2;
	width:      100%;
	height:     100%;
	object-fit: cover;
}
.tsr-ev__hero--photo::after {
	content:    "";
	position:   absolute;
	inset:      0;
	z-index:    -1;
	background: linear-gradient(to bottom, rgba(10, 22, 40, .25) 0%, rgba(10, 22, 40, .45) 40%, rgba(10, 22, 40, .95) 100%);
}
.tsr-ev__kicker {
	margin:         0 0 .75rem;
	color:          #7fd3f0;
	font-size:      .72rem;
	font-weight:    700;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.tsr-ev__pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.tsr-ev__date {
	display:        inline-flex;
	align-items:    baseline;
	gap:            .35rem;
	padding:        .4rem .75rem;
	border-radius:  14px;
	background:     #fff;
	color:          var(--tsr-navy);
	font:           700 .78rem Ubuntu, sans-serif;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.tsr-ev__date b { font-size: 1.5rem; letter-spacing: 0; }
.tsr-ev__in {
	align-self:    center;
	padding:       .35rem .75rem;
	border-radius: 999px;
	background:    var(--tsr-blue-dk);
	color:         #fff;
	font-size:     .8rem;
	font-weight:   700;
}
.tsr-ev__in--past { background: rgba(255, 255, 255, .18); }
.tsr-ev__title {
	margin: 0;
	color:  #fff;
	font:   700 clamp(2.1rem, 6vw, 3.6rem)/1.05 Ubuntu, sans-serif;
}
.tsr-ev__where { margin: .6rem 0 0; color: #dbe5f1; font-size: 1.05rem; }
.tsr-ev__where b { color: #fff; }
.tsr-ev__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.tsr-ev__btn {
	display:         inline-flex;
	align-items:     center;
	gap:             .45rem;
	min-height:      46px;
	padding:         0 1.15rem;
	border:          1px solid rgba(255, 255, 255, .35);
	border-radius:   999px;
	background:      rgba(255, 255, 255, .12);
	color:           #fff !important;
	font-size:       .92rem;
	font-weight:     700;
	text-decoration: none !important;
}
.tsr-ev__btn svg { width: 18px; height: 18px; flex: none; }
.tsr-ev__btn:hover, .tsr-ev__btn:focus-visible { background: rgba(255, 255, 255, .22); }
.tsr-ev__btn--main { border-color: var(--tsr-orange); background: var(--tsr-orange); }
.tsr-ev__btn--main:hover, .tsr-ev__btn--main:focus-visible { background: #a63c0b; }

.tsr-ev__tabs {
	position:      sticky;
	top:           94px; /* the inline script keeps it under the header */
	z-index:       60;
	border-bottom: 1px solid var(--tsr-border);
	background:    #fff;
}
.tsr-ev__tabs ul {
	display:         flex;
	gap:             .25rem;
	margin:          0 auto;
	list-style:      none;
	overflow-x:      auto;
	scrollbar-width: none;
}
.tsr-ev__tabs a {
	display:         inline-flex;
	align-items:     center;
	min-height:      52px;
	padding:         0 .9rem;
	border-bottom:   3px solid transparent;
	color:           var(--tsr-navy);
	font-size:       .92rem;
	font-weight:     600;
	white-space:     nowrap;
	text-decoration: none;
}
.tsr-ev__tabs a.is-on, .tsr-ev__tabs a:hover { border-color: var(--tsr-blue); color: var(--tsr-blue-dk); }

.tsr-ev__main { padding: 1.25rem 0 3.5rem; }
.tsr-ev__desc { margin: 1rem 0 0; max-width: 760px; }
.tsr-ev__sec { padding-top: 2.25rem; scroll-margin-top: var(--tsr-ev-offset, 160px); }
.tsr-ev__h2 { margin: 0 0 .25rem; color: var(--tsr-navy); font: 700 1.6rem Ubuntu, sans-serif; }
.tsr-ev__h3 { margin: 1.25rem 0 .25rem; color: var(--tsr-navy); font: 700 1.15rem Ubuntu, sans-serif; }
.tsr-ev__sub { margin: 0 0 1.1rem; color: var(--tsr-muted); font-size: .92rem; }
.tsr-ev__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tsr-ev__grid > * { min-width: 0; }
.tsr-ev__link { color: var(--tsr-blue-dk); font-size: .88rem; font-weight: 700; text-decoration: none; }
.tsr-ev__link:hover { text-decoration: underline; }

/* distances */
.tsr-ev__d {
	padding:       1.1rem;
	border:        1px solid var(--tsr-border);
	border-top:    5px solid var(--c, var(--tsr-blue));
	border-radius: var(--tsr-radius);
	background:    #fff;
	color:         var(--c, var(--tsr-blue));
}
.tsr-ev__d-head, .tsr-ev__rec-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tsr-ev__d-km { margin: 0; color: var(--tsr-navy); font: 800 1.9rem/1 Ubuntu, sans-serif; }
.tsr-ev__cat {
	padding:       .2rem .6rem;
	border-radius: 999px;
	background:    color-mix(in srgb, var(--c) 12%, #fff);
	color:         color-mix(in srgb, var(--c) 75%, #000);
	font-size:     .72rem;
	font-weight:   700;
}
.tsr-ev__d-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0 .5rem; }
.tsr-ev__d-stats dt { color: var(--tsr-muted); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
.tsr-ev__d-stats dd { margin: 0; color: var(--tsr-navy); font: 700 1.05rem Ubuntu, sans-serif; }
.tsr-ev__d .tsr-trk__spark { display: block; width: 100%; height: 46px; margin: .25rem 0 .6rem; }
.tsr-ev__d-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin: 0; }
.tsr-ev__laps { padding: .15rem .55rem; border-radius: 999px; background: var(--tsr-bg); color: var(--tsr-navy); font-size: .78rem; font-weight: 700; }
.tsr-ev__d-foot .tsr-ev__link { margin-left: auto; }

/* programme */
.tsr-ev__prog {
	display:       grid;
	gap:           .1rem;
	max-width:     760px;
	margin:        .75rem 0 0;
	padding:       .4rem 1.25rem;
	border:        1px solid var(--tsr-border);
	border-radius: var(--tsr-radius);
	background:    var(--tsr-bg);
	list-style:    none;
}
.tsr-ev__prog li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--tsr-border); }
.tsr-ev__prog li:first-child { border-top: 0; }
.tsr-ev__prog-t { color: var(--tsr-navy); font: 700 1rem Ubuntu, sans-serif; font-variant-numeric: tabular-nums; }

/* records — KOM / QOM (variant Г) */
.tsr-ev__rec { overflow: hidden; border: 1px solid var(--tsr-border); border-top: 5px solid var(--c, var(--tsr-blue)); border-radius: var(--tsr-radius); background: #fff; }
.tsr-ev__rec-head { padding: 1rem 1.1rem .75rem; }
.tsr-ev__rec .tsr-ev__d-km { font-size: 1.45rem; }
.tsr-ev__since {
	display:       inline-block;
	margin-top:    .3rem;
	padding:       .1rem .5rem;
	border-radius: 999px;
	background:    color-mix(in srgb, var(--c) 12%, #fff);
	color:         color-mix(in srgb, var(--c) 75%, #000);
	font-size:     .72rem;
	font-weight:   700;
}
.tsr-ev__rec-meta { margin: 0; color: var(--tsr-muted); font-size: .78rem; text-align: right; }
.tsr-ev__rec-row {
	display:               grid;
	grid-template-columns: 3rem minmax(0, 1fr) auto;
	gap:                   .15rem .7rem;
	align-items:           center;
	padding:               .8rem 1.1rem;
	border-top:            1px solid #eef1f4;
}
.tsr-ev__kom {
	display:         flex;
	grid-row:        span 2;
	flex-direction:  column;
	align-items:     center;
	justify-content: center;
	gap:             .12rem;
	color:           var(--kom);
	font:            900 .95rem/1 Ubuntu, sans-serif;
	letter-spacing:  .04em;
}
.tsr-ev__kom svg { width: 1.7rem; height: 1.25rem; }
.tsr-ev__rec-name { overflow: hidden; color: var(--tsr-navy); font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.tsr-ev__rec-name:hover { text-decoration: underline; }
.tsr-ev__rec-time { color: var(--tsr-navy); font: 800 1.35rem/1 Ubuntu, sans-serif; font-variant-numeric: tabular-nums; text-align: right; }
.tsr-ev__rec-sm { color: var(--tsr-muted); font-size: .78rem; }
.tsr-ev__rec-sm--r { text-align: right; }
.tsr-ev__note { margin: 1rem 0 0; color: var(--tsr-muted); font-size: .82rem; }

/* layout: content + right sidebar (mockup v3) */
.tsr-ev__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.tsr-ev__side { position: sticky; top: var(--tsr-ev-offset, 160px); display: grid; gap: 1rem; padding-top: 2.25rem; }
.tsr-ev__card { padding: 1.15rem; border: 1px solid var(--tsr-border); border-radius: var(--tsr-radius); background: #fff; box-shadow: 0 6px 24px rgba(10, 22, 40, .06); }
.tsr-ev__side-h { margin: 0 0 .6rem; color: var(--tsr-navy); font: 700 1.05rem Ubuntu, sans-serif; }
.tsr-ev__facts { display: grid; gap: .5rem; margin: 0; }
.tsr-ev__facts div { display: flex; justify-content: space-between; gap: .75rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--tsr-border); font-size: .9rem; }
.tsr-ev__facts div:last-child { padding-bottom: 0; border-bottom: 0; }
.tsr-ev__facts dt { color: var(--tsr-muted); }
.tsr-ev__facts dd { margin: 0; color: var(--tsr-navy); font-weight: 700; text-align: right; }
.tsr-ev__reg {
	display:         inline-flex;
	justify-content: center;
	align-items:     center;
	min-height:      48px;
	margin-top:      1rem;
	padding:         0 1.3rem;
	border-radius:   999px;
	background:      var(--tsr-orange);
	color:           #fff !important;
	font-weight:     700;
	text-decoration: none !important;
}
.tsr-ev__reg:hover, .tsr-ev__reg:focus-visible { background: #a63c0b; }
.tsr-ev__reg--block { display: flex; box-sizing: border-box; width: 100%; }
.tsr-ev__side-link { display: block; margin-top: .7rem; color: var(--tsr-blue-dk); font-size: .88rem; font-weight: 700; text-align: center; text-decoration: none; }
.tsr-ev__cause { overflow: hidden; padding: 0; border-color: #f9c8dc; background: linear-gradient(180deg, #fff0f6, #fff); }
.tsr-ev__cause img { display: block; width: 100%; height: 150px; object-fit: cover; }
.tsr-ev__cause-in { padding: 1rem 1.15rem 1.15rem; }
.tsr-ev__cause-k { display: inline-block; margin-bottom: .45rem; padding: .15rem .6rem; border-radius: 999px; background: #be185d; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tsr-ev__cause .tsr-ev__side-h { color: #831843; }
.tsr-ev__cause p { margin: 0 0 .6rem; color: #4b5563; font-size: .88rem; line-height: 1.5; }
.tsr-ev__cause a { display: block; margin-top: .35rem; color: #be185d; font-size: .9rem; font-weight: 700; text-decoration: none; }
.tsr-ev__cause a:hover { text-decoration: underline; }

/* about */
.tsr-ev__desc { max-width: none; font-size: 1.05rem; }
.tsr-ev__with { display: inline-block; margin: .6rem 0 0; padding: .35rem .85rem; border-radius: 999px; background: var(--tsr-bg); color: #33404f; font-size: .85rem; }
.tsr-ev__hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.tsr-ev__hl article { padding: 1.1rem 1.15rem; border-radius: var(--tsr-radius); background: var(--tsr-bg); }
.tsr-ev__hl-ic { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .6rem; border-radius: 12px; background: #fff; font-size: 1.35rem; }
.tsr-ev__hl h3 { margin: 0 0 .3rem; color: var(--tsr-navy); font: 700 1.05rem Ubuntu, sans-serif; }
.tsr-ev__hl p { margin: 0; color: #4b5563; font-size: .9rem; line-height: 1.5; }

/* fees */
.tsr-ev__fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.tsr-ev__fees article { padding: 1.1rem; border: 1px solid var(--tsr-border); border-radius: var(--tsr-radius); background: #fff; }
.tsr-ev__fees article.is-main { border: 2px solid var(--tsr-orange); }
.tsr-ev__fee-amt { color: var(--tsr-navy); font: 800 1.9rem/1 Ubuntu, sans-serif; }
.tsr-ev__fees h3 { margin: .5rem 0 .2rem; color: var(--tsr-navy); font: 700 .98rem Ubuntu, sans-serif; }
.tsr-ev__fees p { margin: 0; color: var(--tsr-muted); font-size: .84rem; }

/* getting there */
.tsr-ev__go { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: .75rem; }
.tsr-ev__go--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tsr-ev__go ul { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.tsr-ev__go li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .75rem; align-items: start; }
.tsr-ev__go-ic { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: #e6f6fc; font-size: 1.1rem; }
.tsr-ev__go li b { display: block; color: var(--tsr-navy); }
.tsr-ev__go li span:not(.tsr-ev__go-ic) { color: #4b5563; font-size: .92rem; }
.tsr-ev__go figure { margin: 0; overflow: hidden; border: 1px solid var(--tsr-border); border-radius: var(--tsr-radius); }
.tsr-ev__go figure img { display: block; width: 100%; height: 280px; object-fit: cover; }
.tsr-ev__go figcaption { padding: .6rem .9rem; color: var(--tsr-muted); font-size: .82rem; }
.tsr-ev__btn2 { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; padding: 0 1.1rem; border: 1px solid var(--tsr-blue-dk); border-radius: 999px; color: var(--tsr-blue-dk) !important; font-weight: 700; text-decoration: none !important; }

/* partners */
.tsr-ev__partners { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--tsr-border); }
.tsr-ev__logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tsr-ev__logos a, .tsr-ev__logo { display: grid; place-items: center; height: 96px; padding: .8rem; border: 1px solid var(--tsr-border); border-radius: 16px; background: #fff; color: var(--tsr-navy); font-weight: 700; text-align: center; text-decoration: none; }
.tsr-ev__logos img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.tsr-ev__logos a:hover img, .tsr-ev__logos a:focus-visible img { filter: none; opacity: 1; }

@media (max-width: 1100px) {
	.tsr-ev__layout { grid-template-columns: minmax(0, 1fr); }
	.tsr-ev__side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding-top: 1.5rem; }
	.tsr-ev__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.tsr-ev__grid, .tsr-ev__hl, .tsr-ev__go--photo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.tsr-ev__side { grid-template-columns: minmax(0, 1fr); }
	.tsr-ev__fees { grid-template-columns: minmax(0, 1fr); }
	.tsr-ev__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.tsr-ev__hero { min-height: 420px; }
	.tsr-ev__title { font-size: 2rem; }
	.tsr-ev__btn { flex: 1 1 auto; justify-content: center; }
	.tsr-ev__prog li { grid-template-columns: 6rem minmax(0, 1fr); }
}

/* ══════════════════════════════════════════════════════════════════════════
   /runner/ start page before a search (owner-approved mockup 2026-11-20;
   markup: tsr_runner_overview_print() in inc/runner.php)
   ══════════════════════════════════════════════════════════════════════════ */
.tsr-rs-hero { position: relative; z-index: 2; color: #fff; background: radial-gradient(circle at 85% 20%, #12345a 0, var(--tsr-navy) 55%); }
.tsr-rs-hero .tsr-container { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.tsr-rs-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.tsr-rs-hero__k { margin: 0 0 .6rem; color: #7dd3f0; font: 700 .78rem Geist, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.tsr-rs-hero .tsr-rs-hero__title { max-width: 15ch; margin: 0; color: #fff; font: 800 clamp(2rem, 4.4vw, 3.3rem)/1.05 Ubuntu, sans-serif; }
.tsr-rs-hero__sub { max-width: 34rem; margin: .9rem 0 1.6rem; color: #d5dde7; font-size: 1.08rem; line-height: 1.5; }
.tsr-runner-search.tsr-rs-box { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; max-width: 36rem; margin: 0; padding: .45rem .45rem .45rem 1.1rem; border-radius: 999px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.tsr-rs-box svg { flex: none; width: 1.35rem; height: 1.35rem; color: var(--tsr-blue-dk); }
.tsr-rs-box input[type="search"] { flex: 1; min-width: 0; height: 3rem; margin: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: none; color: var(--tsr-text); font: 500 1.1rem Geist, sans-serif; }
.tsr-rs-box:focus-within { box-shadow: 0 18px 50px rgba(0, 0, 0, .35), 0 0 0 4px rgba(0, 170, 221, .55); }
.tsr-rs-box button { flex: none; height: 3rem; padding: 0 1.6rem; border: 0; border-radius: 999px; background: var(--tsr-orange); color: #fff; font: 700 1rem Ubuntu, sans-serif; cursor: pointer; }
.tsr-rs-box button:hover, .tsr-rs-box button:focus-visible { background: #a63c0b; }
.tsr-rs-box .tsr-rs-list { color: var(--tsr-text); }
.tsr-rs-hero__hint { margin: .85rem 0 0; color: #c3ccd8; font-size: .9rem; }
.tsr-rs-hero__ph { position: relative; }
.tsr-rs-hero__ph img { display: block; width: 100%; height: 400px; object-fit: cover; object-position: 42% 40%; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.tsr-rs-hero__credit { position: absolute; right: 12px; bottom: 8px; color: rgba(255, 255, 255, .85); font-size: .72rem; text-shadow: 0 1px 3px #000; }
.tsr-rs-fl { position: absolute; display: flex; align-items: center; gap: .65rem; padding: .7rem .95rem; border-radius: 16px; background: #fff; color: var(--tsr-navy); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.tsr-rs-fl i { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 10px; background: #e6f6fc; font-style: normal; font-size: 1.1rem; }
.tsr-rs-fl b { display: block; font: 800 1.25rem/1 Ubuntu, sans-serif; font-variant-numeric: tabular-nums; }
.tsr-rs-fl small { color: var(--tsr-muted); font-size: .75rem; }
.tsr-rs-fl--a { left: -1.6rem; bottom: 2.2rem; }
.tsr-rs-fl--b { right: -1rem; top: 1.6rem; }

.tsr-rs-sec { padding: 3.5rem 0; }
.tsr-rs-sec--alt { background: var(--tsr-bg); }
.tsr-rs-sec .tsr-rs-h2 { margin: 0; color: var(--tsr-navy); font: 800 clamp(1.5rem, 2.8vw, 2.1rem)/1.1 Ubuntu, sans-serif; }
.tsr-rs-lead { margin: .45rem 0 1.75rem; color: var(--tsr-muted); }

.tsr-rs-what { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.tsr-rs-steps { display: grid; gap: 1.1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.tsr-rs-steps li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .9rem; align-items: start; }
.tsr-rs-steps i { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: #e6f6fc; font-style: normal; font-size: 1.2rem; }
.tsr-rs-steps b { display: block; color: var(--tsr-navy); font: 700 1.05rem Ubuntu, sans-serif; }
.tsr-rs-steps span { color: #4b5563; font-size: .93rem; }
.tsr-rs-card { position: relative; padding: 1.4rem; border: 1px solid var(--tsr-border); border-radius: var(--tsr-radius); background: #fff; box-shadow: 0 20px 50px rgba(10, 22, 40, .10); }
.tsr-rs-card__tag { position: absolute; top: -.7rem; right: 1.2rem; padding: .15rem .65rem; border-radius: 999px; background: var(--tsr-navy); color: #fff; font: 700 .7rem Geist, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.tsr-rs-me { display: flex; align-items: center; gap: .9rem; }
.tsr-rs-av { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: linear-gradient(135deg, var(--tsr-blue), var(--tsr-blue-dk)); color: #fff; font: 800 1.1rem Ubuntu, sans-serif; }
.tsr-rs-me b { display: block; color: var(--tsr-navy); font: 800 1.25rem Ubuntu, sans-serif; }
.tsr-rs-me > div span { color: var(--tsr-muted); font-size: .85rem; }
.tsr-rs-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 1.2rem 0; }
.tsr-rs-kpi div { padding: .7rem .5rem; border-radius: 12px; background: var(--tsr-bg); text-align: center; }
.tsr-rs-kpi b { display: block; color: var(--tsr-navy); font: 800 1.35rem/1.1 Ubuntu, sans-serif; }
.tsr-rs-kpi span { color: var(--tsr-muted); font-size: .74rem; }
.tsr-rs-tl { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 64px; padding-bottom: 1.2rem; border-bottom: 1px solid var(--tsr-border); }
.tsr-rs-tl span { position: relative; flex: 1; border-radius: 4px 4px 0 0; background: var(--tsr-blue); }
.tsr-rs-tl span::after { content: attr(data-y); position: absolute; bottom: -1.15rem; left: 50%; transform: translateX(-50%); color: var(--tsr-muted); font-size: .66rem; }
.tsr-rs-pb { display: grid; gap: .4rem; margin-top: 1.4rem; }
.tsr-rs-pb div { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem .75rem; border-radius: 10px; background: #f8fafc; color: #33404f; font-size: .88rem; }
.tsr-rs-pb b { color: var(--tsr-navy); font-variant-numeric: tabular-nums; }

.tsr-rs-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tsr-rs-num { padding: 1.3rem 1.2rem; border: 1px solid var(--tsr-border); border-radius: var(--tsr-radius); background: #fff; }
.tsr-rs-num b { display: block; color: var(--tsr-navy); font: 800 clamp(1.8rem, 3vw, 2.4rem)/1 Ubuntu, sans-serif; font-variant-numeric: tabular-nums; }
.tsr-rs-num span { display: block; margin-top: .4rem; color: #33404f; font-weight: 700; }
.tsr-rs-num small { display: block; margin-top: .2rem; color: var(--tsr-muted); font-size: .82rem; }
.tsr-rs-num--hl { border-color: var(--tsr-navy); background: var(--tsr-navy); }
.tsr-rs-num--hl b, .tsr-rs-num--hl span { color: #fff; }
.tsr-rs-num--hl small { color: #a9b6c6; }
.tsr-rs-charts { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.tsr-rs-ch { margin: 0; padding: 1.3rem 1.3rem 1rem; border: 1px solid var(--tsr-border); border-radius: var(--tsr-radius); background: #fff; }
.tsr-rs-ch h3 { margin: 0; color: var(--tsr-navy); font: 700 1.05rem Ubuntu, sans-serif; }
.tsr-rs-ch figcaption p { margin: .2rem 0 1rem; color: var(--tsr-muted); font-size: .84rem; }
.tsr-rs-cols { display: flex; align-items: flex-end; gap: 2px; height: 170px; padding-top: 1.2rem; border-bottom: 1px solid #cfd6de; }
.tsr-rs-col { position: relative; display: flex; flex: 1; align-items: flex-end; height: 100%; }
.tsr-rs-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--tsr-blue-dk); }
.tsr-rs-col.is-peak i { background: var(--tsr-navy); }
.tsr-rs-col.is-now i { background: repeating-linear-gradient(45deg, #7dd3f0 0 4px, #b9e6f6 4px 8px); }
.tsr-rs-col:hover i { filter: brightness(1.2); }
.tsr-rs-col em { position: absolute; left: 50%; transform: translateX(-50%); color: var(--tsr-navy); font: normal 700 .7rem Geist, sans-serif; white-space: nowrap; }
.tsr-rs-yrs { display: flex; gap: 2px; margin-top: .35rem; }
.tsr-rs-yrs span { flex: 1; color: var(--tsr-muted); font-size: .66rem; text-align: center; }
.tsr-rs-hb { display: grid; gap: .55rem; }
.tsr-rs-hb div { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) 5.6rem; gap: .6rem; align-items: center; color: #33404f; font-size: .85rem; }
.tsr-rs-hb i { display: block; min-width: 3px; height: 14px; border-radius: 0 4px 4px 0; background: var(--tsr-blue-dk); }
.tsr-rs-hb b { color: var(--tsr-navy); font-variant-numeric: tabular-nums; text-align: right; }
.tsr-rs-foot { margin: .9rem 0 0; color: var(--tsr-muted); font-size: .8rem; }

.tsr-rs-club { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; counter-reset: tsr-club; }
.tsr-rs-club a { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--tsr-border); border-radius: 14px; background: #fff; color: var(--tsr-navy); font-weight: 700; text-decoration: none; }
.tsr-rs-club a::before { counter-increment: tsr-club; content: counter(tsr-club); color: var(--tsr-muted); font: 700 .85rem Geist, sans-serif; }
.tsr-rs-club a:hover, .tsr-rs-club a:focus-visible { border-color: var(--tsr-blue); }
.tsr-rs-club span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tsr-rs-club b { padding: .15rem .55rem; border-radius: 999px; background: #fff1e8; color: #b8460f; font-size: .82rem; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
	.tsr-rs-hero__grid, .tsr-rs-what, .tsr-rs-charts { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.tsr-rs-hero__ph { margin-bottom: 1.2rem; }
	.tsr-rs-hero__ph img { height: 260px; }
	.tsr-rs-fl--a { left: .7rem; bottom: -1.2rem; }
	.tsr-rs-fl--b { right: .7rem; top: .7rem; }
	.tsr-rs-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tsr-rs-club { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.tsr-rs-hero .tsr-container { padding-top: 2.5rem; padding-bottom: 3rem; }
	.tsr-runner-search.tsr-rs-box { padding-left: .9rem; }
	.tsr-rs-box button { padding: 0 1.1rem; }
	.tsr-rs-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tsr-rs-club { grid-template-columns: minmax(0, 1fr); }
	.tsr-rs-yrs span:nth-child(even) { visibility: hidden; }
	.tsr-rs-col em { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   /runner/ comparison (owner-approved mockup 2026-11-27,
   docs/mockups/runner-compare.html; markup in inc/runner-compare.php).
   Runner A blue, B orange, C green: dark shade on white, light on navy.
   ══════════════════════════════════════════════════════════════════════════ */
.tsr-cmp-head,
.tsr-cmp {
	--tsr-cmp-a:    var(--tsr-blue-dk);
	--tsr-cmp-b:    var(--tsr-orange);
	--tsr-cmp-c:    #15803d;
	--tsr-cmp-a-lt: #38c3ee;
	--tsr-cmp-b-lt: #f5874f;
	--tsr-cmp-c-lt: #4ade80;
}

.tsr-cmp-dot {
	display:       inline-block;
	flex:          0 0 auto;
	width:         0.65rem;
	height:        0.65rem;
	border-radius: 50%;
	vertical-align: 0.02em;
}

.tsr-cmp-dot.is-a { background: var(--tsr-cmp-a); }
.tsr-cmp-dot.is-b { background: var(--tsr-cmp-b); }
.tsr-cmp-dot.is-c { background: var(--tsr-cmp-c); }
.tsr-cmp-head .tsr-cmp-dot.is-a { background: var(--tsr-cmp-a-lt); }
.tsr-cmp-head .tsr-cmp-dot.is-b { background: var(--tsr-cmp-b-lt); }
.tsr-cmp-head .tsr-cmp-dot.is-c { background: var(--tsr-cmp-c-lt); }

/* ── "Сравни с друг бегач" (profile header and the +1 slot) ── */
.tsr-cmp-open {
	margin-top: 1rem;
}

.tsr-cmp-btn {
	display:       inline-flex;
	align-items:   center;
	gap:           0.5rem;
	min-height:    44px;
	padding:       0 1.1rem;
	border:        1.5px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background:    rgba(255, 255, 255, 0.06);
	color:         var(--tsr-white);
	font-weight:   600;
	font-size:     0.95rem;
	cursor:        pointer;
	list-style:    none;
}

.tsr-cmp-btn::-webkit-details-marker {
	display: none;
}

.tsr-cmp-btn:hover,
.tsr-cmp-open[open] .tsr-cmp-btn {
	border-color: var(--tsr-blue);
	background:   rgba(0, 170, 221, 0.15);
}

.tsr-cmp-btn:focus-visible {
	outline:        3px solid var(--tsr-blue);
	outline-offset: 2px;
}

.tsr-cmp-pick {
	max-width:     34rem;
	margin-top:    0.75rem;
	padding:       0.9rem;
	border-radius: 16px;
	background:    var(--tsr-white);
	color:         var(--tsr-text);
}

.tsr-cmp-form.tsr-runner-search {
	margin: 0;
}

.tsr-cmp-pick__l {
	flex:        1 0 100%;
	font-weight: 600;
	font-size:   0.9rem;
}

.tsr-cmp-pick__h {
	margin:         0.85rem 0 0.3rem;
	font-size:      0.72rem;
	font-weight:    700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color:          var(--tsr-muted);
}

.tsr-cmp-mates {
	display:    grid;
	gap:        0.2rem;
	margin:     0;
	padding:    0;
	list-style: none;
}

.tsr-cmp-mates a {
	display:         flex;
	align-items:     center;
	justify-content: space-between;
	gap:             0.75rem;
	min-height:      48px;
	padding:         0.45rem 0.7rem;
	border-radius:   10px;
	color:           var(--tsr-text);
	text-decoration: none;
}

.tsr-cmp-mates a:hover,
.tsr-cmp-mates a:focus-visible {
	background: #e0f1f8;
}

.tsr-cmp-mates b {
	font-weight: 600;
}

.tsr-cmp-mates span {
	font-size:  0.8rem;
	color:      var(--tsr-muted);
	text-align: right;
}

/* ── history: compare with the finisher ahead / behind ── */
.tsr-rp-run__vs {
	display:     flex;
	flex-wrap:   wrap;
	gap:         0.35rem;
	grid-column: 1 / -1;
	margin-top:  0.3rem;
}

.tsr-cmp-chip {
	display:         inline-flex;
	align-items:     center;
	min-height:      32px;
	padding:         0 0.7rem;
	border:          1px solid var(--tsr-border);
	border-radius:   999px;
	background:      var(--tsr-bg);
	color:           var(--tsr-blue-dk);
	font-size:       0.78rem;
	font-weight:     600;
	text-decoration: none;
}

.tsr-cmp-chip span {
	margin-left: 0.25rem;
	font-weight: 500;
	color:       var(--tsr-muted);
}

.tsr-cmp-chip:hover,
.tsr-cmp-chip:focus-visible {
	border-color: var(--tsr-blue-dk);
}

/* ── header ── */
.tsr-cmp-names {
	display:               grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap:                   0.6rem;
	margin-top:            0.5rem;
}

.tsr-cmp-who {
	min-width:     0;
	padding:       0.7rem 0.85rem;
	border:        1px solid rgba(255, 255, 255, 0.12);
	border-top:    3px solid var(--k);
	border-radius: 12px;
	background:    rgba(255, 255, 255, 0.06);
}

.tsr-cmp-who.is-a { --k: var(--tsr-cmp-a-lt); }
.tsr-cmp-who.is-b { --k: var(--tsr-cmp-b-lt); }
.tsr-cmp-who.is-c { --k: var(--tsr-cmp-c-lt); }

.tsr-cmp-who h2 {
	margin:        0;
	font-size:     clamp(1.05rem, 3vw, 1.5rem);
	line-height:   1.15;
	overflow-wrap: anywhere;
}

.tsr-cmp-who h2 a {
	color:           var(--tsr-white);
	text-decoration: none;
}

.tsr-cmp-who h2 a:hover,
.tsr-cmp-who h2 a:focus-visible {
	text-decoration: underline;
}

.tsr-cmp-who p {
	margin:    0.25rem 0 0;
	font-size: 0.8rem;
	color:     #c6d2e3;
}

.tsr-cmp-who__x {
	display:   inline-block;
	margin-top: 0.3rem;
	font-size: 0.78rem;
	color:     #9fb0c7;
}

.tsr-cmp-who__x:hover {
	color: var(--tsr-white);
}

.tsr-cmp-add {
	min-width:     0;
	padding:       0.6rem;
	border:        1.5px dashed rgba(255, 255, 255, 0.35);
	border-radius: 12px;
}

.tsr-cmp-add .tsr-cmp-open {
	margin: 0;
}

.tsr-cmp-add .tsr-cmp-pick {
	position: relative;
	z-index:  5;
}

.tsr-cmp-pairs {
	display:    grid;
	gap:        0.5rem;
	margin-top: 1rem;
}

.tsr-cmp-pair {
	display:               grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items:           center;
	gap:                   0.75rem;
	padding:               0.6rem 0.9rem;
	border:                1px solid rgba(255, 255, 255, 0.12);
	border-radius:         12px;
	background:            rgba(255, 255, 255, 0.07);
}

.tsr-cmp-pair__n {
	display:     flex;
	align-items: center;
	gap:         0.4rem;
	min-width:   0;
	font-size:   0.9rem;
	color:       #dbe4ef;
	overflow-wrap: anywhere;
}

.tsr-cmp-pair__n:last-child {
	justify-content: flex-end;
	text-align:      right;
}

.tsr-cmp-pair__s {
	font-family:          "Ubuntu", sans-serif;
	font-size:            1.6rem;
	font-weight:          700;
	line-height:          1;
	text-align:           center;
	white-space:          nowrap;
	font-variant-numeric: tabular-nums;
}

.tsr-cmp-pair__s small {
	display:     block;
	margin-top:  0.25rem;
	font-family: "Geist", system-ui, sans-serif;
	max-width:   12rem;
	margin:      0.25rem auto 0;
	font-size:   0.7rem;
	font-weight: 500;
	white-space: normal;
	color:       #9fb0c7;
}

/* ── common races ── */
.tsr-cmp-tabs {
	display:       flex;
	flex-wrap:     wrap;
	gap:           0.35rem;
	margin-bottom: 0.5rem;
}

.tsr-cmp-tabs[hidden] {
	display: none;
}

.tsr-cmp-tab {
	display:       inline-flex;
	align-items:   center;
	gap:           0.25rem;
	min-height:    36px;
	padding:       0 0.8rem;
	border:        1px solid var(--tsr-border);
	border-radius: 999px;
	background:    var(--tsr-white);
	color:         var(--tsr-muted);
	font-size:     0.8rem;
	font-weight:   600;
	cursor:        pointer;
}

.tsr-cmp-tab[aria-selected="true"] {
	border-color: var(--tsr-navy);
	background:   var(--tsr-navy);
	color:        var(--tsr-white);
}

.tsr-cmp-tab:focus-visible {
	outline:        3px solid var(--tsr-blue);
	outline-offset: 2px;
}

.tsr-cmp-panel[hidden] {
	display: none;
}

.tsr-cmp-panel__h {
	margin:    0.75rem 0 0;
	font-size: 0.95rem;
}

.has-tabs .tsr-cmp-panel__h {
	display: none;
}

.tsr-cmp-empty {
	margin:    0.5rem 0;
	font-size: 0.9rem;
	color:     var(--tsr-muted);
}

.tsr-cmp-race {
	padding:    0.7rem 0;
	border-top: 1px dashed var(--tsr-border);
}

.tsr-cmp-race:first-of-type {
	border-top: 0;
}

.tsr-cmp-race__t {
	display:         flex;
	flex-wrap:       wrap;
	justify-content: space-between;
	gap:             0.25rem 0.5rem;
	margin-bottom:   0.3rem;
}

.tsr-cmp-race__t a {
	font-weight:     600;
	color:           var(--tsr-text);
	text-decoration: none;
}

.tsr-cmp-race__t a:hover,
.tsr-cmp-race__t a:focus-visible {
	color:           var(--tsr-blue-dk);
	text-decoration: underline;
}

.tsr-cmp-race__t span {
	font-size: 0.8rem;
	color:     var(--tsr-muted);
}

.tsr-cmp-res {
	display:               grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items:           center;
	gap:                   0.6rem;
	padding:               0.15rem 0;
	font-size:             0.88rem;
	font-variant-numeric:  tabular-nums;
}

.tsr-cmp-res__n {
	min-width: 0;
	overflow-wrap: anywhere;
}

.tsr-cmp-res__t {
	font-family: "Ubuntu", sans-serif;
	font-weight: 700;
	text-align:  right;
}

.tsr-cmp-res__t.is-best::after {
	content:   " ✓";
	font-size: 0.8rem;
	color:     #15803d;
}

.tsr-cmp-res__p {
	min-width:  7.5em;
	font-size:  0.8rem;
	text-align: right;
	color:      var(--tsr-muted);
}

.tsr-cmp-res.is-off,
.tsr-cmp-res.is-off .tsr-cmp-res__t {
	color:       var(--tsr-muted);
	font-weight: 500;
}

/* ── career bars ── */
.tsr-cmp-met {
	display: grid;
	gap:     0.85rem;
}

.tsr-cmp-met__h {
	margin-bottom: 0.2rem;
	font-size:     0.85rem;
	font-weight:   600;
}

.tsr-cmp-met__r {
	display:               grid;
	grid-template-columns: minmax(0, 1fr) 4.8em;
	align-items:           center;
	gap:                   0.5rem;
	margin-top:            0.15rem;
	font-size:             0.82rem;
	font-variant-numeric:  tabular-nums;
}

.tsr-cmp-met__r b {
	font-weight: 500;
	text-align:  right;
	color:       var(--tsr-muted);
}

.tsr-cmp-met__r b.is-best {
	font-weight: 700;
	color:       var(--tsr-text);
}

.tsr-cmp-met__t {
	height:        8px;
	overflow:      hidden;
	border-radius: 999px;
	background:    #eef1f4;
}

.tsr-cmp-met__t i {
	display:       block;
	height:        100%;
	border-radius: 999px;
}

.tsr-cmp-met__t .is-a { background: var(--tsr-cmp-a); }
.tsr-cmp-met__t .is-b { background: var(--tsr-cmp-b); }
.tsr-cmp-met__t .is-c { background: var(--tsr-cmp-c); }

/* ── starts per race ── */
.tsr-cmp-scroll {
	overflow-x: auto;
}

.tsr-cmp-tbl {
	width:                100%;
	margin:               0;
	border-collapse:      collapse;
	font-size:            0.88rem;
	font-variant-numeric: tabular-nums;
}

.tsr-cmp-tbl th,
.tsr-cmp-tbl td {
	padding:    0.5rem 0.4rem;
	border:     0;
	border-top: 1px solid var(--tsr-border);
	background: none;
	text-align: center;
	vertical-align: middle;
}

.tsr-cmp-tbl thead th {
	border-top:     0;
	font-size:      0.72rem;
	font-weight:    700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color:          var(--tsr-muted);
	white-space:    nowrap;
}

.tsr-cmp-tbl th:first-child {
	padding-left: 0;
	text-align:   left;
	font-weight:  600;
	color:        var(--tsr-text);
}

.tsr-cmp-tbl thead th:first-child {
	color: var(--tsr-muted);
}

.tsr-cmp-tbl td small {
	display:   block;
	margin-top: 0.15rem;
	font-size: 0.72rem;
	color:     var(--tsr-muted);
	white-space: nowrap;
}

.tsr-cmp-tbl td small span {
	display: block;
}

.tsr-cmp-tbl td.is-zero {
	color: #9aa3ae;
}

.tsr-cmp-tbl tfoot th,
.tsr-cmp-tbl tfoot td {
	border-top:  2px solid var(--tsr-border);
	font-weight: 700;
}

.tsr-cmp-tog {
	color: var(--tsr-muted);
}

.tsr-cmp-pip {
	display:         inline-flex;
	align-items:     center;
	justify-content: center;
	min-width:       2rem;
	height:          1.6rem;
	padding:         0 0.4rem;
	border-radius:   999px;
	font-weight:     700;
}

.tsr-cmp-pip.is-a { background: #e0f1f8; color: var(--tsr-cmp-a); }
.tsr-cmp-pip.is-b { background: #fbe9df; color: #a63c0b; }
.tsr-cmp-pip.is-c { background: #dcf3e4; color: #166534; }

/* ── records on shared courses ── */
.tsr-cmp-prs {
	display:    grid;
	gap:        0;
	margin:     0;
	padding:    0;
	list-style: none;
}

.tsr-cmp-prs li {
	padding:    0.65rem 0;
	border-top: 1px dashed var(--tsr-border);
}

.tsr-cmp-prs li:first-child {
	border-top: 0;
}

.tsr-cmp-prs__c {
	margin-bottom: 0.25rem;
	font-weight:   600;
}

/* ── form by year ── */
.tsr-cmp-chart {
	display: block;
	width:   100%;
	height:  auto;
}

.tsr-cmp-chart text {
	font-size: 11px;
	fill:      var(--tsr-muted);
}

.tsr-cmp .tsr-rp-legend li {
	display:     inline-flex;
	align-items: center;
	gap:         0.35rem;
}

@media (min-width: 960px) {
	.tsr-cmp-prs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap:            2rem;
	}

	.tsr-cmp-prs li:nth-child(2) {
		border-top: 0;
	}
}

@media (max-width: 600px) {
	.tsr-cmp-names {
		grid-template-columns: minmax(0, 1fr);
	}

	.tsr-cmp-pair {
		gap:     0.5rem;
		padding: 0.6rem 0.7rem;
	}

	.tsr-cmp-pair__n {
		font-size: 0.85rem;
	}

	.tsr-cmp-pair__s small {
		max-width: 6.5rem;
	}

	.tsr-cmp-res {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.tsr-cmp-res__p {
		grid-column: 2 / -1;
		min-width:   0;
		margin-top:  -0.3rem;
		text-align:  left;
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   Runner profile: achievements (owner-approved mockup 2026-11-27).
   Medal colour = kind, rim = tier; next goals on navy; locked with a ring.
   ══════════════════════════════════════════════════════════════════════════ */
.tsr-ach {
	--tsr-ach-start:  var(--tsr-blue-dk);
	--tsr-ach-keep:   #15803d;
	--tsr-ach-mtn:    var(--tsr-orange);
	--tsr-ach-res:    var(--tsr-navy);
	--tsr-ach-bronze: #b5733d;
	--tsr-ach-silver: #8f9aa6;
	--tsr-ach-gold:   #c99512;
	--tsr-ach-plat:   #5f7387;
}

.tsr-ach__head {
	display:         flex;
	flex-wrap:       wrap;
	align-items:     flex-end;
	justify-content: space-between;
	gap:             0.5rem 1rem;
}

.tsr-ach__head .tsr-rp-card__sub {
	margin-bottom: 0;
}

.tsr-ach__tally {
	display:              flex;
	align-items:          center;
	gap:                  0.5rem;
	font-size:            0.85rem;
	color:                var(--tsr-muted);
	font-variant-numeric: tabular-nums;
}

.tsr-ach__tally b {
	font-family: "Ubuntu", sans-serif;
	font-size:   1.5rem;
	line-height: 1;
	color:       var(--tsr-text);
}

.tsr-ach__segs {
	display:   flex;
	flex-wrap: wrap;
	gap:       3px;
	max-width: 12rem;
}

.tsr-ach__segs i {
	width:         10px;
	height:        10px;
	border-radius: 3px;
	background:    #e6eaef;
}

.tsr-ach__segs i.is-on {
	background: var(--tsr-blue-dk);
}

/* next goals */
.tsr-ach__goals {
	display:    grid;
	gap:        0.6rem;
	margin-top: 1rem;
}

.tsr-ach__goal {
	display:       flex;
	align-items:   center;
	gap:           0.9rem;
	min-width:     0;
	padding:       0.8rem 0.9rem;
	border-radius: 14px;
	background:    linear-gradient(160deg, var(--tsr-navy), var(--tsr-navy-2));
	color:         var(--tsr-white);
}

.tsr-ach__ring,
.tsr-ach__lring {
	--c:           var(--tsr-blue);
	position:      relative;
	display:       grid;
	flex:          0 0 auto;
	place-items:   center;
	border-radius: 50%;
	font-family:   "Ubuntu", sans-serif;
	font-weight:   700;
	font-variant-numeric: tabular-nums;
}

.tsr-ach__ring {
	width:      64px;
	height:     64px;
	background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, 0.14) 0);
	font-size:  0.9rem;
}

.tsr-ach__ring::before,
.tsr-ach__lring::before {
	content:       "";
	position:      absolute;
	border-radius: 50%;
}

.tsr-ach__ring::before {
	inset:      6px;
	background: var(--tsr-navy);
}

.tsr-ach__ring span,
.tsr-ach__lring span {
	position: relative;
}

.tsr-ach__ring.is-start { --c: #38c3ee; }
.tsr-ach__ring.is-keep  { --c: #4ade80; }
.tsr-ach__ring.is-mtn   { --c: #f5874f; }
.tsr-ach__ring.is-res   { --c: #c6d2e3; }

.tsr-ach__gt {
	min-width: 0;
}

.tsr-ach__gk {
	font-size:      0.68rem;
	font-weight:    700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color:          var(--tsr-blue);
}

.tsr-ach__gt b {
	display:     block;
	font-family: "Ubuntu", sans-serif;
	font-size:   1.05rem;
	line-height: 1.2;
}

.tsr-ach__gt span {
	display:   block;
	font-size: 0.85rem;
	color:     #c6d2e3;
}

/* earned medals by kind */
.tsr-ach__groups {
	display:    grid;
	gap:        1.1rem;
	margin-top: 1.1rem;
}

.tsr-ach__grp h3,
.tsr-ach__locked h3 {
	display:        flex;
	align-items:    center;
	gap:            0.45rem;
	margin:         0 0 0.55rem;
	font-family:    "Geist", system-ui, sans-serif;
	font-size:      0.72rem;
	font-weight:    700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color:          var(--tsr-muted);
}

.tsr-ach__grp h3 i {
	width:         0.6rem;
	height:        0.6rem;
	border-radius: 50%;
	background:    var(--k);
}

.tsr-ach__grp.is-start { --k: var(--tsr-ach-start); }
.tsr-ach__grp.is-keep  { --k: var(--tsr-ach-keep); }
.tsr-ach__grp.is-mtn   { --k: var(--tsr-ach-mtn); }
.tsr-ach__grp.is-res   { --k: var(--tsr-ach-res); }

.tsr-ach__medals {
	display:               grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap:                   0.6rem;
	margin:                0;
	padding:               0;
	list-style:            none;
}

.tsr-ach__medals li {
	display:        flex;
	flex-direction: column;
	align-items:    center;
	gap:            0.3rem;
	min-width:      0;
	padding:        0.85rem 0.6rem 0.75rem;
	border-radius:  14px;
	background:     var(--tsr-bg);
	text-align:     center;
}

.tsr-ach__medal {
	--rim:         var(--tsr-ach-gold);
	position:      relative;
	display:       grid;
	place-items:   center;
	width:         68px;
	height:        68px;
	border-radius: 50%;
	background:    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 45%), var(--k);
	box-shadow:    0 0 0 4px var(--rim), 0 0 0 6px rgba(0, 0, 0, 0.06), 0 6px 14px rgba(10, 22, 40, 0.18);
	font-family:   "Ubuntu", sans-serif;
	font-size:     1.05rem;
	font-weight:   700;
	color:         var(--tsr-white);
}

.tsr-ach__medal.is-start { --k: var(--tsr-ach-start); }
.tsr-ach__medal.is-keep  { --k: var(--tsr-ach-keep); }
.tsr-ach__medal.is-mtn   { --k: var(--tsr-ach-mtn); }
.tsr-ach__medal.is-res   { --k: var(--tsr-ach-res); }
.tsr-ach__medal.t-bronze { --rim: var(--tsr-ach-bronze); }
.tsr-ach__medal.t-silver { --rim: var(--tsr-ach-silver); }
.tsr-ach__medal.t-gold   { --rim: var(--tsr-ach-gold); }
.tsr-ach__medal.t-plat   { --rim: var(--tsr-ach-plat); }

.tsr-ach__medal small {
	position:       absolute;
	bottom:         -9px;
	left:           50%;
	padding:        1px 7px;
	border-radius:  999px;
	background:     var(--rim);
	font-family:    "Geist", system-ui, sans-serif;
	font-size:      0.58rem;
	font-weight:    700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space:    nowrap;
	color:          var(--tsr-white);
	transform:      translateX(-50%);
}

/* silver and gold rims are light: dark label text on them */
.tsr-ach__medal.t-silver small,
.tsr-ach__medal.t-gold small {
	color: #1f2933;
}

.tsr-ach__medals b {
	margin-top:  0.45rem;
	font-size:   0.88rem;
	line-height: 1.2;
}

.tsr-ach__medals span {
	font-size:   0.75rem;
	line-height: 1.3;
	color:       var(--tsr-muted);
}

/* locked */
.tsr-ach__locked {
	margin-top:  1.1rem;
	padding-top: 0.9rem;
	border-top:  1px dashed var(--tsr-border);
}

.tsr-ach__locked ul {
	display:               grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap:                   0.5rem;
	margin:                0;
	padding:               0;
	list-style:            none;
}

.tsr-ach__locked li {
	display:       flex;
	align-items:   center;
	gap:           0.7rem;
	min-width:     0;
	padding:       0.55rem 0.7rem;
	border:        1px dashed #cfd6df;
	border-radius: 12px;
}

.tsr-ach__locked li.is-off {
	border-color: var(--tsr-border);
	background:   var(--tsr-bg);
}

.tsr-ach__locked li.is-off .tsr-ach__lring {
	opacity: 0.5;
}

.tsr-ach__locked b {
	display:     block;
	font-size:   0.85rem;
	line-height: 1.2;
}

.tsr-ach__locked li > div > span {
	display:   block;
	font-size: 0.75rem;
	color:     var(--tsr-muted);
}

.tsr-ach__lring {
	--c:        var(--tsr-ach-start);
	width:      44px;
	height:     44px;
	background: conic-gradient(var(--c) calc(var(--p) * 1%), #e6eaef 0);
	font-size:  0.7rem;
	color:      var(--tsr-muted);
}

.tsr-ach__lring::before {
	inset:      4px;
	background: var(--tsr-white);
}

.tsr-ach__lring.is-keep { --c: var(--tsr-ach-keep); }
.tsr-ach__lring.is-mtn  { --c: var(--tsr-ach-mtn); }
.tsr-ach__lring.is-res  { --c: var(--tsr-ach-res); }

@media (min-width: 720px) {
	.tsr-ach__goals {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* groups side by side, each as wide as its medals */
	.tsr-ach__groups {
		display:   flex;
		flex-wrap: wrap;
		gap:       1.1rem 1.75rem;
	}

	.tsr-ach__grp {
		flex: 0 1 auto;
	}

	.tsr-ach__medals {
		display:   flex;
		flex-wrap: wrap;
	}

	.tsr-ach__medals li {
		width: 150px;
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   Results page (single ts_result), owner-approved mockup 2026-11-27
   (docs/mockups/results-table.html): hero meta line, find-a-name tools,
   sections as cards, race table (podium, runner + team, gap, pace).
   Only .tsr-results--race: standings, rules and records tables keep the
   base .tsr-results look.
   ══════════════════════════════════════════════════════════════════════════ */
.tsr-rh__meta {
	display:   flex;
	flex-wrap: wrap;
	gap:       0.35rem 1.2rem;
	margin:    0.7rem 0 0;
	font-size: 0.95rem;
	color:     #c6d2e3;
}

.tsr-rh__meta:empty {
	display: none;
}

.tsr-rh__meta b {
	color: var(--tsr-white);
}

/* tools */
.tsr-rh__tools {
	display:       flex;
	flex-wrap:     wrap;
	align-items:   center;
	gap:           0.6rem;
	margin-bottom: 1rem;
}

.tsr-rh__tools[hidden] {
	display: none;
}

.tsr-rh__find {
	display:       flex;
	flex:          1 1 280px;
	align-items:   center;
	gap:           0.5rem;
	max-width:     420px;
	height:        46px;
	padding:       0 1rem;
	border:        1.5px solid var(--tsr-border);
	border-radius: 999px;
	background:    var(--tsr-white);
	color:         var(--tsr-muted);
}

.tsr-rh__find:focus-within {
	border-color: var(--tsr-blue);
}

.tsr-rh__find input {
	flex:       1;
	min-width:  0;
	border:     0;
	outline:    0;
	background: none;
	font:       500 0.95rem "Geist", system-ui, sans-serif;
	color:      var(--tsr-text);
}

.tsr-rh__btns {
	display: flex;
	gap:     0.35rem;
}

.tsr-rh__btn {
	min-height:    38px;
	padding:       0 0.9rem;
	border:        1px solid var(--tsr-border);
	border-radius: 999px;
	background:    var(--tsr-white);
	font-size:     0.85rem;
	font-weight:   600;
	color:         var(--tsr-muted);
	cursor:        pointer;
}

.tsr-rh__btn:hover,
.tsr-rh__btn:focus-visible {
	border-color: var(--tsr-navy);
	color:        var(--tsr-navy);
}

.tsr-rh__status {
	flex-basis: 100%;
	margin:     0;
	font-size:  0.85rem;
	color:      var(--tsr-muted);
}

.tsr-rh__status:empty {
	display: none;
}

/* sections as cards */
.tsr-result-hub__section {
	background: var(--tsr-white);
}

.tsr-result-hub__summary {
	display:     flex;
	flex-wrap:   wrap;
	align-items: center;
	gap:         0.3rem 0.8rem;
	padding:     0.9rem 1.1rem;
	background:  var(--tsr-white);
	font-weight: 400;
}

.tsr-result-hub__summary::before {
	content: none;
}

.tsr-result-hub__summary::after {
	content:      "";
	width:        9px;
	height:       9px;
	margin-left:  auto;
	border-right: 2px solid var(--tsr-muted);
	border-bottom: 2px solid var(--tsr-muted);
	transform:    rotate(45deg);
	transition:   transform 0.15s ease;
}

.tsr-result-hub__section[open] > .tsr-result-hub__summary {
	border-bottom: 1px solid var(--tsr-border);
	background:    #f7f9fb;
}

.tsr-result-hub__section[open] > .tsr-result-hub__summary::after {
	transform: rotate(-135deg);
}

.tsr-result-hub__summary:hover {
	background: #f2f8fb;
}

.tsr-rh__d {
	font-family: "Ubuntu", sans-serif;
	font-size:   1.15rem;
	font-weight: 700;
	color:       var(--tsr-navy);
}

.tsr-rh__g {
	padding:        0.2rem 0.6rem;
	border-radius:  999px;
	background:     #e0f1f8;
	font-size:      0.72rem;
	font-weight:    700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color:          var(--tsr-blue-dk);
}

.tsr-rh__m,
.tsr-rh__w {
	font-size: 0.85rem;
	color:     var(--tsr-muted);
}

.tsr-rh__w {
	flex-basis: 100%;
}

@media (min-width: 720px) {
	.tsr-rh__w {
		flex-basis: auto;
	}
}

/* race table */
.tsr-results--race {
	font-size: 0.95rem;
}

.tsr-results--race th,
.tsr-results--race td {
	padding:       0.6rem 0.9rem;
	border:        0;
	border-bottom: 1px solid #eef1f4;
	vertical-align: middle;
}

.tsr-results--race thead th {
	background:     var(--tsr-white);
	border-bottom:  1px solid var(--tsr-border);
	font-size:      0.7rem;
	font-weight:    700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color:          var(--tsr-muted);
}

.tsr-results--race tbody tr:nth-child(even) {
	background: none;
}

.tsr-results--race tbody tr:hover {
	background: #eef7fb;
}

.tsr-results--race tr.is-podium {
	background: #fbf8ef;
}

.tsr-results--race tr.is-hit,
.tsr-results--race tr.is-hit:hover {
	background: #fff4c2;
}

.tsr-results--race .tsr-col-place {
	width: 4.5rem;
}

.tsr-results--race .tsr-col-bib,
.tsr-results--race .tsr-col-finish_time,
.tsr-results--race .tsr-col-gap,
.tsr-results--race .tsr-col-pace,
.tsr-results--race [class*="tsr-col-split"] {
	text-align: right;
}

.tsr-place {
	display:     inline-grid;
	place-items: center;
	min-width:   2rem;
	height:      2rem;
	font-family: "Ubuntu", sans-serif;
	font-weight: 700;
}

.tsr-place.is-p1,
.tsr-place.is-p2,
.tsr-place.is-p3 {
	border-radius: 50%;
}

/* label text dark on the light metals, white on bronze (contrast) */
.tsr-place.is-p1 { background: #e3b63a; color: #1f2933; }
.tsr-place.is-p2 { background: #c3cbd3; color: #1f2933; }
.tsr-place.is-p3 { background: #9a5d2c; color: var(--tsr-white); }

.tsr-runner {
	display:     block;
	font-weight: 600;
	white-space: normal;
}

.tsr-team {
	display:     block;
	font-size:   0.8rem;
	color:       var(--tsr-muted);
	white-space: normal;
}

.tsr-time {
	font-family: "Ubuntu", sans-serif;
	font-weight: 700;
}

.tsr-flag {
	display:        inline-block;
	padding:        0.15rem 0.5rem;
	border-radius:  999px;
	background:     #eef1f4;
	font-size:      0.78rem;
	font-weight:    600;
	letter-spacing: 0.04em;
	color:          var(--tsr-muted);
}

.tsr-gap-m {
	display: none;
}

.tsr-results--race .tsr-col-bib,
.tsr-results--race .tsr-col-gap,
.tsr-results--race .tsr-col-pace {
	font-size: 0.88rem;
	color:     var(--tsr-muted);
}

@media (max-width: 640px) {
	/* the race table needs no sideways scrolling: no hint */
	.tsr-results-wrap--race::before,
	.tsr-results-wrap--race::after {
		content: none;
	}

	.tsr-results--race thead {
		display: none;
	}

	.tsr-results--race,
	.tsr-results--race tbody {
		display: block;
	}

	.tsr-results--race tbody tr {
		display:               grid;
		grid-template-columns: 2.6rem minmax(0, 1fr) auto;
		align-items:           center;
		gap:                   0 0.6rem;
		padding:               0.55rem 0.8rem;
		border-bottom:         1px solid #eef1f4;
	}

	.tsr-results--race td {
		padding: 0;
		border:  0;
	}

	.tsr-results--race .tsr-col-bib,
	.tsr-results--race .tsr-col-gap,
	.tsr-results--race .tsr-col-pace {
		display: none;
	}

	/* laps stay visible on a phone: a small line under the name, "LAP1 0:21:05" */
	.tsr-results--race td[class*="tsr-col-split"] {
		grid-column: 2 / -1;
		margin-top: 0.15rem;
		font-size: 0.78rem;
		color:     var(--tsr-muted);
		text-align: left;
	}

	.tsr-results--race td[class*="tsr-col-split"]::before {
		content:      attr(data-label) " ";
		font-weight:  600;
		margin-right: 0.25rem;
	}

	.tsr-gap-m {
		display:   block;
		font-size: 0.75rem;
		color:     var(--tsr-muted);
	}

	/* results nav: the race picker no longer runs off a phone screen */
	.tsr-rnav__select {
		max-width: 100%;
		min-width: 0;
	}

	.tsr-rnav__select select {
		min-width:     0;
		max-width:     100%;
		overflow:      hidden;
		white-space:   nowrap;
		text-overflow: ellipsis;
	}
}

/* Results nav: the scrollable distance strip holds visually hidden labels
   (position: absolute); without a positioned ancestor they escaped the strip
   and widened phone pages. */
.tsr-rnav__dists,
.tsr-rnav__dist {
	position: relative;
}

/* DNF / DNS / DSQ: the label is the result, the time beside it is only a compromise time */
.tsr-time--dnf {
	font-family: "Geist", system-ui, sans-serif;
	font-weight: 500;
	color:       var(--tsr-muted);
}

.tsr-place--flag {
	min-width:      2.4rem;
	height:         1.5rem;
	padding:        0 0.45rem;
	border-radius:  999px;
	background:     #eef1f4;
	font-family:    "Geist", system-ui, sans-serif;
	font-size:      0.72rem;
	font-weight:    700;
	letter-spacing: 0.04em;
	color:          var(--tsr-muted);
}

/* Trail Series panel on phones (owner 2026-11-28): title and link stacked, an odd last button
   spans the full row, race cards wrap their links instead of overflowing. */
@media (max-width: 768px) {
	.tsr-mega__head {
		flex-direction: column;
		align-items:    flex-start;
		gap:            0.15rem;
	}

	.tsr-mega__title {
		white-space: nowrap;
	}

	.tsr-mega__main li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.tsr-mega__main--row2 {
		margin-top: 0.5rem;
	}

	.tsr-mega__race {
		min-width: 0;
	}

	.tsr-mega__race-links {
		flex-wrap: wrap;
		gap:       0 0.8rem;
	}
}

/* /pravila/: sub-headings of the participation rules */
.tsr-prose-section h3 {
	margin:      1.5rem 0 0.5rem;
	font-size:   1.05rem;
	font-weight: 800;
	color:       var(--tsr-navy);
}

/* ══════════════════════════════════════════════════════════════════════════
   /pravila/ (owner-approved mockup 2026-11-28, docs/mockups/pravila.html):
   label column left, reading column right; one points rule, calculator,
   bonus race cards, participation rules as an accordion.
   ══════════════════════════════════════════════════════════════════════════ */
.tsr-pr { font-size: 1.04rem; line-height: 1.65; }

.tsr-pr-facts {
	display:               grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap:                   0.6rem;
	margin-top:            1.25rem;
}

.tsr-pr-fact { padding: 0.9rem 1rem; border-radius: 14px; background: var(--tsr-bg); }
.tsr-pr-fact b { display: block; font-family: "Ubuntu", sans-serif; color: var(--tsr-navy); }
.tsr-pr-fact span { display: block; margin-top: 0.15rem; font-size: 0.88rem; line-height: 1.4; color: var(--tsr-muted); }

.tsr-pr-sec {
	display:           grid;
	gap:               0.6rem 2.5rem;
	margin-top:        2.2rem;
	padding-top:       2.2rem;
	border-top:        1px solid var(--tsr-border);
	scroll-margin-top: var(--tsr-ev-offset, 160px);
}

.tsr-pr-sec__l h2 { margin: 0; font-size: 1.45rem; color: var(--tsr-navy); }
.tsr-pr-sec__l p { margin: 0.4rem 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--tsr-muted); }
.tsr-pr-sec__c { min-width: 0; max-width: 68ch; }
.tsr-pr-sec__c > p { margin: 0 0 1rem; }
.tsr-pr-sec__c h3 { margin: 1.8rem 0 0.5rem; font-size: 1.05rem; color: var(--tsr-navy); }

.tsr-pr-rule {
	display:       flex;
	flex-wrap:     wrap;
	align-items:   center;
	gap:           0.5rem 1rem;
	padding:       1rem 1.2rem;
	border-radius: 16px;
	background:    linear-gradient(160deg, var(--tsr-navy), var(--tsr-navy-2));
	color:         var(--tsr-white);
}

.tsr-pr-rule code {
	padding:       0.25rem 0.7rem;
	border-radius: 10px;
	background:    rgba(255, 255, 255, 0.1);
	font-family:   "Ubuntu", sans-serif;
	font-size:     1.2rem;
	font-weight:   700;
	color:         var(--tsr-white);
}

.tsr-pr-rule span { flex: 1 1 220px; font-size: 0.9rem; color: #c6d2e3; }

.tsr-pr-max { display: grid; gap: 0.5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }

.tsr-pr-max li {
	display:               grid;
	grid-template-columns: 4.2rem minmax(0, 1fr);
	align-items:           center;
	gap:                   1rem;
	padding:               0.7rem 1rem;
	border:                1px solid var(--tsr-border);
	border-radius:         14px;
}

.tsr-pr-max__p {
	font-family:          "Ubuntu", sans-serif;
	font-size:            1.7rem;
	font-weight:          700;
	line-height:          1;
	text-align:           center;
	color:                var(--tsr-blue-dk);
	font-variant-numeric: tabular-nums;
}

.tsr-pr-max__p small {
	display:        block;
	margin-top:     0.2rem;
	font-family:    "Geist", system-ui, sans-serif;
	font-size:      0.62rem;
	font-weight:    600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color:          var(--tsr-muted);
}

.tsr-pr-max b { display: block; }
.tsr-pr-max span { font-size: 0.88rem; color: var(--tsr-muted); }
.tsr-pr-max li.is-bonus { border-color: #f0c4ad; background: #fffaf7; }
.tsr-pr-max li.is-bonus .tsr-pr-max__p { color: var(--tsr-orange); }

.tsr-pr-calc { display: grid; gap: 0.8rem; margin-bottom: 1.2rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--tsr-bg); }
.tsr-pr-calc[hidden] { display: none; }
.tsr-pr-sec__c .tsr-pr-calc h3 { margin: 0; font-size: 1rem; }
.tsr-pr-calc__row { display: flex; flex-wrap: wrap; align-items: end; gap: 0.6rem; }
.tsr-pr-calc label { display: grid; gap: 0.2rem; font-size: 0.78rem; font-weight: 600; color: var(--tsr-muted); }

.tsr-pr-calc select,
.tsr-pr-calc input {
	height:        44px;
	padding:       0 0.8rem;
	border:        1.5px solid var(--tsr-border);
	border-radius: 10px;
	background:    var(--tsr-white);
	font:          500 1rem "Geist", system-ui, sans-serif;
	color:         var(--tsr-text);
}

.tsr-pr-calc input { width: 6.5rem; }
.tsr-pr-calc select:focus-visible,
.tsr-pr-calc input:focus-visible { outline: 3px solid var(--tsr-blue); outline-offset: 1px; }

.tsr-pr-calc__out {
	margin-left:          auto;
	font-family:          "Ubuntu", sans-serif;
	font-size:            1.9rem;
	font-weight:          700;
	line-height:          1.2;
	white-space:          nowrap;
	color:                var(--tsr-navy);
	font-variant-numeric: tabular-nums;
}

.tsr-pr-calc__out small { font: 500 0.85rem "Geist", system-ui, sans-serif; color: var(--tsr-muted); }

.tsr-pr-more { padding: 0.2rem 1rem; border: 1px solid var(--tsr-border); border-radius: 14px; }
.tsr-pr-more summary { padding: 0.6rem 0; font-weight: 600; color: var(--tsr-blue-dk); cursor: pointer; }
.tsr-pr-tbl { overflow-x: auto; padding-bottom: 0.6rem; }
.tsr-pr-tbl table { width: 100%; margin: 0; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.tsr-pr-tbl th, .tsr-pr-tbl td { padding: 0.35rem 0.5rem; border: 0; border-top: 1px solid var(--tsr-border); background: none; text-align: center; }
.tsr-pr-tbl th { border-top: 0; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tsr-muted); }
.tsr-pr-tbl th:first-child, .tsr-pr-tbl td:first-child { text-align: left; }
.tsr-pr-tbl td.is-zero { color: #6b7280; }

.tsr-pr-races { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.tsr-pr-races li { padding: 0.85rem 1rem; border: 1px solid var(--tsr-border); border-radius: 14px; }
.tsr-pr-races b { font-family: "Ubuntu", sans-serif; font-size: 1.02rem; color: var(--tsr-navy); }
.tsr-pr-races small { margin-left: 0.4rem; font-size: 0.82rem; color: var(--tsr-muted); }
.tsr-pr-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.tsr-pr-pill { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.3rem 0.2rem 0.7rem; border-radius: 999px; background: var(--tsr-bg); font-size: 0.88rem; font-weight: 600; }
.tsr-pr-pill i { padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--tsr-orange); font-size: 0.78rem; font-style: normal; font-weight: 700; color: var(--tsr-white); }
.tsr-pr-sec__c > p.tsr-pr-eg { margin-top: 1rem; font-size: 0.93rem; color: var(--tsr-muted); }

.tsr-pr-list { display: grid; margin: 0 0 1rem; padding: 0; list-style: none; }
.tsr-pr-list li { padding: 0.75rem 0; border-top: 1px solid var(--tsr-border); }
.tsr-pr-list li:first-child { padding-top: 0; border-top: 0; }
.tsr-pr-list b { color: var(--tsr-navy); }
.tsr-pr-link { font-weight: 700; color: var(--tsr-blue-dk); text-decoration: none; }
.tsr-pr-link:hover, .tsr-pr-link:focus-visible { text-decoration: underline; }

/* participation rules: cards that open */
.tsr-pr-accs { display: grid; gap: 0.6rem; }
.tsr-pr-acc { border: 1px solid var(--tsr-border); border-radius: 14px; background: var(--tsr-white); overflow: hidden; }
.tsr-pr-acc[open] { border-color: #b9dcea; box-shadow: 0 6px 18px rgba(10, 22, 40, 0.06); }

.tsr-pr-acc summary {
	display:     flex;
	align-items: center;
	gap:         0.75rem;
	min-height:  56px;
	padding:     0.6rem 1rem;
	list-style:  none;
	cursor:      pointer;
}

.tsr-pr-acc summary::-webkit-details-marker { display: none; }
.tsr-pr-acc[open] summary { background: #f1f9fc; border-bottom: 1px solid #d5ebf3; }
.tsr-pr-acc summary:hover { background: #f1f9fc; }
.tsr-pr-acc summary:focus-visible { outline: 3px solid var(--tsr-blue); outline-offset: -3px; }
.tsr-pr-acc__t { font-family: "Ubuntu", sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--tsr-navy); }
.tsr-pr-acc__n { margin-left: auto; font-size: 0.8rem; color: var(--tsr-muted); white-space: nowrap; }

.tsr-pr-acc summary::after {
	content:       "";
	flex:          0 0 auto;
	width:         28px;
	height:        28px;
	border-radius: 50%;
	background:    var(--tsr-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a1628' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
	transition:    transform 0.15s ease;
}

.tsr-pr-acc[open] summary::after { transform: rotate(180deg); background-color: var(--tsr-white); }
.tsr-pr-acc ul { display: grid; gap: 0.7rem; margin: 0; padding: 1rem 1rem 1.1rem; list-style: none; }
.tsr-pr-acc li { position: relative; padding-left: 1.3rem; }
.tsr-pr-acc li::before { content: ""; position: absolute; left: 0.15rem; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--tsr-blue); }

.tsr-pr-contact { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 14px; background: #e0f1f8; }
.tsr-pr-contact b { display: block; color: var(--tsr-navy); }

@media (min-width: 860px) {
	.tsr-pr-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tsr-pr-sec { grid-template-columns: 220px minmax(0, 1fr); }
	.tsr-pr-sec__l { position: sticky; top: var(--tsr-ev-offset, 160px); align-self: start; }
}

@media (prefers-reduced-motion: reduce) {
	.tsr-pr-acc summary::after { transition: none; }
}

/* ── profile: personal records and history, v2 (owner 2026-11-28) ── */
.tsr-rp-pr2 {
	padding:    1rem 0;
	border-top: 1px solid var(--tsr-border);
}

.tsr-rp-pr2:first-child {
	padding-top: 0;
	border-top:  0;
}

.tsr-rp-pr2__h {
	display:         flex;
	flex-wrap:       wrap;
	align-items:     baseline;
	justify-content: space-between;
	gap:             0.25rem 1rem;
}

.tsr-rp-pr2__c {
	font-weight: 700;
}

.tsr-rp-pr2__c span {
	font-weight: 500;
	color:       var(--tsr-muted);
}

.tsr-rp-pr2__best {
	font-family:          "Ubuntu", sans-serif;
	font-size:            1.45rem;
	font-weight:          700;
	line-height:          1;
	color:                var(--tsr-navy);
	text-align:           right;
	font-variant-numeric: tabular-nums;
}

.tsr-rp-pr2__best small {
	display:        block;
	margin-top:     0.2rem;
	font-size:      0.68rem;
	font-weight:    600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color:          var(--tsr-muted);
}

.tsr-rp-try {
	display:               grid;
	grid-template-columns: 2.8rem minmax(0, 1fr) 4.6rem 4.4rem;
	align-items:           center;
	gap:                   0.6rem;
	margin-top:            0.55rem;
	font-size:             0.9rem;
	font-variant-numeric:  tabular-nums;
}

.tsr-rp-try__y {
	color: var(--tsr-muted);
}

.tsr-rp-try__b {
	height:        10px;
	overflow:      hidden;
	border-radius: 99px;
	background:    #e6eaef;
}

.tsr-rp-try__b i {
	display:       block;
	height:        100%;
	border-radius: 99px;
	background:    #9aa7b5;
}

.tsr-rp-try.is-pr .tsr-rp-try__b i {
	background: #15803d;
}

.tsr-rp-try__t {
	font-weight: 600;
	text-align:  right;
}

.tsr-rp-try.is-pr .tsr-rp-try__t {
	font-weight: 700;
	color:       #15803d;
}

.tsr-rp-try .tsr-rp-tag {
	justify-self: start;
}

.tsr-rp-tag--diff {
	background:  var(--tsr-bg);
	color:       var(--tsr-muted);
	font-weight: 600;
}

.tsr-rp-pr2__say {
	margin:    0.6rem 0 0;
	font-size: 0.86rem;
	color:     var(--tsr-muted);
}

.tsr-rp-pr2__say b {
	color: var(--tsr-text);
}

.tsr-rp-year--v2 summary {
	justify-content: flex-start;
	gap:             0.8rem;
	padding:         0.5rem 0;
}

.tsr-rp-year--v2 .tsr-rp-year__y {
	min-width:   3.2rem;
	font-family: "Ubuntu", sans-serif;
	font-size:   1.12rem;
}

.tsr-rp-year--v2 summary .tsr-rp-year__m {
	margin-left: 0;
	text-align:  left;
	white-space: nowrap;
}

.tsr-rp-year__w {
	display:         flex;
	flex-wrap:       wrap;
	justify-content: flex-end;
	gap:             0.25rem;
	margin-left:     auto;
	font-style:      normal;
}

.tsr-rp-year__w i {
	display:              grid;
	place-items:          center;
	width:                22px;
	height:               22px;
	border-radius:        50%;
	background:           var(--tsr-bg);
	color:                var(--tsr-muted);
	font-family:          "Ubuntu", sans-serif;
	font-size:            0.66rem;
	font-style:           normal;
	font-weight:          700;
	font-variant-numeric: tabular-nums;
}

.tsr-rp-year__w i.is-g,
.tsr-rp-run2__p b.is-g {
	border-color: #e3b63a;
	background:   #e3b63a;
	color:        #1f2933;
}

.tsr-rp-year__w i.is-s,
.tsr-rp-run2__p b.is-s {
	border-color: #c3cbd3;
	background:   #c3cbd3;
	color:        #1f2933;
}

.tsr-rp-year__w i.is-b,
.tsr-rp-run2__p b.is-b {
	border-color: #9a5d2c;
	background:   #9a5d2c;
	color:        #fff;
}

.tsr-rp-run2 {
	display:               grid;
	grid-template-columns: 3.2rem minmax(0, 1fr) auto;
	align-items:           center;
	gap:                   0.2rem 0.85rem;
	margin-bottom:         0.5rem;
	padding:               0.75rem 0.85rem;
	border-radius:         14px;
	background:            var(--tsr-bg);
	font-variant-numeric:  tabular-nums;
}

.tsr-rp-run2__p {
	grid-row:   span 2;
	text-align: center;
}

.tsr-rp-run2__p b {
	display:       grid;
	place-items:   center;
	width:         44px;
	height:        44px;
	margin:        0 auto;
	border:        2px solid var(--tsr-border);
	border-radius: 50%;
	background:    #fff;
	font-family:   "Ubuntu", sans-serif;
	font-size:     1.05rem;
	font-weight:   700;
}

.tsr-rp-run2__p small {
	display:    block;
	margin-top: 0.15rem;
	font-size:  0.68rem;
	color:      var(--tsr-muted);
}

.tsr-rp-run2__e {
	font-weight: 700;
}

.tsr-rp-run2__e a {
	color:           inherit;
	text-decoration: none;
}

.tsr-rp-run2__e a:hover,
.tsr-rp-run2__e a:focus-visible {
	color:           var(--tsr-blue-dk);
	text-decoration: underline;
}

.tsr-rp-run2__t {
	font-family: "Ubuntu", sans-serif;
	font-size:   1.08rem;
	font-weight: 700;
	text-align:  right;
}

.tsr-rp-run2.is-out .tsr-rp-run2__t {
	font-size:   0.82rem;
	font-weight: 600;
	color:       var(--tsr-muted);
}

.tsr-rp-run2__k,
.tsr-rp-run2__pc {
	font-size: 0.8rem;
	color:     var(--tsr-muted);
}

.tsr-rp-run2__pc {
	text-align: right;
}

.tsr-rp-run2__pc b {
	color: var(--tsr-blue-dk);
}

.tsr-rp-run2 .tsr-rp-bar,
.tsr-rp-run2__vs {
	grid-column: 2 / -1;
}

.tsr-rp-run2__vs {
	font-size: 0.8rem;
	color:     var(--tsr-muted);
}

.tsr-rp-run2__vs a {
	color:           var(--tsr-blue-dk);
	font-weight:     600;
	text-decoration: none;
}

.tsr-rp-run2__vs a:hover,
.tsr-rp-run2__vs a:focus-visible {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.tsr-rp-try {
		grid-template-columns: 2.6rem minmax(0, 1fr) 4.4rem;
	}

	.tsr-rp-try .tsr-rp-tag {
		grid-column: 2 / -1;
	}

	.tsr-rp-run2__p {
		grid-row: span 4;
		align-self: start;
	}

	.tsr-rp-run2__e,
	.tsr-rp-run2__t,
	.tsr-rp-run2__k,
	.tsr-rp-run2__pc {
		grid-column: 2 / -1;
		text-align:  left;
	}
}

/* achievements: DNF / DSQ counts (owner 2026-11-28) */
.tsr-ach__out {
	margin-top:  1.1rem;
	padding-top: 1rem;
	border-top:  1px solid var(--tsr-border);
}

.tsr-ach__out h3 {
	margin:         0 0 0.6rem;
	font-size:      0.72rem;
	font-weight:    700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color:          var(--tsr-muted);
}

.tsr-ach__out ul {
	display:    flex;
	flex-wrap:  wrap;
	gap:        0.6rem;
	margin:     0;
	padding:    0;
	list-style: none;
}

.tsr-ach__out li {
	display:       flex;
	align-items:   center;
	gap:           0.7rem;
	min-width:     11rem;
	padding:       0.6rem 0.9rem;
	border-radius: 14px;
	background:    var(--tsr-bg);
}

.tsr-ach__out li > b {
	font-family:          "Ubuntu", sans-serif;
	font-size:            1.5rem;
	line-height:          1;
	color:                var(--tsr-navy);
	font-variant-numeric: tabular-nums;
}

.tsr-ach__out strong {
	display:   block;
	font-size: 0.9rem;
}

.tsr-ach__out span {
	font-size: 0.78rem;
	color:     var(--tsr-muted);
}

/* ── profile: Форма as chips per start (owner 2026-11-28) ── */
.tsr-rp-form__tiles {
	display:               grid;
	grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
	gap:                   0.6rem;
	margin-bottom:         1rem;
}

.tsr-rp-form__tile {
	padding:       0.7rem 0.85rem;
	border-radius: 14px;
	background:    var(--tsr-bg);
}

.tsr-rp-form__tile small {
	display:        block;
	font-size:      0.66rem;
	font-weight:    600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color:          var(--tsr-muted);
}

.tsr-rp-form__tile b {
	display:              block;
	font-family:          "Ubuntu", sans-serif;
	font-size:            1.4rem;
	line-height:          1.25;
	color:                var(--tsr-navy);
	font-variant-numeric: tabular-nums;
}

.tsr-rp-form__tile span {
	font-size: 0.8rem;
	color:     var(--tsr-muted);
}

.tsr-rp-fy {
	display:               grid;
	grid-template-columns: 3rem minmax(0, 1fr) auto;
	align-items:           center;
	gap:                   0.7rem;
	padding:               0.55rem 0;
	border-top:            1px solid var(--tsr-border);
	font-variant-numeric:  tabular-nums;
}

.tsr-rp-fy__y {
	font-family: "Ubuntu", sans-serif;
	font-size:   1.02rem;
}

.tsr-rp-fy__c {
	display:   flex;
	flex-wrap: wrap;
	gap:       0.35rem;
}

.tsr-rp-chip {
	min-width:     2.5rem;
	min-height:    32px;
	padding:       0.25rem 0.4rem;
	border:        0;
	border-radius: 9px;
	font:          inherit;
	font-size:     0.85rem;
	font-weight:   700;
	text-align:    center;
	cursor:        pointer;
}

.tsr-rp-chip.is-a { background: #0b4f6c; color: #fff; }
.tsr-rp-chip.is-b { background: #2f8fb5; color: #fff; }
.tsr-rp-chip.is-c { background: #a9d8ea; color: #0a1628; }
.tsr-rp-chip.is-d { background: #e3eef3; color: #0a1628; box-shadow: inset 0 0 0 1px #c5d3da; }
.tsr-rp-chip.is-x { background: var(--tsr-bg); color: var(--tsr-muted); font-size: 0.72rem; font-weight: 600; }
.tsr-rp-chip.is-odd { opacity: 0.5; }

.tsr-rp-chip.is-on,
.tsr-rp-chip:focus-visible {
	outline:        3px solid #c4480f;
	outline-offset: 2px;
}

.tsr-rp-fy__a {
	font-size:   0.78rem;
	color:       var(--tsr-muted);
	text-align:  right;
	white-space: nowrap;
}

.tsr-rp-fy__a b {
	display:     block;
	font-family: "Ubuntu", sans-serif;
	font-size:   1.05rem;
	color:       var(--tsr-text);
}

.tsr-rp-legend--form {
	flex-wrap: wrap;
	gap:       0.35rem 1rem;
}

/* ── profile: season card v2 (owner 2026-11-28) ── */
.tsr-rp-sn__tiles {
	display:               grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap:                   0.6rem;
	margin-bottom:         1rem;
	font-variant-numeric:  tabular-nums;
}

.tsr-rp-sn__tile {
	min-width:     0;
	padding:       0.7rem 0.85rem;
	border-radius: 14px;
	background:    var(--tsr-bg);
}

.tsr-rp-sn__tile small {
	display:        block;
	font-size:      0.66rem;
	font-weight:    600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color:          var(--tsr-muted);
}

.tsr-rp-sn__tile b {
	display:     block;
	font-family: "Ubuntu", sans-serif;
	font-size:   1.4rem;
	line-height: 1.25;
	color:       var(--tsr-navy);
}

.tsr-rp-sn__tile span {
	font-size: 0.8rem;
	color:     var(--tsr-muted);
}

.tsr-rp-sn__tile a {
	color: var(--tsr-blue-dk);
}

.tsr-rp-sn__next {
	margin-bottom:        1rem;
	padding:              1rem 1.1rem;
	border-radius:        16px;
	background:           var(--tsr-navy);
	color:                #fff;
	font-variant-numeric: tabular-nums;
}

.tsr-rp-sn__k {
	font-size:      0.68rem;
	font-weight:    600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color:          #9fd8ee;
}

.tsr-rp-sn__h {
	display:         flex;
	flex-wrap:       wrap;
	align-items:     baseline;
	justify-content: space-between;
	gap:             0.2rem 1rem;
	margin-top:      0.15rem;
}

.tsr-rp-sn__n {
	font-family: "Ubuntu", sans-serif;
	font-size:   1.25rem;
	font-weight: 700;
}

.tsr-rp-sn__d {
	font-weight: 600;
}

.tsr-rp-sn__d b {
	font-family: "Ubuntu", sans-serif;
	font-size:   1.2rem;
	color:       #ffb38a;
}

.tsr-rp-sn__past {
	margin-top:  0.8rem;
	padding-top: 0.7rem;
	border-top:  1px solid rgba(255, 255, 255, 0.18);
	font-size:   0.88rem;
	color:       #d5dde8;
}

.tsr-rp-sn__past b {
	color: #fff;
}

.tsr-rp-sn__past ul {
	display:    grid;
	gap:        0.25rem;
	margin:     0.45rem 0 0;
	padding:    0;
	list-style: none;
}

.tsr-rp-sn__past li {
	display:         flex;
	justify-content: space-between;
	gap:             1rem;
}

.tsr-rp-sn__past li span:last-child {
	font-weight: 600;
	color:       #fff;
}

.tsr-rp-sn__races {
	margin:               0;
	padding:              0;
	list-style:           none;
	font-variant-numeric: tabular-nums;
}

.tsr-rp-sn__race {
	display:               grid;
	grid-template-columns: 28px minmax(0, 1fr) auto;
	align-items:           center;
	gap:                   0.1rem 0.7rem;
	padding:               0.6rem 0;
	border-top:            1px solid var(--tsr-border);
}

.tsr-rp-sn__race:first-child {
	border-top: 0;
}

.tsr-rp-sn__i {
	display:       grid;
	grid-row:      span 2;
	place-items:   center;
	width:         28px;
	height:        28px;
	border-radius: 50%;
	background:    var(--tsr-bg);
	color:         var(--tsr-muted);
	font-family:   "Ubuntu", sans-serif;
	font-size:     0.78rem;
	font-weight:   700;
}

.tsr-rp-sn__i.is-done { background: #15803d; color: #fff; }
.tsr-rp-sn__i.is-g { background: #e3b63a; color: #1f2933; }
.tsr-rp-sn__i.is-s { background: #c3cbd3; color: #1f2933; }
.tsr-rp-sn__i.is-b { background: #9a5d2c; color: #fff; }
.tsr-rp-sn__race.is-next .tsr-rp-sn__i { background: #c4480f; color: #fff; }

.tsr-rp-sn__rn {
	font-weight: 600;
}

.tsr-rp-sn__rn a {
	color:           inherit;
	text-decoration: none;
}

.tsr-rp-sn__rn a:hover,
.tsr-rp-sn__rn a:focus-visible {
	color:           var(--tsr-blue-dk);
	text-decoration: underline;
}

.tsr-rp-sn__rt {
	font-family: "Ubuntu", sans-serif;
	font-size:   0.98rem;
	font-weight: 700;
	text-align:  right;
}

.tsr-rp-sn__rm,
.tsr-rp-sn__rp {
	font-size: 0.78rem;
	color:     var(--tsr-muted);
}

.tsr-rp-sn__rp {
	text-align: right;
}

.tsr-rp-sn__race.is-miss .tsr-rp-sn__rn {
	font-weight: 500;
	color:       var(--tsr-muted);
}

.tsr-rp-sn__race.is-next .tsr-rp-sn__rn {
	font-weight: 700;
	color:       #c4480f;
}

@media (max-width: 420px) {
	.tsr-rp-sn__tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ── /rekordi/: men and women records (owner 2026-11-28) ── */
.tsr-rec__bar {
	position:      sticky;
	top:           0;
	z-index:       20;
	border-bottom: 1px solid var(--tsr-border);
	background:    #fff;
}

.tsr-rec__bar-in {
	display:     flex;
	flex-wrap:   wrap;
	align-items: center;
	gap:         0.6rem;
	padding-top: 0.7rem;
	padding-bottom: 0.7rem;
}

.tsr-rec__search {
	display:       flex;
	flex:          1 1 260px;
	align-items:   center;
	gap:           0.5rem;
	min-height:    44px;
	padding:       0 0.9rem;
	border:        1px solid var(--tsr-border);
	border-radius: 999px;
	background:    var(--tsr-bg);
	color:         var(--tsr-muted);
}

.tsr-rec__search input {
	flex:       1;
	min-width:  0;
	border:     0;
	background: transparent;
	color:      var(--tsr-text);
	font:       inherit;
	outline:    none;
	box-shadow: none;
	padding:    0;
}

.tsr-rec__search:focus-within {
	outline:        3px solid var(--tsr-blue);
	outline-offset: 1px;
}

.tsr-rec__seg {
	display:       inline-flex;
	padding:       3px;
	border-radius: 999px;
	background:    var(--tsr-bg);
}

.tsr-rec__seg button {
	min-height:    38px;
	padding:       0.4rem 0.95rem;
	border:        0;
	border-radius: 999px;
	background:    transparent;
	color:         var(--tsr-muted);
	font:          inherit;
	font-size:     0.88rem;
	font-weight:   600;
	cursor:        pointer;
}

.tsr-rec__seg button[aria-pressed="true"] {
	background: var(--tsr-navy);
	color:      #fff;
}

.tsr-rec__jump {
	display:    flex;
	flex:       1 1 100%;
	gap:        0.4rem;
	overflow-x: auto;
	scrollbar-width: thin;
}

.tsr-rec__jump a {
	flex:            0 0 auto;
	padding:         0.35rem 0.75rem;
	border-radius:   999px;
	background:      var(--tsr-bg);
	color:           var(--tsr-navy);
	font-size:       0.82rem;
	font-weight:     600;
	text-decoration: none;
}

.tsr-rec__jump a:hover,
.tsr-rec__jump a:focus-visible {
	background: #e0f2fe;
}

.tsr-rec__card,
#rec-old {
	scroll-margin-top: 220px;
}

.tsr-rec__sh {
	display:         flex;
	flex-wrap:       wrap;
	align-items:     baseline;
	justify-content: space-between;
	gap:             0.3rem 1rem;
	margin:          1.6rem 0 0.8rem;
}

.tsr-rec__sh h2 {
	margin:    0;
	font-size: 1.35rem;
}

.tsr-rec__sh p {
	margin:    0;
	font-size: 0.9rem;
	color:     var(--tsr-muted);
}

.tsr-rec__holders {
	display:               grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap:                   0.6rem;
}

.tsr-rec__holder {
	display:       flex;
	align-items:   center;
	gap:           0.75rem;
	padding:       0.7rem 0.9rem;
	border:        1px solid var(--tsr-border);
	border-radius: 14px;
	background:    #fff;
}

.tsr-rec__holder b {
	min-width:   2ch;
	font-family: "Ubuntu", sans-serif;
	font-size:   1.5rem;
	text-align:  center;
	color:       var(--tsr-blue-dk);
}

.tsr-rec__holder.is-f b {
	color: #b4235a;
}

.tsr-rec__holder a {
	font-weight:     600;
	color:           var(--tsr-text);
	text-decoration: none;
}

.tsr-rec__holder a:hover,
.tsr-rec__holder a:focus-visible {
	color:           var(--tsr-blue-dk);
	text-decoration: underline;
}

.tsr-rec__holder span {
	display:   block;
	font-size: 0.78rem;
	color:     var(--tsr-muted);
}

.tsr-rec__cards {
	display: grid;
	gap:     1rem;
}

.tsr-rec__card,
.tsr-rec__old {
	overflow:      hidden;
	border:        1px solid var(--tsr-border);
	border-radius: 18px;
	background:    #fff;
	font-variant-numeric: tabular-nums;
}

.tsr-rec__ch {
	display:         flex;
	flex-wrap:       wrap;
	align-items:     baseline;
	justify-content: space-between;
	gap:             0.3rem 1rem;
	padding:         1rem 1.1rem 0.6rem;
}

.tsr-rec__ch h3 {
	margin:    0;
	font-size: 1.15rem;
}

.tsr-rec__ch > span {
	font-size: 0.82rem;
	color:     var(--tsr-muted);
}

.tsr-rec__course {
	display:        inline-block;
	margin-left:    0.35rem;
	padding:        0.1rem 0.5rem;
	border-radius:  999px;
	background:     #e0f2fe;
	color:          #075985;
	font-family:    "Geist", sans-serif;
	font-size:      0.7rem;
	font-weight:    600;
	vertical-align: 2px;
}

.tsr-rec__colh,
.tsr-rec__row {
	display:               grid;
	grid-template-columns: 5.4rem minmax(0, 1fr) minmax(0, 1fr);
	gap:                   0.8rem;
}

.tsr-rec__colh {
	padding:        0 1.1rem 0.4rem;
	font-size:      0.68rem;
	font-weight:    700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color:          var(--tsr-blue-dk);
}

.tsr-rec__colh .is-f {
	color: #b4235a;
}

.tsr-rec__row {
	align-items: center;
	padding:     0.7rem 1.1rem;
	border-top:  1px solid var(--tsr-border);
}

.tsr-rec__k b {
	display:     block;
	font-family: "Ubuntu", sans-serif;
	font-size:   1.05rem;
}

.tsr-rec__k i {
	display:        block;
	font-size:      0.7rem;
	font-style:     normal;
	font-weight:    700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.tsr-rec__k i.is-s { color: #0e7490; }
.tsr-rec__k i.is-m { color: #1d4ed8; }
.tsr-rec__k i.is-l { color: #b91c1c; }

.tsr-rec__k small {
	display:   block;
	font-size: 0.7rem;
	color:     var(--tsr-muted);
}

.tsr-rec__cell {
	min-width:    0;
	padding-left: 0.65rem;
	border-left:  3px solid var(--tsr-blue-dk);
}

.tsr-rec__cell.is-f {
	border-left-color: #b4235a;
}

.tsr-rec__lab {
	display:        none;
	font-size:      0.66rem;
	font-weight:    700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color:          var(--tsr-blue-dk);
}

.tsr-rec__cell.is-f .tsr-rec__lab {
	color: #b4235a;
}

.tsr-rec__t {
	display:     block;
	font-family: "Ubuntu", sans-serif;
	font-size:   1.12rem;
	font-weight: 700;
}

.tsr-rec__p {
	margin-left: 0.35rem;
	font-family: "Geist", sans-serif;
	font-size:   0.76rem;
	font-weight: 500;
	color:       var(--tsr-muted);
}

.tsr-rec__n {
	display:         block;
	overflow:        hidden;
	color:           var(--tsr-text);
	font-size:       0.88rem;
	font-weight:     600;
	text-decoration: none;
	text-overflow:   ellipsis;
	white-space:     nowrap;
}

.tsr-rec__n:hover,
.tsr-rec__n:focus-visible {
	color:           var(--tsr-blue-dk);
	text-decoration: underline;
}

.tsr-rec__y {
	font-size: 0.76rem;
	color:     var(--tsr-muted);
}

.tsr-rec__y a {
	color: var(--tsr-muted);
}

.tsr-rec__none {
	font-size: 0.82rem;
	color:     var(--tsr-muted);
}

.tsr-rec__fast {
	display:       inline-block;
	margin-top:    0.15rem;
	padding:       0.05rem 0.45rem;
	border-radius: 999px;
	background:    #fdf2f8;
	color:         #b4235a;
	font-size:     0.68rem;
	font-weight:   700;
}

.tsr-rec__old {
	margin-bottom: 0.6rem;
}

.tsr-rec__old summary {
	display:     flex;
	align-items: center;
	gap:         1rem;
	min-height:  52px;
	padding:     0.6rem 1.1rem;
	font-weight: 700;
	list-style:  none;
	cursor:      pointer;
}

.tsr-rec__old summary::-webkit-details-marker {
	display: none;
}

.tsr-rec__old summary span {
	margin-left: auto;
	font-size:   0.85rem;
	font-weight: 500;
	color:       var(--tsr-muted);
	text-align:  right;
}

.tsr-rec__old summary::after {
	content:       "";
	flex:          0 0 auto;
	width:         9px;
	height:        9px;
	border-right:  2px solid var(--tsr-muted);
	border-bottom: 2px solid var(--tsr-muted);
	transform:     rotate(45deg);
}

.tsr-rec__old[open] summary::after {
	transform: rotate(-135deg);
}

.tsr-rec__grp {
	padding:        0.7rem 1.1rem 0.2rem;
	border-top:     1px solid var(--tsr-border);
	font-size:      0.72rem;
	font-weight:    700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color:          var(--tsr-muted);
}

.tsr-rec__grp + .tsr-rec__row {
	border-top: 0;
}

.tsr-rec__empty {
	margin:     1rem 0;
	color:      var(--tsr-muted);
}

.tsr-rec.is-only-m .tsr-rec__cell.is-f,
.tsr-rec.is-only-f .tsr-rec__cell:not(.is-f) {
	display: none;
}

.tsr-rec.is-only-m .tsr-rec__colh .is-f,
.tsr-rec.is-only-f .tsr-rec__colh span:nth-child(2) {
	visibility: hidden;
}

@media (min-width: 900px) {
	.tsr-rec__cards {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 700px) {
	.tsr-rec__bar {
		position: static;
	}
}

@media (max-width: 560px) {
	.tsr-rec__colh {
		display: none;
	}

	.tsr-rec__row {
		grid-template-columns: 4.4rem minmax(0, 1fr);
		row-gap: 0.6rem;
	}

	.tsr-rec__row .tsr-rec__cell {
		grid-column: 2;
	}

	.tsr-rec__row .tsr-rec__k {
		grid-row: span 2;
		align-self: start;
	}

	.tsr-rec__lab {
		display: block;
	}

	.tsr-rec.is-only-m .tsr-rec__row .tsr-rec__k,
	.tsr-rec.is-only-f .tsr-rec__row .tsr-rec__k {
		grid-row: auto;
	}
}

/* ── event page v4 (owner-approved mockup, 2026-11-28): bands, one card style ── */
.tsr-ev2__main { padding: 0; }

.tsr-ev2__band { padding: clamp(2rem, 5vw, 3.4rem) 0; background: #fff; }
.tsr-ev2__band--grey { background: var(--tsr-bg); }
.tsr-ev2__band--navy { background: var(--tsr-navy); color: #fff; }
.tsr-ev2 #ev-about { padding-top: 1.25rem; }
.tsr-ev2 [id^="ev-"] { scroll-margin-top: 110px; }

.tsr-ev2__eyebrow {
	display:        block;
	margin-bottom:  .4rem;
	color:          var(--tsr-blue-dk);
	font-size:      .72rem;
	font-weight:    700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.tsr-ev2__band--navy .tsr-ev2__eyebrow { color: #9fd8ee; }
.tsr-ev2__h2 { margin: 0; color: inherit; font: 700 clamp(1.5rem, 3.4vw, 2.1rem)/1.15 Ubuntu, sans-serif; }
.tsr-ev2__band:not(.tsr-ev2__band--navy) .tsr-ev2__h2 { color: var(--tsr-navy); }
.tsr-ev2__sub { margin: .25rem 0 1.2rem; color: var(--tsr-muted); font-size: .92rem; }

/* about + facts */
.tsr-ev2__about { display: grid; gap: 1.6rem; align-items: start; margin-top: 1.2rem; }
.tsr-ev2__desc { max-width: 62ch; margin-top: .9rem; color: #374151; }
.tsr-ev2__desc > p:first-child { color: #1f2937; font-size: 1.12rem; line-height: 1.6; }
.tsr-ev2__desc > :last-child { margin-bottom: 0; }
.tsr-ev2__support {
	display:       inline-flex;
	flex-wrap:     wrap;
	align-items:   center;
	gap:           .5rem .9rem;
	margin:        1.4rem 0 0;
	padding:       .9rem 1.1rem;
	border:        1px solid var(--tsr-border);
	border-radius: 16px;
	background:    #fff;
}
.tsr-ev2__support span { color: var(--tsr-muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tsr-ev2__support img { width: auto; height: 44px; max-width: 100%; }

.tsr-ev2__fact {
	overflow:      hidden;
	border:        1px solid var(--tsr-border);
	border-radius: 20px;
	background:    #fff;
	box-shadow:    0 10px 30px rgba(10, 22, 40, .07);
	font-variant-numeric: tabular-nums;
}
.tsr-ev2__fact-top { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--tsr-navy); color: #fff; }
.tsr-ev2__fact-d { font: 700 2.6rem/1 Ubuntu, sans-serif; }
.tsr-ev2__fact-top b { display: block; font: 700 1.05rem Ubuntu, sans-serif; }
.tsr-ev2__fact-top span span, .tsr-ev2__fact-top div span { color: #cfd8e3; font-size: .85rem; }
.tsr-ev2__fact dl { margin: 0; padding: .3rem 1.2rem; }
.tsr-ev2__fact dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--tsr-border); }
.tsr-ev2__fact dl div:first-child { border-top: 0; }
.tsr-ev2__fact dt { color: var(--tsr-muted); font-size: .9rem; }
.tsr-ev2__fact dd { margin: 0; font-weight: 700; text-align: right; }
.tsr-ev2__fact-cta { padding: .4rem 1.2rem 1.2rem; }
.tsr-ev2__btn {
	box-sizing:      border-box;
	display:         inline-flex;
	align-items:     center;
	justify-content: center;
	min-height:      48px;
	padding:         0 1.5rem;
	border-radius:   999px;
	background:      var(--tsr-orange);
	color:           #fff;
	font-weight:     700;
	text-decoration: none;
}
.tsr-ev2__btn:hover, .tsr-ev2__btn:focus-visible { color: #fff; filter: brightness(1.08); }
.tsr-ev2__fact-cta .tsr-ev2__btn { width: 100%; }
.tsr-ev2__btn--line { border: 1.5px solid var(--tsr-navy); background: transparent; color: var(--tsr-navy); }
.tsr-ev2__btn--line:hover, .tsr-ev2__btn--line:focus-visible { background: var(--tsr-navy); color: #fff; filter: none; }
.tsr-ev2__cal { display: block; margin-top: .7rem; color: var(--tsr-blue-dk); font-size: .92rem; font-weight: 700; text-align: center; text-decoration: none; }
.tsr-ev2__cal:hover, .tsr-ev2__cal:focus-visible { text-decoration: underline; }

/* no description yet: the fact card lies flat */
.tsr-ev2__about.is-solo .tsr-ev2__fact { display: grid; }
.tsr-ev2__about.is-solo .tsr-ev2__fact-cta { padding-top: 1rem; }

/* highlights */
.tsr-ev2__hl { display: grid; gap: 1rem; margin-top: 1.4rem; }
.tsr-ev2__hl article { padding: 1.2rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; background: #13233c; }
.tsr-ev2__hl-ic { display: block; margin-bottom: .4rem; font-size: 1.7rem; }
.tsr-ev2__hl h3 { margin: 0 0 .3rem; color: #fff; font: 700 1.1rem Ubuntu, sans-serif; }
.tsr-ev2__hl p { margin: 0; color: #cfd8e3; font-size: .95rem; }

/* distances + records */
.tsr-ev2__dists { display: grid; gap: 1rem; }
.tsr-ev2__dist {
	display:        flex;
	flex-direction: column;
	padding:        1.1rem;
	border:         1px solid var(--tsr-border);
	border-top:     5px solid var(--c);
	border-radius:  18px;
	background:     #fff;
	font-variant-numeric: tabular-nums;
}
.tsr-ev2__dist-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.tsr-ev2__dist-h h3 { margin: 0; color: var(--tsr-navy); font: 700 1.8rem/1 Ubuntu, sans-serif; }
.tsr-ev2__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: .9rem 0 .5rem; }
.tsr-ev2__stats dt { min-height: 1.7rem; color: var(--tsr-muted); font-size: .62rem; font-weight: 600; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }
.tsr-ev2__stats dd { margin: 0; color: var(--tsr-navy); font: 700 .98rem Ubuntu, sans-serif; }
.tsr-ev2__dist .tsr-trk__spark { display: block; width: 100%; height: 46px; margin: .2rem 0 .9rem; color: var(--c); }
.tsr-ev2__recs { display: grid; gap: .6rem; padding-top: .9rem; border-top: 1px solid var(--tsr-border); }
.tsr-ev2__rec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .8rem; padding-left: .65rem; border-left: 3px solid var(--tsr-blue-dk); }
.tsr-ev2__rec.is-f { border-left-color: #b4235a; }
.tsr-ev2__rec-l { grid-column: 1 / -1; color: var(--tsr-blue-dk); font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tsr-ev2__rec.is-f .tsr-ev2__rec-l { color: #b4235a; }
.tsr-ev2__rec a { overflow: hidden; color: var(--tsr-text); font-size: .92rem; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.tsr-ev2__rec a:hover, .tsr-ev2__rec a:focus-visible { color: var(--tsr-blue-dk); text-decoration: underline; }
.tsr-ev2__rec-t { grid-column: 2; grid-row: 2 / 4; color: var(--tsr-navy); font: 700 1.15rem Ubuntu, sans-serif; text-align: right; }
.tsr-ev2__rec-t small { display: block; color: var(--tsr-muted); font: 500 .74rem Geist, sans-serif; }
.tsr-ev2__rec-y { color: var(--tsr-muted); font-size: .76rem; }
.tsr-ev2__since { margin: 0; color: var(--tsr-muted); font-size: .76rem; }
.tsr-ev2__more { margin-top: auto; padding-top: 1rem; color: var(--tsr-blue-dk); font-size: .92rem; font-weight: 700; text-decoration: none; }
.tsr-ev2__more:hover, .tsr-ev2__more:focus-visible { text-decoration: underline; }
.tsr-ev2__note { margin: 1.1rem 0 0; font-size: .92rem; font-weight: 700; }
.tsr-ev2__note a { color: var(--tsr-blue-dk); text-decoration: none; }
.tsr-ev2__note a:hover, .tsr-ev2__note a:focus-visible { text-decoration: underline; }

/* programme + fees */
.tsr-ev2__two { display: grid; gap: 1.6rem; }
.tsr-ev2__tl { margin: 1.1rem 0 0; padding: 0; list-style: none; font-variant-numeric: tabular-nums; }
.tsr-ev2__tl li { position: relative; display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); gap: 1rem; padding: 0 0 1.2rem; }
.tsr-ev2__tl li::before { content: ""; position: absolute; top: .45rem; left: 8.05rem; width: 11px; height: 11px; border-radius: 50%; background: var(--tsr-orange); box-shadow: 0 0 0 4px #fde6da; }
.tsr-ev2__tl li::after { content: ""; position: absolute; top: 1.2rem; bottom: -.3rem; left: calc(8.05rem + 5px); width: 1px; background: var(--tsr-border); }
.tsr-ev2__tl li:last-child::after { display: none; }
.tsr-ev2__tl b { padding-right: .4rem; color: var(--tsr-navy); font: 700 1.05rem Ubuntu, sans-serif; text-align: right; }
.tsr-ev2__tl span { padding-left: 1.2rem; }
.tsr-ev2__fees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1.1rem; font-variant-numeric: tabular-nums; }
.tsr-ev2__fee { padding: .9rem 1rem; border: 1px solid var(--tsr-border); border-radius: 16px; background: #fff; }
.tsr-ev2__fee b { display: block; color: var(--tsr-navy); font: 700 1.7rem/1.1 Ubuntu, sans-serif; }
.tsr-ev2__fee strong { display: block; margin-top: .2rem; }
.tsr-ev2__fee span { color: var(--tsr-muted); font-size: .82rem; }
.tsr-ev2__fee.is-main { border-color: var(--tsr-navy); background: var(--tsr-navy); color: #fff; }
.tsr-ev2__fee.is-main b { color: #fff; }
.tsr-ev2__fee.is-main span { color: #cfd8e3; }

/* getting there */
.tsr-ev2__go { display: grid; gap: 1.6rem; align-items: center; }
.tsr-ev2__go figure { margin: 0; }
.tsr-ev2__go figure img { width: 100%; height: auto; border-radius: 18px; }
.tsr-ev2__go ul { display: grid; gap: .8rem; margin: 1rem 0 1.2rem; padding: 0; list-style: none; }
.tsr-ev2__go li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .8rem; align-items: start; }
.tsr-ev2__go li i { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--tsr-border); border-radius: 12px; background: #fff; font-size: 1.1rem; font-style: normal; }
.tsr-ev2__go li b { display: block; }
.tsr-ev2__go li span { color: var(--tsr-muted); font-size: .93rem; }

/* cause + partners */
.tsr-ev2__cause { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem 1.1rem; align-items: center; padding: 1.1rem 1.2rem; border: 1px solid #f9c6dc; border-radius: 18px; background: #fff5f9; }
.tsr-ev2__cause-i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fce7f3; font-size: 1.3rem; }
.tsr-ev2__cause b { display: block; color: #831843; font: 700 1.1rem Ubuntu, sans-serif; }
.tsr-ev2__cause span { color: #4b5563; font-size: .93rem; }
.tsr-ev2__cause p { display: flex; flex-wrap: wrap; grid-column: 2; gap: .3rem 1.2rem; margin: 0; }
.tsr-ev2__cause p a { color: #b4235a; font-size: .92rem; font-weight: 700; text-decoration: none; }
.tsr-ev2__cause p a:hover, .tsr-ev2__cause p a:focus-visible { text-decoration: underline; }
.tsr-ev2__cause + .tsr-ev2__partners { margin-top: 2.4rem; }
.tsr-ev2__partners ul { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.tsr-ev2__partners li > * { display: grid; place-items: center; min-width: 150px; height: 84px; padding: .6rem 1.1rem; border: 1px solid var(--tsr-border); border-radius: 14px; background: #fff; color: var(--tsr-muted); font-weight: 700; text-decoration: none; }
.tsr-ev2__partners img { width: auto; max-width: 150px; height: auto; max-height: 56px; object-fit: contain; }
.tsr-ev2__partners a:hover, .tsr-ev2__partners a:focus-visible { border-color: var(--tsr-blue-dk); }
.tsr-ev2__partners em { font-style: normal; }

@media (min-width: 900px) {
	.tsr-ev2__about { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); }
	.tsr-ev2__about.is-solo { grid-template-columns: minmax(0, 1fr); }
	.tsr-ev2__about.is-solo .tsr-ev2__fact { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
	.tsr-ev2__about.is-solo .tsr-ev2__fact-top { align-self: stretch; }
	.tsr-ev2__about.is-solo .tsr-ev2__fact dl { display: flex; flex-wrap: wrap; gap: .4rem 2rem; padding: .8rem 1.4rem; }
	.tsr-ev2__about.is-solo .tsr-ev2__fact dl div { display: block; padding: 0; border: 0; }
	.tsr-ev2__about.is-solo .tsr-ev2__fact dd { text-align: left; }
	.tsr-ev2__about.is-solo .tsr-ev2__fact-cta { padding: 1rem 1.2rem; }
	.tsr-ev2__hl { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
	.tsr-ev2__dists { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tsr-ev2__two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.tsr-ev2__two.is-one { grid-template-columns: minmax(0, 720px); }
	.tsr-ev2__go { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
	.tsr-ev2__go.is-one { grid-template-columns: minmax(0, 720px); }
}

@media (max-width: 640px) {
	.tsr-ev2__tl li { grid-template-columns: 4.6rem minmax(0, 1fr); }
	.tsr-ev2__tl li::before { left: 5.05rem; }
	.tsr-ev2__tl li::after { left: calc(5.05rem + 5px); }
	.tsr-ev2__partners li > * { min-width: 130px; height: 72px; }
}

@media (max-width: 380px) {
	.tsr-ev2__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tsr-ev2__stats dt { min-height: 0; }
}
