/* =====================================================================
   Gulu City Marathon — "Yoo Leng!!"
   Palette drawn from northern Uganda: the teal of the GCM elephant,
   savanna sun and acacia green.
   ===================================================================== */
:root {
  --ink: #08393A;        /* deep teal (dark bands, nav, footer) */
  --ink-2: #0F4D4C;
  --earth: #097A67;      /* teal green — main accent */
  --earth-2: #065E50;
  --gold: #E8A317;       /* savanna sun */
  --gold-2: #F6C453;
  --acacia: #2E7D32;     /* acacia leaf green */
  --sand: #E3F1EC;      /* pale mint */
  --paper: #FFFFFF;
  --text: #17302F;
  --muted: #4F6B69;
  --line: #CBE1DA;
  --danger: #B3261E;    /* errors only */
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px;
  --r-md: 14px;
  --wrap: 1180px;
  --beads: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='24' viewBox='0 0 96 24'%3E%3Crect width='96' height='24' fill='%2308393A'/%3E%3Cpath d='M0 24 12 0l12 24z' fill='%23097A67'/%3E%3Cpath d='M24 0h24L36 24z' fill='%23E8A317'/%3E%3Cpath d='M48 24 60 0l12 24z' fill='%232E7D32'/%3E%3Cpath d='M72 0h24L84 24z' fill='%23E3F1EC'/%3E%3Ccircle cx='12' cy='15' r='2.6' fill='%23E3F1EC'/%3E%3Ccircle cx='60' cy='15' r='2.6' fill='%23E8A317'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--earth); text-underline-offset: 3px; }
a:hover { color: var(--earth-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: .95; margin: 0 0 .4em; letter-spacing: .01em; color: var(--ink); }
h1 { font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 900; }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; }
h3 { font-size: 1.6rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.5em;
  font: 700 1rem/1 var(--body); text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); color: var(--ink); }
