/* Joshua Nkomo Peace Marathon.
   Calm by design: a near-black canvas, one warm gold taken from the race logo, hairlines instead of
   boxes, and slow easing. One type family, Archivo, used wide and light for display, condensed and
   heavy for race titles, and normal for reading. Colours are tokens, so a .light section re-themes
   everything inside it. */

/* The default theme is white and gold. A .dark section re-themes everything inside it to black. */
:root {
  --bg: #ffffff;
  --bg-2: #f8f5ec;
  --card: #ffffff;
  --fg: #111312;
  --muted: #5f625d;
  --line: rgba(17, 19, 18, .13);
  --line-strong: rgba(17, 19, 18, .3);
  --field: #ffffff;
  --gold: #8f6a0a;         /* gold for small text on white */
  --gold-lg: #b98c12;      /* gold for large numbers on white */
  --gold-fill: #e4b53a;    /* gold for surfaces */
  --ember: #d9681f;
  --on-gold: #15130b;
  --danger: #a33a1c;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
.dark {
  --bg: #0b0d0c;
  --bg-2: #131615;
  --card: #181c1a;
  --fg: #f7f5ef;
  --muted: #a7aaa5;
  --line: rgba(247, 245, 239, .15);
  --line-strong: rgba(247, 245, 239, .32);
  --field: #0f1211;
  --gold: #e4b53a;
  --gold-lg: #e4b53a;
  --ember: #f0803c;
  --danger: #e58a6c;
  color-scheme: dark;
  background: var(--bg);
  color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
small { font-size: .875rem; }
em { font-style: normal; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .3s; }
a:hover { color: var(--gold); }
.entry-group[hidden] { display: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0 0 .55em; font-weight: 300; text-wrap: balance; }
/* Wide, light capitals for the big moments */
h1 { font-size: clamp(2rem, 4.8vw, 4.2rem); font-stretch: 125%; line-height: 1.16; letter-spacing: .1em; text-transform: uppercase; }
/* Quiet sentence case for section headings */
h2 { font-size: clamp(1.75rem, 3.2vw, 2.9rem); line-height: 1.14; letter-spacing: -.012em; }
h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.3; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap-wide { width: min(1440px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 440px; }
.center { text-align: center; max-width: 720px; }
.muted, .req, .opt { color: var(--muted); }
.fine { font-size: .875rem; color: var(--muted); }
.break { overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-fill); color: var(--on-gold); padding: 8px 14px; border-radius: 6px; z-index: 3000; }
.skip:focus { left: 8px; }
.script { color: var(--gold); }

/* Small label with a gold tick */
.kicker { display: flex; align-items: center; gap: 11px; margin-bottom: 1.3em; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ''; flex: none; width: 2px; height: 13px; background: var(--gold-fill); }
.kicker-dark { color: var(--muted); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 300; max-width: 38em; }
.section-lede { max-width: 40em; font-size: 1.125rem; font-weight: 300; color: var(--muted); }
.display-xl, .display-lg { font-size: clamp(1.75rem, 3.2vw, 2.9rem); }

.text-link, .arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .4s, color .4s; }
.text-link:hover, .arrow-link:hover { border-color: var(--gold); }
.text-link::after, .arrow-link::after { content: '↗'; font-size: .9em; transition: transform .5s var(--ease); }
.text-link:hover::after, .arrow-link:hover::after { transform: translate(3px, -3px); }
.back::after { content: none; }
.back::before { content: '←'; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 22px; border: 1px solid transparent; border-radius: 8px; font: 500 .975rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .4s, color .4s, border-color .4s; }
.btn-sun { background: var(--gold-fill); color: var(--on-gold); }
.btn-sun:hover { background: #f1c654; color: var(--on-gold); }
.btn-ink { background: var(--fg); color: var(--bg); }
.btn-ink:hover { background: var(--gold); color: var(--on-gold); }
.btn-ghost, .btn-line { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn-ghost:hover, .btn-line:hover { border-color: var(--fg); color: var(--fg); }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-wide { width: 100%; }
.btn-small { min-height: 36px; padding: 5px 14px; font-size: .9rem; }
.btn-go::after { content: '↗'; transition: transform .5s var(--ease); }
.btn-go:hover::after { transform: translate(3px, -3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.actions-center { justify-content: center; }
.link-btn { background: none; border: 0; padding: 4px; font: 500 .925rem var(--sans); color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Floating glass navigation */
.site-header { position: sticky; top: 14px; z-index: 1100; height: 0; display: flex; justify-content: center; align-items: flex-start; padding-inline: 14px; }
.header-pill { display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 8px 0 12px; background: rgba(11, 13, 12, .6); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); color: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, .1); transition: background-color .5s; }
/* Faintest over a dark opening section; .6 elsewhere keeps white text readable on white pages. */
.nav-ready:not(.scrolled):not(.nav-open):has(+ main > .dark:first-child) .header-pill { background: rgba(11, 13, 12, .26); }
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; margin-right: 8px; }
.brand img { width: auto; height: 46px; }
.brand:hover { color: inherit; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { display: block; padding: 9px 13px; font-size: .925rem; text-decoration: none; color: #fff; border-radius: 8px; transition: color .3s, background-color .3s; }
.nav a:hover { color: #fff; background: rgba(11, 13, 12, .35); }
.nav a[aria-current="page"] { color: #f1c654; }
.nav a[aria-current="page"]:not(.nav-cta) { background: rgba(11, 13, 12, .45); }
.nav a.nav-cta { margin-left: 6px; padding-inline: 18px; background: #e4b53a; color: #15130b; font-weight: 500; }
.nav a.nav-cta:hover { background: #f1c654; color: #15130b; }
@media (min-width: 681px) { .nav-toggle { display: none; } }
.nav-toggle { background: none; border: 1px solid rgba(255, 255, 255, .45); border-radius: 8px; color: inherit; font: 500 .9rem var(--sans); padding: 8px 14px; cursor: pointer; margin-left: auto; }

/* Hero: photo with glass cards sliding in around the runners */
.hero { position: relative; min-height: 100svh; display: flex; color: #fff; overflow: hidden; background: #0b0d0c; }
.hero-frame { position: absolute; inset: 0; overflow: hidden; }
.motion .hero-frame { animation: hero-open 1.6s var(--ease) both; }
@keyframes hero-open { from { clip-path: inset(7% 6% 8% 6% round 26px); } to { clip-path: inset(0 0 0 0 round 0); } }
.hero-img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 18%; will-change: translate; }
.hero-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 13, 12, .68) 0%, rgba(11, 13, 12, .18) 26%, rgba(11, 13, 12, .34) 52%, rgba(11, 13, 12, .78) 100%); }
.hero-inner { position: relative; z-index: 1; width: min(1320px, 100% - 40px); margin-inline: auto; padding-block: 88px 26px; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(150px, 25vh, 290px); }
.hero-title { text-align: center; }
.hero-kicker { display: inline-block; margin: 0 0 12px; padding: 4px 14px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(11, 13, 12, .5); border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 5.7vw, 5.5rem); font-stretch: 62%; font-weight: 800; line-height: 1; letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1.5px #e4b53a; }
.motion .hero-title > * { animation: focus-in 1.3s var(--ease) both; }
.motion .hero-kicker { animation-delay: .45s; }
.motion .hero h1 { animation-delay: .6s; }
@keyframes focus-in { from { opacity: 0; filter: blur(10px); transform: translateY(14px); } to { opacity: 1; filter: blur(0); transform: none; } }

.bento { display: grid; grid-template-columns: 1fr 1fr .86fr; gap: 12px; align-items: stretch; }
.bento-col { display: grid; gap: 12px; grid-auto-rows: minmax(0, auto); align-content: stretch; }
.bcard { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 18px; text-decoration: none; min-width: 0; transition: translate .7s var(--ease), box-shadow .7s var(--ease); }
a.bcard:hover { translate: 0 -4px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); color: inherit; }
.bcard p { margin: 0; }
.bcard-glass { background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); color: #fff; }
.bcard-white { background: #fff; color: #111312; }
.bcard-black { background: rgba(11, 13, 12, .84); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; }
.bcard-gold { background: #e4b53a; color: #15130b; }
.bcard-gold:hover { color: #15130b; }
.bcard-label { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.bcard-date { font-size: clamp(1.9rem, 3.1vw, 2.9rem); font-stretch: 62%; font-weight: 800; line-height: 1; text-transform: uppercase; }
.bcard-sub { font-size: .9rem; line-height: 1.35; }
.bcard-big { font-size: clamp(1.45rem, 2.2vw, 2rem); font-stretch: 62%; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.bcard-count { font-size: .95rem; line-height: 1.25; }
.bcard-count b { font-size: clamp(2.2rem, 3.6vw, 3.2rem); font-stretch: 62%; font-weight: 800; line-height: 1; color: #e4b53a; margin-right: 4px; font-variant-numeric: tabular-nums; }
.bcard-black .ticks { height: 14px; gap: 3px; }
.bcard-black .tick { max-width: none; background: rgba(255, 255, 255, .25); }
.bcard-black .tick-open { background: #e4b53a; }
.bcard-black .tick-bid { background: #fff; }
.bcard-go { margin-top: auto; font-weight: 600; font-size: .95rem; }
.bcard-go i, .pill-btn i, .bcard-map-text i { font-style: normal; display: inline-block; transition: transform .6s var(--ease); }
a.bcard:hover .bcard-go i, .pill-btn:hover i, a.bcard:hover .bcard-map-text i { transform: translateX(5px); }
.pill-btn { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; background: #fff; color: #111312; border-radius: 999px; font-size: .9rem; font-weight: 500; text-decoration: none; }
.pill-btn i { display: flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: #111312; color: #fff; }
.pill-btn:hover { color: #111312; }
.pill-gold { background: #e4b53a; color: #15130b; }
.pill-gold:hover { color: #15130b; }
.bcard-map { position: relative; padding: 14px; background: #fff; color: #111312; overflow: hidden; }
.bcard-map svg { flex: 1; min-height: 0; width: 100%; height: 100%; max-height: 300px; display: block; }
.bcard-map-text { display: flex; align-items: baseline; gap: 7px; font-size: 1.05rem; font-stretch: 62%; font-weight: 700; text-transform: uppercase; }
.bcard-map-text b { font-size: 1.7rem; font-weight: 800; }
.bcard-map-text i { margin-left: auto; }
.bcard-map .course-full { stroke: #c9971c; stroke-width: 4; }
.bcard-map .course-half { stroke: #111312; stroke-width: 3; }
.bcard-map .course-pt { fill: #fff; stroke: #c9971c; stroke-width: 3; }
.bcard-map .course-pt-bid { fill: #c9971c; stroke: #fff; }
.bcard-map .course-pt-reserved, .bcard-map .course-pt-sponsored { fill: #111312; stroke: #fff; }
.motion .from-left, .motion .from-right, .motion .from-up, .motion .from-down { animation: card-in 1.5s var(--ease) both; }
.motion .from-left { --from: -46px, 0; animation-delay: 1s; }
.motion .from-left + .from-left { animation-delay: 1.15s; }
.motion .from-up { --from: 0, 40px; animation-delay: 1.3s; }
.motion .from-down { --from: 0, 46px; animation-delay: 1.45s; }
.motion .from-right { --from: 46px, 0; animation-delay: 1.15s; }
@keyframes card-in { from { opacity: 0; filter: blur(10px); transform: translate(var(--from)); } to { opacity: 1; filter: blur(0); transform: none; } }

/* Sticky race badge on the side of every page */
.side-badge { position: fixed; z-index: 1050; right: 12px; top: 34%; translate: 0 -50%; width: clamp(66px, 5.6vw, 88px); display: block; transition: scale .7s var(--ease); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .3)); }
.side-badge:hover { scale: 1.08; }
.side-badge img { width: 100%; height: auto; }
/* Sits directly under the Comrades badge. White card because the artwork is black on white. */
.side-badge-edition { top: calc(34% + clamp(66px, 5.6vw, 88px) * 1.08); padding: 6px; background: #fff; border-radius: 12px; }
.motion .side-badge { animation: badge-in 1.5s 1.6s var(--ease) both; }
@keyframes badge-in { from { opacity: 0; transform: translateX(40px) rotate(14deg); } to { opacity: 1; transform: none; } }

/* Countdown */
.countdown-grid { display: inline-grid; grid-auto-flow: column; gap: 2px; justify-self: start; padding: 10px 16px 9px; background: rgba(16, 20, 19, .55); border: 1px solid rgba(242, 239, 231, .16); border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.countdown-grid > div { min-width: 58px; text-align: center; }
.countdown-grid b { display: block; font-size: clamp(1.15rem, 1.9vw, 1.55rem); font-stretch: 125%; font-weight: 300; letter-spacing: .08em; line-height: 1.2; font-variant-numeric: tabular-nums; color: #f2efe7; }
.countdown-grid span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #e4b53a; }

/* Rhythm */
.section { padding-block: clamp(70px, 10vw, 140px); background: var(--bg); color: var(--fg); position: relative; }
.paper { background: var(--bg); }
.sand { background: var(--bg-2); }
/* The organisers' logos, where the About page turns from white to cream. */
.organisers { padding-block: clamp(36px, 5vw, 60px); border-block: 1px solid var(--line); text-align: center; }
.organisers .kicker { justify-content: center; }
.organisers-row { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 88px); }
.organisers-row a { display: block; transition: opacity .3s; }
.organisers-row a:hover { opacity: .8; }
.org-trust { display: block; width: auto; height: clamp(46px, 6vw, 74px); }
.org-nust { display: block; width: auto; height: clamp(44px, 5.2vw, 64px); }
.call, .trust, .tiers, .enquire { background: var(--bg-2); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-rev > :first-child { order: 2; }

/* Things come into focus as they arrive */
.rise { opacity: 0; filter: blur(8px); transform: translateY(20px); transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease); }
.rise.in { opacity: 1; filter: blur(0); transform: none; }

/* Statement: words sharpen one by one as you scroll */
.statement-section { padding-bottom: clamp(50px, 7vw, 90px); }
.statement { font-size: clamp(1.5rem, 3.1vw, 2.8rem); font-weight: 300; line-height: 1.26; letter-spacing: -.018em; text-indent: 2.6em; max-width: 25em; margin-bottom: clamp(50px, 7vw, 90px); }
.word { will-change: opacity, filter; transition: opacity .25s linear; }

.dist-strip { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); margin-bottom: 26px; }
.dist-strip li { padding: 20px 14px 18px 0; }
.dist-strip li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.dist-strip b { display: block; font-size: clamp(1.8rem, 3.6vw, 3.3rem); font-stretch: 62%; font-weight: 800; line-height: 1; color: var(--gold-lg); }
.dist-strip span { font-size: .875rem; color: var(--muted); }

/* Race rows */
.race-rows { border-top: 1px solid var(--line); }
.race-row { border-bottom: 1px solid var(--line); }
.race-row-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 8px clamp(18px, 3vw, 44px); padding-block: clamp(14px, 1.8vw, 22px); transition: padding-left .7s var(--ease); }
.race-row:hover .race-row-in { padding-left: 14px; }
.race-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.wipe { font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-stretch: 62%; font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: .005em; }
.row-ready .wipe { clip-path: inset(-5% 100% -5% 0); }
.row-ready.in .wipe { clip-path: inset(-5% -2% -5% 0); transition: clip-path 1.5s var(--ease) var(--row-delay, 0ms); }
.race-tag { font-size: .78rem; letter-spacing: .06em; color: var(--gold); white-space: nowrap; }
.race-tag::before { content: '['; opacity: .6; margin-right: 2px; } .race-tag::after { content: ']'; opacity: .6; margin-left: 2px; }
.race-text { font-size: .95rem; line-height: 1.5; color: var(--muted); }
.race-more { font-size: .875rem; white-space: nowrap; color: var(--muted); transition: color .4s; }
.race-more i { font-style: normal; display: inline-block; transition: transform .5s var(--ease); }
.race-row a:hover .race-more { color: var(--gold); }
.race-row a:hover .race-more i { transform: translate(3px, -3px); }
.race-float { position: fixed; top: 0; left: 0; z-index: 900; width: 230px; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; transition: opacity .5s; will-change: transform; }
.race-float img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 24px 54px rgba(0, 0, 0, .55); transition: scale .9s var(--ease); scale: .9; }
.race-float.show { opacity: 1; }
.race-float.show img { scale: 1; }
.reg-note { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 30px 0 0; color: var(--muted); }
.reg-note span { width: 2px; height: 13px; background: var(--gold); align-self: center; }
.reg-note strong { color: var(--fg); font-weight: 500; }

/* Sponsors: the heading parts and a panel opens where it was */
.part-stage { background: var(--bg); position: relative; overflow: clip; }
.part-sticky { padding: clamp(40px, 6vw, 70px) 20px 0; }
.part-title { display: flex; justify-content: center; gap: .32em; margin: 0 0 clamp(20px, 3vw, 34px); font-size: clamp(3rem, 10.5vw, 10rem); font-stretch: 62%; font-weight: 700; line-height: .95; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.part-title span { will-change: translate; }
.part-panel { background: #e4b53a; color: var(--on-gold); border-radius: var(--radius-lg); clip-path: inset(0 var(--panel-inset, 0%) round var(--radius-lg)); width: min(1440px, 100%); margin-inline: auto; }
.part-panel-inner { padding: clamp(28px, 5vw, 70px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px clamp(30px, 6vw, 90px); align-items: end; }
.part-question { grid-column: 1 / -1; margin: 0; font-size: clamp(1.45rem, 3.2vw, 2.9rem); font-weight: 300; line-height: 1.18; letter-spacing: -.015em; max-width: 24em; }
.part-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 4vw, 52px); }
.part-facts dt { font-size: .78rem; letter-spacing: .05em; order: 2; }
.part-facts div { display: flex; flex-direction: column; }
.part-facts dd { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.part-panel .btn { justify-self: end; background: var(--on-gold); color: #f2efe7; }
.part-panel .btn:hover { background: #2c2a1e; color: #f2efe7; }
@media (min-width: 701px) {
  .motion .part-stage { height: 200vh; }
  .motion .part-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
  .motion .part-panel-inner { opacity: 0; transition: opacity .9s ease; }
  .motion .part-panel.open .part-panel-inner { opacity: 1; }
}

/* Water points */
.water-section { padding-top: clamp(80px, 10vw, 150px); }
.wp-status { border-block: 1px solid var(--line); padding-block: 18px 16px; margin-block: 22px; }
.wp-status-count { margin: 0 0 12px; font-weight: 300; font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.15; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.wp-status-count b { font-weight: 300; font-size: clamp(3rem, 5.6vw, 4.8rem); line-height: .95; letter-spacing: -.03em; color: var(--gold-lg); font-variant-numeric: tabular-nums; }
.wp-status-count em { color: var(--gold); }
.wp-status-split { margin: 10px 0 0; font-size: .875rem; color: var(--muted); }
.ticks { display: flex; gap: clamp(3px, .5vw, 6px); height: 26px; align-items: stretch; }
.tick { flex: 1 1 0; max-width: 11px; background: var(--line-strong); border-radius: 1px; }
.tick-open { background: var(--gold-fill); }
.tick-bid { background: var(--fg); }
.ticks-ready .tick { transform: scaleY(.2); opacity: .2; transform-origin: bottom; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.ticks-ready.ticks-go .tick { transform: none; opacity: 1; }

.course-map { display: block; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(14px, 2vw, 26px); text-decoration: none; color: var(--fg); transition: border-color .6s; }
.course-map:hover { border-color: var(--line-strong); color: var(--fg); }
.course-map svg { display: block; width: 100%; height: auto; max-height: 560px; }
.course-casing { fill: none; stroke: rgba(242, 239, 231, .07); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.course-line { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.course-full { stroke: var(--gold); }
.course-half { stroke: var(--fg); }
.course-pt { fill: var(--bg-2); stroke: var(--gold); stroke-width: 2.2; transform-box: fill-box; transform-origin: center; }
.course-pt-bid { fill: var(--gold); stroke: var(--bg-2); }
.course-pt-reserved, .course-pt-sponsored { fill: var(--fg); stroke: var(--bg-2); }
.course-pt-held { fill: #555a57; stroke: var(--bg-2); }
.course-ready .course-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.course-ready .course-pt { opacity: 0; transform: scale(.3); transition: opacity .7s, transform .9s var(--ease); }
.course-go .course-line { stroke-dashoffset: 0; transition: stroke-dashoffset 3.6s cubic-bezier(.45, .05, .25, 1); }
.course-go .course-pt { opacity: 1; transform: none; }
.course-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .85rem; padding-top: 10px; color: var(--muted); }
.course-key .dot { margin-left: 12px; }
.course-key .dot:first-child { margin-left: 0; }

/* Inner page heads */
.page-head { position: relative; padding-block: clamp(120px, 14vw, 180px) clamp(44px, 6vw, 76px); background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head:not(.page-head-photo)::before { content: ''; position: absolute; left: 50%; bottom: -60%; width: 110%; height: 120%; translate: -50% 0; background: radial-gradient(ellipse at 50% 100%, rgba(228, 181, 58, .26), transparent 62%); pointer-events: none; }
.page-head > .wrap { position: relative; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 3.5rem); }
.page-head-photo { color: #f7f5ef; background: linear-gradient(180deg, rgba(12, 15, 14, .62), rgba(12, 15, 14, .9)), url('/img/runners-road.jpg') center 28% / cover no-repeat; }
/* Sponsor: wheelchair racers and runners at the start line, darker on the left where the words sit. */
.page-head-sponsor { background: linear-gradient(90deg, rgba(12, 15, 14, .88) 0%, rgba(12, 15, 14, .62) 45%, rgba(12, 15, 14, .18) 100%), linear-gradient(180deg, rgba(12, 15, 14, .2), rgba(12, 15, 14, .55)), url('/img/sponsor-start-line.jpg') center 38% / cover no-repeat; }
.page-head-photo .wp-status { max-width: 520px; margin-bottom: 0; margin-top: 34px; }
.page-head-photo .btn { margin-top: .4em; }

/* About */
.legacy { display: grid; grid-template-columns: minmax(170px, 300px) 1fr; gap: clamp(26px, 6vw, 80px); align-items: center; }
.legacy > img { max-height: 520px; width: auto; margin-inline: auto; }
.values { display: grid; }
.values li { border-top: 1px solid var(--line); padding-block: 14px; color: var(--muted); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values strong { display: block; color: var(--fg); font-weight: 500; }
.photo { border-radius: var(--radius-lg); filter: saturate(.86); }

.photo-band { overflow: hidden; background: var(--bg); padding-block: 8px; }
.photo-track { display: flex; width: max-content; animation: slide 120s linear infinite; }
.photo-band:hover .photo-track, .photo-band:focus-within .photo-track { animation-play-state: paused; }
.photo-set { display: flex; gap: 14px; padding-right: 14px; }
.photo-set img { height: clamp(200px, 27vw, 360px); width: auto; border-radius: var(--radius); filter: saturate(.84); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.contact-card { padding: 28px 24px 26px 0; }
.contact-card + .contact-card { border-left: 1px solid var(--line); padding-left: 24px; }
.contact-card h2 { font-size: 1.3rem; color: var(--muted); }
.contact-card p { font-size: 1.1rem; font-weight: 300; }
.contact-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 64px; }
.contact-next h2 { font-size: 1.35rem; }
.contact-next p { color: var(--muted); }

/* Sponsor page */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 26px; }
.steps li { padding: 22px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps b { display: block; font-size: 2.4rem; font-weight: 300; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: .975rem; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 4vw, 52px); margin-top: 1.6em; }
.benefits > div { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.benefits p { color: var(--muted); margin: 0; }

.tier-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 18px clamp(30px, 6vw, 80px); align-items: start; background: var(--card); border: 1px solid #e4b53a; color: var(--fg); padding: clamp(24px, 3.4vw, 42px); border-radius: var(--radius-lg); margin-top: 26px; }
.tier-tag { font-size: .9rem; margin: 0 0 8px; color: var(--muted); }
.tier-price { font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 300; line-height: 1.05; letter-spacing: -.025em; color: var(--gold); margin: 0; }
.tier-price-sm { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--fg); }
.tier-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border-block: 1px solid var(--line); }
.tier-card { padding: 20px 22px 20px 0; transition: opacity 1.2s var(--ease), filter 1.2s var(--ease), transform 1.2s var(--ease); }
.tier-card + .tier-card { padding-left: 22px; border-left: 1px solid var(--line); }
.tier-note { margin-top: 22px; max-width: 46em; color: var(--muted); }
.tier-note strong { color: var(--fg); font-weight: 500; }
.plain li { padding-block: 3px; }
.plain-ticks li { padding-left: 22px; position: relative; }
.plain-ticks li::before { content: ''; position: absolute; left: 2px; top: .75em; width: 10px; height: 1px; background: var(--gold); }

.touch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-block: 28px; }
.touch.touch-plain { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px clamp(24px, 4vw, 56px); align-items: center; }
.touch-plain p { color: var(--muted); font-size: .975rem; margin-bottom: 0; }
.touch-plain .price-table { margin: 0; }
@media (max-width: 680px) { .touch.touch-plain { grid-template-columns: 1fr; } }
.touch { background: var(--card); padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; }
.touch h3 { font-size: 1.2rem; }
.touch > p { color: var(--muted); font-size: .975rem; }
.touch-art { margin: -22px -22px 18px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.touch-art svg, .brand-art svg { display: block; width: 100%; height: auto; }
/* The event mockups are transparent, so they stand on a dark stage with a gold glow behind them. */
.touch-art-mock { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 18px; background: radial-gradient(circle at 50% 58%, rgba(228, 181, 58, .34), transparent 68%), #0b0d0c; }
.touch-art-mock img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .55)); }
.touch-art-pair { flex-direction: column; gap: 6px; }
.touch-art-pair img { height: auto; min-height: 0; flex: 1 1 0; }
.motion .touch-art-mock img { transition: transform .7s var(--ease); }
.motion .touch:hover .touch-art-mock img { transform: scale(1.04); }
.call-mock { display: block; width: min(100%, 420px); height: auto; margin-bottom: 22px; filter: drop-shadow(0 14px 18px rgba(17, 19, 18, .28)); }
.price-table { width: 100%; border-collapse: collapse; margin: auto 0 12px; }
.price-table th { text-align: left; font-weight: 400; padding: 8px 8px 8px 0; color: var(--muted); font-size: .95rem; }
.price-table td { text-align: right; font-weight: 500; white-space: nowrap; }
.price-table tr { border-top: 1px solid var(--line); }
.packages { border-block: 1px solid var(--line); padding-block: 8px; margin-top: 22px; }
.packages summary { font-weight: 500; cursor: pointer; padding-block: 10px; }
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-block: 14px; }
.package-grid h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .7em; }
.package-grid .plain li { font-size: .975rem; color: var(--muted); }

/* Forms */
.enquire { scroll-margin-top: 80px; }
.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.form-alt { color: var(--muted); }
.form-alt a { color: var(--fg); }
.form-card { background: var(--card); padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-card .form-errors { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .925rem; font-weight: 500; padding: 0; }
.field-hide { position: absolute; left: -9999px; }
.req, .opt { font-weight: 400; font-size: .8rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; font: inherit; color: var(--fg); background: var(--field); border: 1px solid var(--line-strong); border-radius: 8px; transition: border-color .3s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: 1px solid var(--gold); outline-offset: 0; }
::placeholder { color: var(--muted); opacity: .8; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding-block: 5px; cursor: pointer; font-size: .975rem; font-weight: 400; }
.check input, .wp-row input[type="checkbox"], .option input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: #e4b53a; }
.form-errors { border: 1px solid var(--danger); padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; }
.form-errors p { margin: 0 0 .3em; }
.form-errors p:last-child { margin: 0; }
.form-errors ul { list-style: disc; padding-left: 20px; }
.h1-dark { font-size: clamp(1.6rem, 3.4vw, 2.7rem); }
.thanks { min-height: 74vh; display: flex; align-items: center; padding-top: 130px; }
.stack { display: grid; gap: 14px; }

/* Map: a quiet, monochrome base so the route is the only colour */
.map-section { padding-top: clamp(30px, 4vw, 50px); }
.route-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 6px 15px; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; font: 500 .925rem var(--sans); color: var(--fg); cursor: pointer; transition: background-color .3s, color .3s; }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.swatch { width: 16px; height: 3px; border-radius: 2px; background: currentColor; }
.r42 { background: #e4b53a; } .r21 { background: #f7f5ef; } .r10 { background: #f2a65a; } .r5 { background: #d9681f; }
.chip[aria-pressed="true"] .r21 { background: #7a7f7b; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.race-map { height: clamp(430px, 72vh, 720px); border-radius: var(--radius); border: 1px solid rgba(228, 181, 58, .28); background: #14110a; z-index: 1; }
/* Road map tiles recoloured to the site's warm black and gold */
.race-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.98) contrast(1.08) sepia(.6) saturate(1.5) hue-rotate(-6deg); }
.leaflet-container { font-family: var(--sans); }
.leaflet-container .leaflet-control-attribution { background: rgba(11, 13, 12, .6); color: #8d8a7c; font-size: 10px; border-top-left-radius: 6px; }
.leaflet-container .leaflet-control-attribution a { color: #b9b5a4; }
.leaflet-bar a { background: rgba(16, 20, 19, .92); color: #f2efe7; border-color: rgba(242, 239, 231, .16) !important; }
.leaflet-bar a:hover { background: #262b29; color: #fff; }
.leaflet-bar { border: 0 !important; box-shadow: none !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #181d1b; color: #f2efe7; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); border-radius: 12px; }
.leaflet-popup-content { margin: 13px 16px; font-size: .925rem; line-height: 1.4; }
.leaflet-popup-close-button { color: #a3a9a4 !important; }
.map-error { position: absolute; inset: 40% 16px auto; z-index: 500; background: var(--card); padding: 12px; border-radius: 8px; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-block: 12px 6px; font-size: .875rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot-open { background: transparent; border: 2px solid var(--gold); }
.dot-bid { background: var(--gold); }
.dot-reserved { background: #8f8a79; }
.dot-sponsored { background: var(--fg); }
.dot-selected { background: var(--ember); }
.dot-held { background: #555a57; }

.wp-pin { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid #e4b53a; background: #0f1312; color: #f2efe7; font: 500 .74rem/1 var(--sans); transition: scale .5s var(--ease); }
.leaflet-marker-icon:hover .wp-pin { scale: 1.2; }
.wp-pin-bid { position: relative; background: #e4b53a; color: #15130b; border-color: #e4b53a; font-weight: 700; }
.wp-pin-bid::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid #e4b53a; animation: breathe 3.6s ease-out infinite; pointer-events: none; }
@keyframes breathe { from { transform: scale(1); opacity: .8; } to { transform: scale(1.75); opacity: 0; } }
.wp-pin-reserved { background: #8f8a79; border-color: #8f8a79; color: #0f1312; }
.wp-pin-sponsored { background: #f2efe7; border-color: #f2efe7; color: #0f1312; font-weight: 700; }
.wp-pin-selected { background: #f0803c; border-color: #f0803c; color: #15130b; font-weight: 700; scale: 1.14; }
.wp-pin-held { background: #303533; border-color: #4a504d; color: #a3a9a4; }
.wp-pin-dim { width: 22px; height: 22px; margin: 3px; font-size: .64rem; background: #1a1f1d; border-color: #4a504d; color: #a3a9a4; }
.map-flag span { display: inline-block; position: absolute; transform: translateX(-50%); background: #f2efe7; color: #0f1312; font: 500 .76rem/1.2 var(--sans); padding: 4px 8px; border-radius: 5px; white-space: nowrap; }
.map-flag { width: 0 !important; height: 0 !important; }
.wp-popup strong { display: block; font-size: 1rem; font-weight: 500; }
.wp-popup p { margin: 3px 0 !important; color: #a3a9a4; }
a.popup-cta { display: block; text-align: center; margin-top: 10px; padding: 8px 10px; background: #e4b53a; color: #15130b !important; border-radius: 7px; font-weight: 500; text-decoration: none; }

.wp-panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; max-height: clamp(430px, 72vh, 720px); overflow: hidden; }
.panel-title { font: 500 .95rem var(--sans); letter-spacing: 0; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.wp-list { overflow-y: auto; flex: 1; }
.wp-list li + li { border-top: 1px solid var(--line); }
.wp-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 14px; background: none; border: 0; font: inherit; text-align: left; color: inherit; cursor: pointer; transition: background-color .3s, padding-left .6s var(--ease); }
.wp-row:hover { background: var(--line); }
button.wp-row:hover { padding-left: 20px; }
.wp-row-off { cursor: not-allowed; color: var(--muted); }
.wp-row-bid { cursor: default; }
.wp-row-bid label { flex: 1; cursor: pointer; }
.wp-row input.bid-input { width: 92px; min-height: 40px; padding: 6px 8px; flex: none; }
.wp-num { flex: none; display: flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--gold); font-size: .72rem; font-weight: 500; }
.wp-bid { background: var(--gold); color: var(--bg); }
.wp-reserved { background: #8f8a79; border-color: #8f8a79; color: #0f1312; }
.wp-sponsored { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.wp-held { background: #303533; border-color: #4a504d; color: #a3a9a4; }
.wp-selected { background: var(--ember); border-color: var(--ember); color: #15130b; }
.wp-text { min-width: 0; }
.wp-text strong { display: block; font-weight: 500; line-height: 1.25; font-size: .975rem; }
.wp-text small { color: var(--muted); font-size: .83rem; }
.price-pair { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-block: 22px; }
.price-pair b { display: block; font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 300; letter-spacing: -.02em; color: var(--gold); line-height: 1.15; }
.how-card { border-left: 1px solid var(--line); padding: 4px 0 4px clamp(20px, 3vw, 40px); }
.how-card .plain li { padding-block: 8px; border-top: 1px solid var(--line); color: var(--muted); }
.how-card strong { color: var(--fg); font-weight: 500; }

/* Offer page */
.offer-form { display: grid; gap: 16px; }
.offer-block { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px); margin: 0; min-width: 0; }
.offer-block legend { font-size: 1.15rem; font-weight: 500; padding: 0 10px; }
.block-help { color: var(--muted); max-width: 52em; }
.tier-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.option { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; transition: border-color .3s, background-color .3s; }
.option:has(input:checked) { border-color: var(--gold-fill); background: rgba(228, 181, 58, .14); }
.option-body strong, .option-body small { display: block; }
.option-body strong { font-weight: 500; }
.option-body small { color: var(--muted); }
.qty-grid { display: grid; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.qty-row:last-child { border-bottom: 0; }
.qty-row label strong, .qty-row label small { display: block; }
.qty-row label strong { font-weight: 500; }
.qty-row label small { color: var(--muted); }
.qty-row input { width: 92px; flex: none; }
.total-sticky { position: sticky; bottom: 0; z-index: 900; background: var(--bg); border-top: 2px solid var(--gold-fill); padding: 8px 4px; }
.offer-submit { display: grid; gap: 12px; }
.total-line { font-size: 1rem; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.total-line b { font-size: 1.9rem; font-weight: 300; letter-spacing: -.02em; color: var(--gold); }
.total-sticky small { color: var(--muted); }
.accept { font-size: .925rem; color: var(--muted); }
.status-box { border: 1px solid var(--line-strong); padding: 18px 22px; border-radius: var(--radius); margin-bottom: 18px; }
.status-good { border-color: var(--gold); }
.status-box h2 { font-size: 1.3rem; margin-bottom: .3em; }
.status-box p { margin: 0; color: var(--muted); }
.team-note { border-left: 2px solid var(--gold); padding: 6px 0 6px 20px; margin-bottom: 26px; }
.team-note h2 { font-size: 1.05rem; font-weight: 500; margin-bottom: .3em; }
.team-note p { margin: 0; white-space: pre-line; color: var(--muted); }
.summary-list { margin-bottom: 14px; border-top: 1px solid var(--line); }
.summary-list li { display: flex; justify-content: space-between; gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.summary-list b { white-space: nowrap; font-weight: 500; }

/* Team area: light, dense and plain */
.admin { padding-top: 40px; min-height: 60vh; }
.admin-bar { background: var(--bg-2); padding-top: 84px; border-bottom: 1px solid var(--line); }
.admin-bar-row { display: flex; justify-content: space-between; align-items: center; padding-block: 2px; }
.admin-bar a { padding: 10px 14px; display: inline-block; text-decoration: none; font-size: .95rem; color: var(--muted); }
.admin-bar a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--gold); }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-block: 20px 28px; border-block: 1px solid var(--line); }
.admin-stats div { padding: 14px 16px 12px 0; }
.admin-stats div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.admin-stats b { display: block; font-size: 2rem; font-weight: 300; line-height: 1.1; color: var(--gold); }
.admin-stats span { font-size: .875rem; color: var(--muted); }
.note-box { border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.data-table th { text-align: left; font-size: .8rem; font-weight: 500; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table strong { font-weight: 500; }
.data-table tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: .82rem; background: var(--bg-2); white-space: nowrap; }
.status-new { background: var(--gold); color: var(--bg); }
.status-selection_submitted { background: var(--ember); color: #15130b; }
.status-confirmed, .status-wp-sponsored { background: var(--fg); color: var(--bg); }
.status-wp-reserved { background: #8f8a79; color: #0f1312; }
.inline-form { display: flex; align-items: center; gap: 6px; }
.admin-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.flash { border-left: 2px solid var(--gold); padding: 8px 14px; background: var(--bg-2); }
.detail-list { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0 0 30px; }
.detail-list dt { color: var(--muted); font-size: .95rem; }
.detail-list dd { margin: 0; min-width: 0; }
.admin-actions { display: grid; gap: 12px; }
.action-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.action-card h2 { font: 500 1.02rem var(--sans); letter-spacing: 0; margin-bottom: .6em; }
.action-quiet { display: grid; gap: 8px; background: transparent; border: 0; padding: 0; }
.link-box { font-size: .875rem; background: var(--bg-2); padding: 8px 10px; border-radius: 6px; }
.bid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 40px; }
.bid-grid h3 { font-size: 1rem; }
.bid-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 9px; border-top: 1px solid var(--line); }
.bid-list strong { font-weight: 500; }
.admin-subhead { margin-top: 12px; }
.posted { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.posted p { margin: 0 0 3px; white-space: pre-line; }
.all-updates { margin-top: 28px; }

/* Partner portal */
.confirmed-badge { display: inline-block; color: var(--gold); margin: 0; font-size: .95rem; letter-spacing: .03em; }
.portal-head { padding-bottom: 44px; }
.portal-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 22px 40px; }
.portal-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.7rem); letter-spacing: .08em; margin-bottom: .35em; }
.portal-nav { position: sticky; top: 84px; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; }
.portal-nav .wrap { display: flex; gap: 2px; white-space: nowrap; }
.portal-nav a { padding: 12px 14px 12px 0; margin-right: 12px; font-size: .95rem; color: var(--muted); text-decoration: none; }
.portal-nav a:hover { color: var(--fg); }
.pill { display: inline-block; min-width: 19px; margin-left: 3px; border-radius: 6px; background: var(--gold-fill); color: var(--on-gold); font-size: .75rem; text-align: center; }
.section[id], [id="contact"] { scroll-margin-top: 140px; }
.portal-map-layout { grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); }
.race-map-small { height: clamp(320px, 50vh, 480px); }
.secured-list { display: grid; align-content: start; border-top: 1px solid var(--line); }
.secured { display: flex; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.secured h3 { font-size: 1.15rem; margin-bottom: .2em; }
.secured p { margin-bottom: .35em; color: var(--muted); }
.secured p strong { color: var(--fg); font-weight: 500; }
.secured-num { flex: none; font-size: clamp(2.2rem, 3.4vw, 2.9rem); font-weight: 300; line-height: 1; letter-spacing: -.02em; color: var(--gold); min-width: 1.4em; }
.sub-head { margin-top: 28px; }
.kit-card { border-left: 2px solid var(--gold); padding: 4px 0 4px 20px; margin-top: 28px; }
.kit-card .fine { margin: 10px 0 0; max-width: 50em; }
.updates { display: grid; border-top: 1px solid var(--line); }
.updates li { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 4px 20px; }
.updates time { font-size: .875rem; color: var(--muted); padding-top: 2px; }
.updates p { margin: 0; white-space: pre-line; }
.sponsor-perk { border-left: 2px solid var(--gold); padding: 4px 0 4px 18px; margin-top: 22px; color: var(--muted); }
.sponsor-perk strong { color: var(--fg); font-weight: 500; }
.kit-intro { max-width: 44em; color: var(--muted); }
.brand-items { display: grid; gap: 14px; margin-top: 24px; }
.brand-item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.brand-item-mine { border-color: rgba(228, 181, 58, .6); }
.brand-item:not(.brand-item-mine) .brand-art { filter: saturate(.3) brightness(.72); }
.brand-body { padding: clamp(18px, 3vw, 34px); align-self: center; min-width: 0; }
.brand-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 300; letter-spacing: -.01em; }
.brand-body p { color: var(--muted); }
.brand-body p strong { color: var(--fg); font-weight: 500; }
.brand-state { display: inline-block; margin-bottom: 10px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.brand-item-mine .brand-state { color: var(--gold); }
.kit-subhead { margin-top: 44px; font-weight: 500; }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.kit-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.kit-panel h3 { font-size: 1rem; }
.downloads a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: .95rem; overflow-wrap: anywhere; text-decoration: none; transition: border-color .3s; }
.downloads a:hover { border-color: var(--gold); }
.downloads small { flex: none; color: var(--muted); }
.swatches { display: grid; gap: 2px; }
.swatch-btn { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 4px; background: none; border: 0; border-radius: 6px; font: inherit; font-size: .95rem; text-align: left; color: inherit; cursor: pointer; }
.swatch-btn:hover { background: var(--line); }
.swatch-btn i { width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(242, 239, 231, .2); }
.sw-green { background: #0b5d4e; } .sw-sun { background: #f7b500; } .sw-orange { background: #d9481c; } .sw-lime { background: #c6d82f; } .sw-ink { background: #1b2422; }
.swatch-btn code { font-size: .82rem; color: var(--muted); }
.copied code::after { content: ' copied'; color: var(--gold); }
.say-it { margin: 0; }
.say-it dt { font-size: .78rem; color: var(--muted); margin-top: 10px; }
.say-it dt:first-child { margin-top: 0; }
.say-it dd { margin: 0; }
.copy-text { background: none; border: 0; padding: 1px 0; font: 400 .975rem/1.35 var(--sans); text-align: left; color: var(--fg); cursor: pointer; }
.copy-text:hover { color: var(--gold); }
.copied.copy-text { color: var(--gold); }
.portal-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.portal-private { margin-top: 30px; }

/* Footer: the statue of Dr Nkomo stands in the glow */
.site-footer { position: relative; overflow: hidden; background: #070908; }
.site-footer::before { content: ''; display: block; height: clamp(48px, 5vw, 76px); margin-top: clamp(12px, 1.6vw, 20px); background: url('/img/pattern-band.webp') repeat-x left center / auto 100%; }
.statue-stage { position: relative; }
.statue-glow { position: absolute; left: 50%; bottom: -8%; width: min(1100px, 130%); height: 104%; translate: -50% 0; background: radial-gradient(ellipse 48% 56% at 50% 62%, rgba(244, 196, 88, .78) 0%, rgba(228, 150, 46, .42) 34%, rgba(190, 100, 20, .13) 62%, transparent 76%); animation: glow-breathe 9s ease-in-out infinite alternate; }
@keyframes glow-breathe { from { opacity: .74; transform: scale(.97); } to { opacity: 1; transform: scale(1.03); } }
.footer-stage { position: relative; display: grid; grid-template-columns: 1fr minmax(320px, 520px) 1fr; gap: 20px; align-items: end; padding-top: clamp(50px, 6vw, 80px); }
.footer-col { padding-bottom: clamp(26px, 4vw, 54px); font-size: .975rem; color: #d2d2cb; }
.footer-col .kicker { margin-bottom: .7em; color: #d2d2cb; }
.footer-col a { text-decoration: none; }
.footer-col-end { text-align: right; }
.footer-col-end .kicker { justify-content: flex-end; }
.footer-small { margin: 26px 0 0; font-size: .82rem; color: #9b9e98; }
.footer-small a { text-decoration: underline; }
.footer-statue { text-align: center; }
.footer-statue img { width: 100%; height: auto; max-height: clamp(340px, 48vh, 540px); object-fit: contain; object-position: bottom; display: block; margin-inline: auto; translate: 0 var(--statue-y, 0); }
.footer-theme { font-size: clamp(.9rem, 1.25vw, 1.1rem); font-stretch: 125%; font-weight: 300; letter-spacing: .1em; text-wrap: balance; text-transform: uppercase; margin-bottom: .4em; }
.footer-date { color: #e4b53a; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 22px; }

/* Tablet */
@media (max-width: 900px) {
  .split, .form-wrap, .map-layout, .admin-detail, .tier-lead, .kit-grid, .portal-two, .portal-map-layout, .brand-item { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 0; }
  .steps, .contact-next { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .steps li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .benefits, .touch-grid, .package-grid { grid-template-columns: 1fr 1fr; }
  .wp-panel { max-height: 400px; }
  .race-row-in { grid-template-columns: 1fr; }
  .how-card { border-left: 0; padding-left: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bcard-map { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .bcard-map svg { width: 46%; max-height: 190px; }
  .footer-stage { grid-template-columns: 1fr 1fr; }
  .footer-statue { grid-column: 1 / -1; grid-row: 2; }
  .dist-strip { grid-template-columns: repeat(3, 1fr); }
  .dist-strip li:nth-child(4) { padding-left: 0; border-left: 0; }
  .part-panel-inner { grid-template-columns: 1fr; }
  .part-panel .btn { justify-self: start; }
  .portal-nav { top: 78px; }
}

/* Phone */
@media (max-width: 680px) {
  .site-header { top: 10px; }
  .header-pill { flex-wrap: wrap; width: 100%; height: auto; min-height: 54px; padding: 7px 8px; gap: 6px; border-radius: 13px; }
  .brand img { height: 40px; }
  .nav-open .header-pill { background: #0b0d0c; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-ready #main-nav { display: none; width: 100%; }
  .nav-ready.nav-open #main-nav { display: block; animation: focus-in .7s var(--ease) both; }
  #main-nav { width: 100%; }
  .nav { flex-direction: column; align-items: stretch; padding-block: 4px; }
  .nav a { padding: 11px 10px; font-size: 1rem; }
  .nav a.nav-cta { margin: 6px 0 2px; text-align: center; }
  .hero-inner { padding-top: 84px; gap: 310px; width: calc(100% - 24px); }
  .hero-img { object-position: 40% 0; height: 62%; margin-top: 130px; }
  .hero-frame::after { background: linear-gradient(180deg, #0b0d0c 0%, #0b0d0c 11%, rgba(11, 13, 12, .1) 22%, rgba(11, 13, 12, .55) 48%, #0b0d0c 66%); }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .bento { grid-template-columns: 1fr; }
  .bento-col { grid-template-columns: 1fr; }
  .bcard-map svg { width: 50%; }
  /* Small and fully on screen in the bottom corner, clear of the phone's edge and gesture area. */
  .side-badge { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); right: calc(8px + env(safe-area-inset-right, 0px)); translate: none; width: 44px; }
  .side-badge-edition { top: auto; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); padding: 3px; border-radius: 8px; }
  .footer-stage { grid-template-columns: 1fr; text-align: center; }
  .footer-statue { grid-row: auto; order: 3; padding-top: 18px; }
  .footer-col { padding-bottom: 0; }
  .footer-col .kicker, .footer-col-end .kicker { justify-content: center; }
  .footer-col-end { text-align: center; }
  .dist-strip { grid-template-columns: 1fr 1fr; }
  .dist-strip li, .dist-strip li + li { padding: 14px 0; border-left: 0; }
  .statement { text-indent: 1.4em; }
  .part-title { font-size: 15.5vw; }
  .part-facts { gap: 12px 24px; }
  .steps, .benefits, .touch-grid, .contact-grid, .contact-next, .package-grid, .form-card, .check-grid, .footer-grid, .tier-row { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 18px 0 0; border-left: 0; }
  .contact-card, .contact-card + .contact-card { padding: 20px 0; border-left: 0; }
  .contact-card + .contact-card { border-top: 1px solid var(--line); }
  .tier-card, .tier-card + .tier-card { padding: 16px 0; border-left: 0; }
  .tier-card + .tier-card { border-top: 1px solid var(--line); }
  .race-map { height: 62vh; min-height: 370px; }
  .detail-list { grid-template-columns: 1fr; gap: 0; }
  .detail-list dd { margin-bottom: 10px; }
  .summary-list li { flex-direction: column; gap: 0; }
  .updates li { grid-template-columns: 1fr; }
  .legend { font-size: .82rem; }
  .admin-stats div + div { border-left: 0; padding-left: 0; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .form-card > * { grid-column: 1 / -1; }
}

/* Low laptop screens: keep the sticky sponsor panel fully visible */
@media (min-width: 701px) and (max-height: 760px) {
  .part-title { font-size: clamp(3rem, 16vh, 6.5rem); margin-bottom: 14px; }
  .part-question { font-size: clamp(1.25rem, 4vh, 2rem); }
  .part-panel-inner { padding-block: 26px; gap: 18px 40px; }
  .part-facts dd { font-size: clamp(1.6rem, 6vh, 2.5rem); }
}

/* Anyone who has asked for less motion gets a still page */
@media (prefers-reduced-motion: reduce) {
  .wp-pin-bid::after, .statue-glow, .photo-track { animation: none !important; }
  .photo-band { overflow-x: auto; }
  .photo-set[aria-hidden] { display: none; }
  .race-row-in, .wp-row { transition: none; }
  .race-row:hover .race-row-in { padding-left: 0; }
}
.about-end .actions { margin-top: 2em; }
.table-scroll, .portal-nav { overscroll-behavior: contain; }
.admin-bar-out { display: flex; flex-wrap: wrap; gap: 2px 14px; }

/* Race entry */
.entry-group[hidden] { display: none; }
.entry-group { padding-top: 18px; border-top: 1px solid var(--line); gap: 12px; }
.entry-group:first-of-type { border-top: 0; padding-top: 0; }
.field .entry-legend { font-size: 1.05rem; font-weight: 500; margin-bottom: 10px; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.entry-steps { display: grid; gap: 12px; list-style: decimal; padding-left: 20px; margin: 0 0 24px; }
.entry-steps b { font-weight: 500; }
.entry-terms { list-style: disc; padding-left: 20px; margin: 0 0 10px; display: grid; gap: 6px; font-size: .925rem; color: var(--muted); }
.entry-page .wrap, .entry-find { max-width: 680px; }
.entry-ref-label { margin: 0; }
.entry-ref { margin: 0 0 6px; font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 500; letter-spacing: .02em; color: var(--gold); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.entry-page .status-box { margin-top: 26px; }
.entry-pay-again { margin-top: 12px; }
.entry-summary-head { font-size: 1.25rem; margin: 36px 0 14px; }
.entry-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 20px; }
.entry-filter .field { flex: 1 1 170px; }
.setup-list { display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .925rem; color: var(--muted); }
.setup-list b { font-weight: 500; color: var(--fg); }
.status-paid { background: var(--fg); color: var(--bg); }
.status-pending_payment { background: var(--gold-fill); color: var(--on-gold); }
.section.timing { padding-top: 120px; }
.timing h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.timing-all { margin-top: 16px; }
.timing-code { overflow-x: auto; padding: 12px 14px; background: var(--bg-2); border-radius: 8px; font-size: .85rem; }
.timing-params { grid-template-columns: 150px 1fr; margin-top: 16px; }
@media (max-width: 640px) {
  .entry-grid { grid-template-columns: 1fr; }
  .timing-params { grid-template-columns: 1fr; }
}

.bcard-days { float: right; padding: 1px 9px; background: #e4b53a; color: #15130b; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

/* About: the poster and start-arch photo, stacked beside the text */
.about-stack { position: relative; margin: clamp(10px, 3vw, 34px) clamp(14px, 3vw, 34px) clamp(10px, 2vw, 20px) 0; --stack-lean: 0; }
.stack-back, .stack-front { border-radius: var(--radius-lg); box-shadow: 0 22px 54px rgba(17, 19, 18, .28); transition: translate 1.6s var(--ease), rotate 1.6s var(--ease), scale 1.6s var(--ease), opacity 1s var(--ease), clip-path 1.5s var(--ease), box-shadow .6s var(--ease); }
.stack-back { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; translate: 5% -7%; rotate: calc(5deg + var(--stack-lean) * 2deg); filter: saturate(.9); }
.stack-front { position: relative; overflow: hidden; rotate: calc(-1.6deg + var(--stack-lean) * -1.6deg); }
.stack-front img { width: 100%; height: auto; }
.stack-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .42) 50%, transparent 62%); translate: -110% 0; pointer-events: none; }
.about-stack:hover .stack-front { scale: 1.025; rotate: 0deg; box-shadow: 0 34px 70px rgba(17, 19, 18, .36); }
.about-stack:hover .stack-back { translate: 8% -10%; rotate: 7deg; }
.stack-ready:not(.stack-go) .stack-back { translate: 0 0; rotate: 0deg; opacity: 0; }
.stack-ready:not(.stack-go) .stack-front { rotate: 0deg; scale: .9; opacity: 0; clip-path: inset(10% 10% 10% 10% round 22px); }
.stack-go .stack-front::after { animation: stack-shine 1.5s .9s var(--ease) both; }
@keyframes stack-shine { to { translate: 110% 0; } }

/* Landmark map on the Routes page */
.landmark-section { background: var(--bg-2); }
.landmark-lede { max-width: 62ch; color: var(--muted); }
/* No box: the map sits straight on the section, on a soft white patch of ground. */
.landmark-frame { margin-top: clamp(20px, 3vw, 36px); overflow-x: auto; }
.landmark-map { display: block; width: 100%; min-width: 900px; height: auto; font-family: var(--sans); }
.lm-ground { fill: var(--bg); }
.lm-area { fill: #8c8a7d; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; text-anchor: middle; }
.lm-route, .lm-route-edge { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lm-route { stroke: #e4b53a; stroke-width: 7; }
.lm-route-edge { stroke: #111312; stroke-width: 10; }
.lm-route-half { stroke: #d9681f; stroke-width: 5; }
.lm-arrow { fill: #111312; }
.lm-leader { stroke: #111312; stroke-width: 1.25; }
.lm-node { fill: #e4b53a; stroke: #111312; stroke-width: 2.5; }
.lm-km circle { fill: #111312; }
.lm-km text { fill: #e4b53a; font-size: 13px; font-weight: 700; text-anchor: middle; }
.lm-start { fill: #d9681f; stroke: #111312; stroke-width: 2.5; }
.lm-north { fill: #111312; }
.lm-label, .lm-sub { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.lm-label { fill: #111312; font-size: 15px; font-weight: 700; }
.lm-sub { fill: #8f6a0a; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lm-city { fill: #111312; font-size: 40px; font-weight: 800; font-stretch: 62%; letter-spacing: .01em; text-transform: uppercase; }
.lm-key { fill: #111312; font-size: 14px; }
.lm-key-line { fill: none; stroke-linecap: round; }
.lm-key-full { stroke: #e4b53a; stroke-width: 7; }
.lm-key-half { stroke: #d9681f; stroke-width: 5; }
.lm-art { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .4s; cursor: default; }
.lm-art:hover { transform: scale(1.14) translateY(-3px); }
.lm-ready:not(.lm-go) .lm-art { transform: scale(.45) translateY(30px); opacity: 0; }
.lm-ready .lm-route-edge, .lm-ready .lm-route-full, .lm-ready .lm-route-half { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s cubic-bezier(.45, .05, .25, 1); }
.lm-go .lm-route-edge, .lm-go .lm-route-full, .lm-go .lm-route-half { stroke-dashoffset: 0; }
.lm-ready .lm-marks { opacity: 0; transition: opacity .9s 1.3s; }
.lm-go .lm-marks { opacity: 1; }
.landmark-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px 22px; margin: 22px 0 0; padding: 0; font-size: .95rem; }
.landmark-list b { display: inline-block; min-width: 3.6em; color: var(--gold); font-weight: 700; }
.landmark-list small { color: var(--muted); }

/* Side badges repeated in the footer, for phones only */
.footer-badges { display: none; }
@media (max-width: 680px) {
  .footer-badges { position: relative; display: flex; justify-content: center; align-items: center; gap: 16px; padding-top: 30px; }
  .footer-badges img { width: 84px; height: auto; }
  .footer-badge-edition { padding: 5px; background: #fff; border-radius: 10px; }
  .legacy { grid-template-columns: 1fr; text-align: left; }
  .legacy > img { max-height: 320px; }
}

/* Launch RSVP and guest list */
.launch-details { margin: 0 0 1em; padding: 0; list-style: none; font-weight: 500; }
.launch-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-block: 8px 18px; font-size: .95rem; }
.launch-nav a { color: var(--muted); text-decoration: none; padding-block: 4px; }
.launch-nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--gold); }
.launch-subhead { margin-top: 2em; }
.launch-list { margin-block: 10px; }
.flyer-grid { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.flyer-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.flyer-card p { margin: 0; overflow-wrap: anywhere; }
.flyer-img { display: block; width: 100%; height: 200px; object-fit: contain; background: var(--bg-2); border-radius: 8px; }
.flyer-pdf { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; border-radius: 8px; background: var(--bg-2); color: var(--fg); text-decoration: none; }
.flyer-pdf b { font-size: 1.6rem; letter-spacing: .08em; }
.flyer-pick .check { overflow-wrap: anywhere; }
.launch-list summary { cursor: pointer; }
.launch-list textarea { margin-top: 8px; }
.link-share { display: flex; flex-wrap: wrap; gap: 10px; }
.link-share input { flex: 1 1 320px; }
.guest-actions { white-space: nowrap; }
.guest-actions form { display: inline-block; margin-right: 6px; }
.guest-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 18px; }
.email-preview { margin-block: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
tr[hidden] { display: none; }
input[type="search"] { width: 100%; min-height: 46px; padding: 10px 13px; font: inherit; color: var(--fg); background: var(--field); border: 1px solid var(--line-strong); border-radius: 8px; }
