html {
	scroll-behavior: smooth;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
body {
	font-family:
		"Inter",
		-apple-system,
		BlinkMacSystemFont,
		sans-serif;
	background: #edeae4;
	color: #1a1a1a;
	min-height: 100vh;
}

/* ── Typography ────────────────────────────────────────────────────────── */
.display {
	font-family: "Barlow Condensed", sans-serif;
	font-style: italic;
	font-weight: 900;
	line-height: 0.95;
	text-transform: uppercase;
}
.eyebrow {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #c0392b;
}

blockquote {
	position: relative;
	margin: 2rem 0;
	padding-left: 2.75rem;
	font-family: "Barlow Condensed", sans-serif;
	font-style: italic;
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1.2;
	color: #141414;
}
blockquote::before {
	content: "\201C";
	position: absolute;
	left: 0;
	top: -0.05em;
	font-family: "Barlow Condensed", sans-serif;
	font-size: 3.25rem;
	font-weight: 900;
	font-style: normal;
	line-height: 1;
	color: #c0392b;
}

/* ── Brand / Nav ───────────────────────────────────────────────────────── */
.site-nav {
	background: #141414;
	padding: 0.9rem 2rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	border-bottom: 1px solid #1e1e1e;
}
.brand {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
}
.brand-wordmark {
	display: flex;
	align-items: baseline;
}
.brand-b {
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: -0.025em;
	color: #fff;
}
.brand-d {
	font-size: 0.95rem;
	font-weight: 300;
	letter-spacing: -0.01em;
	color: #888;
	font-style: italic;
}
.site-nav .sep {
	color: #555;
	font-size: 0.8rem;
}
.site-nav .current {
	color: #fff;
	font-weight: 500;
	font-size: 0.8rem;
}
.site-nav .nav-right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 1.25rem;
}
.site-nav .nav-right a,
.site-nav .nav-dropdown summary {
	color: #aaa;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
}
.site-nav .nav-right a:hover,
.site-nav .nav-dropdown summary:hover {
	color: #fff;
}
.site-nav .nav-dropdown {
	position: relative;
}
.site-nav .nav-dropdown summary {
	cursor: pointer;
	list-style: none;
}
.site-nav .nav-dropdown summary::-webkit-details-marker {
	display: none;
}
.site-nav .nav-dropdown summary::after {
	content: "▾";
	font-size: 0.65rem;
	margin-left: 0.35rem;
}
.site-nav .nav-dropdown-menu {
	background: #141414;
	border: 1px solid #2a2a2a;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
	display: grid;
	gap: 0.2rem;
	min-width: 170px;
	padding: 0.45rem;
	position: absolute;
	right: 0;
	top: calc(100% + 0.6rem);
	z-index: 10;
}
.site-nav .nav-dropdown-menu a {
	border-radius: 6px;
	padding: 0.45rem 0.55rem;
	white-space: nowrap;
}
.site-nav .nav-dropdown-menu a:hover {
	background: #222;
}

/* ── Pace tool header (index page) ────────────────────────────────────── */
header.tool-header {
	background: #141414;
	color: #fff;
	padding: 0.9rem 2rem;
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-wrap: wrap;
}
.header-divider {
	color: #333;
	font-size: 0.9rem;
}
.header-page {
	font-size: 0.8rem;
	color: #888;
	font-weight: 400;
	letter-spacing: 0.01em;
}

/* ── Controls bar (pace tool) ──────────────────────────────────────────── */
.controls {
	background: #f7f4ef;
	border-bottom: 1px solid #e8e4de;
	padding: 0.75rem 2rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
}
.controls label {
	font-size: 0.8rem;
	color: #666;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.controls select {
	font-size: 0.9rem;
	padding: 0.35rem 0.65rem;
	border: 1px solid #d5d0c8;
	border-radius: 6px;
	background: #f7f4ef;
	cursor: pointer;
}
.controls select:focus {
	outline: 2px solid #c0392b;
	outline-offset: 1px;
}

/* ── Status ────────────────────────────────────────────────────────────── */
.status {
	padding: 3rem 2rem;
	text-align: center;
	color: #888;
	font-size: 0.9rem;
}
.status.error {
	color: #c0392b;
}

/* ── Main ──────────────────────────────────────────────────────────────── */
main {
	padding: 1.5rem 2rem 3rem;
}

/* ── Stats grid ────────────────────────────────────────────────────────── */
.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px;
	margin-bottom: 2rem;
}
.stat {
	background: #f7f4ef;
	border-radius: 8px;
	border: 1px solid #e8e4de;
	padding: 0.85rem 1rem;
}
.stat-label {
	font-size: 0.72rem;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 4px;
}
.stat-value {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1a1a1a;
}
.stat-sub {
	font-size: 0.75rem;
	color: #666;
	margin-top: 2px;
}

/* ── Section ───────────────────────────────────────────────────────────── */
.section {
	margin-bottom: 2rem;
}
.section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 0.75rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.section-title {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.section-desc {
	font-size: 0.8rem;
	color: #555;
	margin-top: 2px;
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.card {
	background: #f7f4ef;
	border-radius: 10px;
	border: 1px solid #e8e4de;
	padding: 1.25rem 1.5rem;
}
.card-title {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #555;
	margin-bottom: 1rem;
}

/* ── Legend bar ────────────────────────────────────────────────────────── */
.legend-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	flex-wrap: wrap;
}
#runnerSearch {
	flex: 0 0 auto;
	width: 200px;
	padding: 0.35rem 0.9rem;
	border: 1px solid #d5d0c8;
	border-radius: 20px;
	font-size: 0.82rem;
	color: #333;
	background: #f7f4ef;
	outline: none;
	transition: border-color 0.15s;
}
#runnerSearch:focus {
	border-color: #c0392b;
	background: #fff;
}
#runnerSearch::placeholder {
	color: #bbb;
}

/* ── Quick buttons ─────────────────────────────────────────────────────── */
.quick-btns {
	display: flex;
	gap: 5px;
}
.qbtn {
	font-size: 0.78rem;
	padding: 0.3rem 0.8rem;
	border: 1px solid #d5d0c8;
	border-radius: 20px;
	background: #f7f4ef;
	cursor: pointer;
	color: #555;
	transition:
		background 0.12s,
		border-color 0.12s,
		color 0.12s;
	white-space: nowrap;
}
.qbtn:hover {
	background: #e8e4de;
	border-color: #bbb;
}

