/* Run InSync 3.0 — site styles
   Brand colours (Run InSync communication guidelines): dawn, midnight, charcoal + white */
:root {
  --dawn: #F38020;
  --dawn-soft: #FDF1E6;
  --midnight: #23475F;
  --midnight-deep: #1A3647;
  --charcoal: #595959;
  --white: #FFFFFF;
  --line: #E4E8EB;
  --mist: #F4F6F8;
  --radius: 14px;
  --max: 1160px;
  --shadow: 0 6px 24px rgba(35, 71, 95, .10);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--midnight); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--midnight); text-underline-offset: 3px; }
a:hover { color: var(--dawn); }
strong { color: var(--midnight); }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--midnight); color: var(--white); padding: 10px 18px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }
:focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--mist { background: var(--mist); }
.section--midnight { background: var(--midnight); color: #E8EEF2; }
.section--midnight h2, .section--midnight h3, .section--midnight strong { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--midnight); margin-bottom: 12px; padding-left: 14px; border-left: 4px solid var(--dawn);
}
.section--midnight .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--white); }
.lead { font-size: 1.2rem; color: var(--charcoal); }

/* Buttons — dawn buttons use midnight text at large/bold size for contrast */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  font-family: inherit; font-size: 1.2rem; font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--register { background: var(--dawn); color: var(--midnight-deep); }
.btn--register:hover { background: #F69140; color: var(--midnight-deep); }
.btn--donate { background: var(--midnight); color: var(--white); }
.btn--donate:hover { background: var(--midnight-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--midnight); }
.btn--outline { background: transparent; color: var(--midnight); border-color: var(--midnight); }
.btn--outline:hover { background: var(--midnight); color: var(--white); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 62px; width: auto; }
.brand-text { font-weight: 800; font-size: 1.35rem; color: var(--midnight); }
.brand-text span { color: var(--dawn); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-list a {
  display: block; padding: 10px 12px; font-size: .98rem; font-weight: 500; color: var(--midnight);
  text-decoration: none; border-radius: 8px;
}
.nav-list a:hover { background: var(--mist); color: var(--midnight); }
.nav-list a[aria-current="page"] { color: var(--midnight); box-shadow: inset 0 -3px 0 var(--dawn); border-radius: 0; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--midnight); border-radius: 10px;
  width: 48px; height: 48px; cursor: pointer; color: var(--midnight);
}
.nav-toggle svg { width: 24px; height: 24px; }
.mobile-actions { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; padding: 12px 20px 20px;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--dawn); padding-left: 16px; }
  .header-actions .btn--donate { display: none; }
  .mobile-actions { display: flex; gap: 10px; margin-top: 16px; }
  .mobile-actions .btn { flex: 1; }
}
@media (max-width: 480px) {
  .brand img { height: 50px; }
  .header-actions .btn--register { padding: 8px 16px; font-size: .95rem; }
}

/* Hero */
.hero { position: relative; color: var(--white); background: var(--midnight-deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(26,54,71,.94) 0%, rgba(26,54,71,.78) 48%, rgba(26,54,71,.35) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px); max-width: 720px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--dawn); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 32px; font-size: 1.1rem; font-weight: 500; }
.hero-meta span { display: inline-flex; align-items: center; gap: 10px; }
.hero-meta svg { width: 22px; height: 22px; color: var(--dawn); flex-shrink: 0; }
.hashtag { margin-top: 26px; font-weight: 600; color: #F7B37A; letter-spacing: .02em; }

/* Countdown */
.countdown-bar { background: var(--dawn); color: var(--midnight-deep); }
.countdown-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 22px 20px; }
.countdown-label { font-weight: 700; font-size: 1.15rem; }
.countdown { display: flex; gap: 12px; }
.countdown div { text-align: center; min-width: 74px; background: var(--white); border-radius: 12px; padding: 8px 10px; }
.countdown b { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--midnight); font-variant-numeric: tabular-nums; }
.countdown small { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--midnight); }
.countdown-close { font-weight: 600; }

