/* ==========================================================================
   Steelrun — Public site design system
   Built on Bootstrap 5 grid/utilities. Brand colours are injected from the
   admin Settings as --brand / --brand-2 / --accent in the layout <head>.
   ========================================================================== */

:root {
	--brand: #ff2e4d;
	--brand-2: #2643ff;
	--accent: #d4ff3a;
	--ink: #0a0f2c;
	--ink-2: #111842;
	--bg: #ffffff;
	--surface: #f4f5fb;
	--surface-2: #e9ecf7;
	--card: #ffffff;
	--text: #0a0f2c;
	--muted: #5b6283;
	--line: rgba(10, 15, 44, .1);
	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 24px 60px -30px rgba(10, 15, 44, .35);
	--shadow-sm: 0 8px 24px -14px rgba(10, 15, 44, .3);
	--font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-display: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--grad: linear-gradient(120deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 45%, var(--brand-2)) 55%, var(--brand-2) 100%);
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #060a1f;
	--surface: #0c1232;
	--surface-2: #131a44;
	--card: #0f163a;
	--text: #eef0ff;
	--muted: #9ba3cc;
	--line: rgba(255, 255, 255, .1);
	--shadow: 0 24px 60px -30px rgba(0, 0, 0, .8);
	--shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	font-family: var(--font-sans); color: var(--text); background: var(--bg);
	font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
	transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; }
::selection { background: var(--brand); color: #fff; }
h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.text-muted, .muted { color: var(--muted) !important; }
.container { max-width: 1240px; padding-left: 20px; padding-right: 20px; }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.text-brand { color: var(--brand) !important; }
.text-gradient { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--accent); color: var(--ink); padding: .5rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* Buttons ---------------------------------------------------------------- */
.btn-jk {
	--b-bg: var(--brand); --b-fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1;
	background: var(--b-bg); color: var(--b-fg); border: 2px solid transparent; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
	position: relative; isolation: isolate; white-space: nowrap;
}
.btn-jk:hover { color: var(--b-fg); transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--b-bg) 80%, transparent); }
.btn-jk:active { transform: translateY(0); }
.btn-jk .arrow { transition: transform .25s var(--ease); }
.btn-jk:hover .arrow { transform: translateX(4px); }
.btn-jk.btn-grad { background: var(--grad); }
.btn-jk.btn-accent { --b-bg: var(--accent); --b-fg: var(--ink); }
.btn-jk.btn-ink { --b-bg: var(--ink); --b-fg: #fff; }
[data-theme="dark"] .btn-jk.btn-ink { --b-bg: #fff; --b-fg: var(--ink); }
.btn-jk.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-jk.btn-ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }
.btn-jk.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-jk.btn-glass:hover { background: rgba(255, 255, 255, .2); box-shadow: none; }
.btn-jk.btn-sm { padding: .6rem 1.1rem; font-size: 13.5px; }
.btn-jk.btn-lg { padding: 1.05rem 1.9rem; font-size: 16px; }
.btn-jk:disabled, .btn-jk.disabled { opacity: .5; pointer-events: none; }
.btn-play { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--brand); font-size: 16px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .15); transition: transform .3s var(--ease); }
.btn-play:hover { transform: scale(1.08); color: var(--brand); }