/* ── Runner pills ──────────────────────────────────────────────────────── */
#legend {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.leg-item {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	padding: 5px 10px;
	border-radius: 6px;
	border: 1px solid #e0dad2;
	user-select: none;
	background: #f7f4ef;
	transition:
		opacity 0.15s,
		border-color 0.15s;
}
.leg-item:hover {
	border-color: #bbb;
	background: #e8e4de;
}
.leg-item.off {
	opacity: 0.45;
}
.leg-item.on {
	border-left-width: 3px;
	padding-left: 8px;
}
.leg-swatch {
	flex-shrink: 0;
	display: block;
}
.leg-name {
	font-size: 0.78rem;
	color: #333;
	white-space: nowrap;
}
.show-more-btn {
	font-size: 0.75rem;
	padding: 5px 12px;
	border-radius: 6px;
	border: 1px dashed #c8c4bc;
	background: #f7f4ef;
	color: #555;
	cursor: pointer;
	white-space: nowrap;
	align-self: center;
}
.show-more-btn:hover {
	background: #e8e4de;
	border-color: #aaa;
	color: #444;
}

/* ── Charts ────────────────────────────────────────────────────────────── */
.chart-wrap {
	position: relative;
	width: 100%;
	height: 420px;
	margin-top: 1rem;
}
.dnf-chart-wrap {
	height: 400px;
}

/* ── Hero (race pages) ─────────────────────────────────────────────────── */
.race-hero {
	background: #1a1a1a;
	color: #fff;
	padding: 3rem 2rem 2.5rem;
}
.race-event {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #c0392b;
	margin-bottom: 0.5rem;
}
.race-hero h1 {
	font-family: "Barlow Condensed", sans-serif;
	font-style: italic;
	font-weight: 900;
	text-transform: uppercase;
	font-size: clamp(2.8rem, 6vw, 4.5rem);
	letter-spacing: -0.01em;
	line-height: 0.95;
	margin-bottom: 1.25rem;
}
.race-tagline {
	font-size: 0.9rem;
	color: #999;
	margin-bottom: 2rem;
}
.hero-stats {
	display: flex;
	gap: 2.5rem;
	flex-wrap: wrap;
}
.hstat-val {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	font-size: 2.2rem;
	line-height: 1;
	color: #fff;
	letter-spacing: -0.01em;
}
.hstat-label {
	font-size: 0.7rem;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: 4px;
}
.winner-val {
	color: #c0392b;
}