/* Cards & grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 2px 0 rgba(35,71,95,.03);
}
.card h3 { margin-bottom: .4em; }

/* Race cards */
.race-card { position: relative; display: flex; flex-direction: column; border-top: 6px solid var(--dawn); }
.race-card .distance { font-size: 3.2rem; font-weight: 800; color: var(--midnight); line-height: 1; letter-spacing: -.03em; }
.race-card .distance span { font-size: 1.4rem; font-weight: 700; margin-left: 4px; }
.race-card .tag {
  position: absolute; top: 22px; right: 22px; background: var(--midnight); color: var(--white);
  font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase;
}
.race-facts { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.race-facts li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.race-facts li span:first-child { color: var(--charcoal); }
.race-facts li span:last-child { color: var(--midnight); font-weight: 600; text-align: right; }
.race-card .btn { margin-top: auto; }
.price { font-size: 1.8rem; font-weight: 800; color: var(--midnight); }
.price small { font-size: .9rem; font-weight: 500; color: var(--charcoal); }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--midnight); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 24px; border-left: 4px solid var(--dawn); background: rgba(255,255,255,.06); border-radius: 0 12px 12px 0; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--white); line-height: 1.1; font-weight: 800; }
.stat span { color: #D5DEE5; }

/* Feature list */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px; background: var(--dawn-soft);
  display: grid; place-items: center; color: var(--midnight);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.15rem; margin-bottom: .3em; }
.feature p { margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--midnight); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Cause / CTA band */
.cta-band {
  background: var(--midnight); color: #E8EEF2; border-radius: 22px; padding: clamp(32px, 6vw, 64px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 36px solid var(--dawn); opacity: .9;
}
.cta-band h2 { color: var(--white); }
.cta-band > * { position: relative; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } .cta-band::before { display: none; } }

/* Partners */
.sponsor-tier { text-align: center; }
.sponsor-tier .tier-label { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal); margin-bottom: 14px; }
.logo-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; padding: 24px; min-height: 150px;
}
.logo-box img { max-height: 96px; width: auto; object-fit: contain; }
.partner-row { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.partner-row:last-child { border-bottom: 0; }
@media (max-width: 760px) { .partner-row { grid-template-columns: 1fr; } }
.ngo-wall { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.ngo-wall img { margin: 0 auto; max-width: 820px; width: 100%; }

/* Join cards */
.join-card { border-radius: var(--radius); padding: 32px; color: #E8EEF2; background: var(--midnight); }
.join-card--dawn { background: var(--dawn); color: var(--midnight-deep); }
.join-card h3 { color: inherit; font-size: 1.5rem; }
.join-card--dawn h3, .join-card--dawn strong, .join-card--dawn a { color: var(--midnight-deep); }
.join-card:not(.join-card--dawn) h3, .join-card:not(.join-card--dawn) strong, .join-card:not(.join-card--dawn) a { color: var(--white); }
.contact-lines { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-weight: 600; }
.contact-lines a { text-decoration: underline; }

/* Page hero (inner pages) */
.page-hero { background: var(--midnight); color: #E8EEF2; padding: clamp(56px, 8vw, 88px) 0; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 380px; height: 380px; border-radius: 50%;
  border: 48px solid var(--dawn); opacity: .85;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero p { max-width: 640px; font-size: 1.15rem; margin: 0; }
@media (max-width: 640px) { .page-hero::after { width: 220px; height: 220px; border-width: 28px; right: -90px; bottom: -110px; } }

/* Timeline / steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 56px; height: 56px; border-radius: 50%; background: var(--dawn); color: var(--midnight-deep);
  display: grid; place-items: center; font-weight: 800; font-size: 1.4rem;
}
.step h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.step p { margin: 0; }

/* Schedule table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--white); }
caption { text-align: left; padding: 16px 20px; font-weight: 700; color: var(--midnight); }
th, td { text-align: left; padding: 16px 20px; border-top: 1px solid var(--line); }
thead th { background: var(--midnight); color: var(--white); border-top: 0; font-weight: 600; }
tbody th { color: var(--midnight); }

/* FAQ */
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: 1.5rem; }
details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--white); }
summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; color: var(--midnight);
  position: relative; font-size: 1.05rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 500; color: var(--dawn);
}
details[open] summary::after { content: "–"; }
details[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 16px 22px 6px; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--midnight); }
.field .hint { font-size: .9rem; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--midnight); padding: 13px 14px;
  border: 2px solid #B9C4CC; border-radius: 10px; background: var(--white); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--midnight); outline: 3px solid var(--dawn); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .92rem; }
