/* Sairas Veto – black and red, light and dark */

@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('/assets/fonts/barlow-condensed-800-italic.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/barlow-condensed-800.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/inter-latin-var.woff2') format('woff2'); }

:root {
	--red: #e00000;
	--red-strong: #b80000;
	--red-soft: #3d0000;
	--on-red: #ffffff;
	--bg: #0b0b0c;
	--bg-alt: #111113;
	--surface: #18181b;
	--surface-2: #202024;
	--text: #f3f3f4;
	--muted: #a4a4ad;
	--border: #2a2a2f;
	--shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px rgb(0 0 0 / .35);
	--topbar: rgb(11 11 12 / .78);
	--gold: #f5c542;
	--gold-bg: #3a2e0b;
	--live: #4ade80;
	--live-bg: #0f2e1b;
	--paused: #a4a4ad;
	--paused-bg: #26262b;
	color-scheme: dark;

	--display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
	--body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--radius: 16px;
	--radius-sm: 10px;
	--wrap: 1160px;
	--gutter: clamp(16px, 4vw, 32px);
	--topbar-h: 64px;
	--tabbar-h: 64px;
}

/* Light theme: when the system asks for light, unless the visitor picked dark; or picked light.
   With no system preference the site is dark. */
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) {
		--red: #e00000;
		--red-strong: #b80000;
		--red-soft: #ffe5e5;
		--on-red: #ffffff;
		--bg: #f6f5f3;
		--bg-alt: #ecebe8;
		--surface: #ffffff;
		--surface-2: #f2f1ef;
		--text: #131314;
		--muted: #5d5d63;
		--border: #e2e0dc;
		--shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .06);
		--topbar: rgb(255 255 255 / .82);
		--gold: #a87a00;
		--gold-bg: #fff4d1;
		--live: #13803d;
		--live-bg: #e3f6ea;
		--paused: #6b6b72;
		--paused-bg: #ececef;
		color-scheme: light;
	}
}
:root[data-theme="light"] {
	--red: #e00000;
	--red-strong: #b80000;
	--red-soft: #ffe5e5;
	--on-red: #ffffff;
	--bg: #f6f5f3;
	--bg-alt: #ecebe8;
	--surface: #ffffff;
	--surface-2: #f2f1ef;
	--text: #131314;
	--muted: #5d5d63;
	--border: #e2e0dc;
	--shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .06);
	--topbar: rgb(255 255 255 / .82);
	--gold: #a87a00;
	--gold-bg: #fff4d1;
	--live: #13803d;
	--live-bg: #e3f6ea;
	--paused: #6b6b72;
	--paused-bg: #ececef;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1rem/1.65 var(--body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: .005em; margin: 0 0 .4em; text-transform: uppercase; }
h1 { font-style: italic; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: .9rem; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: var(--on-red); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ---------- Top bar ---------- */
.topbar {
	position: sticky; top: 0; z-index: 50;
	background: var(--topbar);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--border);
	padding-top: env(safe-area-inset-top);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: var(--topbar-h); max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand span { font: italic 800 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.mainnav { display: none; gap: 4px; }
.mainnav a { text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 999px; color: var(--muted); transition: color .15s, background .15s; }
.mainnav a:hover { color: var(--text); background: var(--surface-2); }
.mainnav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--red); }
.actions { display: flex; align-items: center; gap: 8px; }
.pill {
	display: inline-flex; align-items: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 10px; justify-content: center;
	border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
	font: 600 .82rem/1 var(--body); text-decoration: none; cursor: pointer;
}
.pill:hover { border-color: var(--red); }
.theme .i-sun { display: none; }
:root[data-theme="light"] .theme .i-moon { display: none; }
:root[data-theme="light"] .theme .i-sun { display: block; }
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) .theme .i-moon { display: none; }
	:root:not([data-theme="dark"]) .theme .i-sun { display: block; }
}
@media (min-width: 1000px) { .mainnav { display: flex; } }
@media (max-width: 350px) { .brand span { display: none; } }

/* ---------- Bottom bar (phones) ---------- */
.tabbar {
	position: fixed; inset: auto 0 0 0; z-index: 50;
	display: grid; grid-template-columns: repeat(5, 1fr);
	background: var(--topbar);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-top: 1px solid var(--border);
	padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	height: var(--tabbar-h); text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 600; position: relative;
}
.tabbar .icon { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--red); }
.tabbar a[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--red); }
body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1000px) {
	.tabbar { display: none; }
	body { padding-bottom: 0; }
}