.btn--earth { background: var(--earth); color: #fff; }
.btn--earth:hover { background: var(--earth-2); color: #fff; }
.btn--ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: #fff; }
.btn--sm { padding: .55em 1em; font-size: .9rem; }

/* ---------- Top bar & nav ---------- */
.topbar { background: var(--ink); color: #cfd2e6; font-size: .85rem; }
.topbar a { color: var(--gold-2); text-decoration: none; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; flex-wrap: wrap; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.nav__brand img { height: 52px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav__links a:not(.btn):hover { background: var(--sand); }
.nav__links a.is-active { color: var(--earth); box-shadow: inset 0 -3px 0 var(--earth); border-radius: 0; }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.6rem; padding: 6px; cursor: pointer; }
@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); flex-direction: column; align-items: stretch;
    background: var(--ink); padding: 90px 24px 24px; transform: translateX(100%); transition: transform .3s ease; }
  .nav__links.is-open { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.35); }
  .nav__links a:not(.btn) { color: #fff; font-size: 1.15rem; }
  .nav__links a:not(.btn):hover { background: var(--ink-2); }
  .nav__links a.is-active { color: var(--gold); box-shadow: none; }
  .nav__cta { margin: 16px 0 0; justify-content: center; }
  .nav__toggle[aria-expanded="true"] { position: relative; z-index: 60; color: #fff; }
}
.flash { padding: 14px 0; font-weight: 600; }
.flash--ok { background: #DDEFE3; color: var(--acacia); }
.flash--err { background: #F8DDD5; color: var(--danger); }

/* ---------- Signature bead band ---------- */
.beads { height: 24px; background: var(--beads) repeat-x; background-size: 96px 24px; }
.beads--thin { height: 12px; background-size: 48px 12px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #CFE6E1; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lead { color: #A9CFC9; }
.section__head { margin-bottom: 44px; }
.section__head h2 { margin-bottom: .2em; }
.kicker { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--earth); margin: 0 0 .3em; }
.section--ink .kicker { color: var(--gold); }

/* ---------- Hero (home + event) ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
/* Sunrise over the savanna — shows while the video loads, or if there is none */
.hero__media { position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 75% 100%, rgba(232,163,23,.85), rgba(9,122,103,.55) 45%, transparent 75%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 55%, #0E5B4F 100%); }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,57,58,.35) 0%, rgba(8,57,58,.15) 40%, rgba(8,57,58,.92) 100%); }
.hero__in { padding: 120px 0 64px; }
.hero__slogan { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: var(--gold-2); margin: 0 0 .3em; }
.hero h1 { color: #fff; max-width: 12ch; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 30px; font-weight: 600; font-size: 1.05rem; }
.hero__meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

.notice { background: var(--gold); color: var(--ink); }
.notice__in { display: flex; gap: 14px; align-items: center; padding: 14px 0; font-weight: 600; }
.notice__in strong { font-family: var(--display); font-size: 1.3rem; font-weight: 900; white-space: nowrap; }

/* ---------- Countdown: digits on pinned race bibs ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 2vw, 22px); }
.bib {
  position: relative; background: #fff; color: var(--ink); border-radius: var(--r-sm);
  padding: 26px 8px 14px; text-align: center; box-shadow: 0 2px 0 var(--line), 0 18px 40px -22px rgba(8,57,58,.45);
  border-top: 10px solid var(--earth);
}
.bib:nth-child(2) { border-top-color: var(--gold); }
.bib:nth-child(3) { border-top-color: var(--acacia); }
.bib:nth-child(4) { border-top-color: var(--ink); }
.bib::before, .bib::after { content: ""; position: absolute; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--sand); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.bib::before { left: 12px; } .bib::after { right: 12px; }
.bib__num { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.8rem, 8vw, 5.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.bib__lbl { display: block; font-weight: 600; color: var(--muted); font-size: .95rem; }
.bib.tick .bib__num { animation: flip .35s ease; }
@keyframes flip { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }

/* ---------- Quick tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.tile { position: relative; padding: 34px 26px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: #fff; overflow: hidden; }
.tile:nth-child(1) { background: var(--earth); }
.tile:nth-child(2) { background: var(--acacia); }
.tile:nth-child(3) { background: var(--ink); }
.tile:nth-child(4) { background: var(--gold); color: var(--ink); }
.tile strong { font-family: var(--display); font-size: 2.2rem; line-height: .95; font-weight: 900; }
.tile span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.tile:hover { color: inherit; }
.tile:hover .ico { transform: translateX(5px); }
.tile .ico { transition: transform .2s; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 130px; } }

/* ---------- Race distance cards ---------- */
.races { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.race { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 22px; display: flex; flex-direction: column; }
.race__dist { font-family: var(--display); font-weight: 900; font-size: 2.9rem; line-height: .9; color: var(--earth); }
.race:nth-child(2) .race__dist { color: var(--acacia); }
.race:nth-child(3) .race__dist { color: var(--ink); }
.race:nth-child(4) .race__dist { color: var(--gold); }
.race h3 { margin: .35em 0 .4em; font-size: 1.4rem; }
.race p { color: var(--muted); font-size: .96rem; flex: 1; }
.race__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.race__facts li { background: var(--sand); padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }

/* ---------- Why Gulu / badges ---------- */
.why { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 22px; align-items: stretch; }
.why__card { background: var(--ink-2); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.why__card img { height: 70px; width: auto; object-fit: contain; background: #fff; border-radius: 8px; padding: 8px; align-self: flex-start; }
.why__card p { margin: 0; flex: 1; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 85%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.quote { scroll-snap-align: start; background: #fff; border-radius: var(--r-md); padding: 30px; border-left: 6px solid var(--earth); display: flex; flex-direction: column; }
.quote:nth-child(2n) { border-left-color: var(--acacia); }
.quote:nth-child(3n) { border-left-color: var(--gold); }
.quote h3 { font-size: 1.7rem; }
.quote p { color: var(--muted); flex: 1; }
.quote footer { font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.scroller-nav { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
.round { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; font-size: 1.2rem; }
.round:hover { background: var(--ink); color: #fff; }

/* ---------- Downloads ---------- */
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.download { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; background: #fff; border-radius: var(--r-md); padding: 20px; border: 1px solid var(--line); }
.download img { border-radius: 8px; aspect-ratio: 3/4; object-fit: cover; width: 100%; box-shadow: 0 14px 28px -16px rgba(0,0,0,.5); }
@media (max-width: 760px) { .downloads { grid-template-columns: 1fr; } .download { grid-template-columns: 110px 1fr; } }

/* ---------- Sponsors marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 22px; width: max-content; animation: slide 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.logo-card { width: 170px; height: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); display: grid; place-items: center; padding: 14px; flex: none; }
.logo-card img { max-height: 70px; width: auto; object-fit: contain; }
@keyframes slide { to { transform: translateX(-50%); } }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.logo-grid .logo-card { width: auto; height: 120px; }

/* ---------- CTA band ---------- */
.cta { background: var(--earth); color: #fff; position: relative; overflow: hidden; }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 64px 0; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; max-width: 16ch; }
.cta p { margin: .4em 0 0; color: #CFF1E8; }

/* =====================================================================
   EVENT PAGE
   ===================================================================== */
.ev-hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.ev-hero .hero__media { z-index: -2; }
.ev-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(8,57,58,.35), rgba(8,57,58,.88) 75%); }
.ev-hero__logo { width: min(320px, 70vw); margin: 0 auto 22px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); background: rgba(255,255,255,.92); padding: 14px 22px; border-radius: 18px; }
.ev-date { font-family: var(--display); font-weight: 900; line-height: .82; margin: 0; color: #fff; }
.ev-date__day { display: block; font-size: clamp(7rem, 24vw, 15rem); color: var(--gold); }
.ev-date__rest { display: block; font-size: clamp(2.2rem, 7vw, 4.6rem); letter-spacing: .04em; }
.ev-hero__sub { font-weight: 600; font-size: 1.1rem; margin: 18px 0 0; color: #D8EEEA; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 2px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.ev-count { background: var(--sand); padding: 72px 0; }
.ev-count__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.ev-count__head h2 { margin: 0; }
.today-badge { font-family: var(--display); font-weight: 900; font-size: 1.6rem; background: var(--earth); color: #fff; padding: 4px 16px; border-radius: 6px; }
.location { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; padding: 22px 26px; border-radius: var(--r-md); }
.location h3 { color: #fff; margin: 0; font-size: 2rem; }
.location small { color: var(--gold-2); font-weight: 600; font-size: .9rem; display: flex; gap: 6px; align-items: center; }

/* Program timeline with a runner that moves as you scroll */
.program { position: relative; max-width: 760px; margin: 0 auto; padding-left: 74px; }
.program__track { position: absolute; left: 30px; top: 6px; bottom: 6px; width: 4px; background: repeating-linear-gradient(var(--line) 0 10px, transparent 10px 18px); border-radius: 4px; }
.program__fill { position: absolute; left: 30px; top: 6px; width: 4px; height: 0; background: var(--earth); border-radius: 4px; }
.runner { position: absolute; left: 10px; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(232,163,23,.25); transition: top .12s linear; z-index: 2; }
.runner svg { width: 26px; height: 26px; color: var(--ink); }
.program__item { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: baseline; padding: 22px 0; border-bottom: 1px dashed var(--line); }
.program__item::before { content: ""; position: absolute; left: -50px; top: 34px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.program__item.is-past::before { background: var(--earth); border-color: var(--earth); }
.program__time { font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--earth); }
.program__title { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .program { padding-left: 58px; } .program__track, .program__fill { left: 22px; } .runner { left: 2px; } .program__item::before { left: -42px; } .program__item { grid-template-columns: 1fr; gap: 2px; } }

/* Routes */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.chip { font: 700 1rem var(--body); padding: 10px 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-selected="true"] { background: var(--ink); color: #fff; }
.chip:hover:not([aria-selected="true"]) { background: var(--sand); }
.section--ink .chip { border-color: #fff; color: #fff; }
.section--ink .chip[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.route { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: stretch; }
.route__map { position: relative; background: var(--ink-2); border-radius: var(--r-md); overflow: hidden; min-height: 360px; display: grid; place-items: center; }
.route__map img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.route__soon { text-align: center; padding: 30px; }
.route__soon strong { display: block; font-family: var(--display); font-weight: 900; font-size: 3.4rem; color: var(--gold); line-height: 1; }
.route__soon svg.road { width: 220px; height: 90px; margin: 0 auto 10px; }
.route__info { background: var(--ink-2); border-radius: var(--r-md); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.route__info h3 { margin: 0; font-size: 2.2rem; }
.route__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.route__facts li { display: flex; gap: 10px; align-items: center; }
.route__facts .ico { color: var(--gold); }
@media (max-width: 860px) { .route { grid-template-columns: 1fr; } .route__map { min-height: 260px; } }

.kitreg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-md); overflow: hidden; }
.kitreg > div { padding: 36px; }
.kitreg__kit { background: var(--sand); }
.kitreg__reg { background: var(--earth); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.kitreg__reg h3 { color: #fff; font-size: 2.6rem; margin: 0; }
.kitreg__deadline { font-weight: 600; color: #CFF1E8; }
@media (max-width: 760px) { .kitreg { grid-template-columns: 1fr; } .kitreg > div { padding: 26px; } }

/* Prize money */
.prizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.prize { background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.prize__head { background: var(--ink); color: #fff; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; }
.prize__head h3 { color: var(--gold); margin: 0; font-size: 2.4rem; }
.prize ol { list-style: none; margin: 0; padding: 8px 22px 16px; }
.prize li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.prize li:last-child { border-bottom: 0; }
.prize li b { font-family: var(--display); font-size: 1.5rem; font-weight: 900; color: var(--earth); }
.pos { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); font-weight: 700; margin-right: 8px; }
.pos--1 { background: var(--gold); } .pos--2 { background: #D5D8E2; } .pos--3 { background: #E2B48A; }
.soon-card { background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 44px 30px; text-align: center; }
.soon-card strong { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4rem); color: var(--gold); line-height: 1; margin-bottom: 8px; }

/* Accommodation */
.stay { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; }
.carousel { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--ink-2); aspect-ratio: 4/3; }
.carousel__slides { display: flex; height: 100%; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.carousel__slides > * { flex: 0 0 100%; height: 100%; }
.carousel__slides img { width: 100%; height: 100%; object-fit: cover; }
.carousel__ph { display: grid; place-items: center; color: #fff; background: var(--beads) repeat; background-size: 64px 16px; }
.carousel__ph span { background: var(--ink); padding: 14px 20px; border-radius: 10px; font-weight: 600; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.carousel__btn--prev { left: 12px; } .carousel__btn--next { right: 12px; }
.carousel__count { position: absolute; right: 12px; bottom: 12px; background: var(--ink); color: #fff; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
.stay__info { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.stay__info h3 { margin: 0; font-size: 2.2rem; }
.stay__price { font-family: var(--display); font-weight: 900; font-size: 2.6rem; color: var(--earth); line-height: 1; }
.stay__price small { display: block; font-family: var(--body); font-size: .9rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
@media (max-width: 860px) { .stay { grid-template-columns: 1fr; } }

.photos-cta { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; background: var(--acacia); color: #fff; border-radius: var(--r-md); padding: 36px; }
.photos-cta h2 { color: #fff; margin: 0 0 .2em; }
.photos-cta p { margin: 0; color: #CFE4D7; }
@media (max-width: 700px) { .photos-cta { grid-template-columns: 1fr; } }
.photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 22px; }
.photo-strip img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }

/* ---------- Page banner (inner pages) ---------- */
.banner { background: var(--ink); color: #fff; padding: 70px 0 54px; position: relative; }
.banner h1 { color: #fff; font-size: clamp(3rem, 7vw, 5rem); margin: 0; }
.banner p { color: #B8D8D2; margin: .6em 0 0; max-width: 60ch; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; background: #fff; }
.form legend { font-family: var(--display); font-weight: 800; font-size: 1.5rem; padding: 0 8px; color: var(--ink); }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .85rem; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #B4CEC7; border-radius: 10px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid rgba(232,163,23,.45); outline-offset: 0; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .87rem; font-weight: 600; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
@media (max-width: 640px) { .form fieldset { grid-template-columns: 1fr; padding: 18px; } }

.race-pick { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.race-pick label { position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; display: block; }
.race-pick input { position: absolute; opacity: 0; }
.race-pick strong { display: block; font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.race-pick span { color: var(--muted); font-size: .9rem; }
.race-pick label:has(input:checked) { border-color: var(--earth); background: #E3F5EF; }
.race-pick label:has(input:focus-visible) { outline: 3px solid var(--gold); }

.reg-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.summary { position: sticky; top: 96px; background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 26px; }
.summary h3 { color: var(--gold); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 18px; }
.summary dt { color: #A9CFC9; } .summary dd { margin: 0; text-align: right; font-weight: 600; }
@media (max-width: 900px) { .reg-layout { grid-template-columns: 1fr; } .summary { position: static; } }

/* Confirmation ticket */
.ticket { max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(8,57,58,.5); }
.ticket__top { background: var(--earth); color: #fff; padding: 30px; }
.ticket__top h1 { color: #fff; font-size: 3rem; margin: 0; }
.ticket__ref { font-family: var(--display); font-weight: 900; font-size: 3.4rem; color: var(--ink); line-height: 1; }
.ticket__body { padding: 30px; display: grid; gap: 14px; }
.ticket__body dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.ticket__body dt { color: var(--muted); font-size: .85rem; } .ticket__body dd { margin: 0; font-weight: 700; }
.ticket__tear { border-top: 2px dashed var(--line); margin: 0 30px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--sand); font-weight: 700; color: var(--ink); }
tbody tr:hover { background: #F0F8F5; }
td.num { font-variant-numeric: tabular-nums; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 700; font-size: 1.1rem; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-family: var(--display); font-size: 2rem; color: var(--earth); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Gallery */
.gallery { columns: 3 260px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 30px 14px 12px; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(transparent, rgba(8,57,58,.85)); }
.lightbox { position: fixed; inset: 0; background: rgba(4,30,30,.94); display: none; place-items: center; z-index: 200; padding: 30px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; top: 18px; right: 18px; background: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }

.empty { text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: var(--r-md); color: var(--muted); }
.empty strong { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ico { color: var(--earth); margin-top: 4px; width: 1.4em; height: 1.4em; }

/* Footer */
.foot { background: var(--ink); color: #B3D3CD; padding: 60px 0 0; }
.foot h3 { color: #fff; font-size: 1.5rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot__logo { background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; }
.foot__slogan { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--gold); }
.foot__social { display: flex; gap: 14px; flex-wrap: wrap; }
.foot__base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--ink-2); margin-top: 40px; padding: 20px 0; font-size: .88rem; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }

/* Reveal on scroll — only the event page uses it, on major blocks */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.race__dist--word { font-size: 2.1rem; padding-top: .35em; }

/* Mobile menu: backdrop-filter would trap the fixed panel inside the header */
@media (max-width: 960px) {
  .nav { backdrop-filter: none; background: #fff; }
  .nav__links { visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
  .nav__links.is-open { visibility: visible; transition: transform .3s ease; }
}
html { overflow-x: clip; }
@media (max-width: 480px) { .prize li b { font-size: 1.2rem; } .prize li { align-items: center; } }

/* =====================================================================
   SIDE EVENT — GCM Medical Camp
   Takes the flyer's own look: leaf-green field, rust ribbon, white cards.
   ===================================================================== */
:root { --camp-1: #0D4F33; --camp-2: #1F7A3E; --rust: #B5531E; --camp-tint: #DDF0E2; }
.camp {
  position: relative; overflow: hidden; color: #fff; padding: clamp(64px, 9vw, 104px) 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(246,196,83,.22), transparent 38%),
    linear-gradient(135deg, var(--camp-1) 0%, var(--camp-2) 100%);
}
/* faint medical crosses in the background */
.camp::before {
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M30 18h12v12h12v12H42v12H30V42H18V30h12z' fill='%23fff'/%3E%3C/svg%3E");
}
.camp__grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px 44px; align-items: start; }
.camp__main, .camp__side { min-width: 0; }
.camp__tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); color: var(--gold-2); font-weight: 700; font-size: .92rem; }
.camp h2 { color: #fff; font-size: clamp(3rem, 7vw, 5.4rem); margin: 0; text-wrap: balance; }
.camp__ribbon {
  display: inline-block; margin: 14px 0 22px -18px; padding: 10px 26px 10px 18px;
  background: var(--rust); color: #fff; font-family: var(--display); font-weight: 900;
  font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.05;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%);
  padding-right: 40px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.6);
}
.camp__when { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; margin-bottom: 18px; }
.camp__when span { display: inline-flex; align-items: center; gap: 8px; }
.camp__when .ico { color: var(--gold-2); }
.camp__intro { color: #D6EEDD; max-width: 58ch; font-size: 1.05rem; }
.camp__services { background: #fff; color: var(--text); border-radius: var(--r-md); padding: 24px 26px; margin-top: 8px; }
.camp__services h3 { color: var(--camp-1); font-size: 1.7rem; margin-bottom: 14px; }
.camp__services ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.camp__services li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; line-height: 1.35; }
.camp__services li .ico { color: #fff; background: var(--camp-2); border-radius: 6px; padding: 3px; width: 1.45em; height: 1.45em; flex: none; margin-top: -1px; }
.camp__flyer { display: block; position: relative; border-radius: var(--r-md); overflow: hidden; border: 6px solid #fff; box-shadow: 0 30px 50px -30px rgba(0,0,0,.7); transform: rotate(1.5deg); }
.camp__flyer img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.camp__flyer span { position: absolute; inset: auto 0 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(13,79,51,.9)); color: #fff; font-weight: 700; text-align: center; }
.camp__flyer:hover { color: #fff; } .camp__flyer:hover img { transform: scale(1.02); } .camp__flyer img { transition: transform .4s ease; }
.camp__contacts { margin-top: 26px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-md); padding: 20px 22px; }
.camp__contacts h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.camp__contacts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.camp__contacts li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.camp__contacts strong { min-width: 9.5em; }
.camp__contacts a { color: var(--gold-2); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.camp__contacts a:hover { color: #fff; text-decoration: underline; }
.camp__partners { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.2); padding-top: 26px; margin-top: 8px; }
.camp__partners p { margin: 0 0 14px; font-weight: 700; color: #D6EEDD; }
.camp__logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.camp__logo { background: #fff; border-radius: 12px; height: 104px; display: grid; place-items: center; padding: 10px 14px; }
.camp__logo img { max-height: 84px; width: auto; object-fit: contain; }
@media (max-width: 900px) {
  .camp__grid { grid-template-columns: 1fr; }
  .camp__side { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 22px; align-items: start; }
  .camp__contacts { margin-top: 0; }
  .camp__flyer { transform: none; }
  .camp__logos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .camp__services ul { grid-template-columns: 1fr; }
  .camp__side { grid-template-columns: 1fr; }
  .camp__flyer { max-width: 320px; }
  .camp__ribbon { margin-left: -16px; }
  .camp__contacts strong { min-width: 0; width: 100%; }
}

/* Home page highlight strip */
.camp-strip { display: block; text-decoration: none; color: #fff; background: linear-gradient(90deg, var(--camp-1), var(--camp-2)); border-bottom: 5px solid var(--rust); }
.camp-strip:hover { color: #fff; }
.camp-strip__in { display: flex; align-items: center; gap: 22px; padding: 20px 0; }
.camp-strip__date { flex: none; width: 74px; height: 74px; border-radius: 12px; background: #fff; color: var(--camp-1); display: grid; place-content: center; text-align: center; font-weight: 700; font-size: .85rem; line-height: 1; }
.camp-strip__date b { font-family: var(--display); font-weight: 900; font-size: 2.3rem; display: block; color: var(--rust); }
.camp-strip__text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.camp-strip__text strong { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; }
.camp-strip__text span { color: #D6EEDD; }
.camp-strip:hover .btn .ico { transform: translateX(4px); } .camp-strip .btn .ico { transition: transform .2s; }
@media (max-width: 700px) { .camp-strip__in { flex-wrap: wrap; gap: 14px; } .camp-strip__date { width: 60px; height: 60px; } .camp-strip__date b { font-size: 1.8rem; } }
.camp__contacts li { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 2px 12px; }
.camp__contacts strong { min-width: 0; }
.camp__phones { display: flex; flex-wrap: wrap; gap: 2px 14px; min-width: 0; }
.camp__flyer span { inset: auto 12px 12px auto; padding: 7px 14px; border-radius: 999px; background: var(--camp-1); font-size: .9rem; }
@media (max-width: 600px) { .camp__contacts li { grid-template-columns: 1fr; } }