.form-status { font-weight: 600; color: var(--midnight); }

/* Footer */
.site-footer { background: var(--midnight-deep); color: #C9D5DD; padding: 64px 0 28px; font-size: .98rem; }
.site-footer a { color: #E8EEF2; text-decoration: none; }
.site-footer a:hover { color: var(--dawn); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 74px; width: auto; background: var(--white); border-radius: 12px; padding: 6px 10px; }
.footer-brand p { margin-top: 16px; max-width: 320px; }
.site-footer h2 { font-size: 1rem; color: var(--white); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--dawn); color: var(--midnight-deep); }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem;
}
.footer-bottom .tagline { color: var(--dawn); font-weight: 600; }

/* Sticky mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(35,71,95,.12);
  }
  .mobile-bar .btn { flex: 1; min-height: 48px; font-size: 1.05rem; padding: 8px 12px; }
  body { padding-bottom: 76px; }
}

/* Misc */
.note { background: var(--dawn-soft); border-left: 4px solid var(--dawn); padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--midnight); }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 500; color: var(--midnight); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--dawn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A3647' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- v3 additions ---------- */
.photo--tall { aspect-ratio: 4 / 5; max-height: 620px; }
.gallery { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery img { transition: transform .4s ease, filter .4s ease; }


/* Testimonials */
.quote {
  margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  border-top: 6px solid var(--dawn);
}
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font-size: 1.08rem; color: var(--midnight); font-weight: 500; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 14px; font-size: .95rem; line-height: 1.4; }
.avatar {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--midnight); color: var(--white);
  display: grid; place-items: center; font-weight: 700; letter-spacing: .02em;
}

/* Video (loads YouTube only when played) */
.video {
  position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: var(--midnight-deep); box-shadow: var(--shadow);
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 88px; height: 88px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--dawn); color: var(--midnight-deep); display: grid; place-items: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: transform .15s ease;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 38px; height: 38px; margin-left: 4px; }

/* In the news */
.news { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news .container { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; justify-content: center; }
.news-label { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal); margin: 0; }
.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; }
.news-list li { font-weight: 700; font-size: 1.1rem; color: var(--midnight); }
.news-list a { text-decoration: none; border-bottom: 2px solid var(--dawn); }