/* Header ----------------------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 1030; height: var(--header-h);
	display: flex; align-items: center; transition: background .3s, box-shadow .3s, height .3s, border-color .3s;
	border-bottom: 1px solid transparent;
}
.site-header.is-solid, body:not(.has-hero) .site-header {
	background: color-mix(in srgb, var(--bg) 96%, transparent);
	border-bottom-color: var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--font-display); font-size: 25px; font-weight: 800; font-style: italic; letter-spacing: .01em; }
.brand-text small { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand img.brand-logo { height: 44px; width: auto; }
.has-hero .site-header:not(.is-solid) .brand-text b, .has-hero .site-header:not(.is-solid) .nav-link-jk { color: #fff; }
.has-hero .site-header:not(.is-solid) .brand-text small { color: rgba(255, 255, 255, .7); }

.main-nav { display: flex; align-items: center; gap: .15rem; margin: 0 auto; list-style: none; padding: 0; }
.main-nav > li { position: relative; }
.nav-link-jk {
	display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .85rem; border-radius: 999px;
	font-weight: 600; font-size: 14.5px; color: var(--text); transition: background .2s, color .2s;
}
.nav-link-jk .fa-chevron-down { font-size: 9px; opacity: .6; transition: transform .25s; }
.nav-link-jk:hover, .main-nav > li:focus-within > .nav-link-jk, .nav-link-jk.active { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.has-hero .site-header:not(.is-solid) .nav-link-jk:hover, .has-hero .site-header:not(.is-solid) .nav-link-jk.active { background: rgba(255, 255, 255, .14); color: #fff; }
.main-nav > li:hover .fa-chevron-down { transform: rotate(180deg); }

.nav-menu {
	position: absolute; top: calc(100% + 10px); left: 50%; min-width: 300px; padding: .6rem;
	background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: all .25s var(--ease); z-index: 10;
}
.nav-menu::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; }
.main-nav > li:hover > .nav-menu, .main-nav > li:focus-within > .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu a { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: 13px; color: var(--text); }
.nav-menu a:hover { background: var(--surface); color: var(--text); }
.nav-menu a .ico { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); font-size: 15px; }
.nav-menu a:nth-child(even) .ico { background: color-mix(in srgb, var(--brand-2) 12%, transparent); color: var(--brand-2); }
.nav-menu a b { display: block; font-size: 14px; font-weight: 700; }
.nav-menu a small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.nav-menu hr { margin: .4rem .5rem; border-color: var(--line); opacity: 1; }

.header-tools { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.icon-btn {
	width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: all .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.has-hero .site-header:not(.is-solid) .icon-btn { color: #fff; border-color: rgba(255, 255, 255, .25); }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.lang-switch a { padding: .38rem .6rem; border-radius: 999px; color: var(--muted); line-height: 1; }
.lang-switch a.active { background: var(--text); color: var(--bg); }
.has-hero .site-header:not(.is-solid) .lang-switch { border-color: rgba(255, 255, 255, .25); }
.has-hero .site-header:not(.is-solid) .lang-switch a { color: rgba(255, 255, 255, .7); }
.has-hero .site-header:not(.is-solid) .lang-switch a.active { background: #fff; color: var(--ink); }
.theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
.menu-toggle { display: none; }

/* Mobile drawer */
.drawer.offcanvas { background: var(--bg); color: var(--text); width: min(380px, 88vw); border-left: 1px solid var(--line); }
.drawer .offcanvas-header { border-bottom: 1px solid var(--line); }
.drawer-nav { list-style: none; padding: 0; margin: 0; }
.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-nav > li > a, .drawer-nav > li > button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: .95rem .2rem; font-weight: 700; font-size: 17px; background: none; border: 0; color: var(--text); }
.drawer-nav .sub { list-style: none; padding: 0 0 .8rem .2rem; margin: 0; }
.drawer-nav .sub a { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; color: var(--muted); font-weight: 600; }
.drawer-nav .sub a i { width: 18px; color: var(--brand); }
.drawer-nav button[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }

@media (max-width: 1199.98px) {
	.main-nav, .header-tools .btn-jk { display: none; }
	.menu-toggle { display: inline-flex; }
	.header-tools { margin-left: auto; }
}
@media (max-width: 575.98px) {
	.header-tools .lang-switch { display: none; }
	.brand-text small { display: none; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
	position: relative; min-height: 100svh; padding: calc(var(--header-h) + 48px) 0 140px;
	color: #fff; background: var(--ink); overflow: hidden; isolation: isolate; display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
	content: ''; position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(60% 70% at 85% 15%, color-mix(in srgb, var(--brand-2) 70%, transparent) 0%, transparent 60%),
		radial-gradient(55% 60% at 5% 95%, color-mix(in srgb, var(--brand) 75%, transparent) 0%, transparent 60%),
		linear-gradient(100deg, rgba(6, 10, 31, .94) 0%, rgba(6, 10, 31, .78) 45%, rgba(6, 10, 31, .45) 100%);
}
.hero-lanes { position: absolute; inset: auto -10% -2% -10%; height: 46%; z-index: -1; opacity: .5; pointer-events: none; will-change: transform; contain: paint; }
.hero-lanes path { stroke-dasharray: 14 18; animation: laneRun 4.8s linear infinite; }
@keyframes laneRun { to { stroke-dashoffset: -64; } }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .95rem .45rem .55rem; border-radius: 999px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
	font-size: 13px; font-weight: 600;
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-size: 10px; }
.eyebrow .dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: ping 1.8s infinite; }
@keyframes ping { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }

.hero-title {
	font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase;
	font-size: clamp(3.1rem, 8.4vw, 7.4rem); line-height: .88; letter-spacing: -.005em; color: #fff; margin: 1.4rem 0 1.3rem;
}
.hero-title .hl { color: var(--accent); display: inline-block; position: relative; }
.hero-title .outline { -webkit-text-stroke: 2px rgba(255, 255, 255, .9); color: transparent; }
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .8); max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1.5rem 0 2rem; font-weight: 600; font-size: 15px; }
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta i { color: var(--accent); }

.countdown-card {
	background: rgba(10, 15, 44, .8); border: 1px solid rgba(255, 255, 255, .16); border-radius: 28px;
	padding: 1.6rem; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.countdown-card .label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1rem 0 1.25rem; }
.countdown > div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: .9rem .3rem .7rem; text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.countdown-card .race-date { display: flex; align-items: center; gap: .8rem; padding-top: 1.1rem; border-top: 1px dashed rgba(255, 255, 255, .18); }
.countdown-card .race-date .cal { width: 52px; height: 56px; border-radius: 14px; background: #fff; color: var(--ink); text-align: center; overflow: hidden; flex-shrink: 0; }
.countdown-card .race-date .cal span { display: block; background: var(--brand); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 0; }
.countdown-card .race-date .cal b { font-family: var(--font-display); font-size: 26px; line-height: 1.25; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1.25rem; }
.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1; }
.hero-stats small { font-size: 11.5px; color: rgba(255, 255, 255, .6); }

