/* 3 ช่าพา RUN — a joyful sam-cha running festival. */
/* Colour tokens (dark theme). Re-applied to blocks that stay dark in the light theme (.dark-island and the two below). */
:root, .dark-island,
html[data-theme="light"] .cta-band, html[data-theme="light"] .ebib {
  --bg: #120b20;
  --bg-2: #191026;
  --panel: #211630;
  --panel-2: #2d1c40;
  --line: rgba(220, 196, 255, .1);
  --line-strong: rgba(220, 196, 255, .22);
  --text: #fcf7ff;
  --muted: #b9accb;
  --gold: #ffdc69;
  --gold-soft: #ffe9a1;
  --orange: #ff945c;
  --pink: #ff69bc;
  --cyan: #6ee9ed;
  --grad: linear-gradient(110deg, #ffe791 0%, #ffcf57 55%, #ffac67 100%);
  --festival-grad: linear-gradient(100deg, #f73c9b, #aa54ee 55%, #54dce3);
  --ok: #37d08a;
  --warn: #ffb020;
  --bad: #ff5d6c;
  --info: #5aa9ff;
  --heading: #fff;
  --text-soft: #d9cee6;
  --field-bg: #170e25;
  --glass: rgba(18, 11, 32, .96);
  --footer-bg: #0c0716;
  --strip-bg: rgba(35, 22, 50, .95);
  --tint: rgba(255, 255, 255, .03);
  --gold-fill: #ffdc69;
  --cyan-fill: #6ee9ed;
  --violet: #bd9bff;
  --hero-info-bg: linear-gradient(180deg, #0e2a63 0%, #191026 100%);
  --cd-bg: rgba(7, 18, 51, .55);
  color: var(--text);
}
:root {
  --radius: 20px;
  --nav-h: 82px;
  --font-head: "Kanit", "Sarabun", system-ui, sans-serif;
  --font-body: "Sarabun", "Kanit", system-ui, sans-serif;
}

[data-bs-theme="dark"] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line-strong);
  --bs-link-color-rgb: 255, 220, 105;
  --bs-link-hover-color-rgb: 255, 233, 161;
  --bs-tertiary-bg: var(--panel);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body.no-hero main { padding-top: var(--nav-h); }
/* Entrance effects slide some blocks in from the side; clip them so the page never scrolls sideways (clip keeps sticky elements working). */
main { overflow-x: clip; }
h1, h2, h3, h4, h5, .font-head { font-family: var(--font-head); line-height: 1.25; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.text-muted, .muted { color: var(--muted) !important; }
.text-gold { color: var(--gold) !important; }
.text-cyan { color: var(--cyan); }
.text-pink { color: var(--pink); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 2000; background: var(--gold-fill); color: #000; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn { font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; border-radius: 999px; }
.btn-gold {
  background: var(--grad); color: #10131d; border: 0; padding: .7rem 1.5rem;
  box-shadow: 0 6px 0 rgba(124, 65, 32, .5), 0 12px 32px rgba(255, 170, 68, .18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-gold:hover, .btn-gold:focus-visible { color: #10131d; transform: translateY(-3px); filter: brightness(1.06); box-shadow: 0 8px 0 rgba(124, 65, 32, .5), 0 16px 36px rgba(255, 170, 68, .26); text-decoration: none; }
.btn-gold:disabled, .btn-gold.disabled { filter: grayscale(.6); opacity: .6; transform: none; box-shadow: none; }
.btn-ghost { color: var(--text); border: 1.5px solid var(--line-strong); padding: .7rem 1.4rem; background: var(--tint); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--heading); border-color: var(--gold); background: rgba(255, 220, 105, .09); text-decoration: none; }
.btn-lg { padding: .9rem 1.9rem; font-size: 1.1rem; }
.btn-nav { padding: .5rem 1.2rem; }

/* ---------------------------------------------------------------- nav */
.site-nav { min-height: var(--nav-h); transition: background-color .25s ease, box-shadow .25s ease; border-top: 3px solid transparent; border-image: var(--festival-grad) 1; }
.site-nav.nav-solid, .site-nav.scrolled { background: var(--glass); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.site-nav.nav-overlay:not(.scrolled) { background: linear-gradient(180deg, var(--glass), rgba(18, 11, 32, .65) 70%, transparent); }
.navbar-brand { display: flex; align-items: center; gap: .7rem; }
.navbar-brand:hover { text-decoration: none; }
.navbar-brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--heading); }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.site-nav .nav-link { font-family: var(--font-head); font-weight: 400; font-size: .88rem; color: var(--text-soft); padding: .5rem .65rem !important; position: relative; white-space: nowrap; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--gold); text-decoration: none; }
.site-nav .nav-link.active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 0; height: 2px; background: var(--gold); }
.navbar-toggler { border: 1px solid var(--line-strong); color: var(--heading); font-size: 1.5rem; padding: .15rem .55rem; }
.btn-nav { white-space: nowrap; }
/* Nine menu items: keep them on one line on smaller desktop screens. */
@media (min-width: 1200px) and (max-width: 1499.98px) {
  .site-nav .nav-link { font-size: .8rem; padding: .5rem .42rem !important; }
  .site-nav .nav-link.active::after { left: .42rem; right: .42rem; }
  .brand-sub { display: none; }
  .navbar-brand img { height: 38px; }
  .btn-nav { padding: .45rem 1rem; font-size: .9rem; }
}
@media (min-width: 1200px) and (max-width: 1279.98px) {
  .site-nav .nav-link { font-size: .76rem; padding: .5rem .3rem !important; }
  .site-nav .ms-xl-3 { margin-left: .5rem !important; }
  .theme-switch { margin-left: .5rem; }
  .brand-name { font-size: 1.05rem; }
}
@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse { background: var(--glass); margin: 0 -12px; padding: 12px 20px 20px; border-top: 1px solid var(--line); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
  .site-nav .nav-link.active::after { display: none; }
  .btn-nav { width: 100%; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 970px; display: flex; align-items: center; padding: calc(var(--nav-h) + 36px) 0 145px; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: 66% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #120b20 0%, rgba(18, 11, 32, .95) 18%, rgba(18, 11, 32, .78) 38%, rgba(18, 11, 32, .15) 70%, rgba(18, 11, 32, .12) 100%),
    linear-gradient(0deg, var(--bg) 1%, transparent 32%, transparent 80%, rgba(18, 11, 32, .3));
}
.hero-orbit { position: absolute; z-index: -2; width: 620px; height: 620px; border: 1px solid rgba(110, 233, 237, .2); border-radius: 50%; right: -240px; top: 130px; box-shadow: 0 0 0 55px rgba(110, 233, 237, .045), 0 0 0 110px rgba(110, 233, 237, .025); }
.hero-copy { position: relative; z-index: 1; }
.hero-org { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-family: var(--font-head); font-size: .78rem; color: var(--text-soft); margin-bottom: 1.35rem; }
.hero-org img { height: 32px; width: auto; filter: drop-shadow(0 2px 8px rgba(255, 255, 255, .15)); }
.hero-org .x { color: var(--pink); font-size: 1.15rem; }
.hero-kicker { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 500; font-size: .85rem; letter-spacing: .19em; color: var(--cyan); margin: 0 0 1rem; }
.rhythm-bars { display: inline-flex; align-items: center; gap: 3px; height: 24px; }
.rhythm-bars i { display: block; width: 3px; height: 12px; border-radius: 3px; background: var(--cyan); animation: rhythm 1s ease-in-out infinite alternate; }
.rhythm-bars i:nth-child(2), .rhythm-bars i:nth-child(4) { height: 22px; animation-delay: -.4s; }
.rhythm-bars i:nth-child(3) { height: 16px; animation-delay: -.7s; }
@keyframes rhythm { to { transform: scaleY(.45); } }
.hero h1 { font-weight: 800; font-size: clamp(4.7rem, 8.7vw, 8rem); line-height: 1.03; letter-spacing: -.045em; margin: 0 0 1.2rem; text-transform: uppercase; text-shadow: 0 8px 40px rgba(18, 11, 32, .25); }
.hero h1 .l1 { display: block; color: var(--heading); }
.hero h1 .l2 { display: block; color: var(--heading); }
.hero h1 em { display: inline-block; font-style: italic; color: var(--gold); -webkit-text-stroke: 1px var(--gold); text-shadow: 5px 5px 0 #aa347a; padding-right: .12em; }
.title-spark { display: inline-block; vertical-align: top; margin: .25em 0 0 .25em; font-size: .38em; color: var(--pink); animation: spark-turn 24s linear infinite; }
@keyframes spark-turn { to { transform: rotate(360deg); } }
.hero-tagline { font-family: var(--font-head); font-size: clamp(1.25rem, 2.3vw, 1.8rem); font-weight: 500; color: var(--pink); margin-bottom: .65rem; }
.hero-lead { max-width: 34rem; font-size: 1rem; line-height: 1.8; color: var(--text-soft); margin-bottom: 1.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .45rem 1.4rem; max-width: 35rem; margin-bottom: 1.7rem; font-family: var(--font-head); font-size: .95rem; color: var(--text-soft); }
.hero-meta > span:last-child { flex-basis: 100%; font-size: .87rem; }
.hero-meta i { color: var(--cyan); margin-right: .45rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-actions .btn-lg { font-size: 1rem; padding: .85rem 1.45rem; }
.hero-actions .btn-ghost { background: rgba(18, 11, 32, .65); }
.countdown-caption { display: flex; align-items: center; gap: .6rem; margin-top: 1.8rem; margin-bottom: .6rem; color: var(--text-soft); font-size: .8rem; }
.countdown-caption > span { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 12px rgba(110, 233, 237, .5); }
.countdown { display: flex; gap: .65rem; max-width: 360px; }
.countdown .cd { flex: 1; min-width: 0; text-align: center; padding: .6rem .5rem .4rem; border-radius: 12px; background: var(--cd-bg); border: 1px solid rgba(255, 105, 188, .24); backdrop-filter: blur(6px); }
.countdown .num { display: block; font-family: var(--font-head); font-weight: 600; font-size: 2rem; line-height: 1.1; color: var(--heading); font-variant-numeric: tabular-nums; }
.countdown .lbl { font-size: .78rem; color: var(--muted); }
.countdown-note { margin: .7rem 0 0; font-size: .77rem; color: var(--muted); }
.hero-stamp { position: absolute; right: max(6%, calc((100vw - 1280px) / 2)); bottom: 155px; width: 160px; height: 160px; border-radius: 50%; background: var(--gold-fill); color: #231137; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(12deg); outline: 1px dashed #39204b; outline-offset: -10px; box-shadow: 0 10px 0 #aa347a, 0 24px 60px rgba(0, 0, 0, .25); font-family: var(--font-head); }
.hero-stamp > span { font-size: .78rem; font-weight: 500; }
.hero-stamp strong { font-size: 4.5rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.hero-stamp strong span { font-size: 2.8rem; }
.hero-stamp > span:last-child { font-size: .62rem; letter-spacing: .13em; margin-top: .3rem; }
.hero-image-note { position: absolute; right: 2rem; bottom: 105px; color: #c4b6d4; font-size: .65rem; }
@media (min-width: 1600px) { .hero { min-height: 1020px; } }
@media (max-width: 1199.98px) { .hero-stamp { right: 5%; width: 135px; height: 135px; } }
@media (max-width: 767.98px) {
  .hero { min-height: 0; padding: calc(var(--nav-h) + 25px) 0 105px; }
  .hero-bg { background-position: 69% top; background-size: auto 660px; background-repeat: no-repeat; opacity: .72; }
  .hero::before { background: linear-gradient(90deg, rgba(18, 11, 32, .78), rgba(18, 11, 32, .4)), linear-gradient(0deg, var(--bg) 15%, rgba(18, 11, 32, .35) 65%, rgba(18, 11, 32, .2)); }
  .hero h1 { font-size: clamp(4.5rem, 16.8vw, 7rem); max-width: 520px; }
  .hero-org { max-width: 380px; font-size: .68rem; gap: .45rem; margin-bottom: 1.3rem; }
  .hero-org img { height: 26px; }
  .hero-kicker { font-size: .75rem; }
  .hero-lead { max-width: 29rem; font-size: .94rem; }
  .hero-meta { max-width: 29rem; font-size: .88rem; }
  .hero-stamp { display: none; }
  .hero-image-note { bottom: 75px; right: 1rem; }
  .countdown-note { max-width: 360px; }
}
@media (max-width: 399.98px) {
  .hero-org { gap: .35rem; font-size: .63rem; }
  .hero-org img { height: 23px; }
  .hero-actions { gap: .65rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero h1 { font-size: 4.5rem; }
}

/* ---------------------------------------------------------------- feature strip */
.feature-strip { position: relative; z-index: 2; margin-top: -65px; }
.feature-strip .inner { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--strip-bg); border: 1px solid rgba(255, 105, 188, .25); border-radius: 22px; backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden; }
.feature { display: flex; gap: .9rem; padding: 1.55rem 1.3rem; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature i { font-size: 1.8rem; color: var(--gold); line-height: 1; flex: none; }
.feature:nth-child(2) i { color: var(--pink); }
.feature:nth-child(3) i { color: var(--cyan); }
.feature:nth-child(4) i { color: var(--violet); }
.feature h3 { font-size: 1rem; font-weight: 700; letter-spacing: .03em; margin: 0 0 .25rem; color: var(--heading); }
.feature p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 991.98px) {
  .feature-strip .inner { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
  .feature-strip { margin-top: -45px; }
  .feature-strip .inner { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; }
  .feature { flex-direction: column; gap: .65rem; padding: 1rem; }
  .feature h3 { font-size: .89rem; letter-spacing: 0; }
  .feature p { font-size: .77rem; }
}
.festival-ribbon { margin-top: 3.5rem; padding: .95rem 0; background: #f16bb2; color: #261137; border-top: 1px solid #ffadd7; border-bottom: 1px solid #ffadd7; }
.festival-ribbon .container { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.festival-ribbon span { font-family: var(--font-head); font-size: clamp(1rem, 2vw, 1.45rem); font-weight: 600; white-space: nowrap; }
.festival-ribbon b { font-size: 1.6rem; line-height: 1; color: #74368b; }
@media (max-width: 767.98px) { .festival-ribbon { margin-top: 2.5rem; } .festival-ribbon .container { justify-content: center; gap: .8rem; } .festival-ribbon span:nth-of-type(n+3), .festival-ribbon b:nth-of-type(n+2) { display: none; } }

/* ---------------------------------------------------------------- sections */
.section { padding: 5.5rem 0; }
.section-alt { background: radial-gradient(ellipse at 0% 0%, rgba(151, 57, 163, .09), transparent 60%), var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-family: var(--font-head); font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); margin-bottom: .7rem; }
.section-title { font-weight: 800; font-size: clamp(1.8rem, 4.4vw, 2.7rem); letter-spacing: .01em; margin: 0 0 .8rem; color: var(--heading); text-wrap: balance; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); margin: 0; }
#highlights { background: radial-gradient(ellipse at 50% 20%, rgba(146, 65, 183, .12), transparent 65%); }
@media (max-width: 767.98px) {
  .section { padding: 3.6rem 0; }
  .section-head { margin-bottom: 2rem; }
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}

/* ---------------------------------------------------------------- cards */
.run-card { height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.run-card:hover { transform: translateY(-6px); border-color: rgba(255, 105, 188, .55); box-shadow: 0 18px 44px rgba(0, 0, 0, .3); }
.run-card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--field-bg); }
.run-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.run-card:hover .thumb img { transform: scale(1.05); }
.run-card .body { display: flex; gap: .7rem; padding: 1.25rem 1.1rem 1.4rem; }
.run-card .body > i { font-size: 1.4rem; color: var(--cyan); line-height: 1.1; flex: none; }
.run-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: .03em; margin: 0 0 .3rem; color: var(--heading); }
.run-card p { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.6; }
.img-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; text-align: center; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.panel-tight { padding: 1.1rem 1.2rem; }
.panel h2, .panel h3 { color: var(--heading); }

/* about */
.about-visual { position: relative; margin: .5rem 1.2rem 1.7rem 0; }
.about-visual::before { content: ""; position: absolute; inset: -10px 14px 10px -10px; border: 1px solid rgba(110, 233, 237, .45); border-radius: 24px; transform: rotate(-3deg); }
.about-img { border-radius: var(--radius); border: 1px solid var(--line-strong); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.about-img img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about-sticker { position: absolute; bottom: -25px; right: -18px; transform: rotate(-7deg); padding: 1rem 1.4rem; border-radius: 14px; background: var(--gold-fill); color: #30153f; font-family: var(--font-head); font-size: 1.1rem; line-height: 1.4; box-shadow: 6px 6px 0 #bc3b8d; }
.about-sticker i { float: left; font-size: 2.1rem; margin: .35rem .7rem 0 0; }
.about-sticker strong { font-size: 1.4rem; }
.about-text p { color: var(--text-soft); white-space: pre-line; }
/* fancy-dress contest band */
.fancy-band { position: relative; display: flex; align-items: center; gap: 1.6rem; margin-top: 3rem; padding: 2rem 2.2rem; border-radius: 24px; border: 1px solid rgba(255, 105, 188, .55); background: linear-gradient(115deg, rgba(247, 60, 155, .26), rgba(170, 84, 238, .2) 55%, rgba(84, 220, 227, .16)), var(--panel); box-shadow: 0 20px 50px rgba(247, 60, 155, .12); }
.fancy-icon { flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--gold-fill); color: #30153f; font-size: 2.9rem; box-shadow: 5px 5px 0 #bc3b8d; transform: rotate(-8deg); }
.fancy-text { flex: 1; min-width: 0; }
.fancy-text .eyebrow { color: var(--cyan); margin-bottom: .3rem; }
.fancy-text h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.2; color: var(--heading); }
.fancy-text h2 span { color: var(--gold); }
.fancy-text p { margin: 0; color: var(--text-soft); }
.fancy-text .fancy-note { margin-top: .3rem; font-size: .95rem; color: var(--muted); }
.fancy-sticker { flex: none; transform: rotate(6deg); padding: .8rem 1.2rem; border-radius: 14px; background: var(--cyan-fill); color: #17233a; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; text-align: center; box-shadow: 5px 5px 0 #7b3bbc; }
.fancy-sticker strong { font-size: 1.35rem; }
@media (max-width: 767.98px) {
  .fancy-band { flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.1rem; padding: 1.5rem 1.3rem; }
  .fancy-icon { width: 68px; height: 68px; font-size: 2.1rem; }
  .fancy-text { flex-basis: calc(100% - 68px - 1.1rem); }
  .fancy-sticker { margin-left: auto; font-size: .95rem; padding: .55rem 1rem; }
  .fancy-sticker br { display: none; }
}

.purpose-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.4rem; padding: 1.1rem 1.25rem; border: 1px solid rgba(255, 220, 105, .45); border-radius: 16px; background: linear-gradient(120deg, rgba(255, 220, 105, .13), rgba(255, 105, 188, .08)); }
.purpose-box > i { flex: none; font-size: 2rem; line-height: 1; color: var(--gold); }
.purpose-box h3 { margin: 0 0 .3rem; font-size: 1.15rem; font-weight: 700; color: var(--gold); }
.purpose-box h3 span { display: inline-block; font-family: var(--font-body); font-size: .9rem; font-weight: 400; color: var(--gold-soft); margin-left: .35rem; }
.about-text .purpose-box p { margin: 0; color: var(--heading); white-space: normal; text-wrap: balance; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.6rem 0; }
.stat { padding: .9rem .8rem; border-left: 2px solid var(--pink); background: var(--tint); border-radius: 0 10px 10px 0; }
.stat:nth-child(2) { border-color: var(--cyan); }
.stat:nth-child(3) { border-color: var(--gold); }
.stat b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--heading); }
.stat span { font-size: .85rem; color: var(--muted); }

/* pricing */
.price-card { position: relative; height: 100%; display: flex; flex-direction: column; background: linear-gradient(155deg, rgba(64, 36, 83, .3), transparent 65%), var(--panel); border: 1px solid var(--line-strong); border-radius: 22px; padding: 2.2rem 1.7rem 1.8rem; }
.price-card.featured { border-color: var(--pink); background: linear-gradient(155deg, #492146 0%, #2e1b43 45%, var(--panel) 100%); box-shadow: 0 20px 50px rgba(247, 60, 155, .14); }
.price-tag { position: absolute; top: -13px; left: 1.7rem; background: var(--grad); color: #10131d; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; padding: .2rem .8rem; border-radius: 999px; }
.price-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .2rem; color: var(--heading); }
.price-card .sub { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.price-amount { font-family: var(--font-head); font-weight: 700; font-size: 3.7rem; line-height: 1; color: var(--gold); margin-bottom: 1.5rem; }
.price-amount small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: .3rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1; }
.check-list li { position: relative; padding: .32rem 0 .32rem 1.8rem; color: var(--text-soft); font-size: .98rem; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .32rem; color: var(--gold); }

/* alumni wall teaser (home page) — stays dark in both themes, like a gala stage */
.wall-teaser { background: radial-gradient(700px 320px at 85% 20%, rgba(242, 201, 92, .2), transparent 70%), radial-gradient(600px 300px at 0% 100%, rgba(170, 84, 238, .2), transparent 70%), #0b0714; border-top: 1px solid rgba(242, 201, 92, .4); border-bottom: 1px solid rgba(242, 201, 92, .4); }
.teaser-gold { background: linear-gradient(100deg, #fff4c4 0%, #f3cd66 35%, #d6a23c 60%, #fbe39a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.teaser-lead { color: var(--text-soft); }
.teaser-total { display: flex; align-items: baseline; gap: .7rem; margin: 1.2rem 0 1.5rem; }
.teaser-total b { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: #f3cd66; }
.teaser-total span { color: var(--muted); }
.mini-race { list-style: none; margin: 0; padding: 1.4rem 1.5rem; display: grid; gap: .95rem; border-radius: 22px; border: 1px solid rgba(242, 201, 92, .4); background: rgba(255, 255, 255, .03); }
.mini-race li { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 4rem; align-items: center; gap: .9rem; }
.mr-name { color: var(--text-soft); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-name b { font-family: var(--font-head); color: var(--heading); margin-right: .3rem; }
.mr-name b::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--dept); margin-right: .4rem; }
.mr-track { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.mr-fill { position: absolute; inset: 0 auto 0 0; width: var(--pct); min-width: 14px; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--dept) 40%, transparent), var(--dept)); }
.mr-count { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--heading); text-align: right; white-space: nowrap; }
.mini-race .is-leader .mr-count { color: #f3cd66; }
@media (max-width: 575.98px) {
  .mini-race { padding: 1.1rem 1rem; }
  .mini-race li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name count" "track track"; row-gap: .35rem; }
  .mr-name { grid-area: name; } .mr-track { grid-area: track; } .mr-count { grid-area: count; }
}

/* VIP gifts */
.vip-kit-link { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; margin: -.6rem 0 1rem; font-size: .92rem; color: var(--pink); }
/* polo picture is portrait (537x615), bag/bottle 4:3: the narrower right column makes the bag+bottle stack about as tall as the polo */
.vip-kit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .62fr); grid-template-areas: "text polo bag" "text polo bottle"; gap: 1.4rem; align-items: center; margin-top: 2.5rem; padding: 1.8rem; border-radius: 24px; border: 1px solid rgba(255, 105, 188, .45); background: linear-gradient(120deg, rgba(247, 60, 155, .16), rgba(170, 84, 238, .1) 55%, transparent), var(--panel); scroll-margin-top: calc(var(--nav-h) + 16px); }
.vip-kit-text h3 { margin: 0 0 .6rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.25; color: var(--heading); }
.vip-kit-text h3 span { display: block; color: var(--gold); }
.vip-kit-text p { color: var(--text-soft); margin-bottom: 1.2rem; }
.vip-kit-text { grid-area: text; }
.vip-item-polo { grid-area: polo; }
.vip-item-bag { grid-area: bag; }
.vip-item-bottle { grid-area: bottle; }
.vip-item { margin: 0; }
.vip-item-img { border-radius: 16px; overflow: hidden; background: #ececec; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.vip-item-img img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.vip-item:hover .vip-item-img img { transform: scale(1.04); }
.vip-item figcaption { padding: .7rem .2rem 0; }
.vip-item figcaption b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--heading); }
.vip-item figcaption span { font-size: .9rem; color: var(--muted); }
.vip-item figcaption a { white-space: nowrap; }
@media (max-width: 991.98px) {
  .vip-kit { grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); grid-template-areas: "text text" "polo bag" "polo bottle"; }
}
@media (max-width: 575.98px) {
  .vip-kit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text text" "polo polo" "bag bottle"; padding: 1.3rem 1.1rem; gap: 1rem; align-items: start; }
  .vip-item figcaption span { font-size: .8rem; }
}
html[data-theme="light"] .vip-kit { background: linear-gradient(120deg, rgba(247, 60, 155, .1), rgba(170, 84, 238, .06) 55%, transparent), var(--panel); }
html[data-theme="light"] .vip-item-img { box-shadow: 0 14px 34px rgba(74, 40, 110, .14); }

/* polo shirt (prototype picture, front | back in one image) */
.polo-kit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 1.6rem; align-items: center; margin-top: 2.5rem; padding: 1.8rem; border-radius: 24px; border: 1px solid rgba(200, 205, 225, .4); background: linear-gradient(120deg, rgba(200, 205, 225, .12), rgba(64, 120, 255, .06) 60%, transparent), var(--panel); scroll-margin-top: calc(var(--nav-h) + 16px); }
.polo-kit-text h3 { margin: 0 0 .6rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.25; color: var(--heading); }
.polo-kit-text h3 span { display: block; color: var(--gold); }
.polo-kit-text p { color: var(--text-soft); margin-bottom: 1.2rem; }
.polo-photo { margin: 0; }
.polo-photo > a { display: block; border-radius: 16px; overflow: hidden; background: #45454d; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.polo-photo img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.polo-photo > a:hover img { transform: scale(1.03); }
.polo-photo figcaption { padding: .6rem .2rem 0; font-size: .85rem; color: var(--muted); }
.polo-photo figcaption b { color: var(--heading); font-weight: 600; }
.panel .polo-photo { max-width: 560px; margin: 0 0 1.1rem; }
.panel .polo-photo > a { border-radius: 12px; box-shadow: none; border: 1px solid var(--line); }
@media (max-width: 991.98px) {
  .polo-kit { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .polo-kit { padding: 1.3rem 1.1rem; gap: 1rem; }
}
html[data-theme="light"] .polo-kit { background: linear-gradient(120deg, rgba(120, 130, 160, .1), rgba(64, 120, 255, .05) 60%, transparent), var(--panel); }
html[data-theme="light"] .polo-photo > a { box-shadow: 0 14px 34px rgba(74, 40, 110, .14); }
html[data-theme="light"] .panel .polo-photo > a { box-shadow: none; }

/* finisher medal (both faces) */
.medal-kit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem; align-items: center; margin-top: 2.5rem; padding: 1.8rem; border-radius: 24px; border: 1px solid rgba(255, 220, 105, .45); background: linear-gradient(120deg, rgba(255, 220, 105, .14), rgba(64, 120, 255, .1) 60%, transparent), var(--panel); scroll-margin-top: calc(var(--nav-h) + 16px); }
.medal-kit-text h3 { margin: 0 0 .6rem; font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.25; color: var(--heading); }
.medal-kit-text h3 span { display: block; color: var(--gold); }
.medal-kit-text p { color: var(--text-soft); margin: 0; }
.medal-item { margin: 0; }
.medal-item-img { border-radius: 16px; overflow: hidden; background: #f1f0f8; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.medal-item-img img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.medal-item:hover .medal-item-img img { transform: scale(1.04); }
.medal-item figcaption { padding: .7rem .2rem 0; }
.medal-item figcaption b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--heading); }
.medal-item figcaption span { font-size: .9rem; color: var(--muted); }
@media (max-width: 991.98px) {
  .medal-kit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .medal-kit-text { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .medal-kit { padding: 1.3rem 1.1rem; gap: 1rem; }
  .medal-item figcaption span { font-size: .8rem; }
}
html[data-theme="light"] .medal-kit { background: linear-gradient(120deg, rgba(240, 180, 40, .14), rgba(64, 120, 255, .07) 60%, transparent), var(--panel); }
/* runner awards band */
.prize-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.6rem; align-items: center; margin-top: 3rem; padding: 2rem 2.2rem; border-radius: 24px; border: 1px solid rgba(255, 220, 105, .45); background: linear-gradient(120deg, rgba(255, 220, 105, .16), rgba(255, 148, 92, .08) 55%, transparent), var(--panel); scroll-margin-top: calc(var(--nav-h) + 16px); }
.prize-text .eyebrow { color: var(--cyan); margin-bottom: .3rem; }
.prize-text h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.2; color: var(--heading); }
.prize-text h2 span { color: var(--gold); }
.prize-text p { margin: 0; color: var(--text-soft); }
.prize-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.prize { --medal: #ffdc69; display: flex; flex-direction: column; align-items: center; padding: 1.1rem .6rem 1rem; border-radius: 18px; border: 1px solid var(--line-strong); border-top: 4px solid var(--medal); background: var(--tint); text-align: center; }
.prize-2 { --medal: #cfd6e4; }
.prize-3 { --medal: #e0965a; }
.prize-rank { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--heading); white-space: nowrap; }
.prize-rank i { color: var(--medal); }
.prize-amt { margin-top: .2rem; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; color: var(--gold); font-variant-numeric: tabular-nums; }
.prize-unit { font-size: .85rem; color: var(--muted); }
@media (max-width: 991.98px) {
  .prize-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .prize-band { padding: 1.5rem 1.1rem; gap: 1.1rem; }
  .prize-list { gap: .5rem; }
  .prize { padding: .9rem .3rem .8rem; }
  .prize-rank { font-size: .8rem; }
  .prize-unit { font-size: .72rem; }
}
html[data-theme="light"] .prize-band { background: linear-gradient(120deg, rgba(240, 180, 40, .16), rgba(255, 148, 92, .07) 55%, transparent), var(--panel); }
html[data-theme="light"] .prize-1 { --medal: #e0a800; }
html[data-theme="light"] .prize-2 { --medal: #9aa5b8; }
html[data-theme="light"] .prize-3 { --medal: #b8692c; }
html[data-theme="light"] .medal-item-img { box-shadow: 0 14px 34px rgba(74, 40, 110, .14); }

/* shirt + sizes */
.shirt-img { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 105, 188, .3); box-shadow: 0 25px 70px rgba(131, 33, 144, .12); }
.shirt-img img { display: block; width: 100%; height: auto; aspect-ratio: var(--shirt-ratio, 3 / 2); object-fit: cover; transition: opacity .2s ease; }
.shirt-img img.is-swapping { opacity: .25; }
.shirt-viewer { margin: 0; }
.shirt-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.shirt-tabs button { font-family: var(--font-head); font-size: .92rem; padding: .4rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--tint); color: var(--text-soft); }
.shirt-tabs button:hover { border-color: var(--gold); color: var(--heading); }
.shirt-tabs button.active { background: var(--gold-fill); border-color: var(--gold-fill); color: #231137; font-weight: 600; }
.shirt-viewer .img-note { margin-top: .6rem; }
.shirt-3d { text-align: center; margin: .9rem 0 0; }
.shirt-3d .btn { padding: .55rem 1.2rem; }
.shirt-3d .bi { margin-right: .3rem; }
@media (max-width: 420px) {
  .shirt-tabs { gap: .3rem; }
  .shirt-tabs button { font-size: .85rem; padding: .38rem .7rem; }
}
.shirt-desc { color: var(--text-soft); margin-bottom: 1.4rem; }
.size-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.size-table th, .size-table td { padding: .65rem .8rem; text-align: center; border-bottom: 1px solid var(--line); }
.size-table thead th { font-family: var(--font-head); font-weight: 600; color: var(--gold); font-size: .9rem; letter-spacing: .06em; border-bottom-color: var(--line-strong); }
.size-table td:first-child, .size-table th:first-child { text-align: left; font-family: var(--font-head); font-weight: 700; color: var(--heading); }
@media (max-width: 399.98px) {
  .size-table th, .size-table td { padding: .65rem .35rem; }
  .stat { padding: .8rem .5rem; }
  .stat b { font-size: 1.4rem; }
  .stat span { font-size: .75rem; }
}

/* route map */
#route { background: radial-gradient(ellipse at 20% 50%, rgba(84, 220, 227, .08), transparent 60%); border-bottom: 1px solid var(--line); }
.route-map { margin: 0; }
.route-map a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 25px 70px rgba(0, 0, 0, .35); transition: transform .25s ease, box-shadow .25s ease; }
.route-map a:hover { transform: translateY(-4px); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.route-map img { display: block; width: 100%; height: auto; }
.route-facts { list-style: none; padding: 0; margin: 1.6rem 0 1.2rem; display: grid; gap: .8rem; }
.route-facts li { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.route-facts li > i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--gold); font-size: 1.15rem; }
.route-facts li:nth-child(2) > i { color: var(--pink); }
.route-facts li:nth-child(3) > i { color: var(--cyan); }
.route-facts li:nth-child(4) > i { color: #5aa9ff; }   /* water stations: same blue as the drop on the map */
html[data-theme="light"] .route-facts li:nth-child(4) > i { color: #1b6fe0; }
.route-facts b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--heading); line-height: 1.4; }
.route-facts span { display: block; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.route-note { display: flex; gap: .5rem; font-size: .9rem; color: var(--muted); margin-bottom: 1.3rem; }
.route-note i { color: var(--cyan); }
html[data-theme="light"] .route-map a { box-shadow: 0 22px 55px rgba(74, 40, 110, .2); }

/* schedule */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 34px; padding: .7rem 0; }
.timeline li::before { content: ""; position: absolute; left: 80px; top: 1.15rem; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--gold); }
.timeline time { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; }
.timeline span { color: var(--text-soft); }
.rule-list { counter-reset: r; list-style: none; padding: 0; margin: 0; }
.rule-list li { counter-increment: r; position: relative; padding: .55rem 0 .55rem 2.6rem; color: var(--text-soft); border-bottom: 1px dashed var(--line); }
.rule-list li:last-child { border-bottom: 0; }
.rule-list li::before { content: counter(r); position: absolute; left: 0; top: .55rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: .9rem; background: rgba(255, 220, 105, .14); color: var(--gold); }

/* faq */
.faq .accordion-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: .7rem; overflow: hidden; }
.faq .accordion-button { background: transparent; color: var(--heading); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; box-shadow: none; padding: 1.05rem 1.2rem; }
.faq .accordion-button:not(.collapsed) { color: var(--gold); }
.faq .accordion-button::after { filter: invert(1) brightness(1.6); }
.faq .accordion-body { color: var(--text-soft); padding-top: 0; }

/* CTA band */
.cta-band { position: relative; padding: 7rem 0; text-align: center; isolation: isolate; background-size: cover; background-position: center 45%; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(36, 11, 51, .84) 30%, rgba(36, 11, 51, .85) 70%, var(--bg) 100%); }
.cta-band h2 { font-weight: 800; font-size: clamp(2rem, 5.5vw, 3.4rem); margin-bottom: .6rem; color: var(--heading); text-wrap: balance; }
.cta-band p { color: var(--text-soft); max-width: 36rem; margin: 0 auto 1.8rem; }

/* organisers */
.org-row { display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.org { text-align: center; max-width: 16rem; }
.org img { height: 120px; width: auto; margin-bottom: .8rem; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .5)); }
.org b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--heading); line-height: 1.4; }
/* faculty 31st-anniversary logo: navy artwork, so it always sits on white (unreadable on the dark theme otherwise) */
.anniv { display: flex; align-items: center; justify-content: center; gap: 1.6rem; max-width: 40rem; margin: 3rem auto 0; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.anniv-logo { flex: none; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.anniv-logo img { display: block; height: 132px; width: auto; }
.anniv-text .eyebrow { margin-bottom: .4rem; }
.anniv-text p { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; line-height: 1.5; color: var(--heading); }
@media (max-width: 575.98px) {
  .anniv { flex-direction: column; text-align: center; gap: 1.1rem; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); padding: 3rem 0 1.5rem; margin-top: 0; }
.footer-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.footer-item { display: flex; gap: .9rem; padding: 1.3rem 1.3rem; border-right: 1px solid var(--line); }
.footer-item:last-child { border-right: 0; }
.footer-item > i { font-size: 1.5rem; color: var(--gold); line-height: 1.2; }
.footer-item h3 { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--heading); margin: 0 0 .25rem; }
.footer-item p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 2rem 0 1rem; }
.footer-logos { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.footer-logos img { height: 52px; width: auto; }
.footer-logos .logo-chip { display: inline-flex; background: #fff; border-radius: 10px; padding: 4px 7px; }
.footer-logos .logo-chip img { height: 44px; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .92rem; }
.footer-links a, .footer-links span { color: var(--text-soft); }
.footer-copy { text-align: center; font-size: .82rem; color: var(--muted); margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 991.98px) {
  .footer-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-item:nth-child(2) { border-right: 0; }
  .footer-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
  .footer-strip { grid-template-columns: 1fr; }
  .footer-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .footer-item:last-child { border-bottom: 0; }
}

/* ---------------------------------------------------------------- inner pages */
.page-head { padding: 2.6rem 0 1.6rem; background: radial-gradient(900px 300px at 15% 0%, rgba(247, 60, 155, .14), transparent 70%), radial-gradient(500px 200px at 100% 100%, rgba(110, 233, 237, .07), transparent 70%), var(--bg-2); border-bottom: 1px solid var(--line); }
.page-head h1 { font-weight: 800; font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin: 0 0 .3rem; color: var(--heading); }
.page-head p { color: var(--muted); margin: 0; }
.page-body { padding: 2.2rem 0 4.5rem; }
.narrow { max-width: 860px; }

/* ---------------------------------------------------------------- forms */
.form-label { font-family: var(--font-head); font-weight: 500; font-size: .93rem; color: var(--text-soft); margin-bottom: .3rem; }
.form-label .req { color: var(--orange); }
.form-control, .form-select { background-color: var(--field-bg); border: 1.5px solid var(--line-strong); color: var(--text); border-radius: 10px; padding: .62rem .85rem; font-size: 1rem; }
.form-control:focus, .form-select:focus { background-color: var(--field-bg); color: var(--heading); border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(255, 220, 105, .2); }
.form-control::placeholder { color: #a493b8; }
/* The open list of a <select> is drawn by the browser. Some browsers paint it white while the options inherit the
   light page text, which made the options invisible. Give the options their own colours in both themes. */
.form-select option, .form-select optgroup, select option { background-color: var(--field-bg); color: var(--text); }
.form-select option:disabled { color: var(--muted); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--bad); }
.invalid-feedback { color: #ff8b96; font-size: .87rem; }
.form-text { color: var(--muted); font-size: .85rem; }
.form-check-input { background-color: var(--field-bg); border: 1.5px solid var(--line-strong); width: 1.2em; height: 1.2em; }
.form-check-input:checked { background-color: var(--gold-fill); border-color: var(--gold); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(255, 220, 105, .25); border-color: var(--gold); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }

/* choice cards (run type) */
.choice { position: relative; display: block; height: 100%; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice .box { display: block; height: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--field-bg); transition: border-color .15s ease, background .15s ease; }
.choice .box b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--heading); }
.choice .box span { font-size: .9rem; color: var(--muted); }
.choice input:checked + .box { border-color: var(--gold); background: rgba(255, 220, 105, .1); }
.choice input:focus-visible + .box { outline: 3px solid var(--gold-soft); outline-offset: 2px; }
.choice .box .choice-note { display: block; margin-top: .3rem; font-size: .78rem; line-height: 1.35; color: var(--text-soft); }

/* register step 1: the makers' spec sheets (running shirt | polo), two size charts that differ */
.size-sheets { scroll-margin-top: calc(var(--nav-h) + 16px); }
.size-sheet { margin: 0; }
.size-sheet a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #1d2140; }
.size-sheet img { display: block; width: 100%; height: auto; transition: transform .4s ease; }
.size-sheet a:hover img { transform: scale(1.03); }
.size-sheet figcaption { padding: .5rem .1rem 0; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.size-sheet figcaption b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--heading); }
.vip-chip { display: inline-block; margin-left: .3rem; padding: 0 .4rem; border-radius: 5px; font-family: var(--font-head); font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: #fff; background: var(--pink); vertical-align: .1em; }

/* register runner card: pictures of what the chosen entry type receives (VIP items only for VIP) */
.kit-box { margin-top: .9rem; padding: .85rem .85rem .95rem; border-radius: 12px; border: 1px solid var(--line); background: var(--tint); }
.kit-head { margin-bottom: .65rem; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--heading); }
.kit-head i { color: var(--gold); }
.kit-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem .55rem; margin: 0; padding: 0; list-style: none; }
.kit-item { min-width: 0; text-align: center; }
.kit-pic { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #e6e6e9; }
.kit-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a.kit-pic:hover img { transform: scale(1.06); }
.kit-item.is-vip .kit-pic::after { content: "VIP"; position: absolute; top: 5px; left: 5px; padding: 0 .35rem; border-radius: 4px; font-family: var(--font-head); font-size: .66rem; font-weight: 700; line-height: 1.5; letter-spacing: .06em; color: #fff; background: var(--pink); }
.kit-name { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 600; line-height: 1.3; color: var(--heading); overflow-wrap: anywhere; }
.kit-sub { display: block; font-size: .72rem; line-height: 1.3; color: var(--muted); }
/* the BIB, drawn: white race bib with a safety-pin hole in each corner */
.kit-bib { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; color: #10131d;
  background: radial-gradient(circle at 10px 10px, #b5b9c8 3px, transparent 3.5px), radial-gradient(circle at calc(100% - 10px) 10px, #b5b9c8 3px, transparent 3.5px),
              radial-gradient(circle at 10px calc(100% - 10px), #b5b9c8 3px, transparent 3.5px), radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #b5b9c8 3px, transparent 3.5px), #fff; }
.kit-bib small { font-size: .6rem; font-weight: 600; color: #c0156c; white-space: nowrap; }
.kit-bib b { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; line-height: 1.1; letter-spacing: .02em; }
.kit-bib em { padding: 0 .45rem; border-radius: 999px; font-family: var(--font-head); font-style: normal; font-size: .62rem; font-weight: 700; color: #fff; background: #1d2f9e; }
.kit-more { grid-column: 1 / -1; align-self: center; padding: .55rem .75rem; border-radius: 10px; border: 1px dashed var(--line-strong); font-size: .84rem; line-height: 1.45; color: var(--text-soft); }
.kit-more i, .kit-more b { color: var(--pink); }
@media (min-width: 576px) {
  .kit-items { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .kit-more { grid-column: span 3; }
}

/* alumni wall consent box in the runner card */
.wall-consent { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; border: 1px dashed rgba(255, 220, 105, .55); background: rgba(255, 220, 105, .07); }
.wall-consent .form-check-input { flex: none; margin-top: .3rem; }
.wall-consent .form-check-label { color: var(--text-soft); font-size: .95rem; line-height: 1.6; }
.wall-consent strong { color: var(--gold); font-family: var(--font-head); font-weight: 600; }
.wall-consent small { display: block; margin-top: .25rem; color: var(--muted); }

/* alumni wall consent rows on the order page */
.wall-row { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; padding: .7rem 0; border-top: 1px dashed var(--line); }
.wall-row-who { flex: 1 1 12rem; min-width: 0; }
.wall-row-who b { display: block; color: var(--heading); font-family: var(--font-head); font-weight: 600; }
.wall-row-who span { font-size: .85rem; color: var(--muted); }
.wall-row-state { font-size: .85rem; font-family: var(--font-head); }
.wall-row-state.on { color: var(--ok); }
.wall-row-state.off { color: var(--muted); }

/* steps */
.steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.8rem; counter-reset: s; }
.steps li { flex: 1; counter-increment: s; font-family: var(--font-head); font-size: .9rem; color: var(--muted); padding-top: .7rem; border-top: 3px solid var(--line-strong); }
.steps li::before { content: counter(s) ". "; }
.steps li.active { color: var(--heading); border-top-color: var(--gold); }
.steps li.done { color: var(--gold); border-top-color: rgba(255, 220, 105, .5); }
@media (max-width: 575.98px) { .steps li { font-size: .78rem; } }

.runner-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.2rem; }
.runner-card > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.runner-card > header h2 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--heading); }
.runner-card > header h2 small { font-weight: 400; font-size: .85rem; color: var(--gold); margin-left: .4rem; }
.runner-card .fields { padding: 1.2rem; }
.sub-head { font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 1.4rem 0 .7rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.sub-head:first-child { margin-top: 0; }
.btn-remove { color: #ff8b96; background: transparent; border: 1px solid rgba(255, 93, 108, .4); border-radius: 8px; padding: .25rem .7rem; font-size: .88rem; }
.btn-remove:hover { background: rgba(255, 93, 108, .12); color: #ffb3ba; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.qty button { width: 40px; height: 40px; border: 0; background: var(--field-bg); color: var(--heading); font-size: 1.2rem; line-height: 1; }
.qty button:hover { background: rgba(255, 220, 105, .18); }
.qty input { width: 48px; height: 40px; border: 0; background: transparent; color: var(--heading); text-align: center; font-family: var(--font-head); font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.size-pick .item { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .9rem .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--field-bg); }
.size-pick .item b { font-family: var(--font-head); font-size: 1.15rem; color: var(--heading); }
.size-pick .item small { color: var(--muted); font-size: .8rem; }
.size-pick .item { transition: border-color .15s ease, background .15s ease; }
.size-pick .item.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: rgba(255, 220, 105, .1); }
.size-pick .item-sub { min-height: 1.2em; font-style: normal; font-size: .82rem; font-weight: 600; color: var(--gold); }

/* step 2: shirts already in the entry fee */
.included-shirts { padding: .95rem 1.1rem; border-radius: 12px; border: 1px solid rgba(55, 208, 138, .35); background: rgba(55, 208, 138, .08); }
.included-head { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .5rem; font-family: var(--font-head); font-weight: 600; color: var(--heading); }
.included-head i { color: var(--ok); }
.included-head span { font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--muted); }
.included-shirts ul { list-style: none; margin: .55rem 0 0; padding: 0; }
.included-shirts li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-top: 1px dashed var(--line); }
.included-shirts li span { min-width: 0; overflow-wrap: anywhere; color: var(--text-soft); }
.included-shirts li b { flex: none; font-family: var(--font-head); color: var(--heading); }

/* running count under the extra-shirt picker */
.extra-tally { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--gold); background: rgba(255, 220, 105, .1); color: var(--heading); }
.extra-tally > b { font-family: var(--font-head); font-size: 1.15rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.extra-tally.empty { border-style: dashed; border-color: var(--line-strong); background: transparent; color: var(--muted); }

/* step 3: extra-shirt rows stand apart from the runners */
.summary-table tr.extra-head td { text-align: left; padding-top: .9rem; font-family: var(--font-head); font-weight: 600; color: var(--gold); }
.summary-table tr.extra-row td:first-child { padding-left: 1.4rem; }
.summary-table tr.extra-none td { color: var(--muted); }
.link-edit { margin-left: .4rem; padding: 0; border: 0; background: none; font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--pink); text-decoration: underline; }

.summary-table { width: 100%; }
.summary-table td { padding: .45rem 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.summary-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary-table tr.total td { border-bottom: 0; padding-top: .9rem; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--gold); }
.sticky-total { position: sticky; bottom: 0; z-index: 20; margin: 1.5rem -12px 0; padding: .8rem 16px; background: var(--glass); border-top: 1px solid var(--line-strong); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sticky-total .amt { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sticky-total .lbl { font-size: .8rem; color: var(--muted); }

/* ---------------------------------------------------------------- status / payment */
.st-badge { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 600; font-size: .88rem; padding: .28rem .75rem; border-radius: 999px; white-space: nowrap; }
.st-pending   { background: rgba(255, 176, 32, .15); color: #ffc457; }
.st-reviewing { background: rgba(90, 169, 255, .16); color: #8cc3ff; }
.st-approved  { background: rgba(55, 208, 138, .16); color: #5fe3a4; }
.st-rejected  { background: rgba(255, 93, 108, .16); color: #ff8b96; }
.st-cancelled { background: rgba(155, 166, 192, .16); color: #b6bfd4; }

.notice { display: flex; gap: .8rem; padding: .95rem 1.1rem; border-radius: 12px; border: 1px solid; margin-bottom: 1.2rem; }
.notice > i { font-size: 1.3rem; line-height: 1.4; flex: none; }
.notice p { margin: 0; }
.notice-ok   { background: rgba(55, 208, 138, .09); border-color: rgba(55, 208, 138, .35); color: #b9f3d6; }
.notice-warn { background: rgba(255, 176, 32, .09); border-color: rgba(255, 176, 32, .38); color: #ffe0a6; }
.notice-bad  { background: rgba(255, 93, 108, .09); border-color: rgba(255, 93, 108, .38); color: #ffc4ca; }
.notice-info { background: rgba(90, 169, 255, .09); border-color: rgba(90, 169, 255, .35); color: #cbe4ff; }

.qr-box { background: #fff; border-radius: 16px; padding: 14px; width: min(280px, 100%); margin: 0 auto; }
.qr-box img { display: block; width: 100%; height: auto; }
.pay-amount { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.2rem; margin: 0; }
.kv dt { color: var(--muted); font-weight: 400; }
.kv dd { margin: 0; color: var(--heading); overflow-wrap: anywhere; }
.code-chip { font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; font-size: 1.35rem; color: var(--heading); background: var(--field-bg); border: 1px dashed var(--gold); border-radius: 10px; padding: .3rem .9rem; display: inline-block; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: .65rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table thead th { font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .05em; color: var(--muted); border-bottom-color: var(--line-strong); white-space: nowrap; }
.data-table tbody tr:hover { background: var(--tint); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* share-card links on the order page */
.card-link { display: inline-flex; align-items: center; gap: .25rem; margin-left: .6rem; font-size: .88rem; color: var(--pink); white-space: nowrap; }
.share-band { display: flex; align-items: center; gap: .9rem; margin: 0 0 1rem; padding: .9rem 1.1rem; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #1d2f9e 0%, #c0157a 62%, #f29a00 100%); box-shadow: 0 10px 28px rgba(192, 21, 122, .25); }
.share-band:hover { color: #fff; filter: brightness(1.06); }
.share-band > i:first-child { font-size: 1.6rem; color: #ffe14d; flex: 0 0 auto; }
.share-band > i:last-child { margin-left: auto; flex: 0 0 auto; }
.share-band span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.share-band strong { font-family: var(--font-head); font-weight: 600; }
.share-band small { opacity: .88; font-size: .84rem; }
.bib-chip { font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; color: #10131d; background: var(--grad); padding: .1rem .6rem; border-radius: 6px; display: inline-block; }

/* E-BIB */
.ebib { position: relative; width: min(420px, 100%); margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); background: #0a1022 center / cover no-repeat; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); }
.ebib .top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1.1rem 1.3rem .6rem; }
.ebib .top img { height: 46px; width: auto; }
.ebib .ev { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: .05em; color: var(--heading); text-align: right; line-height: 1.15; }
.ebib .ev em { font-style: normal; color: var(--gold); }
.ebib .ev small { display: block; font-weight: 400; font-size: .72rem; letter-spacing: .02em; color: var(--muted); }
.ebib .bibno { text-align: center; padding: .4rem 1rem 0; }
.ebib .bibno .type { font-family: var(--font-head); font-weight: 600; letter-spacing: .25em; font-size: .85rem; color: var(--gold); }
.ebib .bibno .no { font-family: var(--font-head); font-weight: 800; font-size: 5.2rem; line-height: 1; color: var(--heading); letter-spacing: .04em; }
.ebib .name { text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--heading); padding: .2rem 1rem .9rem; }
.ebib .qr { background: #fff; border-radius: 14px; padding: 10px; width: 200px; margin: 0 auto; }
.ebib .qr img { display: block; width: 100%; }
.ebib .info { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: 1.1rem 1.1rem 1.3rem; text-align: center; }
.ebib .info.info-4 { grid-template-columns: repeat(4, 1fr); }
.ebib .info div { background: rgba(18, 11, 32, .6); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .3rem; }
.ebib .info small { display: block; font-size: .7rem; color: var(--muted); }
.ebib .info b { font-family: var(--font-head); font-weight: 600; color: var(--heading); }
.ebib .picked { text-align: center; padding: 0 1rem 1.2rem; color: var(--ok); font-family: var(--font-head); }

.prose h2 { font-size: 1.3rem; font-weight: 700; color: var(--heading); margin: 2rem 0 .6rem; }
.prose p, .prose li { color: var(--text-soft); }

/* Visitors who ask their device to reduce motion get a static site, unless they switched effects on with the footer toggle. */
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) { scroll-behavior: auto; }
  html:not(.motion-on) *, html:not(.motion-on) *::before, html:not(.motion-on) *::after { transition: none !important; animation: none !important; }
}
/* Effects switched off with the footer toggle. */
html.motion-off { scroll-behavior: auto; }
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation: none !important; }
@media print {
  .site-nav, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  body.no-hero main { padding-top: 0; }
}

/* ---------------------------------------------------------------- key visual (poster hero) */
.hero-poster { position: relative; background: #004c9e; line-height: 0; border-bottom: 4px solid transparent; border-image: linear-gradient(90deg, #ffe933, #ff3d9a 50%, #ffe933) 1; }
.poster-img { display: block; width: 100%; height: clamp(48.9vw, calc(100vh - var(--nav-h) - 110px), 56.25vw); height: clamp(48.9vw, calc(100svh - var(--nav-h) - 110px), 56.25vw); object-fit: cover; object-position: 50% 46%; }
@media (max-width: 767.98px) {
  .poster-img { height: auto; aspect-ratio: 16 / 9; }
  .poster-img.has-mobile { aspect-ratio: auto; }
}

.hero-info { background: var(--hero-info-bg); padding: 2rem 0 2.2rem; border-bottom: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; align-items: center; }
.info-main .hero-org { margin-bottom: .6rem; font-size: .82rem; }
.info-tagline { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: var(--gold); margin: 0 0 .5rem; line-height: 1.3; }
.info-main .hero-meta { margin: 0; max-width: none; }
.info-count .countdown-caption { margin-top: 0; }
.info-count .countdown { max-width: 380px; }
.info-count .countdown .cd { background: var(--cd-bg); border-color: rgba(255, 233, 51, .25); }
.info-cta { display: flex; flex-direction: column; gap: .7rem; min-width: 240px; }
.info-cta .btn { white-space: nowrap; justify-content: center; }
.hero-info + .feature-strip { margin-top: 1.6rem; }
@media (max-width: 1199.98px) {
  .info-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .info-cta { grid-column: 1 / -1; flex-direction: row; }
  .info-cta .btn { flex: 1 1 0; }
}
@media (max-width: 767.98px) {
  .hero-info { padding: 1.5rem 0 1.7rem; }
  .info-grid { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .info-cta { flex-direction: column; }
  /* Stacked buttons keep their own height. With flex-basis 0 in a column, Safari on iPhone squashed the
     register button to almost nothing and the status button covered it. */
  .info-cta .btn { flex: 0 0 auto; width: 100%; }
  .info-count .countdown { max-width: none; }
}
/* ---------------------------------------------------------------- theme switch (nav) */
.theme-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--tint); color: var(--heading); font-size: 1.15rem; line-height: 1; transition: border-color .15s ease, color .15s ease, transform .3s ease; }
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle:active { transform: rotate(-25deg); }
/* the button shows the visitor's preference: follow device / light / dark */
.theme-toggle i { display: none; }
html[data-theme-pref="auto"] .theme-toggle .ic-auto,
html[data-theme-pref="light"] .theme-toggle .ic-light,
html[data-theme-pref="dark"] .theme-toggle .ic-dark { display: inline; }
.theme-menu { --bs-dropdown-bg: var(--panel); --bs-dropdown-border-color: var(--line-strong); --bs-dropdown-link-color: var(--text); --bs-dropdown-link-hover-bg: var(--tint); --bs-dropdown-link-hover-color: var(--heading); --bs-dropdown-link-active-bg: var(--tint); --bs-dropdown-link-active-color: var(--heading); min-width: 15rem; padding: .4rem; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }
.theme-menu .dropdown-header { font-family: var(--font-head); font-size: .78rem; letter-spacing: .08em; color: var(--muted); padding: .35rem .75rem .45rem; }
.theme-menu .dropdown-item { display: flex; align-items: center; gap: .65rem; border-radius: 9px; padding: .5rem .75rem; font-size: .95rem; }
.theme-menu .dropdown-item > i:first-child { width: 1.1rem; text-align: center; color: var(--gold); }
.theme-menu .dropdown-item small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.3; }
.theme-menu .tick { margin-left: auto; color: var(--gold); visibility: hidden; }
.theme-menu .dropdown-item[aria-checked="true"] { font-weight: 600; color: var(--heading); }
.theme-menu .dropdown-item[aria-checked="true"] .tick { visibility: visible; }
@media (max-width: 1199.98px) { .theme-switch { margin-left: auto; margin-right: .6rem; } }
@media (min-width: 1200px) { .theme-switch { order: 3; margin-left: .9rem; } }

/* ---------------------------------------------------------------- light theme
   Tokens only, plus the few rules whose colours are not tokens. Blocks listed with
   .dark-island at the top of this file keep the dark tokens (CTA band, E-BIB). */
html[data-theme="light"] {
  --bg: #fbf7ff;
  --bg-2: #f3ebfb;
  --panel: #ffffff;
  --panel-2: #f7f0fd;
  --line: rgba(74, 40, 110, .12);
  --line-strong: rgba(74, 40, 110, .24);
  --text: #2a1b40;
  --muted: #66577c;
  --heading: #1d1030;
  --text-soft: #3d2f53;
  --gold: #9a5600;
  --gold-soft: #7a4400;
  --orange: #c2410c;
  --pink: #c0156c;
  --cyan: #08737c;
  --violet: #6d3fd1;
  --field-bg: #ffffff;
  --glass: rgba(255, 255, 255, .95);
  --footer-bg: #efe5f8;
  --strip-bg: rgba(255, 255, 255, .97);
  --tint: rgba(74, 40, 110, .045);
  --hero-info-bg: linear-gradient(180deg, #e2ecff 0%, #f3ebfb 100%);
  --cd-bg: rgba(255, 255, 255, .9);
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line-strong);
  --bs-link-color-rgb: 154, 86, 0;
  --bs-link-hover-color-rgb: 122, 68, 0;
  --bs-tertiary-bg: var(--panel);
  color-scheme: light;
}
html[data-theme="light"] .site-nav.nav-solid, html[data-theme="light"] .site-nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(74, 40, 110, .06); }
html[data-theme="light"] .navbar-toggler { color: var(--heading); }
html[data-theme="light"] .feature-strip .inner { box-shadow: 0 18px 50px rgba(74, 40, 110, .12); }
html[data-theme="light"] .run-card:hover { box-shadow: 0 18px 44px rgba(74, 40, 110, .16); }
html[data-theme="light"] .about-img { box-shadow: 0 24px 60px rgba(74, 40, 110, .2); }
html[data-theme="light"] .price-card { background: linear-gradient(155deg, rgba(170, 84, 238, .06), transparent 65%), var(--panel); box-shadow: 0 10px 30px rgba(74, 40, 110, .06); }
html[data-theme="light"] .price-card.featured { background: linear-gradient(155deg, #ffe1f0 0%, #f4eaff 50%, #fff 100%); }
html[data-theme="light"] .fancy-band { background: linear-gradient(115deg, rgba(247, 60, 155, .14), rgba(170, 84, 238, .1) 55%, rgba(84, 220, 227, .12)), var(--panel); }
html[data-theme="light"] .purpose-box { background: linear-gradient(120deg, rgba(255, 196, 0, .16), rgba(255, 105, 188, .08)); border-color: rgba(154, 86, 0, .35); }
html[data-theme="light"] .faq .accordion-button::after { filter: none; }
html[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }
html[data-theme="light"] .form-control::placeholder { color: #8d7ea3; }
html[data-theme="light"] .org img { filter: drop-shadow(0 8px 16px rgba(74, 40, 110, .18)); }
html[data-theme="light"] .anniv-logo { border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(74, 40, 110, .14); }
html[data-theme="light"] .footer-logos .logo-chip { border: 1px solid var(--line); }
html[data-theme="light"] .info-count .countdown .cd { border-color: rgba(74, 40, 110, .16); }
html[data-theme="light"] .invalid-feedback, html[data-theme="light"] .btn-remove { color: #b0182c; }
html[data-theme="light"] .notice-ok   { background: rgba(55, 208, 138, .12); color: #0d5f3b; }
html[data-theme="light"] .notice-warn { background: rgba(255, 176, 32, .14); color: #7a4600; }
html[data-theme="light"] .notice-bad  { background: rgba(255, 93, 108, .11); color: #a3172a; }
html[data-theme="light"] .notice-info { background: rgba(90, 169, 255, .12); color: #144f8c; }
html[data-theme="light"] .st-pending   { color: #7a4600; }
html[data-theme="light"] .st-reviewing { color: #144f8c; }
html[data-theme="light"] .st-approved  { color: #0d5f3b; }
html[data-theme="light"] .st-rejected  { color: #a3172a; }
html[data-theme="light"] .st-cancelled { color: #4f5a70; }
html[data-theme="light"] .shirt-img { box-shadow: 0 25px 60px rgba(131, 33, 144, .16); }