/* ---------- v4 additions ---------- */
.ngo-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.ngo-list li {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--dawn);
  border-radius: 10px; padding: 14px 16px; font-weight: 600; color: var(--midnight); line-height: 1.35; font-size: .98rem;
}
.corp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 860px) { .corp-grid { grid-template-columns: repeat(2, 1fr); } }
.logo-box--empty { border: 2px dashed #C7D0D6; background: var(--mist); min-height: 130px; }
.logo-box--empty span { color: var(--charcoal); font-weight: 600; font-size: .95rem; }

/* Legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; scroll-margin-top: 100px; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .45em; }
.legal-toc { background: var(--mist); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 8px; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px; }
.legal-toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: 6px; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-contact { margin: 0; display: grid; gap: 10px; }
.legal-contact div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.legal-contact dt { font-weight: 700; color: var(--midnight); }
.legal-contact dd { margin: 0; }
@media (max-width: 520px) { .legal-contact div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- v5: Race Day ---------- */
.rd-banner { background: var(--midnight-deep); color: #E8EEF2; }
.rd-banner-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 20px; }
.rd-banner p { margin: 0; font-weight: 600; }
.rd-banner .btn--donate { background: var(--white); color: var(--midnight); }
.soon-pill {
  display: inline-block; background: var(--dawn-soft); color: var(--midnight); border: 1px solid #F7C9A0;
  font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px;
}
.rd-card { display: flex; flex-direction: column; gap: 6px; }
.rd-card .feature-icon { margin-bottom: 10px; }
.rd-card .btn { margin-top: auto; }
.rd-meta { font-size: .95rem; }
.btn--soon { background: var(--mist); color: var(--charcoal); border: 2px dashed #B9C4CC; cursor: default; }
.btn--soon:hover { transform: none; }
.rd-card.is-live { border-top: 6px solid var(--dawn); }
.rd-route img { border-radius: 10px; margin-bottom: 12px; border: 1px solid var(--line); }
.rd-route .btn { margin-top: 6px; }
@media (max-width: 1240px) and (min-width: 1081px) { .nav-list a { padding: 10px 8px; font-size: .92rem; } }
.nav-list a { white-space: nowrap; }

/* ---------- v6: header logos ---------- */
.brand-group { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.brand img { height: 68px; width: auto; }
.brand-partner { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding-left: 16px; border-left: 1px solid var(--line); }
.brand-partner span { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal); line-height: 1; }
.brand-partner img { height: 33px; width: auto; }
.footer-brand img { height: 84px; width: auto; background: none; padding: 0; border-radius: 0; }
@media (max-width: 1260px) { .brand-group { gap: 12px; } .brand-partner { padding-left: 12px; } }
@media (max-width: 480px) {
  .brand img { height: 52px; }
  .brand-group { gap: 10px; }
  .brand-partner { padding-left: 10px; }
  .brand-partner span { font-size: .55rem; }
  .brand-partner img { height: 26px; }
}
@media (max-width: 400px) { .header-actions .btn--register { display: none; } }

/* ---------- v7: "Supported by" header lockup, logos same height ---------- */
.site-header .header-inner { max-width: 1340px; }
.brand-group { gap: 18px; }
.brand img, .brand-partner img { height: 60px; width: auto; }
.brand-partner { flex-direction: row; align-items: center; gap: 12px; padding-left: 0; border-left: 0; }
.brand-partner span { font-size: .9rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--midnight); white-space: nowrap; }
.nav-list a { padding: 10px 9px; font-size: .95rem; }
@media (max-width: 1260px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; padding: 12px 20px 20px; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--dawn); padding-left: 16px; }
  .header-actions .btn--donate { display: none; }
  .mobile-actions { display: flex; gap: 10px; margin-top: 16px; }
  .mobile-actions .btn { flex: 1; }
}
@media (max-width: 640px) {
  .brand img, .brand-partner img { height: 46px; }
  .brand-group { gap: 10px; }
  .brand-partner { gap: 8px; }
  .brand-partner span { font-size: .72rem; }
  .header-actions .btn--register { display: none; }
}
@media (max-width: 360px) {
  .brand img, .brand-partner img { height: 40px; }
  .brand-partner span { font-size: .66rem; }
}

/* v8.1: balance logo weight (Bajaj ≈ 2/3 of the Run InSync badge, as in the reference lockup) */
.brand-partner img { height: 40px; }
@media (max-width: 640px) { .brand-partner img { height: 31px; } }
@media (max-width: 360px) { .brand-partner img { height: 27px; } }