/* ── Description (race pages) ──────────────────────────────────────────── */
.race-desc {
	background: #f7f4ef;
	border-bottom: 1px solid #e8e4de;
	padding: 1.25rem 2rem;
	font-size: 0.88rem;
	color: #555;
	line-height: 1.6;
	max-width: 780px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
	text-align: center;
	padding: 2rem;
	font-size: 0.75rem;
	color: #555;
	border-top: 1px solid #e8e4de;
	background: #f7f4ef;
}
footer a {
	color: #444;
	text-decoration: none;
}
footer a:hover {
	color: #c0392b;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.h-hero {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E"),
		linear-gradient(rgba(10, 10, 10, 0.87), rgba(10, 10, 10, 0.87)),
		url("/assets/img/bakcyard-runner-hero-image.jpeg");
	background-size:
		300px 300px,
		cover,
		cover;
	background-position:
		top left,
		center,
		center;
	background-blend-mode: overlay, normal, normal;
	color: #fff;
}
.h-hero-inner {
	padding: 5rem 3rem 4rem;
	max-width: 820px;
}
.h-headline {
	font-size: clamp(5rem, 14vw, 10rem);
	color: #fff;
	margin: 1rem 0 1.75rem;
}
.h-line1 {
	display: block;
	color: #fff;
}
.h-line2 {
	display: block;
	color: #c0392b;
}
.h-sub {
	font-size: 1.05rem;
	color: #aaa;
	line-height: 1.65;
	max-width: 480px;
	margin-bottom: 0;
}
.h-ctas {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.cta-primary {
	display: inline-block;
	padding: 0.7rem 1.5rem;
	background: #c0392b;
	color: #fff;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 6px;
	transition: background 0.15s;
}
.cta-primary:hover {
	background: #a93226;
}
.cta-ghost {
	color: #aaa;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
	transition: color 0.15s;
}
.cta-ghost:hover {
	color: #fff;
}

/* ── Format bar ────────────────────────────────────────────────────────── */
.h-format-bar {
	border-top: 1px solid #1e1e1e;
	padding: 1.5rem 3rem;
	display: flex;
	align-items: center;
	gap: 0;
	flex-wrap: wrap;
}
.h-format-item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.5rem 2rem 0.5rem 0;
}
.h-format-num {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 900;
	font-size: 2rem;
	color: #fff;
	line-height: 1;
}
.h-format-label {
	font-size: 0.68rem;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.h-format-div {
	width: 1px;
	height: 2rem;
	background: #222;
	margin: 0 2rem 0 0;
	flex-shrink: 0;
}

/* ── Featured content ──────────────────────────────────────────────────── */
.h-featured {
	background: #edeae4;
	padding: 4rem 0 2rem;
}
.h-featured-inner {
	padding: 0 3rem;
}
.h-feat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.h-feat-card {
	display: flex;
	flex-direction: column;
	padding: 2rem;
	background: rgba(255, 255, 255, 0.52);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-radius: 12px;
	text-decoration: none;
	box-shadow:
		0 2px 16px rgba(0, 0, 0, 0.05),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	transition:
		border-color 0.2s,
		background 0.2s,
		box-shadow 0.2s,
		transform 0.2s;
}
.h-feat-card:hover {
	border-color: rgba(192, 57, 43, 0.45);
	background: rgba(255, 255, 255, 0.7);
	transform: translateY(-2px);
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.h-feat-eyebrow {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #c0392b;
	margin-bottom: 0.75rem;
}
.h-feat-title {
	font-family: "Barlow Condensed", sans-serif;
	font-style: italic;
	font-weight: 900;
	text-transform: uppercase;
	font-size: clamp(1.8rem, 2.5vw, 2.4rem);
	color: #141414;
	line-height: 0.95;
	margin-bottom: 1rem;
}
.h-feat-desc {
	font-size: 0.88rem;
	color: #666;
	line-height: 1.65;
	flex: 1;
}
.h-feat-arrow {
	display: block;
	font-size: 1.1rem;
	color: #bbb;
	margin-top: 1.75rem;
	transition:
		color 0.15s,
		transform 0.15s;
}
.h-feat-card:hover .h-feat-arrow {
	color: #c0392b;
	transform: translateX(4px);
}

/* ── Races ─────────────────────────────────────────────────────────────── */
.h-races {
	background: #edeae4;
	padding: 4rem 0;
}
.h-races-inner {
	padding: 0 3rem;
}
.h-race-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
.h-race-card {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 2rem;
	background: #1a1a1a;
	border-radius: 12px;
	text-decoration: none;
	transition:
		transform 0.2s,
		box-shadow 0.2s;
	position: relative;
	overflow: hidden;
}
.h-race-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		135deg,
		rgba(192, 57, 43, 0.08) 0%,
		transparent 60%
	);
	opacity: 0;
	transition: opacity 0.2s;
}
.h-race-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.h-race-card:hover::before {
	opacity: 1;
}
.h-race-card--dim {
	background: #151515;
}
.h-race-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}
.h-race-eyebrow {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #999;
	margin-bottom: 0.75rem;
}
.h-race-name {
	font-size: clamp(2.2rem, 4vw, 3rem);
	color: #fff;
	line-height: 0.92;
}
.h-race-arrow {
	font-size: 1.25rem;
	color: #888;
	transition:
		color 0.15s,
		transform 0.15s;
}
.h-race-card:hover .h-race-arrow {
	color: #c0392b;
	transform: translateX(4px);
}
.h-race-stats {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}
.h-race-stat {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.h-race-num {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	font-size: 1.8rem;
	color: #fff;
	line-height: 1;
	letter-spacing: -0.01em;
}
.h-race-unit {
	font-size: 1rem;
	font-weight: 600;
	margin-left: 0.1rem;
}
.h-race-slabel {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #999;
}
.winner-stat .h-race-num {
	font-size: 1.1rem;
	font-family: "Inter", sans-serif;
	font-weight: 700;
	color: #c0392b;
	font-style: normal;
}
.h-race-note {
	font-size: 0.7rem;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	border-top: 1px solid #2a2a2a;
	padding-top: 1.25rem;
}

/* ── About + signup ────────────────────────────────────────────────────── */
.h-bottom {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #0f0f0f;
}
.h-about {
	padding: 5rem 3rem 5rem;
	border-right: 1px solid #1e1e1e;
}
.h-about-h2 {
	font-size: clamp(3rem, 5vw, 4.5rem);
	color: #fff;
	margin-bottom: 2rem;
}
.h-about-body {
	font-size: 0.9rem;
	color: #bbb;
	line-height: 1.75;
	margin-bottom: 1rem;
	max-width: 460px;
}
.h-about-link {
	display: inline-block;
	margin-top: 1rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: #c0392b;
	text-decoration: none;
}
.h-about-link:hover {
	text-decoration: underline;
}

.h-signup {
	padding: 5rem 3rem 5rem;
}
.h-signup-h2 {
	font-size: clamp(3rem, 5vw, 4.5rem);
	color: #fff;
	margin-bottom: 1.5rem;
}
.h-signup-body {
	font-size: 0.9rem;
	color: #aaa;
	line-height: 1.65;
	margin-bottom: 2rem;
	max-width: 360px;
}
.h-signup-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	max-width: 360px;
}
.h-signup-input {
	padding: 0.75rem 1rem;
	border: 1px solid #222;
	border-radius: 6px;
	font-size: 0.9rem;
	font-family: inherit;
	background: #161616;
	color: #fff;
	outline: none;
	transition: border-color 0.15s;
}
.h-signup-input:focus {
	border-color: #c0392b;
}
.h-signup-input::placeholder {
	color: #777;
}
.h-signup-btn {
	padding: 0.75rem 1rem;
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	letter-spacing: 0.02em;
	transition: background 0.15s;
}
.h-signup-btn:hover {
	background: #a93226;
}
.h-signup-note {
	font-size: 0.75rem;
	color: #888;
	line-height: 1.6;
	margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SHARED PAGE LAYOUT (learn, records, and future content pages)
   ═══════════════════════════════════════════════════════════════════════════ */

.page-wrap {
	max-width: 800px;
	margin: 0 auto;
	padding: 5rem 2rem 7rem;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.page-header {
	margin-bottom: 3.5rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid #e8e4de;
}
.page-h1 {
	font-size: clamp(3.5rem, 9vw, 6.5rem);
	color: #141414;
	margin: 1rem 0 1.5rem;
	line-height: 1;
}
.page-lede {
	font-size: 1.2rem;
	color: #1a1a1a;
	line-height: 1.65;
	max-width: 560px;
	font-weight: 500;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.page-section {
	margin-bottom: 3.5rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid #e8e4de;
	display: flow-root;
}
/* ── Wrapper variants ────────────────────────────────────────────────── */
.page-wrap--wide {
	max-width: 1100px;
	padding: 5rem 3rem 7rem;
}
.page-wrap--no-bottom {
	padding-bottom: 0;
}
.tips-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 5rem 3rem 7rem;
}

/* ── Tip row (text left, image right) ───────────────────────────────── */
.tip-row {
	display: flex;
	gap: 4rem;
	align-items: center;
}
.tip-row-img {
	flex: 0 0 40%;
	margin: 0;
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity 0.55s ease,
		transform 0.55s ease;
}
.tip-row-img.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.tip-row-img img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}
.tip-row-text {
	flex: 1;
}

/* ── Tip number + subtitle ───────────────────────────────────────────── */
.tip-num {
	display: block;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 900;
	font-style: italic;
	font-size: 4.5rem;
	color: #c0392b;
	line-height: 1;
	margin-bottom: 0.1rem;
}
.tip-subtitle {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #999;
	margin-top: -0.75rem;
	margin-bottom: 1rem;
}

/* ── Intro two-column grid ───────────────────────────────────────────── */
.tip-intro-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: start;
}