@media (max-height: 820px) { .scroll-cue { display: none !important; } }
.scroll-cue { position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); color: rgba(255, 255, 255, .6); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.scroll-cue::after { content: ''; width: 1px; height: 36px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Quick actions overlapping hero */
.quick-actions { position: relative; z-index: 5; margin-top: -84px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.quick-item { background: var(--card); padding: 1.4rem 1.4rem; display: flex; align-items: center; gap: 1rem; color: var(--text); transition: background .25s; position: relative; }
.quick-item:hover { background: var(--surface); color: var(--text); }
.quick-item .qi-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; color: #fff; background: var(--grad); transition: transform .35s var(--ease); }
.quick-item:hover .qi-icon { transform: rotate(-8deg) scale(1.06); }
.quick-item b { display: block; font-size: 15.5px; }
.quick-item small { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; }
.quick-item .fa-arrow-right { margin-left: auto; color: var(--muted); transition: transform .25s; }
.quick-item:hover .fa-arrow-right { transform: translateX(4px); color: var(--brand); }
@media (max-width: 991.98px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .quick-grid { grid-template-columns: 1fr; } .quick-actions { margin-top: -60px; } }

/* Marquee ribbon */
.ribbon { contain: paint; background: var(--accent); color: var(--ink); padding: 1rem 0; transform: rotate(-1.5deg); margin: 4.5rem -2rem 0; overflow: hidden; box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--accent) 80%, transparent); }
.ribbon-track { display: flex; gap: 2.5rem; width: max-content; transform: translate3d(0, 0, 0); backface-visibility: hidden; will-change: transform; animation: marquee 44s linear infinite; }
.ribbon-track span { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; display: inline-flex; align-items: center; gap: 2.5rem; white-space: nowrap; }
.ribbon-track span::after { content: '✦'; font-size: .7em; color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 767.98px) { .hero-lanes path { animation: none; } }
@media (max-width: 575.98px) { .ribbon-track { animation-duration: 52s; } }

/* Sections --------------------------------------------------------------- */
.section { padding: 6.5rem 0; position: relative; }
.section-sm { padding: 4rem 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--ink); color: #fff; --text: #fff; --muted: rgba(255, 255, 255, .65); --line: rgba(255, 255, 255, .12); --card: rgba(255, 255, 255, .05); --surface: rgba(255, 255, 255, .06); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem; }
.kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: 1rem; }
.section-title .font-display { font-style: italic; text-transform: uppercase; font-size: 1.12em; letter-spacing: 0; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 640px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }

/* Keep content visible before JS; the observer still animates small progress indicators. */
[data-reveal] { opacity: 1; transform: none; transition: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; }
	.hero-lanes path, .ribbon-track { animation: none; }
}

/* Category cards --------------------------------------------------------- */
.cat-card {
	--c: var(--brand);
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem;
	height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.cat-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.cat-card .dist { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 5.2rem; line-height: .85; color: transparent; -webkit-text-stroke: 2px var(--c); letter-spacing: -.01em; }
.cat-card:hover .dist { color: var(--c); }
.cat-card .dist small { font-size: .4em; -webkit-text-stroke: 0; color: var(--c); margin-left: .1em; }
.cat-card h3 { font-size: 1.35rem; margin: .8rem 0 .4rem; }
.cat-card .desc { color: var(--muted); font-size: 14.5px; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: 12.5px; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; background: var(--surface); color: var(--text); }
.chip i { color: var(--c, var(--brand)); }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.cat-card .perks { list-style: none; padding: 0; margin: .3rem 0 1.4rem; font-size: 14px; }
.cat-card .perks li { display: flex; gap: .55rem; padding: .25rem 0; }
.cat-card .perks i { color: var(--c); margin-top: .3rem; font-size: 12px; }
.price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price b { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
.price s { color: var(--muted); font-size: 14px; }
.badge-eb { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--ink); border-radius: 999px; padding: .25rem .6rem; }
.quota { margin: 1rem 0 1.3rem; }
.quota-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.quota-bar span { display: block; height: 100%; border-radius: 99px; background: var(--c); width: 0; transition: width 1.4s var(--ease); }
.is-visible .quota-bar span { width: var(--w); }
.quota-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: .4rem; font-weight: 600; }
.cat-card .btn-jk { margin-top: auto; --b-bg: var(--c); }
.cat-card.is-full { opacity: .7; }
.soldout { position: absolute; top: 22px; right: -38px; transform: rotate(35deg); background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: .3rem 2.6rem; }