/* ---------- v9: co-branding lockup (badge | divider | "Supported by" above Bajaj) ---------- */
.brand-group { gap: 16px; }
.brand-divider { width: 2px; align-self: stretch; margin: 14px 0; background: var(--dawn); border-radius: 2px; }
.brand-partner { flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-partner span { font-size: .75rem; font-weight: 700; color: var(--midnight); letter-spacing: .01em; line-height: 1; }
.brand-partner img { height: 40px; }
@media (max-width: 640px) {
  .brand-group { gap: 10px; }
  .brand-divider { margin: 10px 0; }
  .brand-partner { gap: 3px; }
  .brand-partner span { font-size: .66rem; }
  .brand-partner img { height: 31px; }
}
@media (max-width: 360px) { .brand-partner img { height: 27px; } .brand-partner span { font-size: .62rem; } }
.logo-box img { max-height: 96px; max-width: 100%; }

/* ---------- v9.1: bigger lockup + Bajaj logo centred on the badge, label above ---------- */
.brand img { height: 64px; }
.brand-partner img { height: 46px; }
.brand-partner { transform: translateY(-8px); }      /* half of label height + gap, so the logo sits on the badge's centre line */
.brand-divider { margin: 16px 0; }
@media (max-width: 640px) {
  .brand img { height: 48px; }
  .brand-partner img { height: 33px; }
  .brand-partner { transform: translateY(-6px); }
  .brand-divider { margin: 11px 0; }
}
@media (max-width: 360px) {
  .brand img { height: 42px; }
  .brand-partner img { height: 29px; }
}
.header-inner { min-height: 90px; }
@media (max-width: 640px) { .header-inner { min-height: 74px; } }

/* ---------- v10 ---------- */
.partner-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 1080px) { .partner-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .partner-strip { grid-template-columns: repeat(2, 1fr); } }
.partner-strip .tier-label { min-height: 2.6em; display: flex; align-items: flex-end; justify-content: center; line-height: 1.3; }
.partner-strip .logo-box { min-height: 130px; padding: 18px; }
.partner-strip .logo-box img { max-height: 80px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal-callout { background: var(--dawn-soft); border-left: 4px solid var(--dawn); padding: 16px 20px; border-radius: 0 10px 10px 0; margin-bottom: 8px; }
.legal-callout p { margin: 0; color: var(--midnight); font-weight: 600; }
.legal table { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; margin: 12px 0 20px; }
.legal td, .legal th { vertical-align: top; padding: 12px 14px; }
.legal thead th { background: var(--mist); color: var(--midnight); }

/* ---------- v11: NGO logo wall ---------- */
.ngo-wall-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.ngo-wall-grid li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; height: 110px; padding: 14px; display: grid; place-items: center; }
.ngo-wall-grid li.is-dark { background: var(--midnight); }
.ngo-wall-grid img { max-width: 100%; max-height: 80px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 480px) { .ngo-wall-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .ngo-wall-grid li { height: 96px; padding: 10px; } }
.ngo-wall-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.ngo-wall-grid li { flex: 0 0 calc((100% - 5 * 14px) / 6); }
@media (max-width: 960px) { .ngo-wall-grid li { flex-basis: calc((100% - 3 * 14px) / 4); } }
@media (max-width: 640px) { .ngo-wall-grid li { flex-basis: calc((100% - 2 * 14px) / 3); } }
@media (max-width: 480px) { .ngo-wall-grid li { flex-basis: calc((100% - 10px) / 2); } }

/* ---------- v12: PwD registration box ---------- */
.pwd-reg {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  background: var(--white); border: 2px solid var(--midnight); border-radius: var(--radius); padding: 24px 28px;
}
.pwd-reg h3 { margin: 0 0 6px; font-size: 1.25rem; }
.pwd-reg p { margin: 0; max-width: 640px; }
.pwd-reg .btn { flex-shrink: 0; }
.pwd-reg[hidden] { display: none; }

/* v13: ABBF tagline + model */
.brand-tagline { color: var(--dawn); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; margin: 0 0 12px; }
.abbf-model { list-style: none; padding: 0; margin: 8px 0 24px; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: m; }
.abbf-model li { position: relative; background: var(--white); border: 1px solid rgba(35,71,95,.2); border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; color: var(--midnight); }
.abbf-model li:not(:last-child)::after { content: "\2192"; margin-left: 10px; color: var(--dawn); }
/* v14: ABBF organiser block — narrower logo column, wider text */
.split--abbf { grid-template-columns: .75fr 1.25fr; }
.split--abbf .abbf-logo-box { min-height: 240px; }
@media (max-width: 860px) { .split--abbf { grid-template-columns: 1fr; } .split--abbf .abbf-logo-box { min-height: 180px; } }
.split--abbf { align-items: start; }
.split--abbf .abbf-logo-box { min-height: 330px; margin-top: 8px; }