/* ---------- Buttons and links ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
	font: 700 .98rem/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--red-strong); }
.btn-ghost { border-color: rgb(255 255 255 / .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.btn-white { background: #fff; color: #131314; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.chip .icon { width: 14px; height: 14px; }
.chip-live { color: var(--live); background: var(--live-bg); }
.chip-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.chip-paused { color: var(--paused); background: var(--paused-bg); }
.chip-gold { color: var(--gold); background: var(--gold-bg); }

/* ---------- Hero (home) ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	background: #0b0b0c; color: #fff;
	min-height: min(88svh, 760px);
	display: flex; align-items: flex-end;
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: .55; }
.hero::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgb(11 11 12 / .25) 0%, rgb(11 11 12 / .55) 45%, #0b0b0c 100%),
		radial-gradient(120% 80% at 100% 0%, rgb(224 0 0 / .45), transparent 60%);
}
.hero::after {
	content: ''; position: absolute; z-index: -1; right: -10%; bottom: -30%; width: 70%; height: 80%;
	background: repeating-linear-gradient(115deg, rgb(224 0 0 / .0) 0 26px, rgb(224 0 0 / .16) 26px 30px);
	mask-image: linear-gradient(200deg, transparent 15%, #000 70%);
	-webkit-mask-image: linear-gradient(200deg, transparent 15%, #000 70%);
}
.hero-inner { padding-block: 56px 48px; }
.hero-logo { width: 92px; height: 92px; margin-bottom: 18px; filter: drop-shadow(0 6px 20px rgb(0 0 0 / .5)); }
.hero .kicker { color: #e00000; }
.hero h1 { font-size: clamp(3.6rem, 15vw, 8.5rem); line-height: .86; margin: 0 0 .12em; letter-spacing: -.005em; }
.hero h1 .accent { color: #e00000; }
.hero-tagline { font: italic 700 clamp(1.3rem, 4.2vw, 2rem)/1.1 var(--display); text-transform: uppercase; margin-bottom: .6em; }
.hero-lead { max-width: 560px; color: rgb(255 255 255 / .8); font-size: 1.05rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (min-width: 760px) {
	.hero-inner { padding-block: 120px 72px; }
	.hero-logo { width: 110px; height: 110px; }
}

.kicker { font: 700 .8rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 12px; }

/* ---------- Facts strip ---------- */
.facts { background: #0b0b0c; color: #fff; border-top: 1px solid rgb(255 255 255 / .08); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.fact { padding: 22px 8px 22px 0; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.fact strong { font: italic 800 2.4rem/1 var(--display); color: #e00000; }
.fact span { font-size: .85rem; color: rgb(255 255 255 / .72); }
@media (min-width: 760px) {
	.facts-grid { grid-template-columns: repeat(4, 1fr); }
	.fact { border-bottom: 0; padding: 28px 16px 28px 0; }
	.fact strong { font-size: 3rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 8vw, 88px); }
.section-tight { padding-top: clamp(28px, 5vw, 48px); }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(2rem, 6vw, 2.9rem); font-style: italic; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ''; width: 10px; height: .8em; background: var(--red); transform: skewX(-18deg); flex: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.split { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.35fr 1fr; gap: 56px; } }
.split p { font-size: 1.05rem; }

.pagehead { background: #0b0b0c; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.pagehead::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(90% 120% at 100% 0%, rgb(224 0 0 / .5), transparent 60%),
		repeating-linear-gradient(115deg, transparent 0 26px, rgb(224 0 0 / .12) 26px 30px);
}
.pagehead .wrap { padding-block: clamp(40px, 8vw, 84px) clamp(32px, 6vw, 60px); }
.pagehead .kicker { color: #e00000; }
.pagehead h1 { font-size: clamp(3rem, 11vw, 5.6rem); line-height: .9; }
.pagehead .lead { max-width: 640px; font-size: 1.1rem; color: rgb(255 255 255 / .8); margin: .6em 0 0; }

/* ---------- Gold card (home) ---------- */
.gold-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); display: grid; }
.gold-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
.gold-text { padding: 20px 22px 24px; }
.gold-text h3 { font-size: 1.9rem; font-style: italic; margin-top: 4px; }
.gold-text p { font-size: .98rem; color: var(--muted); }