/* Pillars */
.pillar { padding: 1.8rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); height: 100%; transition: transform .3s var(--ease); }
.pillar:hover { transform: translateY(-4px); }
.pillar .p-icon { width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 1.2rem; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.pillar:nth-child(even) .p-icon, [class*="col"]:nth-child(even) > .pillar .p-icon { background: color-mix(in srgb, var(--brand-2) 12%, transparent); color: var(--brand-2); }
.pillar h4 { font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-size: 1.9rem; letter-spacing: 0; margin-bottom: .4rem; }
.pillar p { color: var(--muted); font-size: 14.5px; margin: 0; }
.pillar .num { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--muted); float: right; }

/* Schedule / timeline */
.day-tabs { display: inline-flex; gap: .4rem; padding: .35rem; background: var(--surface); border-radius: 999px; border: 1px solid var(--line); flex-wrap: wrap; }
.day-tabs .nav-link { border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px; padding: .6rem 1.2rem; border: 0; }
.day-tabs .nav-link.active { background: var(--text); color: var(--bg); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 110px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2)); opacity: .3; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 0 2rem; position: relative; padding: .9rem 0; }
.timeline .t-time { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-align: right; padding-right: 1.3rem; line-height: 1.2; }
.timeline .t-time small { display: block; font-family: var(--font-sans); font-size: 11.5px; color: var(--muted); font-weight: 600; }
.timeline .t-dot { position: absolute; left: 104px; top: 1.35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); }
.timeline li.cat-race .t-dot { border-color: var(--brand); background: var(--brand); }
.timeline .t-body { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.25rem; transition: border-color .25s; }
.timeline .t-body:hover { border-color: var(--brand); }
.timeline .t-body h5 { font-size: 1.05rem; margin-bottom: .2rem; }
.timeline .t-body p { color: var(--muted); font-size: 14px; margin: .3rem 0 0; }
.timeline .t-loc { font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 575.98px) {
	.timeline::before { left: 7px; }
	.timeline li { grid-template-columns: 1fr; padding-left: 2rem; }
	.timeline .t-time { text-align: left; padding: 0 0 .4rem; }
	.timeline .t-dot { left: 1px; top: 1.1rem; }
}