.page-section h2 {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	font-size: 2.2rem;
	color: #141414;
	margin-bottom: 1.25rem;
}
.page-section p {
	font-size: 0.95rem;
	color: #444;
	line-height: 1.8;
	margin-bottom: 1rem;
	max-width: 660px;
}
.page-section p:last-child {
	margin-bottom: 0;
}
.page-section strong {
	color: #141414;
	font-weight: 600;
}
p.section-intro {
	font-size: 0.92rem;
	color: #555;
	line-height: 1.75;
	max-width: 640px;
	margin-bottom: 1.5rem;
}
p.section-note {
	font-size: 0.8rem;
	color: #888;
	line-height: 1.65;
	margin-top: 1.25rem;
	font-style: italic;
	max-width: 660px;
}

/* ── Newsletter CTA ──────────────────────────────────────────────────────── */
.page-newsletter {
	margin: 3.5rem auto 0;
	padding: 3rem;
	background: #f7f4ef;
	border: 1px solid #e8e4de;
	border-radius: 12px;
	max-width: 640px;
}
.page-newsletter-h2 {
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	color: #141414;
	margin-bottom: 1rem;
}
.page-newsletter-body {
	font-size: 0.9rem;
	color: #666;
	line-height: 1.65;
	margin-bottom: 1.75rem;
	max-width: 380px;
}
.page-newsletter-form {
	display: flex;
	gap: 0.6rem;
	max-width: 420px;
	flex-wrap: wrap;
}
.page-newsletter-input {
	flex: 1;
	min-width: 200px;
	padding: 0.75rem 1rem;
	border: 1px solid #e8e4de;
	border-radius: 6px;
	font-size: 0.9rem;
	font-family: inherit;
	background: #fff;
	color: #141414;
	outline: none;
	transition: border-color 0.15s;
}
.page-newsletter-input:focus {
	border-color: #c0392b;
}
.page-newsletter-input::placeholder {
	color: #aaa;
}
.page-newsletter-btn {
	padding: 0.75rem 1.5rem;
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	letter-spacing: 0.02em;
	transition: background 0.15s;
	white-space: nowrap;
}
.page-newsletter-btn:hover {
	background: #a93226;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEARN PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Article index ───────────────────────────────────────────────────────── */
.learn-index {
	margin-top: 0.5rem;
}
.learn-article {
	display: block;
	text-decoration: none;
	padding: 2rem 0;
	border-bottom: 1px solid #e8e4de;
}
.learn-article:first-child {
	padding-top: 0;
}
.learn-article-tag {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #999;
	margin-bottom: 0.6rem;
}
.learn-article-title {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	font-size: 1.6rem;
	color: #141414;
	margin-bottom: 0.75rem;
	transition: color 0.15s;
}
.learn-article:hover .learn-article-title {
	color: #c0392b;
}
.learn-article-desc {
	font-size: 0.9rem;
	color: #555;
	line-height: 1.75;
	max-width: 600px;
}

/* ── Table of contents ───────────────────────────────────────────────────── */
.learn-toc {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem 0.75rem;
	padding: 1rem 1.25rem;
	background: #f7f4ef;
	border: 1px solid #e8e4de;
	border-radius: 8px;
	margin-top: 2rem;
}
.learn-toc-label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #999;
	margin-right: 0.25rem;
}
.learn-toc a {
	font-size: 0.8rem;
	font-weight: 500;
	color: #444;
	text-decoration: none;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	transition:
		background 0.15s,
		color 0.15s;
}
.learn-toc a:hover {
	background: #e8e4de;
	color: #141414;
}

/* ── Rules list ──────────────────────────────────────────────────────────── */
.learn-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.learn-list li {
	font-size: 0.95rem;
	color: #444;
	line-height: 1.7;
	padding-left: 1.25rem;
	position: relative;
}
.learn-list li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: #c0392b;
	font-weight: 700;
}

/* ── Loop clock visual ───────────────────────────────────────────────────── */
.loop-clock {
	margin: 2rem 0;
	padding: 1.5rem;
	background: #f7f4ef;
	border: 1px solid #e8e4de;
	border-radius: 10px;
}
.loop-clock-title {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #888;
	margin-bottom: 1rem;
}
.loop-clock-bar {
	display: flex;
	height: 44px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #e8e4de;
}
.loop-clock-run {
	flex: 5;
	background: #141414;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1rem;
}
.loop-clock-rest {
	flex: 1;
	background: #c0392b;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0.75rem;
}
.loop-clock-seg-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.9);
}
.loop-clock-seg-time {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	font-size: 1.1rem;
	color: #fff;
}
.loop-clock-ticks {
	display: flex;
	justify-content: space-between;
	margin-top: 0.5rem;
	padding: 0 1px;
}
.loop-clock-ticks span {
	font-size: 0.68rem;
	color: #aaa;
}
p.loop-clock-note {
	font-size: 0.75rem;
	color: #999;
	margin-top: 0.75rem;
	font-style: italic;
}

/* ── Stat row ────────────────────────────────────────────────────────────── */
.learn-stat-row {
	display: flex;
	margin-top: 2rem;
	border: 1px solid #e8e4de;
	border-radius: 10px;
	overflow: hidden;
	background: #f7f4ef;
}
.learn-stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1.5rem;
	border-right: 1px solid #e8e4de;
}
.learn-stat:last-child {
	border-right: none;
}
.learn-stat-num {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 900;
	font-size: 2rem;
	color: #141414;
	line-height: 1;
}
.learn-stat-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #888;
}

