/* ==========================================================================
   Bodhgaya Marathon — public site
   Light, editorial layout · blue & pink accents · Geist type
   ========================================================================== */
:root {
  /* blues */
  --ink: #0b1a3d;
  --navy: #0b1f4d;
  --royal: #1d4ed8;
  --blue: #2563eb;
  --azure: #3b82f6;
  --sky: #38bdf8;
  --ice: #eaf2ff;
  /* pinks */
  --magenta: #db2777;
  --pink: #ec4899;
  --fuchsia: #d946ef;
  --blush: #fdf0f7;
  /* surfaces */
  --bg: #ffffff;
  --tint-1: #eef2fa;
  --tint-2: #dde6f4;
  --surface: #ffffff;
  --surface-2: #f3f6fc;
  --border: #dfe5f1;
  --border-strong: #c9d3e6;
  --text: #0b1a3d;
  --muted: #56607d;
  --green: #059669;
  --danger: #e11d48;
  /* legacy aliases used in templates */
  --saffron: var(--blue);
  --rose: var(--pink);
  --cyan: var(--sky);
  --gold: var(--fuchsia);
  --grad: linear-gradient(115deg, #1d4ed8 0%, #3b82f6 28%, #8b5cf6 55%, #d946ef 75%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, #eaf2ff 0%, #f3edff 50%, #fdf0f7 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --frame: 22px;
  --shadow: 0 24px 60px -32px rgba(11, 26, 61, .35);
  --font: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: var(--font);
  --font-body: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h2 { font-size: clamp(30px, 4vw, 46px); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 16px; }
.grad-text { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 6s ease-in-out infinite alternate; }
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.eyebrow-txt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.eyebrow-txt i { color: var(--pink); }
.kicker { display: inline-block; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.display { font-weight: 300; letter-spacing: -.035em; line-height: 1.02; }
.h-xl { font-size: clamp(32px, 4.4vw, 52px); }
.lead-sm { font-size: 18px; color: #36405e; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- word reveal (headlines) ---------- */
.w { display: inline-block; opacity: 0; transform: translateY(.3em); filter: blur(10px); animation: wordIn 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.2s + var(--i, 0) * 110ms); }
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wordFade { to { opacity: 1; } }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.5em; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 500 15.5px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .2s;
}
.btn i { font-size: .85em; transition: transform .25s; }
/* "↗" arrow: Font Awesome's arrow-up-right is a paid icon, so the free arrow is rotated instead. */
.arr-diag { transform: rotate(-45deg); }
.btn:hover .arr-diag, .pill:hover .arr-diag, .link-arrow:hover .arr-diag { transform: rotate(-45deg) translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 12px 26px -14px rgba(11,26,61,.7); }
.btn-primary:hover { background: var(--grad); background-size: 160% auto; box-shadow: 0 14px 30px -14px rgba(217,70,239,.7); }
.btn-ghost { background: #fff; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--grad); color: #fff; }
.btn-sm { padding: .7em 1.1em; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); padding-bottom: 3px; border-bottom: 1.5px solid currentColor; transition: color .2s, border-color .2s; }
.link-arrow i { font-size: .8em; transition: transform .25s; }
.link-arrow:hover { color: var(--blue); }
.link-arrow.is-disabled { color: var(--muted); border-bottom-style: dashed; }
.tag { display: inline-block; padding: 4px 9px; border-radius: 5px; background: #1a1446; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.3; }
.tag-pink { background: var(--magenta); }
.tag-muted { background: #8a93ad; }

/* ---------- header ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; padding: 22px 26px 0; transition: padding .3s, background .3s, box-shadow .3s; }
.nav-inner { display: flex; align-items: center; gap: 16px; max-width: 1480px; margin-inline: auto; }
.nav.scrolled, .is-inner .nav { padding-top: 10px; padding-bottom: 10px; background: rgba(255,255,255,.88); backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 10px 30px -22px rgba(11,26,61,.45); }
.menu-btn { width: 50px; height: 50px; flex: none; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-content: center; gap: 4px; box-shadow: 0 8px 22px -12px rgba(11,26,61,.5); transition: transform .2s; }
.menu-btn:hover { transform: scale(1.05); }
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.82); backdrop-filter: blur(12px); color: var(--ink); font-size: 17px; letter-spacing: -.01em; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); background-size: 200% auto; animation: gradShift 6s ease-in-out infinite alternate; color: #fff; font-size: 17px; }
.brand-logo { height: 38px; width: auto; }
.brand-text strong { font-weight: 600; }
.nav-pill { margin-inline: auto; display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 30px -20px rgba(11,26,61,.5); }
.nav-pill a { padding: 9px 20px; border-radius: 999px; font-size: 15.5px; color: #26304f; transition: background .2s, color .2s; }
.nav-pill a:hover { background: #fff; color: var(--blue); }
.nav-pill a, .nav-pill .nav-drop-btn { white-space: nowrap; }
.nav-myphoto i { color: var(--pink); margin-right: 3px; font-size: 13px; }
/* Fit 7 menu items between the logo and the buttons on smaller computer screens */
@media (max-width: 1440px) { .nav-pill a { padding: 9px 14px; font-size: 15px; } }
@media (max-width: 1300px) { .nav-pill { gap: 0; } .nav-pill a { padding: 8px 11px; font-size: 14.5px; } .brand-text { display: none; } }
@media (max-width: 1160px) { .nav-pill a { padding: 8px 8px; font-size: 14px; } .nav-myphoto i { display: none; } .nav-actions .pill-glass span { display: none; } }
/* Results dropdown (past editions) */
.nav-drop { position: relative; display: flex; }
.nav-drop-btn i { font-size: 10px; margin-left: 4px; transition: transform .25s; }
.nav-drop-menu { position: absolute; top: calc(100% + 10px); left: 50%; min-width: 210px; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: 0 24px 50px -24px rgba(11,26,61,.45); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop:hover .nav-drop-btn i, .nav-drop:focus-within .nav-drop-btn i { transform: rotate(180deg); }
.nav-pill .nav-drop-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 11px 14px; border-radius: 12px; }
.nav-drop-menu a strong { font-weight: 600; color: var(--ink); }
.nav-drop-menu a span { font-size: 13.5px; color: var(--muted); }
.nav-pill .nav-drop-menu a:hover { background: var(--tint-1); }
.nav-drop-menu a:hover span { color: var(--pink); }
.menu-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 14px 52px; }
.menu-sub { border-bottom: 1px solid var(--border); padding-top: 2px; }
.menu-links .menu-sub a { display: inline-flex; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--tint-1); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink); }
.menu-links .menu-sub a:hover { padding-left: 14px; }
.menu-sub a strong { font-weight: 600; }
.menu-links .menu-sub a:hover { background: var(--grad); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font-size: 15.5px; font-weight: 500; white-space: nowrap; transition: background .25s, color .25s, transform .2s; }
.pill i { font-size: .85em; }
.pill-glass { background: rgba(255,255,255,.72); backdrop-filter: blur(14px); color: var(--ink); border: 1px solid rgba(255,255,255,.7); }
.pill-glass:hover { background: #fff; }
.pill-dark { background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 10px 24px -12px rgba(11,26,61,.7); }
.pill-dark:hover { background: var(--grad); background-size: 160% auto; }
.is-inner .brand, .nav.scrolled .brand { background: transparent; backdrop-filter: none; padding-left: 0; }
.is-inner .nav-pill, .nav.scrolled .nav-pill { background: var(--tint-1); border-color: transparent; box-shadow: none; }
.is-inner .pill-glass, .nav.scrolled .pill-glass { background: var(--tint-1); border-color: transparent; }
.is-inner .menu-btn, .nav.scrolled .menu-btn { background: var(--tint-1); box-shadow: none; }
@media (max-width: 1080px) { .nav-pill { display: none; } .nav-actions { margin-left: auto; } }
@media (max-width: 640px) {
  .nav { padding: 14px 14px 0; }
  .menu-btn { width: 44px; height: 44px; }
  .pill-glass { display: none; }
  .pill { padding: 11px 16px; font-size: 14.5px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 34px; height: 34px; font-size: 15px; }
}
@media (max-width: 400px) { .brand-text { display: none; } }

/* ---------- full-screen menu ---------- */
.site-menu { position: fixed; inset: 0; z-index: 55; background: rgba(246,248,255,.97); backdrop-filter: blur(20px); overflow-y: auto; padding: 110px 26px 40px; opacity: 0; transition: opacity .3s; }
.site-menu[hidden] { display: block; visibility: hidden; pointer-events: none; }
.menu-open .site-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.site-menu-inner { max-width: 1240px; margin-inline: auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: start; }
.menu-links a { display: flex; align-items: center; gap: 22px; padding: 16px 4px; border-bottom: 1px solid var(--border); font-size: clamp(24px, 3.4vw, 40px); font-weight: 300; letter-spacing: -.02em; color: var(--ink); opacity: 0; transform: translateY(14px); transition: color .2s, padding .25s; }
.menu-open .menu-links a { animation: wordIn .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.05s + var(--i) * 45ms); filter: none; }
.menu-links a em { font-style: normal; font-size: 13px; color: var(--pink); font-weight: 500; width: 26px; }
.menu-links a span { flex: 1; }
.menu-links a small { display: block; font-size: 14px; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.menu-links a > i { font-size: 18px; color: var(--muted); transition: transform .25s, color .25s; }
.menu-links a:hover { color: var(--blue); padding-left: 12px; }
.menu-links a:hover > i { color: var(--pink); transform: rotate(-45deg) translateX(4px); }
.menu-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; position: sticky; top: 20px; }
.menu-card h3 { font-size: 28px; margin-bottom: 6px; }
.menu-card p { color: var(--muted); }
.menu-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.menu-card li { display: flex; gap: 12px; align-items: flex-start; color: #36405e; }
.menu-card li i { color: var(--blue); margin-top: 4px; width: 16px; }
.menu-card .socials { margin-top: 22px; }
.menu-open { overflow: hidden; }
@media (max-width: 860px) { .site-menu-inner { grid-template-columns: 1fr; gap: 30px; } .menu-card { position: static; } .site-menu { padding-top: 90px; } }

/* ---------- flash ---------- */
.flash-wrap { padding-top: 100px; }
.is-home .flash-wrap { position: absolute; left: 0; right: 0; z-index: 40; padding-top: 100px; }
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid; font-weight: 500; }
.flash-success { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.flash-error { background: #fff1f5; border-color: #fbcfe8; color: #be123c; }
.flash-info { background: var(--ice); border-color: #bfdbfe; color: var(--royal); }

/* ---------- framed hero ---------- */
.hero-frame { position: relative; margin: 10px; border-radius: var(--frame); overflow: hidden; isolation: isolate; background: var(--ink); }
.hero-default { min-height: calc(100svh - 20px); display: flex; align-items: center; background: linear-gradient(160deg, #e6eeff 0%, #f3ecff 55%, #fdeef6 100%); }
.hero-default .aurora { position: absolute; inset: 0; z-index: -2; filter: blur(80px); opacity: .6; }
.aurora span { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; background: #93c5fd; top: -14vw; right: -8vw; }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; background: #f9a8d4; bottom: -14vw; left: -10vw; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 28vw; height: 28vw; background: #c4b5fd; top: 28%; left: 38%; opacity: .7; animation-delay: -12s; }
@keyframes drift { to { transform: translate(6vw, 4vw) scale(1.15); } }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .8; }
.hero-default-inner { padding: 130px 0 120px; }
.hero-default h1 { font-size: clamp(54px, 10vw, 140px); margin: 10px 0 22px; }
.hero-default .lead { font-size: clamp(18px, 2vw, 23px); color: #36405e; max-width: 36ch; margin-bottom: 30px; }

/* ---------- homepage banners (inside the frame) ---------- */
.banners { --fade: 1.2s; }
/* Same width as the race-day bar below it (the page's .container width). */
.hero-frame.banners { width: min(1240px, 100% - 32px); margin: 10px auto 0; }
/* Slides are stacked in one grid cell. The incoming slide fades in on top while the
   outgoing one stays visible underneath, so the picture never dips to dark mid-change. */
.banner-track { display: grid; touch-action: pan-y; }
.banner-track:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; }
.banner-slide {
  grid-area: 1 / 1; position: relative; z-index: 0;
  aspect-ratio: 4 / 5; max-height: 72svh; overflow: hidden; background: var(--grad-soft);
  opacity: 0; visibility: hidden;
  transition: opacity 0s linear var(--fade, 1.2s), visibility 0s linear var(--fade, 1.2s), z-index 0s linear var(--fade, 1.2s);
}
.banner-slide.is-active { z-index: 2; opacity: 1; visibility: visible; transition: opacity var(--fade, 1.2s) ease-in-out, visibility 0s, z-index 0s; }
.banner-slide:not(.is-active) { z-index: 1; }
.banner-slide picture, .banner-slide img { display: block; width: 100%; height: 100%; }
.banner-slide img { object-fit: cover; object-position: center; transform: scale(1.07); transition: transform 0s linear var(--fade, 1.2s); }
.banner-slide.is-active img { transform: scale(1); transition: transform calc(var(--fade, 1.2s) * 5) cubic-bezier(.2,.6,.3,1); }
.banner-slide.has-overlay::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(8,16,40,.85) 0%, rgba(8,16,40,.4) 40%, rgba(8,16,40,0) 65%); }
.banner-link { position: absolute; inset: 0; z-index: 2; }
/* Admin-set darkness: an even dark layer over the image/video so text on it reads clearly. */
.banner-slide.has-dim::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(6, 12, 32, var(--dim, .3)); }
.banner-slide.has-overlay::after { z-index: 1; }
.has-dim .banner-copy h2, .has-dim .banner-copy p { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
/* The whole video frame is shown (nothing cropped); its cover image, blurred, fills any space around it. */
.banner-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
/* Keep the video above the race-day bar, which overlaps the bottom of the banner. */
.banners .banner-video { height: calc(100% - var(--bar-overlap, 34px)); }
@media (min-width: 641px) { .banners { --bar-overlap: 54px; } }
.banner-video.is-playing { opacity: 1; }
.banner-slide.has-video img { transition: filter .8s ease; }
.banner-slide.has-video:has(.banner-video.is-playing) img { filter: blur(26px) brightness(.55) saturate(1.2); }
.has-video.is-active img { transform: none; }
/* Bottom spacing leaves room for the race-day card that overlaps the frame's lower edge. */
.banner-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 0 120px; color: #fff; }
.banner-copy-inner { max-width: 760px; }
.banner-copy h2 { color: #fff; font-size: clamp(38px, 9vw, 104px); margin-bottom: 14px; text-shadow: 0 2px 30px rgba(0,0,0,.2); }
.banner-copy p { font-size: clamp(16px, 4vw, 21px); opacity: .95; margin-bottom: 22px; max-width: 48ch; }
.banner-copy .btn { opacity: 0; transform: translateY(14px); transition: opacity .4s, transform 0s linear .4s; }
.is-active .banner-copy .btn, .is-active .banner-copy p { opacity: 1; transform: none; transition: opacity .8s ease calc(var(--fade, 1.2s) * .5 + .4s), transform .8s cubic-bezier(.2,.8,.2,1) calc(var(--fade, 1.2s) * .5 + .4s); }
.banner-copy p { opacity: 0; transform: translateY(14px); }
.banner-slide .w { animation: none; }
.banner-slide.is-active .w { animation: wordIn 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--fade, 1.2s) * .35 + var(--i, 0) * 110ms); }

.banner-controls { position: absolute; top: 96px; right: 22px; z-index: 5; display: flex; gap: 8px; }
.banner-ctl { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); cursor: pointer; background: rgba(8,16,40,.35); color: #fff; backdrop-filter: blur(8px); display: grid; place-items: center; font-size: 14px; transition: background .2s, transform .2s; }
.banner-ctl:hover { background: var(--grad); transform: scale(1.06); }
.banner-ctl:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.banner-sound { display: none; }
.video-active .banner-sound { display: grid; }

.banner-bar { position: absolute; left: 0; right: 0; bottom: 50px; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 22px; color: #fff; }
.banner-count { display: none; font-size: 15px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.banner-count b { font-weight: 600; font-size: 20px; }
.banner-dots { display: flex; gap: 6px; }
.banner-dot { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.banner-dot i { display: block; position: relative; width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.55); overflow: hidden; transition: width .35s; }
.banner-dot.active i { width: 40px; background: rgba(255,255,255,.35); }
.banner-dot.active i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #93c5fd, #f9a8d4); transform-origin: left; transform: scaleX(0); }
.banner-dot.active i.run::after { animation: dotFill var(--dur, 6s) linear forwards; }
.banners.paused .banner-dot.active i::after { animation-play-state: paused; }
.no-autoplay .banner-dot.active i::after { transform: scaleX(1); }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.banner-arrows { display: none; gap: 8px; }
.banner-arrow { width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); cursor: pointer; display: grid; place-items: center; font-size: 15px; transition: background .2s, color .2s; }
.banner-arrow:hover { background: #fff; color: var(--ink); }

@media (min-width: 768px) {
  /* Shorter banner so the race-day bar and partners show without scrolling. */
  /* Height follows a 16:9 video at the banner's full width (plus the strip the race-day bar covers),
     capped so the race-day bar still shows on laptop screens. */
  .banner-slide { aspect-ratio: auto; height: min(calc(min(1240px, 100vw - 32px) * 9 / 16 + 54px), 82svh); min-height: 420px; }
  /* The video fills the banner's full width, like the race-day bar below it. */
  .banners .banner-video { object-fit: cover; }
  .banner-copy { top: 0; display: flex; align-items: flex-end; padding: 0 0 170px; }
  .banner-copy .container { width: min(1240px, 100% - 120px); }
  .align-center .banner-copy { align-items: center; padding-bottom: 40px; }
  .align-center .banner-copy-inner { margin-inline: auto; text-align: center; }
  .align-center .banner-copy p { margin-inline: auto; }
  .align-right .banner-copy-inner { margin-left: auto; text-align: right; }
  .align-right .banner-copy p { margin-left: auto; }
  .banner-slide.has-overlay::after { background: linear-gradient(90deg, rgba(8,16,40,.72) 0%, rgba(8,16,40,.3) 45%, rgba(8,16,40,0) 72%), linear-gradient(to top, rgba(8,16,40,.45), rgba(8,16,40,0) 40%); }
  .align-center.has-overlay::after { background: radial-gradient(ellipse at center, rgba(8,16,40,.6) 0%, rgba(8,16,40,.25) 55%, rgba(8,16,40,.08) 100%); }
  .align-right.has-overlay::after { background: linear-gradient(270deg, rgba(8,16,40,.72) 0%, rgba(8,16,40,.3) 45%, rgba(8,16,40,0) 72%); }
  .banner-bar { justify-content: space-between; padding: 0 calc((100% - min(1240px, 100% - 120px)) / 2); bottom: 82px; }
  .banner-count, .banner-arrows { display: flex; }
  .banner-count { display: block; }
  .banner-controls { top: 108px; right: 30px; }
}
@media (max-width: 767px) { .hero-frame { margin: 8px; border-radius: 18px; } .banner-slide { max-height: 72svh; } .banner-controls { top: 76px; right: 14px; } }

/* ---------- race-day bar ---------- */
.raceday { position: relative; z-index: 6; margin-top: -54px; }
.raceday-card { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px 34px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 26px; box-shadow: var(--shadow); }
.rd-block { min-width: 0; }
.rd-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(236,72,153,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(236,72,153,0); } 100% { box-shadow: 0 0 0 0 rgba(236,72,153,0); } }
.countdown { display: flex; gap: 14px; }
.cd-unit { text-align: center; min-width: 44px; }
.cd-num { display: block; font: 500 30px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--royal); letter-spacing: -.02em; }
.cd-unit:nth-child(even) .cd-num { color: var(--magenta); }
.cd-lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rd-meta { display: grid; gap: 6px; color: #36405e; font-size: 15px; border-left: 1px solid var(--border); padding-left: 30px; }
.rd-meta span { display: flex; gap: 10px; align-items: flex-start; }
.rd-meta i { color: var(--blue); margin-top: 4px; width: 14px; }
.rd-runners { text-align: center; }
.rd-runners strong { display: block; font: 300 38px/1 var(--font); letter-spacing: -.03em; color: var(--ink); }
.rd-runners span { font-size: 13px; color: var(--muted); }
.rd-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
/* Patron leads the bar: name & designation sit at the bar's bottom, the photo rises into the banner. */
.raceday-card.has-patron { grid-template-columns: auto auto 1fr auto auto; }
.rd-patron { margin: 0; width: 200px; align-self: end; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* The frame gives every bar photo the same look: white behind cut-out (transparent) photos, and
   the image runs a few px past the frame's bottom so stray edge lines in a photo stay hidden. */
.rd-patron-img { display: block; width: 200px; height: 240px; margin-top: -170px; overflow: hidden; background: #fff; border-radius: 14px 14px 0 0; }
.rd-patron-img img { display: block; width: 100%; height: calc(100% + 6px); object-fit: cover; object-position: top; }
.rd-patron figcaption { margin-top: 8px; }
.rd-patron .rd-label { justify-content: center; margin-bottom: 2px; color: var(--pink); font-weight: 600; }
.rd-patron strong { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.rd-patron-role { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.has-patron .rd-count { border-left: 1px solid var(--border); padding-left: 30px; }
/* Right end of the bar (replaces Register): same style as the Patron, about 20% larger. */
.rd-patron-right { width: 240px; justify-self: end; grid-column: -2 / -1; grid-row: 1; }
.rd-patron-right .rd-patron-img { width: 240px; height: 290px; margin-top: -215px; }
.has-right .rd-runners { border-right: 1px solid var(--border); padding-right: 30px; }
@media (max-width: 1080px) {
  .raceday-card.has-patron { grid-template-columns: 1fr 1fr; }
  .has-patron .rd-patron { grid-row: span 2; justify-self: center; }
  .has-patron .rd-count { border-left: 0; padding-left: 0; }
  .raceday-card.has-right { grid-template-columns: 1fr 1fr; }
  .rd-patron-right { justify-self: center; grid-column: auto; grid-row: auto; }
  .has-right .rd-runners { border-right: 0; padding-right: 0; }
}
@media (max-width: 640px) {
  .raceday-card.has-patron, .raceday-card.has-right { grid-template-columns: 1fr; }
  .has-patron .rd-patron { grid-row: auto; }
  .rd-patron, .rd-patron-img { width: 170px; }
  .rd-patron-img { height: 200px; margin-top: -120px; }
  .rd-patron-right, .rd-patron-right .rd-patron-img { width: 200px; }
  .rd-patron-right .rd-patron-img { height: 240px; margin-top: 0; border-radius: 14px; }
}
@media (max-width: 1080px) { .raceday-card { grid-template-columns: 1fr 1fr; } .rd-meta { border-left: 0; padding-left: 0; } .rd-actions { flex-direction: row; align-items: center; flex-wrap: wrap; } .rd-runners { text-align: left; } }
@media (max-width: 640px) {
  .raceday { margin-top: -34px; }
  .raceday-card { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .countdown { justify-content: space-between; }
  .cd-num { font-size: 28px; }
  .rd-runners { display: flex; align-items: baseline; gap: 10px; }
  .rd-runners strong { font-size: 32px; }
  .rd-actions .btn { flex: 1; }
}

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }
.tint-1 { background: var(--tint-1); }
.tint-2 { background: var(--tint-2); }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.row-head h2 { margin-bottom: 0; }
.row-note { max-width: 40ch; margin: 0; }
.center.narrow { margin-inline: auto; margin-bottom: 50px; }
.center.narrow .btn { margin-top: 10px; }
@media (max-width: 640px) { .section { padding: 72px 0; } .row-head { margin-bottom: 30px; } }

/* ---------- under the race-day bar: partner logos (left) + messages & support (right) ---------- */
.raceday-extras { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 30px 48px; margin-top: 30px; }
/* Crossfading slides stacked in one cell, so the box keeps the height of its tallest slide. */
.fade-slides { display: grid; justify-items: start; }
.fade-slides.is-slideshow > .fade-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .9s ease-in-out, visibility 0s linear .9s; }
.fade-slides.is-slideshow > .fade-slide.is-on { opacity: 1; visibility: visible; transition: opacity .9s ease-in-out, visibility 0s; }
.partner-col { flex: 0 1 auto; display: flex; flex-direction: column; gap: 32px; }
.partner-strip.is-static { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.partner-slide { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.partner-title { font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.partner-logos { display: flex; flex-wrap: wrap; gap: 18px; }
.partner-logo { width: 170px; height: 170px; display: grid; place-items: center; padding: 6px; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-item { margin: 0; width: 170px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.partner-item figcaption { margin-top: 8px; line-height: 1.35; }
.partner-item figcaption strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.partner-item figcaption span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }.support-box { flex: 1 1 420px; max-width: 620px; margin-left: auto; display: flex; flex-direction: column; gap: 14px; }
.support-slide { margin: 0; display: flex; align-items: flex-start; gap: 22px; }
.support-photo { width: 130px; height: 130px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px rgba(255,255,255,.7), 0 14px 30px -18px rgba(11,26,61,.5); }
.support-body { min-width: 0; }
.support-body blockquote { margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; color: #36405e; position: relative; padding-left: 26px; }
.support-body blockquote::before { content: '\201C'; position: absolute; left: 0; top: -10px; font-size: 46px; line-height: 1; color: var(--pink); }
.support-body figcaption strong { display: block; font-weight: 600; color: var(--ink); }
.support-body figcaption span { font-size: 14px; color: var(--muted); }
.support-dots { display: flex; gap: 6px; }
.support-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: background .3s, width .3s; }
.support-dots i.on { width: 22px; border-radius: 4px; background: var(--grad); }
@media (max-width: 640px) {
  .raceday-extras { margin-top: 22px; gap: 26px; }
  .partner-logos { gap: 12px; }
  .partner-logo { width: 120px; height: 120px; padding: 4px; }
  .partner-item { width: 120px; }  .partner-col { gap: 24px; }
  .support-slide { flex-direction: column; gap: 14px; }
  .support-photo { width: 96px; height: 96px; }
}

/* pager (1 / 4 ← →) */
.pager { display: flex; align-items: center; gap: 14px; }
.pg { width: 40px; height: 40px; border-radius: 9px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s; }
.pg:hover:not(:disabled) { background: var(--ink); color: #fff; }
.pg:disabled { opacity: .3; cursor: default; }
.pg-count { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--muted); }
.pg-count b { font-size: 22px; font-weight: 500; color: var(--ink); }

/* ---------- story cards (races) ---------- */
.story-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px max(16px, calc((100% - 1240px) / 2)) 10px; scroll-padding-inline: max(16px, calc((100% - 1240px) / 2)); }
.story-track::-webkit-scrollbar { display: none; }
.story-card { flex: 0 0 min(960px, 88%); scroll-snap-align: start; display: grid; grid-template-columns: 38% 1fr; background: #e9eff9; background: linear-gradient(180deg, #edf2fb, #e7eef9); border-radius: var(--radius); overflow: hidden; min-height: 340px; transition: transform .3s, box-shadow .3s; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; color: #fff; }
.art-0 { background: radial-gradient(circle at 20% 15%, #93c5fd 0, transparent 45%), linear-gradient(135deg, #1d4ed8, #8b5cf6 60%, #ec4899); }
.art-1 { background: radial-gradient(circle at 80% 20%, #f9a8d4 0, transparent 45%), linear-gradient(135deg, #db2777, #a855f7 55%, #3b82f6); }
.art-2 { background: radial-gradient(circle at 30% 80%, #7dd3fc 0, transparent 45%), linear-gradient(135deg, #0ea5e9, #2563eb 55%, #6366f1); }
.art-3 { background: radial-gradient(circle at 70% 75%, #fbcfe8 0, transparent 45%), linear-gradient(135deg, #f472b6, #ec4899 45%, #6366f1); }
.art-num { font: 300 clamp(56px, 7vw, 92px)/.9 var(--font); letter-spacing: -.05em; position: relative; z-index: 1; }
.art-unit { font-size: 15px; letter-spacing: .2em; opacity: .9; position: relative; z-index: 1; }
.art-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-route path { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 2.5; stroke-dasharray: 7 9; animation: routeDash 18s linear infinite; }
@keyframes routeDash { to { stroke-dashoffset: -480; } }
.story-body { padding: 34px 40px; display: flex; flex-direction: column; align-items: flex-start; }
.story-body h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 14px 0 8px; }
.story-body p { color: #36405e; }
.story-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; margin: 6px 0 16px; }
.story-meta dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.story-meta dd { margin: 2px 0 0; font-size: 18px; font-weight: 500; color: var(--ink); }
.slots-bar { width: 100%; height: 5px; border-radius: 5px; background: rgba(11,26,61,.1); overflow: hidden; margin-bottom: 22px; }
.slots-bar i { display: block; height: 100%; background: var(--grad); border-radius: 5px; width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.story-body .link-arrow { margin-top: auto; }
/* Places on each race route — shown right under that race's card. */
.route-places { margin: 18px 0 34px; }
.route-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.route-head .eyebrow-txt { margin: 0; }
.route-head .muted { font-size: 14px; }
.place-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.place-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.place-img { position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; cursor: zoom-in; background: var(--tint-1); }
.place-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
/* Photo slideshow: pictures stacked, the current one fades in over the rest. */
.place-img.is-slideshow .ps-img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out, transform .6s; }
.place-img.is-slideshow .ps-img.is-on { opacity: 1; z-index: 1; }
.place-img .place-step { z-index: 2; }
.ps-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 5px; }
.ps-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.6); box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: width .3s, background .3s; }
.ps-dots i.on { width: 18px; background: #fff; }
.place-card:hover .place-img img { transform: scale(1.05); }
.place-step { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(11,26,61,.78); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; backdrop-filter: blur(6px); }
/* Hotel / Travel partner cards filling the free slots after a race's route places. */
.partner-card { align-items: center; justify-content: center; gap: 16px; padding: 24px 18px; text-align: center; min-height: 260px; }
.partner-card-logos { justify-items: center; width: 100%; }
.partner-card-logos.is-static { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partner-card .partner-item { width: 100%; max-width: 230px; }
.partner-card .partner-logo { width: 100%; height: 210px; }
.partner-card .partner-item figcaption strong { font-size: 16px; }
.partner-card-logos.is-static .partner-item { max-width: 140px; }
.partner-card-logos.is-static .partner-logo { height: 140px; }
/* Photo cards (Runners, Celebrations, Winners, Medical…): photos fill the whole card and fade in turn. */
.photo-card { position: relative; min-height: 360px; background: var(--ink); }
.photo-card-slides { position: absolute; inset: 0; }
.photo-card-slides > .photo-card-slide { grid-area: 1 / 1; position: relative; margin: 0; height: 100%; cursor: zoom-in; overflow: hidden; }
/* Portrait photos fill the whole card. Landscape photos are shown whole, with a blurred copy filling the space around them. */
.photo-card-slide img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.photo-card:hover .photo-card-slide img { transform: scale(1.05); }
.photo-card-slide.is-landscape::before { content: ''; position: absolute; inset: -30px; background: var(--bg) center / cover no-repeat; filter: blur(22px) brightness(.6) saturate(1.2); }
.photo-card-slide.is-landscape img { object-fit: contain; }
.photo-card:hover .photo-card-slide.is-landscape img { transform: scale(1.03); }
.photo-card-slide::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(8,16,40,.82) 0%, rgba(8,16,40,.2) 38%, rgba(8,16,40,0) 60%); }
.photo-card-slide figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 34px; color: #fff; line-height: 1.35; }
.photo-card-slide figcaption strong { display: block; font-size: 17px; font-weight: 600; }
.photo-card-slide figcaption span { display: block; font-size: 13.5px; opacity: .85; }
.photo-card-title { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 11px; border-radius: 8px; background: rgba(11,26,61,.82); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
/* Edition & year of the photo on screen (changes with each photo). */
.photo-card-edition { position: absolute; z-index: 1; top: 46px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px;
  background: linear-gradient(115deg, #1d4ed8, #d946ef); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.photo-card-dots { position: absolute; z-index: 2; left: 18px; bottom: 14px; }
.photo-card-dots i { background: rgba(255,255,255,.5); }
.place-body { padding: 18px 18px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.place-body h4 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.place-text { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.place-card.expanded .place-text { -webkit-line-clamp: unset; display: block; }
.read-more { margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer; font: 500 14px var(--font); color: var(--blue); border-bottom: 1px solid currentColor; }
.read-more:hover { color: var(--magenta); }
@media (max-width: 1080px) { .place-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .place-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; padding-bottom: 6px; }
  .place-grid::-webkit-scrollbar { display: none; }
  .place-card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Race categories: stacked vertically, one full-width card per race. */
.story-list { display: grid; gap: 22px; }
.story-list .story-card { min-height: 300px; }
.story-list .story-card:nth-child(even) { grid-template-columns: 1fr 38%; }
.story-list .story-card:nth-child(even) .story-art { order: 2; }
@media (max-width: 760px) {
  .story-list .story-card, .story-list .story-card:nth-child(even) { grid-template-columns: 1fr; }
  .story-list .story-card:nth-child(even) .story-art { order: 0; }
  .story-list { gap: 16px; }
}
@media (max-width: 760px) {
  .story-card { grid-template-columns: 1fr; flex-basis: 86%; }
  .story-art { min-height: 170px; }
  .story-body { padding: 24px; }
  .story-meta { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- case cards (experience) ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.case-card { position: relative; display: flex; flex-direction: column; }
.case-art { height: 220px; border-radius: var(--radius); display: grid; place-items: center; color: rgba(255,255,255,.95); font-size: 54px; position: relative; overflow: hidden; }
.case-art::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(255,255,255,.07) 0 2px, transparent 2px 18px); }
.case-art i { position: relative; z-index: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.2)); transition: transform .5s; }
.case-card:hover .case-art i { transform: scale(1.1) rotate(-4deg); }
.case-body { position: relative; margin: -46px 14px 0; background: #fff; border-radius: 14px; padding: 22px 22px 24px; box-shadow: 0 20px 40px -26px rgba(11,26,61,.45); flex: 1; }
.case-body h3 { font-size: 21px; margin: 12px 0 6px; }
.case-body p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 1080px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .case-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 14px; padding-bottom: 10px; }
  .case-grid::-webkit-scrollbar { display: none; }
  .case-card { flex: 0 0 80%; scroll-snap-align: start; }
  .case-art { height: 180px; }
}

/* ---------- at a glance ---------- */
.glance { padding: 80px 0; }
.glance-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.glance-item { padding: 10px 28px; border-left: 1px solid var(--border-strong); }
.glance-item:first-child { border-left: 0; padding-left: 0; }
.glance-item strong { display: block; font: 300 clamp(44px, 5.5vw, 76px)/1 var(--font); letter-spacing: -.04em; color: var(--ink); margin-bottom: 10px; }
.glance-item:nth-child(even) strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glance-item span { color: var(--muted); }
@media (max-width: 860px) { .glance-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } .glance-item:nth-child(3) { border-left: 0; padding-left: 0; } }

/* ---------- schedule ---------- */
.timeline { position: relative; max-width: 860px; margin-inline: auto; }
.timeline::before { content: ''; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(var(--blue), var(--fuchsia), var(--pink), transparent); opacity: .5; }
.tl-day { margin: 36px 0 12px 182px; }
.tl-day:first-child { margin-top: 0; }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 32px; padding: 10px 0; position: relative; }
.tl-item::after { content: ''; position: absolute; left: 144px; top: 24px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl-item:nth-child(odd)::after { border-color: var(--pink); }
.tl-time { text-align: right; font-size: 15px; font-weight: 500; color: var(--royal); padding-top: 16px; }
.tl-body { padding: 16px 22px; border-radius: 12px; background: var(--tint-1); transition: background .2s; }
.tl-item:hover .tl-body { background: var(--ice); }
.tl-body h4 { font-size: 18px; margin: 0; }
.tl-body p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
@media (max-width: 640px) {
  .timeline::before { left: 6px; }
  .tl-day { margin-left: 28px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 28px; }
  .tl-item::after { left: 0; top: 14px; }
  .tl-time { text-align: left; padding-top: 0; }
}

/* ---------- venue ---------- */
.venue-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; }
#map { height: 460px; border-radius: var(--radius); overflow: hidden; background: var(--ice); }
.venue-info { padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.info-row { display: flex; gap: 14px; }
.info-row i { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ice); color: var(--blue); }
.info-row:nth-child(even) i { background: var(--blush); color: var(--pink); }
.info-row span { display: block; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.info-row strong { color: var(--ink); font-weight: 500; }
.leaflet-container { font-family: var(--font); }
@media (max-width: 900px) { .venue-grid { grid-template-columns: 1fr; } #map { height: 320px; } }

/* ---------- pace calculator ---------- */
.pace-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.pace-form, .pace-out { padding: 32px; border-radius: var(--radius); }
.pace-out { background: var(--grad); background-size: 200% auto; animation: gradShift 8s ease-in-out infinite alternate; color: #fff; }
.panel-label { display: block; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.pace-time { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pace-big { font: 300 clamp(56px, 7vw, 88px)/1 var(--font); letter-spacing: -.04em; }
.pace-big small { font-size: 20px; color: rgba(255,255,255,.8); letter-spacing: 0; }
.pace-speed { color: rgba(255,255,255,.85); }
.split-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.split { padding: 14px; border-radius: 10px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.split span { display: block; font-size: 12px; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .1em; }
.split strong { font-size: 21px; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .pace-wrap { grid-template-columns: 1fr; } }

/* ---------- news / moments grid ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-wide { grid-column: span 2; flex-direction: row; }
.news-img { margin: 0; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; }
.news-wide .news-img { aspect-ratio: auto; flex: 0 0 52%; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 22px 24px 24px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.news-body h3 { font-size: 21px; margin: 12px 0 18px; }
.news-body .link-arrow { margin-top: auto; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } .news-wide { grid-column: auto; flex-direction: column; } .news-wide .news-img { aspect-ratio: 16 / 10; } }

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: #26304f; }
.field label .req { color: var(--pink); }
.input, select.input, textarea.input { width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; color: var(--text); font: 15.5px var(--font); transition: border-color .2s, box-shadow .2s; }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230b1a3d' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.input:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.input::placeholder { color: #98a1bb; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.error-text { color: var(--danger); font-size: 13px; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #36405e; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pink); flex: none; }

/* ---------- contact, faq, sponsors ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; }
.contact-card { padding: 32px; }
.contact-card .info-row { margin-bottom: 22px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; align-items: start; }
.faq-layout > div:first-child { position: sticky; top: 110px; }
.faq { display: grid; gap: 0; }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq details:first-child { border-top: 1px solid var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 4px; font-size: 19px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; font-weight: 300; color: var(--blue); transition: transform .3s, color .3s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--pink); }
.faq .faq-a { padding: 0 4px 22px; color: #36405e; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; gap: 20px; } .faq-layout > div:first-child { position: static; } }
.sponsor-tier { margin-bottom: 36px; }
.sponsor-tier h4 { text-align: center; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.sponsor-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.sponsor { width: 200px; height: 104px; display: grid; place-items: center; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); transition: transform .3s, box-shadow .3s; }
.sponsor:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sponsor img { max-height: 64px; object-fit: contain; }
.sponsor span { color: var(--ink); font-weight: 600; text-align: center; }
.tier-Title .sponsor { width: 270px; height: 134px; }
/* Sponsors & Partners (after Route Map): top row, Associate row, Partners card grid */
.sp-section { background: #fff; }
.sp-title { text-align: center; font-size: clamp(30px, 5.2vw, 56px); font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); margin-bottom: 34px; }
.sp-title span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); font-weight: 700; }
.sp-row { padding: 30px 0; text-align: center; }
.sp-row + .sp-row { border-top: 1px solid var(--border); }
.sp-head { font-size: 19px; font-weight: 700; letter-spacing: 0; color: var(--ink); margin-bottom: 22px; }
.sp-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; }
.sp-item { margin: 0; display: flex; flex-direction: column; align-items: center; }
.sp-logo { position: relative; display: grid; place-items: center; box-sizing: border-box; overflow: hidden; color: var(--ink); font-weight: 600; text-align: center; }
.sp-logo img { position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; padding: inherit; object-fit: contain; }
.sp-item figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.35; color: var(--text); }
/* every grid: white logo cards, six per row on desktop, centred when a row is short */
.sp-title + .sp-row { padding-top: 0; }
.sp-grid { gap: 26px 22px; }
.sp-item { width: calc((100% - 5 * 22px) / 6); }
.sp-logo { width: 100%; aspect-ratio: 144 / 102; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: 10px; transition: transform .3s, box-shadow .3s, border-color .3s; }
a.sp-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
/* the one Organizer: its own line, bigger card, label in bold */
.sp-item.sp-lead { width: 100%; }
.sp-lead .sp-logo { width: 280px; padding: 20px 24px; border-color: #bfd3fb; box-shadow: 0 10px 30px -18px rgba(37, 99, 235, .45); }
.sp-lead figcaption { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 1080px) { .sp-item { width: calc((100% - 3 * 22px) / 4); } }
@media (max-width: 640px) {
  .sp-grid { gap: 20px 14px; }
  .sp-item { width: calc((100% - 14px) / 2); }
  .sp-lead .sp-logo { width: 220px; }
}

/* ---------- CTA ---------- */
.cta-band-wrap { padding: 0 0 110px; }
.cta-band { text-align: center; padding: 70px 30px; border-radius: var(--frame); background: var(--grad-soft); border: 1px solid var(--border); }
.cta-band p { color: #36405e; font-size: 18px; margin-bottom: 26px; }
@media (max-width: 640px) { .cta-band-wrap { padding-bottom: 72px; } .cta-band { padding: 48px 20px; } }

/* ---------- gallery page ---------- */
.gallery-grid { columns: 3 280px; column-gap: 16px; }
.gallery-item { break-inside: avoid; margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; }
.gallery-item img { width: 100%; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption { position: absolute; inset: auto 0 0; padding: 30px 16px 14px; background: linear-gradient(transparent, rgba(11,26,61,.8)); color: #fff; font-size: 14px; opacity: 0; transition: opacity .3s; }
.gallery-item:hover figcaption { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(11,26,61,.9); display: none; place-items: center; padding: 24px; backdrop-filter: blur(8px); }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: 14px; }
.lightbox button { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 22px; cursor: pointer; }

/* ---------- inner pages ---------- */
.glass { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 20px 50px -36px rgba(11,26,61,.4); }
.page-hero { margin: 10px; border-radius: var(--frame); padding: 150px 0 60px; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, #e6eeff 0%, #f1ecff 55%, #fdeef6 100%); margin-bottom: 50px; }
.page-hero::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(147,197,253,.6), transparent 65%); top: -280px; right: -100px; z-index: -1; }
.page-hero::after { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(249,168,212,.5), transparent 65%); bottom: -260px; left: -140px; z-index: -1; }
.page-hero h1 { font-size: clamp(42px, 6.5vw, 84px); font-weight: 300; letter-spacing: -.035em; }
.page-hero p { color: #36405e; font-size: 18px; max-width: 60ch; margin: 0; }
.flash-wrap + .page-hero { margin-top: 10px; }

/* registration */
.reg-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; padding-bottom: 100px; }
.reg-card { padding: 32px; }
.steps-nav { display: flex; gap: 8px; margin-bottom: 30px; }
.steps-nav div { flex: 1; }
.steps-nav i { display: block; height: 4px; border-radius: 4px; background: #e3e8f4; margin-bottom: 10px; transition: background .4s; }
.steps-nav span { font-size: 12.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.steps-nav .done i, .steps-nav .active i { background: var(--grad); }
.steps-nav .active span { color: var(--ink); }
.step { display: none; animation: fadeUp .4s ease; }
.step.active { display: block; }
.no-js .step { display: block; }
.step h2 { font-size: 26px !important; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.race-pick { display: grid; gap: 12px; }
.race-opt { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border-strong); background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.race-opt:hover { border-color: #b3c4ea; }
.race-opt input { position: absolute; opacity: 0; }
.race-opt:has(input:checked) { border-color: var(--ink); background: var(--tint-1); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.race-opt.disabled { opacity: .45; cursor: not-allowed; }
.race-opt-dist { font: 300 32px/1 var(--font); letter-spacing: -.03em; min-width: 96px; }
.race-opt-dist small { font-size: 13px; color: var(--muted); -webkit-text-fill-color: var(--muted); letter-spacing: .1em; }
.race-opt-body { flex: 1; }
.race-opt-body strong { display: block; font-size: 16.5px; font-weight: 500; color: var(--ink); }
.race-opt-body span { font-size: 13.5px; color: var(--muted); }
.race-opt-fee { font-size: 20px; font-weight: 500; color: var(--ink); }
.summary { padding: 26px; position: sticky; top: 100px; }
.summary h3 { font-size: 19px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border-strong); font-size: 15px; }
.sum-row span { color: var(--muted); }
.sum-row strong { color: var(--ink); font-weight: 500; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.sum-total strong { font: 500 34px var(--font); }
.secure-note { display: flex; gap: 10px; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.secure-note i { color: var(--blue); margin-top: 3px; }
.secure-note + .secure-note i { color: var(--pink); }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-select label { position: relative; margin: 0; }
.chip-select input { position: absolute; opacity: 0; }
.chip-select span { display: inline-block; padding: 10px 16px; border-radius: 9px; border: 1px solid var(--border-strong); background: #fff; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: .2s; }
.chip-select span:hover { border-color: var(--ink); }
.chip-select input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip-select input:focus-visible + span { box-shadow: 0 0 0 3px rgba(59,130,246,.35); }
.review-box { padding: 18px 20px; border-radius: 12px; background: var(--tint-1); margin-bottom: 20px; font-size: 15px; }
.review-box dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
.review-box dt { color: var(--muted); }
.review-box dd { margin: 0; word-break: break-word; color: var(--ink); font-weight: 500; }
@media (max-width: 960px) { .reg-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) { .reg-card { padding: 22px; } .race-opt { flex-wrap: wrap; } .review-box dl { grid-template-columns: 1fr; } }

/* race pass */
.pass-layout { display: grid; grid-template-columns: 420px 1fr; gap: 24px; align-items: start; padding-bottom: 100px; }
.pass { position: relative; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.pass-top { padding: 28px; background: var(--grad); background-size: 200% auto; animation: gradShift 6s ease-in-out infinite alternate; color: #fff; position: relative; overflow: hidden; }
.pass-top::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.1) 0 2px, transparent 2px 18px); }
.pass-top small { font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; position: relative; }
.pass-top h2 { font-size: 26px !important; margin: 6px 0 0; position: relative; color: #fff; }
.pass-bib { padding: 26px 28px 8px; display: flex; justify-content: space-between; align-items: flex-end; }
.pass-bib span { font-size: 12px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.pass-bib strong { display: block; font: 300 76px/1 var(--font); letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pass-body { padding: 0 28px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pass-body div span { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.pass-body div strong { font-size: 15.5px; font-weight: 500; color: var(--ink); }
.pass-tear { height: 0; border-top: 2px dashed var(--border-strong); margin: 0 22px; position: relative; }
.pass-tear::before, .pass-tear::after { content: ''; position: absolute; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); }
.pass-tear::before { left: -36px; } .pass-tear::after { right: -36px; }
.pass-qr { padding: 26px; display: flex; align-items: center; gap: 20px; }
.qr-box { background: #fff; padding: 10px; border-radius: 14px; flex: none; border: 1px solid var(--border); }
.qr-box img, .qr-box canvas { width: 132px !important; height: 132px !important; }
.pass-qr code { font-size: 20px; font-weight: 600; letter-spacing: .08em; color: var(--royal); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.st-paid, .st-confirmed { background: #dcfce7; color: #047857; }
.st-pending, .st-registered { background: var(--blush); color: var(--magenta); }
.st-failed, .st-cancelled, .st-refunded { background: #ffe4ec; color: var(--danger); }
.side-card { padding: 28px; margin-bottom: 20px; }
.side-card h3 { font-size: 20px; }
.upi-qr { display: inline-block; background: #fff; padding: 12px; border-radius: 14px; border: 1px solid var(--border); }
.upi-qr img, .upi-qr canvas { width: 180px !important; height: 180px !important; }
.lookup { max-width: 520px; margin: 0 auto 100px; padding: 34px; }
@media (max-width: 960px) { .pass-layout { grid-template-columns: 1fr; } .pass { max-width: 440px; margin-inline: auto; width: 100%; } }
@media print {
  body { background: #fff; }
  .nav, .footer, .no-print, .flash-wrap, .page-hero, .to-top, .site-menu { display: none !important; }
  .pass-layout { display: block; padding: 0; }
  .pass { box-shadow: none; margin: 20px auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* results */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: .2s; }
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 500; background: var(--tint-1); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f8faff; }
.rank { font-size: 16px; font-weight: 600; color: var(--ink); }
.medal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; }
.medal-1 { background: linear-gradient(135deg, #f472b6, #db2777); }
.medal-2 { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.medal-3 { background: linear-gradient(135deg, #c4b5fd, #7c3aed); }
.mono { font-variant-numeric: tabular-nums; }
.searchbar { display: flex; gap: 10px; margin-bottom: 20px; }
.searchbar .input { max-width: 380px; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty i { font-size: 42px; margin-bottom: 16px; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
@media (max-width: 640px) {
  .table-cards { min-width: 0; }
  .table-cards thead { display: none; }
  .table-cards tbody tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .table-cards tbody tr:last-child { border-bottom: 0; }
  .table-cards td { padding: 0; border: 0; }
  .table-cards td[data-cell=rank] { grid-row: span 2; }
  .table-cards td[data-cell=name] { font-size: 15.5px; }
  .table-cards td[data-cell=time] { text-align: right; font-size: 16px; }
  .table-cards td[data-cell=bib], .table-cards td[data-cell=gender] { display: none; }
  .table-cards td[data-cell=meta] { grid-column: 2; font-size: 13px; color: var(--muted); }
  .table-cards td[data-cell=pace] { text-align: right; font-size: 12.5px; }
}
@media (min-width: 641px) { .table-cards td[data-cell=meta] { display: none; } }

/* ---------- footer ---------- */
.footer { background: var(--tint-1); margin: 0 10px 10px; border-radius: var(--frame); padding: 70px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; }
.footer .brand { background: transparent; padding-left: 0; }
.footer-tag { color: var(--muted); margin: 14px 0 22px; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer h4 { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-cols a, .footer-cols span { display: block; margin-bottom: 10px; color: var(--ink); font-size: 15px; }
.footer-cols a:hover { color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 54px; padding-top: 22px; border-top: 1px solid var(--border-strong); font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a:hover { color: var(--ink); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--border); color: var(--ink); transition: .2s; }
.socials a:hover { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer { margin: 0 8px 8px; padding-top: 50px; } .footer-cols { grid-template-columns: 1fr 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 50px; height: 50px; border-radius: 50%; border: 3px solid #fff; background: var(--grad); color: #fff; cursor: pointer; box-shadow: 0 0 0 1px rgba(37,99,235,.4), 0 14px 30px -12px rgba(37,99,235,.7); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- mobile refinements ---------- */
@media (max-width: 767px) {
  .input, select.input, textarea.input { font-size: 16px; } /* prevents iOS auto-zoom on focus */
  .hero-default-inner { padding: 110px 0 90px; }
  .lead-sm { font-size: 16.5px; }
  .venue-info, .pace-form, .pace-out, .contact-card, .side-card { padding: 22px; }
  .contact-card .btn[type=submit] { width: 100%; }
  .page-hero { margin: 8px 8px 34px; padding: 112px 0 40px; border-radius: 18px; }
  .searchbar { flex-wrap: wrap; }
  .searchbar .input { max-width: none; flex: 1 1 100%; }
  .searchbar select.input { flex: 1 1 auto; max-width: none !important; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 0 16px 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .sponsor { width: calc(50% - 8px); height: 84px; }
  .tier-Title .sponsor { width: 100%; height: 110px; }
  .step-actions .btn { flex: 1; }
  .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
@media (max-width: 420px) {
  .pass-qr { flex-direction: column; text-align: center; }
  .pass-bib strong { font-size: 62px; }
  .lookup { padding: 22px; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html, .banner-track { scroll-behavior: auto; }
  /* Gentle fades aren't the kind of motion this setting guards against (zoom, sliding, parallax),
     so banners keep their crossfade and headlines fade in word by word — without blur or movement. */
  .banners .banner-slide { transition: opacity 0s linear var(--fade, 1.2s), visibility 0s linear var(--fade, 1.2s), z-index 0s linear var(--fade, 1.2s) !important; }
  .banners .banner-slide.is-active { transition: opacity var(--fade, 1.2s) ease-in-out, visibility 0s, z-index 0s !important; }
  .banners .banner-slide img { transform: none; }
  .place-img.is-slideshow .ps-img { transition: opacity 1s ease-in-out !important; }
  .fade-slides.is-slideshow > .fade-slide { transition: opacity .9s ease-in-out, visibility 0s linear .9s !important; }
  .fade-slides.is-slideshow > .fade-slide.is-on { transition: opacity .9s ease-in-out, visibility 0s !important; }
  .w { transform: none; filter: none; animation: wordFade .8s ease forwards !important; animation-delay: calc(.2s + var(--i, 0) * 110ms) !important; }
  .banner-slide .w { animation: none !important; opacity: 0; }
  .banner-slide.is-active .w { animation: wordFade .8s ease forwards !important; animation-delay: calc(var(--fade, 1.2s) * .35 + var(--i, 0) * 110ms) !important; }
  .banner-copy p, .banner-copy .btn { opacity: 1 !important; transform: none !important; }
  .menu-links a { opacity: 1; transform: none; }
}
/* Feature card with an uploaded photo (Admin → Feature Cards) */
.case-art.has-photo { background: #e2e8f0; }
.case-art.has-photo::after { background: linear-gradient(180deg, rgba(11,26,61,0) 55%, rgba(11,26,61,.25)); }
.case-art.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case-card:hover .case-art.has-photo img { transform: scale(1.06); }
/* Partner slides: every title has the same logo band height, so the logos always sit the same distance under
   their title. Titles with one or two logos (ORGANIZER, OFFICIAL BANKING PARTNER…) give each logo more width
   (wide logos come out larger) and start at the left edge, right under the title. */
.partner-strip .partner-slide { gap: 10px; }
.partner-strip .partner-logo { height: 150px; padding: 4px 0; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.partner-strip .partner-logo img { max-height: 142px; }
.partner-strip .partner-logos.n-2 .partner-item, .partner-strip .partner-logos.n-2 .partner-logo { width: 250px; }
.partner-strip .partner-logos.n-1 .partner-item, .partner-strip .partner-logos.n-1 .partner-logo { width: 360px; }
.partner-strip .partner-logos.n-1, .partner-strip .partner-logos.n-2 { gap: 18px 40px; }
.partner-strip .partner-logos.n-1 .partner-item, .partner-strip .partner-logos.n-2 .partner-item { align-items: flex-start; text-align: left; }
.partner-strip .partner-logos.n-1 .partner-logo, .partner-strip .partner-logos.n-2 .partner-logo { place-items: center start; }
.partner-strip .partner-logos.n-1 .partner-logo img, .partner-strip .partner-logos.n-2 .partner-logo img { transform-origin: left center; }
@media (max-width: 640px) {
  .partner-strip .partner-logo { height: 110px; }
  .partner-strip .partner-logo img { max-height: 102px; }
  /* phones: a title's logos share one row, each taking an equal part of the width */
  .partner-col { flex: 1 1 100%; min-width: 0; }
  .partner-strip.fade-slides { justify-items: stretch; grid-template-columns: minmax(0, 1fr); }
  .partner-strip .partner-logos, .partner-strip .partner-logos.n-1, .partner-strip .partner-logos.n-2 { flex-wrap: nowrap; gap: 14px; width: 100%; }
  .partner-strip .partner-logos .partner-item, .partner-strip .partner-logos.n-1 .partner-item, .partner-strip .partner-logos.n-2 .partner-item { flex: 1 1 0; min-width: 0; width: auto; }
  .partner-strip .partner-logos .partner-logo, .partner-strip .partner-logos.n-1 .partner-logo, .partner-strip .partner-logos.n-2 .partner-logo { width: 100%; }
  .partner-strip .partner-logos.n-1 .partner-item { flex: 0 1 260px; }
}

/* ---------- About Us (Admin → About Us): Organizer full-width, the rest two per row ---------- */
.ab-grid { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; gap: 28px; margin-top: 44px; }
.ab-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 40px -30px rgba(11, 26, 61, .45); }
.ab-photo.place-img { aspect-ratio: 16 / 10; }
.ab-body { display: flex; flex-direction: column; gap: 18px; padding: 26px 28px 28px; flex: 1; }
.ab-top { display: flex; align-items: center; gap: 18px; }
.ab-logo { flex: none; width: 84px; height: 84px; display: grid; place-items: center; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.ab-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ab-role { display: inline-block; margin-bottom: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, var(--blue), var(--pink)); }
.ab-name { margin: 0; font-size: 22px; font-weight: 600; }
.ab-tagline { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.ab-text { color: #36405e; font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.ab-text p { margin: 0 0 .8em; }
.ab-text p:last-child { margin-bottom: 0; }
.ab-card.expanded .ab-text { -webkit-line-clamp: unset; display: block; }
.ab-body > .read-more { align-self: flex-start; margin-top: -8px; }
.ab-person { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--tint-1); }
.ab-person img, .ab-initial { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid #fff; box-shadow: 0 6px 16px -8px rgba(11, 26, 61, .5); }
.ab-person .ab-initial { display: grid; place-items: center; font-size: 24px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--blue), var(--pink)); }
.ab-person strong { display: block; color: var(--ink); font-weight: 600; }
.ab-person span { display: block; color: var(--muted); font-size: 14px; }
.ab-contact { list-style: none; margin: auto 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 14.5px; }
.ab-contact li { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.ab-contact i { width: 16px; flex: none; text-align: center; color: var(--blue); }
.ab-contact a, .ab-contact span { color: var(--text); overflow-wrap: anywhere; }
.ab-contact a:hover { color: var(--magenta); }
/* the Organizer (first card): full width, photo beside the text */
.ab-card.ab-lead { grid-column: 1 / -1; flex-direction: row; }
.ab-lead .ab-photo { flex: 0 0 48%; aspect-ratio: auto; min-height: 380px; }
.ab-lead .ab-body { padding: 34px 36px; }
.ab-lead .ab-logo { width: 104px; height: 104px; }
.ab-lead .ab-name { font-size: 28px; }
.ab-lead .ab-contact { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .ab-grid { grid-template-columns: 1fr; }
  .ab-card.ab-lead { flex-direction: column; }
  .ab-lead .ab-photo { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .ab-lead .ab-contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ab-body, .ab-lead .ab-body { padding: 20px; }
  .ab-logo, .ab-lead .ab-logo { width: 68px; height: 68px; }
  .ab-name, .ab-lead .ab-name { font-size: 20px; }
}

/* ---------- Rules & Regulations · Route Points · Race Guidelines (after Venue) ---------- */
.ri-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 34px 0 30px; }
.ri-tab { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; cursor: pointer; font: 500 15px var(--font); color: var(--ink); transition: .25s; }
.ri-tab i { color: var(--blue); }
.ri-tab small { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--tint-1); font-size: 12px; color: var(--muted); }
.ri-tab:hover { border-color: var(--ink); }
.ri-tab.active { color: #fff; border-color: transparent; background: linear-gradient(90deg, var(--blue), var(--pink)); box-shadow: 0 12px 28px -14px rgba(236, 72, 153, .6); }
.ri-tab.active i { color: #fff; }
.ri-tab.active small { background: rgba(255, 255, 255, .25); color: #fff; }
.ri-panel { max-width: 980px; margin: 0 auto; }
.ri-solo-head { margin: 34px 0 22px; text-align: center; font-size: 22px; font-weight: 600; }
.ri-solo-head i { color: var(--pink); margin-right: 6px; }
.ri-text { color: #36405e; font-size: 15px; line-height: 1.7; }
.ri-text p { margin: 0 0 .7em; }
.ri-text strong { color: var(--ink); font-weight: 600; }
.ri-text ul { margin: 0 0 .7em; padding-left: 1.2em; }
.ri-text li { margin-bottom: .3em; }
.ri-text li::marker { color: var(--pink); }
.ri-text > :last-child { margin-bottom: 0; }

/* rules: numbered accordion */
.ri-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ri-rules > li { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.ri-rules > li:has(details[open]) { border-color: #c7d6f8; box-shadow: 0 16px 36px -26px rgba(37, 99, 235, .55); }
.ri-rules summary, .ri-plain { display: flex; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.ri-plain { cursor: default; }
.ri-rules summary::-webkit-details-marker { display: none; }
.ri-num { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--tint-1); color: var(--blue); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.ri-rules details[open] .ri-num { color: #fff; background: linear-gradient(135deg, var(--blue), var(--pink)); }
.ri-q { flex: 1; font-size: 16.5px; font-weight: 500; color: var(--ink); }
.ri-rules summary i { color: var(--muted); transition: transform .3s; }
.ri-rules details[open] summary i { transform: rotate(45deg); color: var(--pink); }
.ri-rules .ri-text { padding: 0 22px 20px 76px; }

/* route points: km timeline */
.ri-races { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.ri-races .tab { cursor: pointer; }
.ri-races .tab small { opacity: .7; margin-left: 2px; }
.ri-points { list-style: none; margin: 0; padding: 0; position: relative; }
.ri-points::before { content: ""; position: absolute; left: 110px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), var(--pink)); opacity: .35; }
.ri-point { display: grid; grid-template-columns: 86px 52px 1fr; align-items: start; column-gap: 0; padding: 10px 0; }
.ri-point[hidden] { display: none; }
.ri-km { padding-top: 14px; text-align: right; padding-right: 14px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.ri-km strong { font-size: 19px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ri-dot { position: relative; z-index: 1; width: 46px; height: 46px; margin-left: 2px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--pc); border: 4px solid #fff; box-shadow: 0 6px 16px -6px var(--pc); font-size: 16px; }
.ri-pbody { margin-left: 14px; padding: 14px 20px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--pc); border-radius: 12px; }
.ri-type { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--pc); }
.ri-pbody h4 { margin: 0; font-size: 17px; font-weight: 600; }
.ri-pbody .ri-text { margin-top: 6px; font-size: 14.5px; }
.ri-for { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: var(--tint-1); font-size: 12.5px; color: var(--muted); }
.ri-empty { text-align: center; padding: 20px 0; }

/* guidelines: cards */
.ri-guides { display: grid; grid-template-columns: 1fr; gap: 22px; }
.ri-panel-guidelines { max-width: none; }
.ri-panel[hidden] { display: none; }
.ri-guide { display: flex; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s; }
.ri-guide:hover { box-shadow: var(--shadow); }
.ri-guide img { display: block; flex: 0 0 38%; width: 38%; min-height: 100%; object-fit: cover; align-self: stretch; }
.ri-guide .ri-gbody { flex: 1; min-width: 0; padding: 28px 34px 30px; }
.ri-gbody { padding: 22px 24px 26px; }
.ri-gnum { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; background: linear-gradient(90deg, var(--blue), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ri-gbody h4 { margin: 0 0 10px; font-size: 19px; font-weight: 600; }
@media (max-width: 900px) { .ri-guide { flex-direction: column; } .ri-guide img { width: 100%; flex: none; min-height: 0; aspect-ratio: 3 / 2; } }
@media (max-width: 640px) {
  .ri-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 26px 0 24px; }
  .ri-tab { flex-direction: column; justify-content: center; gap: 4px; padding: 12px 6px; border-radius: 16px; font-size: 13px; line-height: 1.25; text-align: center; }
  .ri-tab small { display: none; }
  .ri-guide .ri-gbody { padding: 20px; }
  .ri-rules summary, .ri-plain { padding: 14px; gap: 12px; }
  .ri-q { font-size: 15.5px; }
  .ri-rules .ri-text { padding: 0 16px 16px; }
  .ri-points::before { left: 72px; }
  .ri-point { grid-template-columns: 50px 48px 1fr; }
  .ri-km { padding-right: 8px; font-size: 12px; }
  .ri-km { padding-top: 10px; padding-right: 6px; }
  .ri-km strong { display: block; font-size: 14px; line-height: 1.2; letter-spacing: -.02em; }
  .ri-dot { width: 42px; height: 42px; font-size: 14px; margin-left: 2px; }
  .ri-pbody { margin-left: 8px; padding: 12px 14px; }
}