/* Gallery grid + lightbox ------------------------------------------------ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery-grid .g-item:nth-child(6n + 1) { grid-row: span 2; }
.gallery-grid .g-item:nth-child(6n + 4) { grid-column: span 2; }
@media (max-width: 991.98px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 575.98px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .gallery-grid .g-item:nth-child(6n + 4) { grid-column: span 1; } }
.g-item { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; display: block; border: 0; padding: 0; width: 100%; height: 100%; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.g-item:hover img { transform: scale(1.07); }
.g-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 10, 31, .8)); opacity: 0; transition: opacity .35s; }
.g-item:hover::after { opacity: 1; }
.g-item .g-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; font-size: 13.5px; font-weight: 600; text-align: left; transform: translateY(8px); opacity: 0; transition: all .35s var(--ease); }
.g-item:hover .g-cap { transform: none; opacity: 1; }
.g-item .g-play { position: absolute; inset: 0; margin: auto; z-index: 2; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .2); transition: transform .3s var(--ease); }
.g-item:hover .g-play { transform: scale(1.1); }
.g-item .g-src { position: absolute; top: 12px; left: 12px; z-index: 2; color: #fff; font-size: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 6, 20, .94); display: none; align-items: center; justify-content: center; padding: 4rem 1rem; backdrop-filter: blur(6px); }
.lightbox.open { display: flex; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox-stage { max-width: min(1100px, 100%); max-height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img { max-height: 80vh; max-width: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox-stage iframe { width: min(100%, 960px); aspect-ratio: 16/9; border: 0; border-radius: 14px; background: #000; }
.lightbox-stage iframe.portrait { width: min(100%, 420px); aspect-ratio: 9/16; max-height: 82vh; }
.lightbox-stage video { width: min(100%, 1100px); max-height: 80vh; border-radius: 14px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox-caption { position: absolute; bottom: 1.2rem; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: 14px; padding: 0 4rem; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

.filter-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-pills a { padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 14px; border: 1px solid var(--line); color: var(--text); background: var(--card); transition: all .2s; }
.filter-pills a:hover { border-color: var(--brand); color: var(--brand); }
.filter-pills a.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Results archive cards */
.edition-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 260px; color: #fff; isolation: isolate; padding: 1.8rem; }
.edition-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.edition-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, color-mix(in srgb, var(--brand-2) 70%, transparent), rgba(6, 10, 31, .92) 70%); }
.edition-card:hover img { transform: scale(1.08); }
.edition-card:hover { color: #fff; }
.edition-card .yr { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(2.6rem, 3.6vw, 3.6rem); line-height: .9; padding-right: 3.6rem; margin-top: .3rem; }
.edition-card .meta { display: flex; gap: 1.5rem; margin-top: 4.5rem; font-size: 13px; color: rgba(255, 255, 255, .75); }
.edition-card .meta b { display: block; font-size: 1.5rem; color: #fff; font-weight: 800; }
.edition-card .go { position: absolute; top: 1.6rem; right: 1.6rem; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease); }
.edition-card:hover .go { transform: rotate(-45deg); }

/* News cards */
.news-card { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: inherit; }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.06); }
.news-card .thumb .tag { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--ink); font-size: 11.5px; font-weight: 800; padding: .3rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.news-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.news-card h3 { font-size: 1.2rem; line-height: 1.35; margin-bottom: .6rem; }
.news-card p { color: var(--muted); font-size: 14.5px; }
.news-card .meta { margin-top: auto; display: flex; gap: 1rem; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Charity CTA */
.charity-cta { border-radius: 32px; overflow: hidden; background: var(--ink); color: #fff; display: grid; grid-template-columns: 1.05fr 1fr; isolation: isolate; position: relative; }
.charity-cta .img { position: relative; min-height: 380px; }
.charity-cta .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.charity-cta .content { padding: 3rem; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(80% 80% at 100% 0%, color-mix(in srgb, var(--brand) 40%, transparent), transparent 70%); }
.charity-cta h2 { color: #fff; }
.progress-jk { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.progress-jk span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #8cff6a); border-radius: 99px; width: 0; transition: width 1.6s var(--ease); }
.is-visible .progress-jk span, .progress-jk.instant span { width: var(--w); }
@media (max-width: 991.98px) { .charity-cta { grid-template-columns: 1fr; } .charity-cta .img { min-height: 240px; } .charity-cta .content { padding: 2rem; } }

/* Sponsors */
.sponsor-tier + .sponsor-tier { margin-top: 3.2rem; }
.tier-label { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; display: flex; align-items: center; gap: 1rem; }
.tier-label::before, .tier-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.sponsor { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; transition: all .3s var(--ease); }
.sponsor:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: inherit; }
.sponsor img { object-fit: contain; filter: grayscale(1); opacity: .8; transition: all .3s; }
.sponsor:hover img { filter: none; opacity: 1; }
.sponsor .wordmark { font-family: var(--font-display); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1; letter-spacing: .01em; color: var(--text); opacity: .8; }
.sponsor:hover .wordmark { opacity: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sponsor small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); max-width: 180px; line-height: 1.3; }
.sponsor.size-xl { width: 300px; min-height: 150px; } .sponsor.size-xl img { height: 80px; max-width: 240px; } .sponsor.size-xl .wordmark { font-size: 2.5rem; }
.sponsor.size-lg { width: 230px; min-height: 120px; } .sponsor.size-lg img { height: 60px; max-width: 180px; } .sponsor.size-lg .wordmark { font-size: 1.8rem; }
.sponsor.size-md { width: 180px; min-height: 100px; } .sponsor.size-md img { height: 44px; max-width: 140px; } .sponsor.size-md .wordmark { font-size: 1.35rem; }
.sponsor.size-sm { width: 140px; min-height: 76px; padding: .7rem; } .sponsor.size-sm img { height: 32px; max-width: 110px; } .sponsor.size-sm .wordmark { font-size: 1.05rem; } .sponsor.size-sm small { display: none; }

/* FAQ accordion */
.faq-acc .accordion-item { background: var(--card); border: 1px solid var(--line); border-radius: 18px !important; margin-bottom: .75rem; overflow: hidden; }
.faq-acc .accordion-button { background: transparent; color: var(--text); font-weight: 700; font-size: 1.02rem; padding: 1.2rem 1.4rem; box-shadow: none; }
.faq-acc .accordion-button:not(.collapsed) { color: var(--brand); }
.faq-acc .accordion-button::after { background-image: none; content: '\2b'; font-family: 'Font Awesome 6 Free'; font-weight: 900; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 13px; transition: transform .3s, background .3s; }
.faq-acc .accordion-button:not(.collapsed)::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-acc .accordion-body { color: var(--muted); padding: 0 1.4rem 1.3rem; white-space: pre-line; }

.help-card { border-radius: var(--radius); padding: 2rem; background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.help-card h3 { color: #fff; }
.help-card::after { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .1); right: -70px; bottom: -70px; }

/* Newsletter & footer ---------------------------------------------------- */
.newsletter { border-radius: 32px; padding: 3rem; background: var(--grad); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.newsletter::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .18) 1.5px, transparent 1.5px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.newsletter h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.subscribe-form { display: flex; gap: .5rem; padding: .4rem; border-radius: 999px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.subscribe-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; padding: 0 1rem; font-weight: 500; }
.subscribe-form input::placeholder { color: rgba(255, 255, 255, .7); }
.form-feedback { font-size: 13.5px; margin-top: .6rem; min-height: 1.2em; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 5rem 0 2rem; margin-top: 6rem; position: relative; overflow: hidden; }
.site-footer .footer-big { position: absolute; left: 50%; bottom: -3.5rem; transform: translateX(-50%); font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(6rem, 20vw, 17rem); line-height: 1; color: rgba(255, 255, 255, .035); white-space: nowrap; pointer-events: none; }
.site-footer h6 { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand-text b { color: #fff; }
.site-footer .brand-text small { color: rgba(255, 255, 255, .55); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; font-size: 14.5px; }
.contact-line { display: flex; gap: .8rem; margin-bottom: .9rem; font-size: 14.5px; }
.contact-line i { width: 36px; height: 36px; border-radius: 11px; background: rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; transition: all .25s; }
.socials a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3.5rem; padding-top: 1.6rem; padding-right: 72px; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 13.5px; position: relative; }

.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 1020; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7); transition: transform .3s var(--ease); }
.fab-wa:hover { color: #fff; transform: scale(1.08) rotate(-6deg); }
.to-top { position: fixed; right: 26px; bottom: 90px; z-index: 1020; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; box-shadow: var(--shadow-sm); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Inner page hero -------------------------------------------------------- */
.page-hero { position: relative; padding: calc(var(--header-h) + 4.5rem) 0 4.5rem; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 90% 10%, color-mix(in srgb, var(--brand-2) 65%, transparent), transparent 70%), radial-gradient(45% 70% at 0% 100%, color-mix(in srgb, var(--brand) 60%, transparent), transparent 70%), linear-gradient(90deg, rgba(6,10,31,.95), rgba(6,10,31,.7)); }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { color: #fff; font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-size: clamp(2.8rem, 6.5vw, 5.4rem); line-height: .92; letter-spacing: 0; margin: .4rem 0 1rem; }
.page-hero p { color: rgba(255, 255, 255, .78); max-width: 640px; font-size: 1.08rem; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .65); list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: .5rem; opacity: .5; }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: var(--accent); }

/* Content prose */
.prose { font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.prose h2 { font-size: 1.75rem; margin: 2.2rem 0 1rem; }
.prose h3 { font-size: 1.35rem; margin: 1.8rem 0 .8rem; }
.prose p { margin-bottom: 1.2rem; }
.prose img { border-radius: 18px; margin: 1rem 0; height: auto; }
.prose blockquote { border-left: 4px solid var(--brand); padding: .6rem 0 .6rem 1.4rem; margin: 1.6rem 0; font-size: 1.15rem; font-weight: 600; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .9rem; }
.prose th { background: var(--surface); }

.side-nav { position: sticky; top: calc(var(--header-h) + 24px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .75rem .9rem; border-radius: 14px; font-weight: 600; font-size: 14.5px; }
.side-nav a i { width: 20px; text-align: center; color: var(--muted); }
.side-nav a.active, .side-nav a:hover { background: var(--surface); color: var(--brand); }
.side-nav a.active i { color: var(--brand); }

/* Cards & forms ---------------------------------------------------------- */
.card-jk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.card-jk.pad-lg { padding: 2.5rem; }
.form-label { font-weight: 700; font-size: 14px; margin-bottom: .45rem; color: var(--text); }
.form-control, .form-select {
	background-color: var(--bg); color: var(--text); border: 1.5px solid var(--line); border-radius: 14px;
	padding: .8rem 1rem; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.form-control::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.form-control:focus, .form-select:focus { background-color: var(--bg); color: var(--text); border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
[data-theme="dark"] .form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c5cae9' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-check-input { border-color: var(--muted); background-color: var(--bg); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-text { color: var(--muted); }
.invalid-feedback { font-weight: 600; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.7rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert-jk { border-radius: 16px; padding: 1rem 1.2rem; display: flex; gap: .8rem; align-items: flex-start; font-weight: 500; border: 1px solid; }
.alert-jk i { margin-top: .2rem; }
.alert-jk.success { background: color-mix(in srgb, #12b76a 10%, var(--bg)); border-color: color-mix(in srgb, #12b76a 35%, transparent); color: color-mix(in srgb, #12b76a 75%, var(--text)); }
.alert-jk.error { background: color-mix(in srgb, #f04438 9%, var(--bg)); border-color: color-mix(in srgb, #f04438 35%, transparent); color: color-mix(in srgb, #f04438 75%, var(--text)); }
.alert-jk.info { background: color-mix(in srgb, var(--brand-2) 8%, var(--bg)); border-color: color-mix(in srgb, var(--brand-2) 30%, transparent); color: var(--text); }
.alert-jk.warning { background: color-mix(in srgb, #f79009 10%, var(--bg)); border-color: color-mix(in srgb, #f79009 35%, transparent); color: var(--text); }

/* Registration wizard */
.stepper { display: flex; gap: .5rem; margin-bottom: 2rem; counter-reset: step; }
.stepper .st { flex: 1; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 16px; background: var(--surface); color: var(--muted); font-weight: 700; font-size: 13.5px; transition: all .3s; }
.stepper .st .n { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1.5px solid var(--line); font-size: 13px; flex-shrink: 0; }
.stepper .st.active { background: var(--text); color: var(--bg); }
.stepper .st.active .n { background: var(--brand); color: #fff; border-color: var(--brand); }
.stepper .st.done .n { background: #12b76a; color: #fff; border-color: #12b76a; }
@media (max-width: 767.98px) { .stepper .st span:not(.n) { display: none; } .stepper .st { justify-content: center; } }
.wizard-step { display: none; animation: stepIn .45s var(--ease); }
.wizard-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }

.cat-option { position: relative; display: block; cursor: pointer; height: 100%; }
.cat-option input { position: absolute; opacity: 0; }
.cat-option .box { --c: var(--brand); display: flex; flex-direction: column; height: 100%; border: 2px solid var(--line); border-radius: 20px; padding: 1.3rem; background: var(--card); transition: all .25s var(--ease); }
.cat-option:hover .box { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.cat-option input:checked + .box { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.cat-option input:focus-visible + .box { outline: 3px solid var(--brand); outline-offset: 2px; }
.cat-option .box .d { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 2.8rem; line-height: .9; color: var(--c); }
.cat-option .check { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: transparent; font-size: 12px; transition: all .2s; background: var(--card); }
.cat-option input:checked ~ .check { background: var(--c, var(--brand)); border-color: transparent; color: #fff; }
.cat-option input:disabled + .box { opacity: .5; cursor: not-allowed; }
.size-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.size-pills label { cursor: pointer; }
.size-pills input { position: absolute; opacity: 0; }
.size-pills span { display: inline-flex; min-width: 54px; justify-content: center; padding: .6rem .8rem; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 800; font-size: 14px; transition: all .2s; }
.size-pills input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.size-pills input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.summary-box { background: var(--surface); border-radius: 20px; padding: 1.4rem; }
.summary-box dl { display: grid; grid-template-columns: 42% 1fr; gap: .45rem 1rem; margin: 0; font-size: 14.5px; }
.summary-box dt { color: var(--muted); font-weight: 600; }
.summary-box dd { margin: 0; font-weight: 700; word-break: break-word; }
.order-card { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; }
.order-card .head { padding: 1.6rem; background: var(--grad); }
.order-card .body { padding: 1.6rem; }
.order-card .row-line { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); font-size: 14.5px; }
.order-card .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; }
.order-card .total b { font-size: 1.8rem; font-weight: 800; }

/* Ticket (registration status) */
.ticket { border-radius: 28px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticket-head { padding: 2rem; color: #fff; background: var(--grad); position: relative; }
.ticket-head .bib { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: clamp(3rem, 8vw, 5rem); line-height: .9; }
.ticket-cut { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 1.5rem; }
.ticket-cut::before, .ticket-cut::after { content: ''; position: absolute; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
.ticket-cut::before { left: -40px; } .ticket-cut::after { right: -40px; }
.ticket-body { padding: 2rem; }
.status-steps { display: flex; justify-content: space-between; position: relative; margin: 1rem 0 2rem; }
.status-steps::before { content: ''; position: absolute; left: 20px; right: 20px; top: 19px; height: 3px; background: var(--surface-2); }
.status-steps .ss { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: center; flex: 1; }
.status-steps .ss i { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.status-steps .ss.done i { background: #12b76a; color: #fff; }
.status-steps .ss.current i { background: var(--brand); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 20%, transparent); }
.status-steps .ss.done, .status-steps .ss.current { color: var(--text); }
.bank-box { border: 2px dashed var(--line); border-radius: 20px; padding: 1.4rem; }
.copy-btn { border: 0; background: var(--surface); color: var(--text); border-radius: 10px; padding: .35rem .7rem; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: var(--brand); color: #fff; }
.confetti-burst { position: fixed; inset: 0; pointer-events: none; z-index: 3000; }

/* Results table */
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: .8rem; }
.podium .pd { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem; text-align: center; position: relative; }
.podium .pd.p1 { padding-top: 1.8rem; border-color: #f5b301; box-shadow: 0 20px 40px -28px #f5b301; }
.podium .pd .medal { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto .6rem; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; }
.podium .pd b { display: block; font-size: 14.5px; line-height: 1.3; }
.podium .pd .t { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.results-table { width: 100%; border-collapse: separate; border-spacing: 0 .5rem; }
.results-table th { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: .3rem 1rem; white-space: nowrap; }
.results-table td { background: var(--card); padding: .9rem 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; }
.results-table td:first-child { border-left: 1px solid var(--line); border-radius: 14px 0 0 14px; }
.results-table td:last-child { border-right: 1px solid var(--line); border-radius: 0 14px 14px 0; }
.results-table tr:hover td { border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.rank-badge { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--surface); }
.rank-badge.r1 { background: #f5b301; color: #fff; } .rank-badge.r2 { background: #9aa5b1; color: #fff; } .rank-badge.r3 { background: #cd7f32; color: #fff; }
.time-big { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }

.certificate { position: relative; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff; padding: 3rem; isolation: isolate; }
.certificate::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--brand-2) 60%, transparent), transparent 70%), radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 70%); }
.certificate .cert-name { font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: .95; }
.certificate .cert-stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.certificate .cert-stat small { color: rgba(255, 255, 255, .6); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

/* Pagination */
.pagination { gap: .35rem; flex-wrap: wrap; }
.pagination .page-link { border-radius: 12px !important; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 700; min-width: 42px; text-align: center; }
.pagination .page-item.active .page-link { background: var(--text); border-color: var(--text); color: var(--bg); }
.pagination .page-item.disabled .page-link { background: transparent; color: var(--muted); }

/* Empty state */
.empty-jk { text-align: center; padding: 4rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-jk i { font-size: 2.4rem; margin-bottom: 1rem; color: var(--brand); }

/* Map */
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 360px; background: var(--surface); }
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
[data-theme="dark"] .map-frame iframe { filter: invert(.9) hue-rotate(180deg); }

/* Toast */
.toast-jk { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 48px)); opacity: 0; visibility: hidden; z-index: 2500; background: var(--ink); color: #fff; padding: .9rem 1.3rem; border-radius: 16px; font-weight: 600; font-size: 14.5px; display: flex; gap: .7rem; align-items: center; box-shadow: var(--shadow); transition: transform .45s var(--ease), opacity .3s, visibility .3s; max-width: calc(100vw - 32px); }
.toast-jk.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast-jk i { color: var(--accent); }

@media print {
	.site-header, .site-footer, .fab-wa, .to-top, .no-print, .newsletter { display: none !important; }
	body { background: #fff; }
	.page-hero { padding: 1rem 0; }
	.certificate, .ticket-head, .order-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Photo & video showcase ------------------------------------------------- */
.showcase { position: relative; overflow: hidden; isolation: isolate; }
.showcase::before {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(50% 60% at 100% 0%, color-mix(in srgb, var(--brand-2) 45%, transparent), transparent 70%),
		radial-gradient(45% 55% at 0% 100%, color-mix(in srgb, var(--brand) 35%, transparent), transparent 70%);
}
.showcase-intro { font-size: 1.06rem; line-height: 1.8; color: var(--muted); }
.showcase-intro::first-letter { float: left; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 3.6em; line-height: .78; margin: .1em .14em 0 0; color: var(--brand); }
.section-dark .showcase-intro::first-letter { color: var(--accent); }
.showcase-quote { margin: 1.5rem 0; padding: .15rem 0 .15rem 1.1rem; border-left: 3px solid var(--brand); font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.45rem; line-height: 1.2; text-transform: uppercase; }
.section-dark .showcase-quote { border-color: var(--accent); }
.showcase-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 1.6rem 0; }
.showcase-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.showcase-stats b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 1.9rem; line-height: 1; }
.showcase-stats small { display: block; margin-top: .35rem; font-size: 12px; line-height: 1.35; color: var(--muted); }
.showcase-player { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
.showcase-player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.showcase-player.is-playing video { object-fit: contain; }
.showcase-play { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1.4rem 1.6rem; border: 0; text-align: left; color: #fff; cursor: pointer; background: linear-gradient(180deg, transparent 45%, rgba(6, 10, 31, .88)); }
.showcase-play .btn-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; font-size: 26px; }
.showcase-play:hover .btn-play { transform: scale(1.08); }
.showcase-play .txt b { display: block; font-size: 1.15rem; }
.showcase-play .txt small { font-size: 13px; opacity: .75; }
.showcase-player.is-playing .showcase-play { display: none; }
.showcase-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.showcase-thumbs .g-item { aspect-ratio: 16 / 9; height: auto; cursor: pointer; }
.showcase-thumbs .g-item::after, .showcase-thumbs .g-cap { opacity: 1; transform: none; }
.showcase-thumbs .g-play { width: 46px; height: 46px; font-size: 14px; }
.gallery-intro .showcase-stats { margin-bottom: 0; }
@media (max-width: 575.98px) {
	.showcase-stats b { font-size: 1.5rem; }
	.showcase-stats > div { padding: .75rem .7rem; }
	.showcase-play .btn-play { width: 64px; height: 64px; font-size: 20px; }
	.showcase-play .txt small { display: none; }
	.showcase-thumbs { grid-template-columns: 1fr; }
}

/* Google sign-in for visitors ------------------------------------------- */
.google-card { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.google-card:hover { color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
.google-card svg { flex-shrink: 0; }
.google-card b { display: block; font-size: 1.05rem; font-weight: 800; }
.google-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.google-card .fa-arrow-right { color: var(--muted); }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 1.1rem 0 1.4rem; color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-runner { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.google-runner img, .google-runner .g-initial { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.google-runner .g-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--grad); color: #fff; font-weight: 800; }
.google-runner b { display: block; line-height: 1.2; }
.google-runner small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-reg { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.my-reg:hover { color: var(--text); border-color: var(--brand); }
.my-reg .bar { width: 5px; align-self: stretch; border-radius: 4px; flex-shrink: 0; }
.my-reg b { display: block; line-height: 1.25; }
.my-reg small { color: var(--muted); font-size: 12.5px; }
.my-reg .status { font-size: 11.5px; font-weight: 800; padding: .3rem .6rem; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.my-reg .s-confirmed { background: #d1fae5; color: #047857; }
.my-reg .s-paid { background: #dbeafe; color: #1d4ed8; }
.my-reg .s-pending { background: #fef3c7; color: #b45309; }
.my-reg .s-cancelled { background: #fee2e2; color: #b91c1c; }
.min-w-0 { min-width: 0; }