/* ── Milestone bar ───────────────────────────────────────────────────────── */
.milestone-bar {
	margin-top: 2rem;
	padding: 1.5rem;
	background: #f7f4ef;
	border: 1px solid #e8e4de;
	border-radius: 10px;
}
.milestone-bar-title {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #888;
	margin-bottom: 1.5rem;
}
.milestone-track {
	position: relative;
	height: 6px;
	background: #e8e4de;
	border-radius: 3px;
	margin-bottom: 2.5rem;
}
.milestone-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: linear-gradient(to right, #444, #c0392b);
	border-radius: 3px;
}
.milestone-marker {
	position: absolute;
	top: -4px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
}
.milestone-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #444;
	border: 2px solid #f7f4ef;
	flex-shrink: 0;
}
.milestone-dot--wr {
	background: #c0392b;
}
.milestone-info {
	position: absolute;
	top: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	white-space: nowrap;
}
.milestone-loops {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	font-size: 0.9rem;
	color: #141414;
	line-height: 1;
}
.milestone-dist {
	font-size: 0.65rem;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ── Comparison table ────────────────────────────────────────────────────── */
.compare-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1.5rem;
	font-size: 0.88rem;
	border: 1px solid #e8e4de;
	border-radius: 10px;
	overflow: hidden;
}
.compare-table th {
	background: #141414;
	color: #fff;
	font-weight: 700;
	padding: 0.75rem 1rem;
	text-align: left;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.compare-table th:first-child {
	background: #1e1e1e;
	color: #888;
}
.compare-table td {
	padding: 0.75rem 1rem;
	border-top: 1px solid #e8e4de;
	color: #444;
	vertical-align: middle;
}
.compare-table td:first-child {
	font-weight: 600;
	color: #141414;
	background: #f7f4ef;
	white-space: nowrap;
}
.compare-table tr:nth-child(even) td:not(:first-child) {
	background: #faf8f5;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.learn-faq {
	display: flex;
	flex-direction: column;
}
.learn-faq-item {
	padding: 1.75rem 0;
	border-bottom: 1px solid #e8e4de;
}
.learn-faq-item:first-child {
	border-top: 1px solid #e8e4de;
}
.learn-faq-item h3 {
	font-size: 0.95rem;
	font-weight: 700;
	color: #141414;
	margin-bottom: 0.6rem;
}
.learn-faq-item p {
	font-size: 0.9rem;
	color: #555;
	line-height: 1.75;
	margin: 0;
	max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RECORDS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── World Record Cards ──────────────────────────────────────────────────── */
.wr-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
.wr-card {
	background: #f7f4ef;
	border: 1px solid #e8e4de;
	border-radius: 10px;
	padding: 1.5rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.wr-card--highlight {
	background: #141414;
	border-color: #141414;
}
.wr-card-label {
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #c0392b;
	margin-bottom: 0.4rem;
}
.wr-loops {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 900;
	font-size: 3.5rem;
	color: #141414;
	line-height: 1;
}
.wr-card--highlight .wr-loops {
	color: #fff;
}
.wr-dist {
	font-size: 0.72rem;
	color: #888;
	font-weight: 500;
	margin-bottom: 0.5rem;
}
.wr-card--highlight .wr-dist {
	color: #555;
}
.wr-athlete {
	font-size: 0.95rem;
	font-weight: 700;
	color: #141414;
	margin-top: 0.15rem;
}
.wr-card--highlight .wr-athlete {
	color: #fff;
}
.wr-detail {
	font-size: 0.72rem;
	color: #888;
	line-height: 1.55;
}
.wr-card--highlight .wr-detail {
	color: #666;
}

/* ── Notable Firsts ──────────────────────────────────────────────────────── */
.firsts-list {
	display: flex;
	flex-direction: column;
}
.first-item {
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	gap: 1.5rem;
	padding: 1.75rem 0;
	border-bottom: 1px solid #e8e4de;
}
.first-item:first-child {
	border-top: 1px solid #e8e4de;
}
.first-year {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 900;
	font-size: 1.4rem;
	color: #c0392b;
	line-height: 1;
	padding-top: 0.25rem;
}
.first-label {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #888;
	margin-bottom: 0.4rem;
}
.first-name {
	font-size: 1rem;
	font-weight: 700;
	color: #141414;
	margin-bottom: 0.65rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.first-flag {
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #fff;
	background: #888;
	padding: 0.15rem 0.45rem;
	border-radius: 3px;
}
p.first-detail {
	font-size: 0.88rem;
	color: #555;
	line-height: 1.75;
	margin: 0;
	max-width: 560px;
}

/* ── Champions Table ─────────────────────────────────────────────────────── */
.champs-table-wrap {
	overflow-x: auto;
	border-radius: 10px;
	border: 1px solid #e8e4de;
}
.champs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}
.champs-table thead {
	background: #141414;
}
.champs-table th {
	color: #fff;
	font-weight: 700;
	padding: 0.75rem 1rem;
	text-align: left;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	white-space: nowrap;
}
.champs-table th:first-child {
	background: #1e1e1e;
	color: #888;
}
.champs-table td {
	padding: 0.7rem 1rem;
	border-top: 1px solid #e8e4de;
	color: #444;
	vertical-align: middle;
}
.champs-table td:first-child {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	font-size: 1rem;
	color: #141414;
	background: #f7f4ef;
	white-space: nowrap;
}
.champs-table td:nth-child(3) {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	color: #141414;
	white-space: nowrap;
}
.champ-row-skipped td {
	color: #bbb;
	font-style: italic;
}
.champ-row-skipped td:first-child {
	color: #bbb;
}
.champ-badge {
	display: inline-block;
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	background: #c0392b;
	color: #fff;
	padding: 0.15rem 0.4rem;
	border-radius: 3px;
	vertical-align: middle;
	margin-left: 0.4rem;
	white-space: nowrap;
}
.champ-badge--note {
	background: #888;
}

/* ── Events Table ────────────────────────────────────────────────────────── */
.events-table-wrap {
	overflow-x: auto;
	border-radius: 10px;
	border: 1px solid #e8e4de;
}
.events-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}
.events-table thead {
	background: #141414;
}
.events-table th {
	color: #fff;
	font-weight: 700;
	padding: 0.75rem 1rem;
	text-align: left;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	white-space: nowrap;
}
.events-table th:first-child {
	background: #1e1e1e;
	color: #888;
}
.events-table td {
	padding: 0.7rem 1rem;
	border-top: 1px solid #e8e4de;
	color: #444;
	vertical-align: middle;
}
.events-table td:nth-child(2) {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	color: #141414;
	white-space: nowrap;
}
.events-table td:nth-child(3) {
	white-space: nowrap;
	color: #888;
	font-size: 0.82rem;
}
.events-row--wr td {
	background: rgba(192, 57, 43, 0.03);
}
.events-row--wr td:nth-child(2) {
	color: #c0392b;
}
.wr-badge {
	display: inline-block;
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	background: #c0392b;
	color: #fff;
	padding: 0.15rem 0.4rem;
	border-radius: 3px;
	vertical-align: middle;
	margin-left: 0.3rem;
	white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
	.page-wrap {
		padding: 3.5rem 1.5rem 5rem;
	}
	.page-newsletter {
		padding: 2rem 1.5rem;
	}

	/* Intro grid — stack on mobile */
	.tip-intro-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	/* Tip rows — stack on mobile */
	.tip-row {
		flex-direction: column;
		gap: 1.25rem;
	}
	.tip-row-img {
		flex: none;
		width: 100%;
		order: -1;
	}
	.page-wrap--wide,
	.tips-wrap {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	/* Learn */
	.learn-stat-row {
		flex-wrap: wrap;
	}
	.learn-stat {
		min-width: 50%;
	}
	.learn-stat:nth-child(2) {
		border-right: none;
	}
	.learn-stat:nth-child(3) {
		border-top: 1px solid #e8e4de;
	}
	.compare-table {
		font-size: 0.8rem;
	}
	.compare-table td,
	.compare-table th {
		padding: 0.6rem 0.75rem;
	}
	.milestone-marker:nth-child(3) .milestone-info,
	.milestone-marker:nth-child(4) .milestone-info {
		display: none;
	}

	/* Records */
	.wr-grid {
		grid-template-columns: 1fr;
	}
	.first-item {
		grid-template-columns: 3.5rem 1fr;
		gap: 1rem;
	}
	.first-year {
		font-size: 1.1rem;
	}
	.champs-table,
	.events-table {
		font-size: 0.8rem;
	}
	.champs-table th,
	.champs-table td,
	.events-table th,
	.events-table td {
		padding: 0.55rem 0.75rem;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   RACE FINDER PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Shared alignment container ──────────────────────────────────────────── */
.finder-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 3rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.finder-hero h1 {
	font-size: clamp(2.5rem, 6vw, 4rem);
}

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.finder-filters {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #f7f4ef;
	border-bottom: 1px solid #e8e4de;
	padding: 0.75rem 0;
}
.finder-filters-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.finder-filter-group {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}
.finder-label {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
	white-space: nowrap;
}
.finder-select {
	font-size: 0.88rem;
	padding: 0.35rem 0.65rem;
	border: 1px solid #d5d0c8;
	border-radius: 6px;
	background: #fff;
	color: #1a1a1a;
	cursor: pointer;
	font-family: inherit;
}
.finder-select:focus {
	outline: 2px solid #c0392b;
	outline-offset: 1px;
}
.finder-count {
	font-size: 0.75rem;
	color: #888;
	font-weight: 500;
	white-space: nowrap;
}
.finder-list-cta {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	background: #c0392b;
	color: #fff;
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 6px;
	white-space: nowrap;
	transition: background 0.15s;
	flex-shrink: 0;
}
.finder-list-cta:hover { background: #a93226; }

/* ── Race list container ─────────────────────────────────────────────────── */
.finder-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 3rem 5rem;
}

/* ── Race row ────────────────────────────────────────────────────────────── */
.finder-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
	padding: 1.75rem 0;
	border-bottom: 1px solid #e8e4de;
}
.finder-row:first-child {
	border-top: 1px solid #e8e4de;
	margin-top: 2rem;
}
.finder-row-main {
	flex: 1;
	min-width: 0;
}
.finder-eyebrow {
	margin-bottom: 0.4rem;
}
.finder-race-name {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	font-size: 1.6rem;
	color: #141414;
	line-height: 1;
	margin-bottom: 0.5rem;
}
.finder-badges {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}
.finder-badge {
	display: inline-block;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.18rem 0.45rem;
	border-radius: 3px;
	color: #fff;
	white-space: nowrap;
}
.finder-badge--silver { background: #141414; }
.finder-badge--bronze { background: #7b5e3a; }

/* ── Right side ──────────────────────────────────────────────────────────── */
.finder-row-aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.55rem;
	flex-shrink: 0;
}
.finder-price {
	font-size: 0.85rem;
	font-weight: 600;
	color: #1a1a1a;
	white-space: nowrap;
}
.finder-price--empty {
	color: #aaa;
	font-weight: 400;
}
.finder-cta {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	background: none;
	border: 1.5px solid #1a1a1a;
	color: #1a1a1a;
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 6px;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}
.finder-cta:hover {
	background: #1a1a1a;
	color: #fff;
}
.finder-cta--disabled {
	background: none;
	border: none;
	color: #aaa;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.45rem 0;
	cursor: default;
}
.finder-report {
	background: none;
	border: none;
	color: #ccc;
	font-size: 0.7rem;
	cursor: pointer;
	font-family: inherit;
	padding: 0;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 2px;
	transition: color 0.15s;
}
.finder-report:hover { color: #888; }

/* ── Empty / reset ───────────────────────────────────────────────────────── */
.finder-empty {
	padding: 3rem 0;
	text-align: center;
	color: #888;
	font-size: 0.9rem;
}
.finder-reset {
	margin-left: 0.5rem;
	background: none;
	border: none;
	color: #c0392b;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	font-family: inherit;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
	.finder-wrap {
		padding: 0 1.5rem 4rem;
	}
	.finder-row {
		flex-direction: column;
		gap: 1rem;
	}
	.finder-row-aside {
		align-items: flex-start;
	}
	.finder-inner {
		padding: 0 1.5rem;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   LIST YOUR EVENT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

.lye-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 3rem 2rem 6rem;
}
.lye-honeypot {
	display: none;
}
.lye-section {
	padding-bottom: 2.5rem;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid #e8e4de;
}
.lye-section--last {
	border-bottom: none;
}
.lye-section-title {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 800;
	font-style: italic;
	text-transform: uppercase;
	font-size: 1.4rem;
	color: #141414;
	margin-bottom: 1.5rem;
}
.lye-field {
	margin-bottom: 1.25rem;
}
.lye-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #444;
	margin-bottom: 0.4rem;
}
.lye-required {
	color: #c0392b;
}
.lye-hint {
	font-weight: 400;
	color: #aaa;
}
.lye-input {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid #d5d0c8;
	border-radius: 6px;
	font-size: 0.9rem;
	font-family: inherit;
	background: #fff;
	color: #1a1a1a;
	outline: none;
	transition: border-color 0.15s;
	box-sizing: border-box;
}
.lye-input:focus {
	border-color: #c0392b;
}
.lye-input::placeholder {
	color: #bbb;
}
.lye-select {
	cursor: pointer;
	appearance: auto;
}
.lye-input--short { width: 140px; }
.lye-input--date  { width: 200px; }
.lye-textarea {
	resize: vertical;
	min-height: 100px;
	line-height: 1.6;
}
.lye-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.lye-cost-row {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}
.lye-currency {
	width: auto;
	flex-shrink: 0;
}
.lye-input--cost {
	width: 140px;
}
.lye-checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.88rem;
	color: #444;
	cursor: pointer;
	margin-bottom: 0.6rem;
}
.lye-checkbox-label input[type="checkbox"] {
	accent-color: #c0392b;
	width: 15px;
	height: 15px;
}
.lye-submit-row {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding-top: 1rem;
}
.lye-submit {
	padding: 0.8rem 2rem;
	background: #c0392b;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	letter-spacing: 0.02em;
	transition: background 0.15s;
}
.lye-submit:hover { background: #a93226; }
.lye-submit-note {
	font-size: 0.8rem;
	color: #888;
	line-height: 1.6;
	max-width: 340px;
}

/* ── Success state ───────────────────────────────────────────────────────── */
.lye-success {
	text-align: center;
	padding: 5rem 2rem;
}
.lye-success-icon {
	font-size: 2.5rem;
	color: #2d6a4f;
	margin-bottom: 1rem;
}
.lye-success-title {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	font-size: 3rem;
	color: #141414;
	margin-bottom: 1rem;
}
.lye-success-body {
	font-size: 0.95rem;
	color: #555;
	line-height: 1.75;
	max-width: 420px;
	margin: 0 auto 2rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
	.lye-row {
		grid-template-columns: 1fr;
	}
	.lye-wrap {
		padding: 2rem 1.5rem 5rem;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   PACE ANALYSIS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section sub-headings ────────────────────────────────────────────────── */
.page-section h3 {
	font-size: 0.82rem;
	font-weight: 700;
	color: #141414;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

/* ── Course breakdown bars ───────────────────────────────────────────────── */
.pa-courses {
	margin: 1.75rem 0 0.5rem;
}
.pa-course-row {
	display: grid;
	grid-template-columns: 150px 1fr 200px;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}
.pa-course-label {
	font-size: 0.83rem;
	font-weight: 600;
	color: #1a1a1a;
}
.pa-course-date {
	display: block;
	font-size: 0.68rem;
	color: #888;
	font-weight: 400;
	margin-top: 2px;
}
.pa-bar-track {
	height: 8px;
	background: #e8e4de;
	border-radius: 4px;
	position: relative;
}
.pa-bar-fill {
	position: absolute;
	height: 100%;
	background: #c0392b;
	border-radius: 4px;
	opacity: 0.4;
}
.pa-bar-median {
	position: absolute;
	width: 2px;
	height: 14px;
	top: -3px;
	background: #141414;
	border-radius: 1px;
	transform: translateX(-50%);
}
.pa-bar-range {
	font-size: 0.8rem;
	color: #444;
}
.pa-bar-range-med {
	color: #888;
	font-size: 0.75rem;
}

/* ── Methodology callout ─────────────────────────────────────────────────── */
.pa-methodology {
	background: #f7f4ef;
	border-left: 3px solid #c0392b;
	padding: 1rem 1.25rem;
	border-radius: 0 8px 8px 0;
	margin: 1.5rem 0 0;
	font-size: 0.85rem;
	color: #555;
	line-height: 1.75;
}
.pa-methodology strong {
	color: #141414;
}

/* ── Runner cards ────────────────────────────────────────────────────────── */
.pa-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1rem;
	margin-top: 1.75rem;
}
.pa-card {
	background: #f7f4ef;
	border: 1px solid #e8e4de;
	border-radius: 10px;
	padding: 1.25rem;
}
.pa-card-crossrace {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	background: #141414;
	color: #fff;
	padding: 2px 7px;
	border-radius: 3px;
	display: inline-block;
	margin-bottom: 0.6rem;
}
.pa-card-name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #141414;
	margin-bottom: 2px;
}
.pa-card-meta {
	font-size: 0.75rem;
	color: #888;
	margin-bottom: 1rem;
}
.pa-pace-wrap {
	margin-bottom: 0.85rem;
}
.pa-pace-track {
	height: 8px;
	background: #e8e4de;
	border-radius: 4px;
	position: relative;
	margin-bottom: 6px;
}
.pa-pace-fill {
	position: absolute;
	height: 100%;
	background: #c0392b;
	border-radius: 4px;
	opacity: 0.45;
}
.pa-pace-median {
	position: absolute;
	width: 2px;
	height: 14px;
	top: -3px;
	background: #141414;
	border-radius: 1px;
	transform: translateX(-50%);
}
.pa-pace-labels {
	position: relative;
	display: flex;
	justify-content: space-between;
	font-size: 0.73rem;
	color: #888;
}
.pa-pace-labels-mid {
	position: absolute;
	transform: translateX(-50%);
	color: #141414;
	font-weight: 600;
	white-space: nowrap;
}
.pa-card-chips {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}
.pa-chip {
	font-size: 0.72rem;
	background: #e8e4de;
	padding: 2px 7px;
	border-radius: 4px;
	color: #555;
}
.pa-card-tags {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}
.pa-tag {
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 3px;
	color: #fff;
}
.pa-tag--dark {
	background: #141414;
}
.pa-tag--red {
	background: #c0392b;
}
.pa-tag--gray {
	background: #888;
}

/* ── Cross-race section ──────────────────────────────────────────────────── */
.pa-crossrace {
	margin-top: 1.75rem;
}
.pa-crossrace-athlete {
	display: grid;
	grid-template-columns: 190px 1fr;
	gap: 2rem;
	padding: 2rem 0;
	border-bottom: 1px solid #e8e4de;
	align-items: start;
}
.pa-crossrace-athlete:first-child {
	border-top: 1px solid #e8e4de;
}
.pa-crossrace-name {
	font-size: 1rem;
	font-weight: 700;
	color: #141414;
	margin-bottom: 0.25rem;
}
.pa-crossrace-total {
	font-size: 0.72rem;
	color: #888;
	line-height: 1.5;
}
.pa-crossrace-races {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.pa-crossrace-race {
	background: #f7f4ef;
	border: 1px solid #e8e4de;
	border-radius: 8px;
	padding: 0.85rem 1rem;
	flex: 1;
	min-width: 155px;
}
.pa-crossrace-race-name {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #c0392b;
	margin-bottom: 6px;
}
.pa-crossrace-race-loops {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 900;
	font-size: 1.7rem;
	color: #141414;
	line-height: 1;
	margin-bottom: 3px;
}
.pa-crossrace-race-loops span {
	font-size: 0.9rem;
	font-weight: 400;
	color: #888;
	font-family: "Inter", sans-serif;
}
.pa-crossrace-race-detail {
	font-size: 0.72rem;
	color: #888;
}

/* ── Fighter selector ────────────────────────────────────────────────────── */
.pa-fighter-prompt {
	font-size: 0.82rem;
	color: #888;
	margin-bottom: 14px;
}
.pa-fighter-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin-bottom: 14px;
}
.pa-fighter-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 10px 14px;
	border: 2px solid #e8e4de;
	border-radius: 10px;
	background: #f7f4ef;
	cursor: pointer;
	text-align: center;
	transition:
		border-color 0.15s,
		transform 0.1s;
	user-select: none;
}
.pa-fighter-tile:hover {
	border-color: #c0392b;
	transform: translateY(-2px);
}
.pa-fighter-tile.selected {
	border-color: #c0392b;
	background: #fff;
}
.pa-fighter-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #141414;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.03em;
	color: #fff;
	flex-shrink: 0;
}
.pa-fighter-tile.selected .pa-fighter-avatar {
	background: #c0392b;
}
.pa-fighter-tile-name {
	font-size: 0.75rem;
	font-weight: 600;
	color: #141414;
	line-height: 1.3;
}
.pa-fighter-tile-sub {
	font-size: 0.67rem;
	color: #999;
	line-height: 1.2;
}
.pa-fighter-races {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}
.pa-fighter-race-pill {
	padding: 5px 14px;
	border-radius: 20px;
	border: 1.5px solid #e8e4de;
	background: #f7f4ef;
	font-size: 0.75rem;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	transition:
		border-color 0.12s,
		color 0.12s,
		background 0.12s;
}
.pa-fighter-race-pill:hover {
	border-color: #c0392b;
	color: #c0392b;
}
.pa-fighter-race-pill.selected {
	background: #c0392b;
	border-color: #c0392b;
	color: #fff;
}
.pa-fighter-panel {
	background: #f7f4ef;
	border: 1px solid #e8e4de;
	border-radius: 10px;
	padding: 20px 24px 24px;
}
.pa-fighter-panel-name {
	font-family: "Barlow Condensed", sans-serif;
	font-weight: 900;
	font-style: italic;
	text-transform: uppercase;
	font-size: 1.4rem;
	letter-spacing: 0.01em;
	color: #141414;
	margin-bottom: 2px;
}
.pa-fighter-panel-meta {
	font-size: 0.78rem;
	color: #888;
	margin-bottom: 14px;
}
.pa-fighter-chart-wrap {
	position: relative;
	height: 200px;
	margin-top: 20px;
}
.pa-fighter-chart-status {
	font-size: 0.78rem;
	color: #aaa;
	text-align: center;
	padding: 20px 0;
}
.pa-fighter-chart-note {
	font-size: 0.75rem;
	color: #aaa;
	margin-top: 10px;
	margin-bottom: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
	.pa-fighter-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.pa-course-row {
		grid-template-columns: 120px 1fr;
		gap: 8px;
	}
	.pa-bar-range {
		display: none;
	}
	.pa-crossrace-athlete {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

/* ── Homepage responsive ───────────────────────────────────────────────────── */
@media (max-width: 780px) {
	.h-hero-inner {
		padding: 3.5rem 1.5rem 2.5rem;
	}
	.h-format-bar {
		padding: 1.25rem 1.5rem;
		gap: 0;
	}
	.h-format-item {
		padding-right: 1.25rem;
	}
	.h-format-div {
		margin-right: 1.25rem;
	}
	.h-featured-inner {
		padding: 0 1.5rem;
	}
	.h-feat-grid {
		grid-template-columns: 1fr;
	}
	.h-races-inner {
		padding: 0 1.5rem;
	}
	.h-race-grid {
		grid-template-columns: 1fr;
	}
	.h-bottom {
		grid-template-columns: 1fr;
	}
	.h-about {
		padding: 3.5rem 1.5rem 3rem;
		border-right: none;
		border-bottom: 1px solid #1e1e1e;
	}
	.h-signup {
		padding: 3rem 1.5rem 4rem;
	}
	.h-about-body {
		max-width: 100%;
	}
	.h-signup-form,
	.h-signup-body {
		max-width: 100%;
	}
}
@media (min-width: 781px) and (max-width: 1100px) {
	.h-feat-grid {
		grid-template-columns: 1fr 1fr;
	}
	.h-race-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ── Race page responsive ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.pa-fighter-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.site-nav,
	header.tool-header,
	.controls,
	.race-hero,
	.race-desc,
	main {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.chart-wrap {
		height: 300px;
	}
	.dnf-chart-wrap {
		height: 300px;
	}
	#runnerSearch {
		width: 100%;
	}
	.legend-bar {
		flex-direction: column;
		align-items: flex-start;
	}
}