/* ---------- Team cards ---------- */
.team-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card {
	display: flex; flex-direction: column; text-decoration: none; color: inherit;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	transition: transform .2s, border-color .2s;
}
.team-card:hover { transform: translateY(-3px); border-color: var(--red); }
.team-media { aspect-ratio: 16 / 10; background: #0b0b0c; overflow: hidden; }
.team-media img { width: 100%; height: 100%; object-fit: cover; }
.team-media.is-logo, .team-detail-media.is-logo { background: #fff; display: grid; place-items: center; }
.team-media.is-logo img { width: auto; height: 78%; object-fit: contain; }
.team-card.is-paused .team-media img { filter: grayscale(.85) contrast(1.05); }
.team-body { padding: 18px 20px 20px; position: relative; flex: 1; }
.team-body .chips { padding-right: 28px; }
.team-body h3 { font-size: 1.8rem; font-style: italic; margin: 0; }
.team-level { color: var(--red); font-weight: 700; font-size: .88rem; margin-bottom: .6em; }
.team-body p:last-of-type { color: var(--muted); font-size: .94rem; margin: 0; }
.team-body .more { position: absolute; right: 18px; top: 18px; color: var(--muted); transition: color .2s, transform .2s; }
.team-card:hover .more { color: var(--red); transform: translateX(3px); }

/* ---------- Join band, stats teaser ---------- */
.duo { display: grid; gap: 18px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1.6fr 1fr; } }
.join-band {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--red); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 48px);
}
.join-band::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background: repeating-linear-gradient(115deg, transparent 0 26px, rgb(0 0 0 / .08) 26px 30px);
}
.join-band h2 { font-size: clamp(2.1rem, 6vw, 3.2rem); font-style: italic; }
.join-band p { max-width: 560px; color: rgb(255 255 255 / .9); }
.join-band .small { margin: 22px 0 0; }
.join-band .small a { color: #fff; font-weight: 700; }
.join-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.join-inline p { margin: 0; }
.stats-teaser {
	display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(28px, 5vw, 40px); box-shadow: var(--shadow);
	transition: border-color .2s;
}
.stats-teaser:hover { border-color: var(--red); }
.stats-teaser h2 { font-size: 2.2rem; font-style: italic; margin-top: 10px; }
.stats-teaser p { color: var(--muted); }
.stats-teaser .link-arrow { margin-top: auto; }
.big-icon { width: 40px; height: 40px; color: var(--red); }

/* ---------- Jump links ---------- */
.jump { display: flex; gap: 8px; overflow-x: auto; padding-block: 18px 2px; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a {
	flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.jump a:hover { border-color: var(--red); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-live { background: var(--live); }
.dot-paused { background: var(--paused); }

/* ---------- Team details ---------- */
.team-list { display: grid; gap: 28px; }
.team-detail {
	display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
@media (min-width: 900px) {
	.team-detail { grid-template-columns: 440px 1fr; }
	.team-detail:nth-child(even) { grid-template-columns: 1fr 440px; }
	.team-detail:nth-child(even) .team-detail-media { order: 2; }
}
.team-detail-media { background: #0b0b0c; min-height: 240px; }
.team-detail-media { position: relative; }
.team-detail-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .team-detail-media { min-height: 380px; } .team-detail-media:not(.is-logo) img { position: absolute; inset: 0; } }
@media (max-width: 899px) { .team-detail-media:not(.is-logo) img { aspect-ratio: 16 / 10; } .team-detail-media { min-height: 0; } .team-detail-media.is-logo { padding: 28px; } }
.team-detail-media.is-logo img { width: auto; height: auto; max-width: 200px; object-fit: contain; }
.team-detail.is-paused .team-detail-media img { filter: grayscale(.85) contrast(1.05); }
.team-detail.is-paused .team-detail-media.is-logo img { filter: none; }
.team-detail-body { padding: clamp(22px, 4vw, 40px); }
.team-detail-body h2 { font-size: clamp(2.3rem, 7vw, 3.2rem); font-style: italic; margin: 0; }
.note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; background: var(--surface-2); padding: 10px 14px; border-radius: var(--radius-sm); }
.facts-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.facts-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.facts-list .icon { color: var(--red); }
.sub { font-size: 1.4rem; margin-top: 26px; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.results li { display: flex; gap: 14px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); font-size: .93rem; }
.results .season { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 64px; }
.results .medal-silver { box-shadow: inset 4px 0 0 #9aa3ad; }
.results .medal-bronze { box-shadow: inset 4px 0 0 #b8733a; }

/* ---------- History ---------- */
.split-history { align-items: start; }
.photo { margin: 24px 0 0; }
.photo img { border-radius: var(--radius); width: 100%; }
.photo figcaption { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.fact-card { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 22px; box-shadow: var(--shadow); }
.fact-card div { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.fact-card div:last-child { border-bottom: 0; }
.fact-card .icon { grid-row: span 2; color: var(--red); margin-top: 2px; }
.fact-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.fact-card dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
@media (min-width: 900px) { .fact-card { position: sticky; top: calc(var(--topbar-h) + 24px); } }

.timeline { list-style: none; margin: 28px 0 40px; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--red), color-mix(in srgb, var(--red) 15%, transparent)); }
.timeline li { position: relative; padding-left: 34px; margin-bottom: 22px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg-alt); border: 3px solid var(--red); }
.tl-year { display: block; font: italic 800 1.35rem/1 var(--display); color: var(--red); margin-bottom: 8px; }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.tl-card h3 { font-size: 1.45rem; margin-bottom: .3em; }
.tl-card p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (min-width: 900px) {
	.timeline::before { left: 50%; transform: translateX(-1px); }
	.timeline li { width: 50%; padding: 0 44px 0 0; text-align: right; margin-bottom: 8px; }
	.timeline li::before { left: auto; right: -8px; }
	.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 0 44px; text-align: left; }
	.timeline li:nth-child(even)::before { right: auto; left: -8px; }
}

/* ---------- Hall of Fame ---------- */
.podium { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (max-width: 520px) { .podium { grid-template-columns: 1fr 1fr; } .podium .first { grid-column: 1 / -1; } .podium li { padding: 12px; column-gap: 10px; } .podium .count { font-size: 1.8rem; min-width: 0; } .podium .name { font-size: .92rem; line-height: 1.3; } }
.podium li {
	position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow);
}
.podium .count { grid-row: span 2; font: italic 800 2.2rem/1 var(--display); color: var(--red); min-width: 44px; }
.podium .name { font-weight: 700; }
.podium .teams { font-size: .8rem; color: var(--muted); }
.podium .first { background: linear-gradient(135deg, #330000, #0b0b0c 70%); color: #fff; border-color: var(--red); }
.podium .first .count { color: #e00000; font-size: 2.8rem; }
.podium .first .teams { color: rgb(255 255 255 / .7); }
.podium .trophy { position: absolute; right: 14px; top: 14px; color: #f5c542; width: 22px; height: 22px; }
.hof-team { margin-top: 40px; }
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hof { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hof th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 16px; background: var(--surface-2); }
.hof td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.hof .season { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hof .player { font-weight: 600; }
.level { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--red-soft); color: var(--red); white-space: nowrap; }
.level-inline { display: none; }
.extra { list-style: none; margin: 6px 0 0; padding: 0; font-weight: 400; font-size: .84rem; color: var(--muted); }
@media (max-width: 520px) {
	.hof th:nth-child(2), .hof td:nth-child(2) { display: none; }
	.level-inline { display: table; margin-top: 4px; }
	.hof td, .hof th { padding: 11px 12px; }
}

/* ---------- Statistics front page (the statistics pages have stats.css) ---------- */
.stat-teams { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 8px; }
.stat-team { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s; }
.stat-team:hover { border-color: var(--red); }
.stat-team-main { display: flex; flex-direction: column; gap: 2px; padding: 26px 22px 20px; text-decoration: none; color: inherit; flex: 1; }
.stat-team-main h2 { font-size: 2.1rem; font-style: italic; margin: 14px 0 4px; }
.stat-team-main p { color: var(--muted); font-size: .95rem; }
.stat-team-main .link-arrow { margin-top: auto; }
.stat-team-main:hover .link-arrow { text-decoration: underline; text-underline-offset: 3px; }
.stat-team-main:hover .link-arrow .icon { transform: translateX(3px); }
.stat-team-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.stat-team-links li + li { border-top: 1px solid var(--border); }
.stat-team-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 22px; text-decoration: none; font-weight: 600; font-size: .93rem; }
.stat-team-links a:hover { background: var(--surface-2); color: var(--red); }
.stat-team-links .icon { color: var(--muted); width: 1em; height: 1em; }
.stat-team-links a:hover .icon { color: var(--red); }
.section-tight > .wrap > .note { margin-bottom: 18px; }

/* ---------- Contact ---------- */
.people { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.person { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #0b0b0c; color: #fff; font: italic 800 1.4rem/1 var(--display); box-shadow: inset 0 0 0 3px var(--red); }
.person h2 { font-size: 1.6rem; margin: 2px 0 2px; }
.person .role { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.email { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 600; text-decoration: none; word-break: break-all; font-size: .93rem; }
.email:hover { text-decoration: underline; text-underline-offset: 3px; }
.info-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; }
.info-card h2 { font-size: 1.7rem; font-style: italic; margin-top: 14px; }
.info-card p { color: var(--muted); }
.info-card .btn, .info-card .link-arrow { margin-top: auto; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.notfound img { margin: 0 auto 24px; width: 120px; }
.notfound h1 { font-size: clamp(3rem, 12vw, 6rem); }
.notfound p { max-width: 520px; margin: 0 auto 28px; color: var(--muted); }
.notfound .btn + .btn { margin-left: 8px; }

/* ---------- Footer ---------- */
.footer { background: #0b0b0c; color: rgb(255 255 255 / .75); padding-top: 48px; font-size: .93rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 72px; height: 72px; flex: none; }
.footer h2 { font-size: 1.2rem; color: #fff; letter-spacing: .04em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: rgb(255 255 255 / .8); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 40px; padding-block: 18px 22px; font-size: .82rem; color: rgb(255 255 255 / .5); }

/* ---------- History: photos ---------- */
.photo a { display: block; border-radius: var(--radius); overflow: hidden; }
.photo a img { transition: transform .3s; }
.photo a:hover img { transform: scale(1.02); }
.photos-cta {
	display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 18px 20px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
	text-decoration: none; color: inherit; transition: border-color .2s;
}
.photos-cta:hover { border-color: var(--red); }
.photos-cta span { flex: 1; display: grid; gap: 2px; }
.photos-cta strong { font: italic 800 1.5rem/1.05 var(--display); text-transform: uppercase; }
.photos-cta small { color: var(--muted); font-size: .9rem; }
.photos-cta > .icon:last-child { color: var(--red); transition: transform .2s; }
.photos-cta:hover > .icon:last-child { transform: translateX(3px); }
.tl-photo { display: block; margin: -16px -18px 14px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; overflow: hidden; background: #0b0b0c; }
.tl-photo img { width: 100%; max-height: 300px; object-fit: cover; transition: transform .3s; }
.tl-photo:hover img { transform: scale(1.03); }
.timeline li.has-photo .tl-card { overflow: hidden; }
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--red); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Photos page ---------- */
.gallery-era { margin-bottom: clamp(40px, 6vw, 64px); scroll-margin-top: calc(var(--topbar-h) + 16px); }
.gallery { columns: 3 300px; column-gap: 16px; margin-top: 16px; }
.gallery-item {
	break-inside: avoid; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: calc(var(--topbar-h) + 16px);
}
.gallery-item a { display: block; background: #0b0b0c; overflow: hidden; }
.gallery-item img { width: 100%; transition: transform .3s; }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-item figcaption {
	padding: 10px 14px 12px; font-size: .88rem; color: var(--muted); line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gallery-item:target { border-color: var(--red); }

.lightbox {
	width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgb(0 0 0 / .94); color: #fff; overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgb(0 0 0 / .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-width: 100%; padding: 64px 16px calc(24px + env(safe-area-inset-bottom)); }
.lightbox img { max-width: min(100%, 1400px); max-height: calc(100dvh - 200px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { max-width: 760px; font-size: .95rem; line-height: 1.55; color: rgb(255 255 255 / .85); text-align: center; }
.lb-btn {
	position: fixed; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid rgb(255 255 255 / .2); background: rgb(20 20 22 / .7); color: #fff; cursor: pointer;
}
.lb-btn:hover { border-color: var(--red); background: var(--red); }
.lb-btn .icon { width: 22px; height: 22px; }
.lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 700px) {
	.lb-prev, .lb-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); transform: none; }
	.lightbox figure { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
	.lightbox img { max-height: calc(100dvh - 260px); }
}
@media (max-width: 640px) {
	.gallery { columns: 2; column-gap: 10px; }
	.gallery-item { margin-bottom: 10px; }
	.gallery-item figcaption { font-size: .78rem; padding: 8px 10px 10px; -webkit-line-clamp: 2; }
}
