/* ============================================================
   Plumbing only. Nothing here is a design decision — no colour,
   no typeface, no layout. Each site writes its own visual system
   on top; this file only carries the things that must be right
   on every site and are invisible when they are.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* A sideways-scrollable page drags position:fixed elements out of view on
     phones. Clip rather than scroll. (clip, not hidden: hidden would make html
     a scroll container and break scroll-padding and sticky.) */
  overflow-x: clip;
}

body { margin: 0; }
/* Lock scrolling on the ROOT, not on body. html already has overflow-x:clip,
   so overflow:hidden on body turns body into its own scroll container — a
   position:sticky header then sticks to body and is thrown off-screen (with
   its close button) when the menu opens after scrolling. site.js puts
   .is-locked on <html> directly; a :has() selector was tried first and its
   style invalidation visibly lagged behind the menu opening. */
html.is-locked { overflow: hidden; }
/* [hidden] must win. A rule like `.gallery-more { display:flex }` outranks the
   browser's own `[hidden] { display:none }`, which left an empty "Show 0 more"
   button on screen whenever a gallery had nothing further to reveal. */
[hidden] { display: none !important; }

img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
/* A <button> inherits the user agent's grey `buttonface` unless something says
   otherwise. An outline/ghost button that sets only border-color and color then
   renders as light-grey with (often white) text on it — invisible. Reset here;
   any variant that wants a fill sets one and wins on specificity. */
button { background: transparent; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Reveal-on-scroll. The JS failsafe shows everything if the observer
   never runs, so content can never be stranded invisible. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease, ease), transform .7s var(--ease, ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .site-header, .lightbox, .skip-link, .gallery-more, .filters, .map-consent, .callbar { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff !important; color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .75em; color: #555; }
}

/* Skiathos Trail Run — "Start sheet".
   The logo's blue and orange on light paper; deep ink for bands and the footer.
   Fira Sans Condensed for headings and numbers, IBM Plex Sans for text. */
:root {
  --ink: #0b2238; --ink-2: #12304d; --ink-soft: #b8c3cc;
  --blue: #0e76bc; --blue-d: #0a64a3; --blue-pale: #e6f1f9;
  --orange: #f1592a; --orange-d: #c8401a; --orange-pale: #fdebe4;
  --paper: #f4f5f1; --white: #fff; --line: #dde2dd; --text: #16232f; --muted: #5b6873;
  --display: "Fira Sans Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 14px; --r-sm: 9px; --wrap: 1200px; --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 68px;
}
html { scroll-padding-top: calc(var(--head-h) + 16px); }
body { font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-d); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-d); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.005em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-transform: uppercase; margin-bottom: .45em; }
h3 { font-size: 1.3rem; margin-bottom: .4em; text-transform: uppercase; letter-spacing: .01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }
.caps, .kicker, .eyebrow, .chip, .stat-l { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.kicker, .eyebrow { color: var(--orange-d); margin-bottom: .7em; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--orange); vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; }
.note { font-size: .9rem; color: var(--muted); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .55em 1.25em; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s; }
.btn-go { background: var(--orange); color: var(--ink); }
.btn-go:hover { background: var(--ink); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn:active { transform: translateY(1px); }

/* ---- header ---- */
/* glass on ::before: a backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.96); }
@supports (backdrop-filter: blur(8px)) { .site-header::before { background: rgba(255,255,255,.88); backdrop-filter: blur(12px) saturate(1.3); } }
.head-in { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); height: var(--head-h); display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; flex: none; }
.brand img { height: 44px; width: auto; }
.head-nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; gap: 2px; }
.nav-list a { display: block; padding: 8px 10px; font-family: var(--display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); text-decoration: none; border-radius: 8px; }
.nav-list a:hover { background: var(--blue-pale); color: var(--ink); }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav-reg { display: none; }
.lang { flex: none; font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: .06em; color: var(--blue-d); text-decoration: none; border: 2px solid var(--blue-pale); border-radius: 999px; padding: 6px 11px; }
.lang:hover { border-color: var(--blue); color: var(--blue-d); }
.head-reg { min-height: 42px; padding: .4em 1.05em; font-size: .95rem; flex: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; cursor: pointer; position: relative; flex: none; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { position: absolute; left: 12px; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; content: ""; }
.nav-toggle .bars { top: 22px; } .nav-toggle .bars::before { top: -7px; left: 0; } .nav-toggle .bars::after { top: 7px; left: 0; }
.site-header.is-open .bars { background: transparent; }
.site-header.is-open .bars::before { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1279px) {
  .nav-toggle { display: block; }
  .head-nav { position: fixed; inset: var(--head-h) 0 0 0; background: var(--ink); margin: 0; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 18px var(--gut) 40px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s; }
  .site-header.is-open .head-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .22s var(--ease), transform .22s var(--ease); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { color: #fff; font-size: 1.7rem; font-weight: 800; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.12); border-radius: 0; }
  .nav-list a:hover { background: transparent; color: var(--orange); }
  .nav-list a[aria-current="page"] { color: var(--orange); box-shadow: none; }
  .nav-reg { display: inline-flex; margin-top: 24px; align-self: flex-start; }
  .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  :root { --head-h: 60px; }
  .brand img { height: 36px; }
  .head-reg { display: none; }
  .head-in { gap: 10px; }
}

/* ---- the course profile, used as an edge ---- */
.hero-edge, .phead-edge, .foot-profile { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; display: block; pointer-events: none; }
.hero-edge { height: clamp(34px, 6vw, 70px); }
.hero-edge path, .phead-edge path { fill: var(--paper); }
.phead-edge { height: clamp(20px, 3.4vw, 40px); }

/* ---- home hero + bib ---- */
.hero { position: relative; min-height: min(88svh, 860px); display: flex; align-items: flex-end; color: #fff; isolation: isolate; overflow: hidden; background: var(--ink); }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img img { object-fit: cover; object-position: 50% 40%; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,24,40,.78) 0%, rgba(8,24,40,.45) 45%, rgba(8,24,40,.05) 75%), linear-gradient(0deg, rgba(8,24,40,.55) 0%, rgba(8,24,40,0) 45%); }
.hero-in { position: relative; z-index: 1; width: 100%; padding-top: 80px; padding-bottom: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero h1 { color: #fff; font-size: clamp(3.4rem, 10.5vw, 8.6rem); line-height: .86; margin-bottom: .22em; letter-spacing: -.01em; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--orange); }
.hero .kicker { color: #fff; opacity: .92; }
.hero-lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 46ch; text-shadow: 0 1px 12px rgba(0,0,0,.35); }

.bib { position: relative; width: 340px; background: #fff; color: var(--ink); border-radius: 18px; padding: 26px 26px 22px; box-shadow: 0 24px 60px rgba(4,16,28,.38); transform: rotate(1.6deg); }
.bib-pins { position: absolute; inset: 12px; pointer-events: none; }
.bib-pins::before, .bib-pins::after, .bib::before, .bib::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.bib-pins::before { left: 0; top: 0; } .bib-pins::after { right: 0; top: 0; }
.bib::before { left: 12px; bottom: 12px; } .bib::after { right: 12px; bottom: 12px; }
.bib-top { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; text-align: center; color: var(--blue); margin: 0 18px 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.bib-top span { color: var(--orange); }
.bib-num { text-align: center; margin: 0 0 10px; }
.bib-n { display: block; font-family: var(--display); font-weight: 800; font-size: 6.2rem; line-height: .95; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.bib-l { display: block; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--muted); }
.bib-races { text-align: center; font-size: .86rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-bottom: 14px; }
.bib-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bib-cta .btn { width: 100%; }
.bib-link { font-size: .92rem; font-weight: 600; }

@media (max-width: 900px) {
  .hero { min-height: 0; display: block; }
  .hero-img { position: relative; height: 58svh; min-height: 340px; max-height: 560px; }
  .hero-img img { position: absolute; }
  .hero-img::after { background: linear-gradient(0deg, rgba(11,34,56,1) 0%, rgba(11,34,56,.86) 42%, rgba(11,34,56,.35) 74%, rgba(11,34,56,.05) 100%); }
  .hero-in { grid-template-columns: 1fr; margin-top: -42svh; padding-top: 0; gap: 26px; }
  .hero-copy { min-height: 30svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .bib { width: 100%; max-width: 420px; transform: none; justify-self: center; }
}
@media (max-width: 380px) { .bib-n { font-size: 5rem; } }

/* ---- sections ---- */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-tight { padding-top: 0; }
.sec-head { max-width: 720px; margin-bottom: 34px; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.h-line { display: flex; align-items: center; gap: 18px; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 22px; }
.h-line::after { content: ""; flex: 1; height: 2px; background: var(--line); }

/* ---- start sheet ---- */
.start-sheet { list-style: none; border-top: 3px solid var(--ink); }
.ss-row a, .ss-row > div, .ss-head > div { display: grid; grid-template-columns: 92px 112px minmax(0, 1.5fr) minmax(0, 1.3fr) 92px 28px; gap: 18px; align-items: center; padding: 18px 8px; }
.ss-head > div { padding-top: 10px; padding-bottom: 10px; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.ss-row { border-bottom: 1px solid var(--line); }
.ss-row a { color: inherit; text-decoration: none; transition: background .2s var(--ease); }
.ss-row a:hover { background: #fff; }
.ss-row a:hover .ss-go { transform: translateX(4px); color: var(--orange-d); }
.ss-time { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ss-dist { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #fff; background: var(--blue); border-radius: 8px; padding: 4px 10px; justify-self: start; white-space: nowrap; }
.ss-trail .ss-dist { background: var(--ink); }
.ss-inclusive .ss-dist { background: var(--orange); color: var(--ink); }
.ss-kids .ss-dist { background: var(--blue-pale); color: var(--ink); }
.ss-name strong { display: block; font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; color: var(--ink); line-height: 1.1; }
.ss-name small { color: var(--muted); font-size: .92rem; }
.ss-who { font-size: .95rem; color: var(--text); }
.ss-fee { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; color: var(--orange-d); }
.ss-go { font-size: 1.4rem; color: var(--blue); transition: transform .2s var(--ease); }
@media (max-width: 860px) {
  .ss-head { display: none; }
  .ss-row a, .ss-row > div { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "time name go" "dist who who" "dist fee fee"; column-gap: 14px; row-gap: 4px; padding: 16px 4px; }
  .ss-time { grid-area: time; font-size: 1.6rem; align-self: start; }
  .ss-dist { grid-area: dist; align-self: start; font-size: 1rem; }
  .ss-name { grid-area: name; }
  .ss-who { grid-area: who; font-size: .9rem; }
  .ss-fee { grid-area: fee; font-size: .88rem; }
  .ss-go { grid-area: go; align-self: start; }
}

/* ---- weekend / timeline ---- */
.sec-weekend { background: #fff; }
.weekend { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 80px); align-items: start; }
.deadlines { list-style: none; margin: 24px 0 28px; display: grid; gap: 10px; }
.deadlines li { display: flex; flex-direction: column; padding: 12px 16px; background: var(--paper); border-radius: var(--r-sm); border: 1px solid var(--line); }
.deadlines .chip { color: var(--muted); font-size: .76rem; }
.deadlines strong { font-family: var(--display); font-size: 1.3rem; color: var(--ink); text-transform: uppercase; }
.timeline { list-style: none; position: relative; }
.tl-group { position: relative; padding-left: 30px; padding-bottom: 26px; }
.tl-group::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: -4px; width: 2px; background: var(--line); }
.tl-group:last-child::before { display: none; }
.tl-group::after { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.tl-group.is-race::after { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px var(--orange-pale); }
.tl-day { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; line-height: 1.15; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.tl-day em { font-style: normal; font-size: .82rem; letter-spacing: .08em; color: var(--orange-d); }
.tl-items { list-style: none; display: grid; gap: 6px; }
.tl-it { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 9px 14px; background: var(--paper); border-radius: var(--r-sm); }
.sec-weekend .tl-it { background: var(--paper); }
.sched .tl-it { background: #fff; border: 1px solid var(--line); }
.tl-nt { grid-template-columns: 1fr; } .tl-nt .tl-time { display: none; }
.tl-time { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--blue-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-t strong { display: block; font-weight: 600; line-height: 1.35; }
.tl-t small { color: var(--muted); font-size: .88rem; }
.tl-race { background: var(--ink) !important; border-color: var(--ink) !important; }
.tl-race .tl-time { color: var(--orange); }
.tl-race .tl-t strong { color: #fff; }
.tl-race .tl-t small { color: var(--ink-soft); }
.tl-deadline .tl-t strong::before { content: "! "; color: var(--orange-d); font-weight: 800; }
@media (max-width: 860px) {
  .weekend { grid-template-columns: 1fr; }
  .tl-it { grid-template-columns: 1fr; gap: 0; }
  .tl-time:empty { display: none; }
}

/* ---- course ---- */
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; margin-bottom: 30px; }
.course-photo img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 26px 0 28px; border-top: 3px solid var(--ink); }
.stats > div { padding: 12px 10px 0 0; }
.stats dt { color: var(--muted); font-size: .74rem; }
.stats dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--ink); line-height: 1; }
.stats small { font-size: .5em; color: var(--blue-d); margin-left: 2px; }
.profile { margin: 10px 0 0; background: #fff; border-radius: var(--r); padding: 18px 18px 12px; border: 1px solid var(--line); }
.profile svg { width: 100%; height: auto; overflow: visible; }
.pf-area { fill: var(--blue-pale); }
.pf-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; }
.st line { stroke: var(--orange); stroke-width: 1.5; stroke-dasharray: 3 4; }
.st circle { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.st-n { font-family: var(--display); font-weight: 800; font-size: 18px; fill: var(--orange-d); text-anchor: middle; }
.pk { font-family: var(--display); font-weight: 800; font-size: 20px; fill: var(--ink); text-anchor: middle; }
.km { font-family: var(--display); font-weight: 600; font-size: 14px; fill: var(--muted); text-anchor: middle; }
.profile figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) {
  .course-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .profile { padding: 12px 8px 8px; }
  .pk { font-size: 30px; } .st-n { font-size: 26px; } .km { font-size: 24px; }
}

/* ---- results teaser ---- */
.sec-results { background: var(--ink); color: #fff; position: relative; }
.sec-results h2 { color: #fff; }
.sec-results .eyebrow { color: var(--orange); }
.sec-results .btn-line { border-color: #fff; color: #fff; }
.sec-results .btn-line:hover { background: #fff; color: var(--ink); }
.res-teaser { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.winners { list-style: none; display: grid; gap: 10px; }
.winners li { display: grid; grid-template-columns: 86px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; background: var(--ink-2); border-radius: var(--r-sm); }
.w-race { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--orange); }
.w-m, .w-f { display: flex; flex-direction: column; min-width: 0; }
.w-m em, .w-f em { font-style: normal; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--ink-soft); }
.w-name { font-weight: 600; overflow-wrap: anywhere; }
.w-time { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .res-teaser { grid-template-columns: 1fr; }
  .winners li { grid-template-columns: 1fr 1fr; }
  .w-race { grid-column: 1 / -1; font-size: 1.3rem; }
}

/* ---- photo cards ---- */
.ph-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ph-cards-all { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ph-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; background: var(--ink); }
.ph-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ph-card:hover img { transform: scale(1.04); }
.ph-card > span { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; border-radius: 10px; background: rgba(11,34,56,.62); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
@supports (backdrop-filter: blur(6px)) { .ph-card > span { background: rgba(11,34,56,.42); backdrop-filter: blur(10px) saturate(1.2); } }
.ph-card strong { font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; line-height: 1.1; }
.ph-card small { font-size: .82rem; white-space: nowrap; opacity: .9; }
.ph-card:hover > span::after { content: "→"; }
@media (max-width: 900px) { .ph-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ph-card > span { left: 6px; right: 6px; bottom: 6px; padding: 9px 10px; } .ph-card strong { font-size: 1.02rem; } }
@media (max-width: 420px) { .ph-cards-all { grid-template-columns: 1fr; } .ph-cards-all .ph-card { aspect-ratio: 4 / 3; } }

/* ---- join ---- */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.join-card { border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.join-vol { display: grid; grid-template-rows: auto 1fr; background: var(--blue); color: #fff; border: 0; }
.join-vol h2, .join-vol .eyebrow { color: #fff; }
.join-vol .eyebrow::before { background: #fff; }
.join-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.join-copy { padding: clamp(22px, 3vw, 36px); }
.join-sp { padding: clamp(22px, 3vw, 36px); }
.join-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-weight: 600; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } }

.logo-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 44px; }
.logo-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 3; overflow: hidden; }
.logo-grid img { width: 100%; height: 100%; object-fit: contain; }
.logo-grid-sm { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.join-sp .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.logo-text span { font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--ink); text-align: center; padding: 8px; line-height: 1.15; }
@media (max-width: 520px) { .join-sp .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logo-grid-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.co-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.co-list li { padding: 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }

/* ---- page heads ---- */
.phead { position: relative; color: #fff; background: var(--ink); isolation: isolate; overflow: hidden; }
.phead-in { position: relative; z-index: 1; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 7vw, 96px); }
.phead h1 { color: #fff; margin-bottom: .25em; max-width: 16ch; }
.phead .kicker { color: var(--orange); }
.phead .kicker a { color: inherit; }
.phead .lede { color: #e8eef3; }
.phead-photo { min-height: clamp(380px, 56vh, 560px); display: flex; align-items: flex-end; }
.phead-photo .phead-in { width: 100%; }
.phead-img, .phead-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.phead-img img { object-fit: cover; }
.phead-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,24,40,.86) 0%, rgba(8,24,40,.35) 55%, rgba(8,24,40,.15) 100%); }
.phead-photo .kicker { color: #fff; }
.phead-photo .lede { text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.phead-ink { background: radial-gradient(120% 140% at 85% 0%, #17426a 0%, var(--ink) 55%); }
.phead-slim .phead-in { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 6vw, 72px); }
.phead-cta { margin-top: 22px; }

/* ---- jump nav ---- */
.jump { margin-top: 26px; }
.jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; color: var(--ink); text-decoration: none; }
.jump a:hover { border-color: var(--ink); }

/* ---- race sections (routes) ---- */
.race { padding: clamp(48px, 7vw, 90px) 0; border-bottom: 1px solid var(--line); }
.race:nth-of-type(even) { background: #fff; }
.race-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.race-photo img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.race-copy p { max-width: 66ch; }
.race-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 20px; padding: 12px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.race-meta li { display: flex; gap: 8px; align-items: baseline; font-weight: 600; }
.race-meta .chip { color: var(--muted); font-size: .74rem; }
.course-detail { margin-top: 36px; }
.course-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); margin: 34px 0; }
.stations { list-style: none; border-top: 2px solid var(--ink); }
.stations li { display: grid; grid-template-columns: 34px 78px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.st-no { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .95rem; }
.st-fin .st-no { background: var(--ink); color: #fff; }
.st-km { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--blue-d); white-space: nowrap; }
.st-name { font-weight: 600; }
.st-sup { grid-column: 3; font-size: .9rem; color: var(--muted); }
.facts { display: grid; gap: 0; border-top: 2px solid var(--ink); margin-bottom: 20px; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }
.map-frame { position: relative; border-radius: var(--r); overflow: hidden; background: var(--blue-pale); aspect-ratio: 16 / 9; max-height: 560px; width: 100%; }
@media (min-width: 900px) { .map-frame { aspect-ratio: 2 / 1; } }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; }
.maps10 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; max-width: 760px; }
.tile { display: block; padding: 0; border: 0; cursor: zoom-in; border-radius: var(--r-sm); overflow: hidden; background: var(--ink); }
.tile-map img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #fff; }
.kids-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 28px 0 14px; }
.kids-list li { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 14px 16px; background: var(--paper); border-radius: var(--r-sm); border: 1px solid var(--line); }
.kids-list strong { display: block; line-height: 1.25; }
.kids-list small { color: var(--muted); }
@media (max-width: 860px) {
  .race-grid, .course-cols { grid-template-columns: 1fr; }
  .race-photo { order: -1; }
}

/* ---- CTA band ---- */
.cta-band { background: var(--orange); color: var(--ink); padding: clamp(40px, 6vw, 70px) 0; }
.cta-band .eyebrow { color: var(--ink); }
.cta-band .eyebrow::before { background: var(--ink); }
.cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-in h2 { margin: 0; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-go { background: var(--ink); color: #fff; }
.cta-band .btn-go:hover { background: #fff; color: var(--ink); }
.cta-band .btn-ghost { border-color: var(--ink); color: var(--ink); }
.cta-band .btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---- schedule ---- */
.sched { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.sched-side { display: grid; gap: 16px; position: sticky; top: calc(var(--head-h) + 20px); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.side-card h2 { font-size: 1.35rem; }
@media (max-width: 900px) { .sched { grid-template-columns: 1fr; } .sched-side { position: static; } }

/* ---- documents (registration, offers) ---- */
.doc { padding: clamp(44px, 6vw, 80px) 0; }
.doc-alt { background: #fff; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.doc-h { position: sticky; top: calc(var(--head-h) + 20px); }
.doc-h h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.doc-photo { margin-top: 18px; } .doc-photo img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.doc-b > p, .doc-b li { max-width: 68ch; }
.doc-b h3 { margin-top: 1.2em; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr; } .doc-h { position: static; } }
.fees { margin-bottom: 22px; }
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.fee-table th, .fee-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table thead th { background: var(--ink); color: #fff; font-weight: 400; }
.fee-table thead td { background: var(--ink); }
.fee-table thead .caps { display: block; font-size: .95rem; color: var(--orange); }
.fee-table thead small { display: block; font-size: .82rem; color: var(--ink-soft); line-height: 1.35; }
.fee-table tbody th { font-weight: 600; }
.fee-table td { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--ink); }
.fee-table tr:last-child > * { border-bottom: 0; }
@media (max-width: 700px) {
  .fee-table thead { display: none; }
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td { display: block; }
  .fee-table tr { padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
  .fee-table tbody th { background: var(--ink); color: #fff; border: 0; }
  .fee-table td { display: flex; justify-content: space-between; align-items: baseline; border: 0; padding: 8px 16px; font-size: 1.4rem; }
  .fee-table td::before { content: attr(data-col); font-family: var(--body); font-weight: 600; font-size: .95rem; color: var(--muted); }
}
.notes { list-style: none; display: grid; gap: 10px; }
.notes li { padding: 12px 16px; background: #fff; border-left: 4px solid var(--blue); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.doc-alt .notes li { background: var(--paper); }
.ticks { list-style: none; display: grid; gap: 8px; margin-bottom: 1em; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
.ticks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 560px) { .ticks-2 { grid-template-columns: 1fr; } }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .two-lists { grid-template-columns: 1fr; } }
.plain { list-style: none; display: grid; gap: 8px; margin-bottom: 1em; }
.dated li { padding: 10px 14px; background: var(--paper); border-radius: var(--r-sm); }
.doc-alt .dated li, .side-card .dated li { background: var(--paper); }
.dated strong { display: block; font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--ink); letter-spacing: .01em; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps > li { counter-increment: s; position: relative; padding: 22px 22px 22px 74px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.steps > li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.steps h3 { margin-top: 0; }
@media (max-width: 520px) { .steps > li { padding: 70px 18px 18px; } }
.callout { padding: 16px 18px; background: var(--orange-pale); border-radius: var(--r-sm); border-left: 4px solid var(--orange); }
.big-num { font-family: var(--display); font-weight: 800; font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; color: var(--orange); }
.stays { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 12px; }
.stay { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.stay h3 { font-size: 1.2rem; }
.stars { color: var(--orange); letter-spacing: .1em; font-size: .9rem; }
.prices { list-style: none; margin: 10px 0 14px; border-top: 1px solid var(--line); }
.prices li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.prices strong { font-family: var(--display); font-size: 1.2rem; }

/* ---- rules ---- */
.rules-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.rules-toc { position: sticky; top: calc(var(--head-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.rules-toc .caps { color: var(--muted); margin-bottom: 8px; }
.rules-toc ol { padding-left: 1.3em; display: grid; gap: 4px; font-size: .95rem; }
.rules-toc a { color: var(--ink); text-decoration: none; }
.rules-toc a:hover { color: var(--orange-d); text-decoration: underline; }
.rule { margin-bottom: 40px; }
.rule h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.rule-list { padding-left: 2.2em; display: grid; gap: 10px; }
.rule-list li { max-width: 72ch; padding-left: 4px; }
.rule-list li::marker { font-family: var(--display); font-weight: 800; color: var(--blue-d); }
.rule p { max-width: 72ch; }
@media (max-width: 900px) { .rules-grid { grid-template-columns: 1fr; } .rules-toc { position: static; } }

/* ---- results explorer ---- */
.sec-res { padding-top: 40px; }
.rx-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 22px; }
.rx-search { display: grid; gap: 6px; }
.rx-search .caps { color: var(--muted); }
.rx-search input { width: 100%; font: inherit; font-size: 1.1rem; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--text); min-height: 50px; }
.rx-search input:focus { border-color: var(--blue); outline: none; background: #fff; }
.rx-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.rx-group legend { color: var(--muted); margin-bottom: 6px; padding: 0; }
.rx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .02em; }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-btn small { font-weight: 600; opacity: .7; margin-left: 4px; }
.rx.is-searching .rx-group { opacity: .4; }
@media (min-width: 900px) { .rx-controls { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } .rx-search { grid-column: 1 / -1; } .rx-group:nth-of-type(1) { grid-column: 1 / -1; } }
.rx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px; margin-bottom: 14px; }
.rx-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.rx-head p { margin: 0; color: var(--muted); }
.rx-podium { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.rx-podium:empty { display: none; }
.pod { background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px 18px; }
.pod h3 { color: var(--orange); font-size: 1rem; letter-spacing: .08em; margin-bottom: 8px; }
.pod ol { list-style: none; display: grid; gap: 6px; }
.pod li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.pod li span:first-child { font-family: var(--display); font-weight: 800; color: var(--ink-soft); }
.pod li span:nth-child(2) { overflow-wrap: anywhere; font-weight: 600; }
.pod li span:last-child { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .rx-podium { grid-template-columns: 1fr; } }
.rx-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.rx-table th { text-align: left; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); padding: 12px 12px; border-bottom: 2px solid var(--ink); background: #fff; }
.rx-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rx-table tbody tr:nth-child(even) td { background: #fafbf8; }
.rx-table .c-p { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--ink); width: 1%; white-space: nowrap; }
.rx-table .c-n { font-weight: 600; overflow-wrap: anywhere; }
.rx-table .c-t { font-family: var(--display); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.rx-table th.c-t { text-align: right; }
.rx-table .c-t small { display: block; font-family: var(--body); font-weight: 400; font-size: .76rem; color: var(--muted); }
.rx-table .c-g, .rx-table .c-cc, .rx-table .c-bib, .rx-table .c-yob { white-space: nowrap; color: var(--muted); }
.rx-table .c-ed { white-space: nowrap; font-family: var(--display); font-weight: 600; }
.rx-table tr.is-top .c-p { color: var(--orange-d); }
.rx-table .st { font-family: var(--display); font-weight: 600; color: var(--muted); }
.rx-table mark { background: var(--orange-pale); color: inherit; border-radius: 3px; padding: 0 2px; }
.res-static caption { text-align: left; font-family: var(--display); font-weight: 800; font-size: 1.4rem; padding: 10px 0; }
.res-static { width: 100%; border-collapse: collapse; }
.res-static td, .res-static th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
@media (max-width: 720px) {
  .rx-table thead { display: none; }
  .rx-table, .rx-table tbody { display: block; border: 0; background: transparent; }
  .rx-table tr { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "p n t" "p m t"; column-gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
  .rx-table tbody tr:nth-child(even) td { background: transparent; }
  .rx-table td { display: block; padding: 0; border: 0; background: transparent; }
  .rx-table .c-p { grid-area: p; font-size: 1.4rem; align-self: center; }
  .rx-table .c-n { grid-area: n; }
  .rx-table .c-t { grid-area: t; align-self: center; }
  .rx-table td.c-meta { grid-area: m; font-size: .84rem; color: var(--muted); }
  .rx-table td.c-x { display: none; }
}
@media (min-width: 721px) { .rx-table td.c-meta { display: none; } }
.rx-more { display: flex; justify-content: center; margin-top: 14px; }

/* ---- galleries ---- */
.sec-gal { padding-top: 34px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.gal-grid .tile { aspect-ratio: 1; }
.gal-grid .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease), opacity .2s; }
.gal-grid .tile:hover img { transform: scale(1.05); }
@media (max-width: 520px) { .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; } }
.pn { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 1.1rem; }
.pn-next { margin-left: auto; }
.videos { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.video { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--ink); aspect-ratio: 16 / 9; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video:hover img { opacity: 1; }
.video .play { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: var(--orange); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.video .play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 20px solid var(--ink); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,16,26,.95); display: none; opacity: 0; transition: opacity .25s var(--ease); }
.lightbox.is-open { display: block; } .lightbox.is-visible { opacity: 1; }
.lb-stage { position: absolute; inset: 56px 12px 56px; display: flex; align-items: center; justify-content: center; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; }
.lb-img { max-width: 100%; max-height: calc(100svh - 112px); object-fit: contain; border-radius: 6px; transition: opacity .2s; }
.lb-img.is-loading { opacity: .3; }
.lb-caption { display: none; }
.lb-counter { position: absolute; top: 18px; left: 20px; color: #fff; font-family: var(--display); font-weight: 600; letter-spacing: .06em; }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--orange); color: var(--ink); }
.lb-close { top: 8px; right: 10px; }
.lb-prev { left: 12px; top: 50%; margin-top: -26px; } .lb-next { right: 12px; top: 50%; margin-top: -26px; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 10px; margin: 0; } .lb-stage { inset: 56px 6px 72px; } }

/* ---- volunteers / contact / tributes ---- */
.vol-grid, .contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.vol-main > p { max-width: 64ch; font-size: 1.06rem; }
.facts-wide { margin: 26px 0 36px; }
.vol-apply { background: var(--ink); color: #fff; border-radius: var(--r); padding: 26px; position: sticky; top: calc(var(--head-h) + 20px); }
.vol-apply h2 { color: #fff; }
.vol-apply .note, .vol-apply a:not(.btn) { color: var(--ink-soft); }
.vol-apply .plain li { padding-left: 16px; position: relative; } .vol-apply .plain li::before { content: "–"; position: absolute; left: 0; color: var(--orange); }
@media (max-width: 900px) { .vol-grid, .contact-grid { grid-template-columns: 1fr; } .vol-apply { position: static; } }
.sec-faq { background: #fff; }
.faq-wrap { max-width: 900px; }
.faqs { border-top: 3px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative; font-weight: 600; font-size: 1.06rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--orange-d); transition: transform .2s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; max-width: 70ch; }
.contact-main .lead { font-size: 1.15rem; max-width: 60ch; }
.contact-mail { margin: 22px 0 34px; }
.people { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 26px; }
.people li { display: flex; flex-direction: column; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.people a { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.people span { color: var(--muted); font-size: .92rem; }
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; }
.trib-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.trib-fig { margin: 0; } .trib-fig img { border-radius: var(--r); width: 100%; }
.trib-text p { font-size: 1.08rem; max-width: 64ch; }
.trib-text .trib-fig { margin-top: 26px; }
.trib-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.trib-list a { display: flex; gap: 14px; align-items: baseline; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-weight: 600; }
.trib-list a span { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--orange-d); }
@media (max-width: 860px) { .trib-grid { grid-template-columns: 1fr; } }

/* ---- footer ---- */
.site-footer { position: relative; background: var(--ink); color: var(--ink-soft); padding: clamp(70px, 9vw, 110px) 0 28px; margin-top: 0; }
.foot-profile { top: -1px; bottom: auto; height: 46px; transform: scaleY(-1); }
.foot-profile path { fill: var(--paper); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--orange); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.brand-foot { background: #fff; border-radius: 12px; padding: 12px 16px; }
.brand-foot img { height: 40px; }
.foot-id p { margin-top: 16px; font-size: .93rem; }
.foot-h { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; font-size: .95rem; margin-bottom: 10px; }
.foot-col ul, .foot-phones { list-style: none; display: grid; gap: 6px; font-size: .95rem; }
.foot-col a { text-decoration: none; }
.foot-mail { font-weight: 600; }
.foot-phones span { display: block; font-size: .85rem; }
.foot-contact .btn { margin-top: 16px; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 18px; font-size: .86rem; }
.foot-base .credit { margin-left: auto; }
@media (max-width: 1000px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-id { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 26px 18px; } .foot-contact { grid-column: 1 / -1; } .foot-base .credit { margin-left: 0; } }

.sec-photos { padding-bottom: 0; }
.rx-table th.c-p, .rx-table th.c-t { font-family: var(--display); font-weight: 600; font-size: .78rem; color: var(--muted); }

/* ---- video modal ---- */
.vmodal { width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.vmodal::backdrop { background: rgba(6,16,26,.92); }
.vm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.vm-title { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.vm-close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; flex: none; }
.vm-close:hover { background: var(--orange); color: var(--ink); }
.vm-frame { position: relative; aspect-ratio: 16 / 9; max-height: calc(100svh - 110px); margin: 0 auto; background: #000; border-radius: 12px; overflow: hidden; }
.vm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm-frame { width: min(100%, calc((100svh - 110px) * 16 / 9)); }

/* ---- forms ---- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 34px); }
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.rform { display: grid; gap: 16px; margin-top: 8px; }
.contact-main .rform { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 30px); margin-top: 22px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .fld-row, .fld-row-3 { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld label, .fset legend { font-weight: 600; font-size: .95rem; color: var(--ink); }
.req { color: var(--orange-d); }
.fld input, .fld textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--paper); border: 2px solid var(--line); border-radius: 10px; padding: 11px 14px; min-height: 48px; }
.fld textarea { resize: vertical; min-height: 140px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.fld input[type="date"] { appearance: none; -webkit-appearance: none; }
.fset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fset legend { padding: 0; margin-bottom: 8px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checks-inline { display: flex; flex-wrap: wrap; }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }
.fld-check { position: relative; display: flex; align-items: flex-start; gap: 10px; }
.checks .fld-check { padding: 10px 12px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; }
.checks .fld-check:has(input:checked) { border-color: var(--ink); background: #fff; }
.checks-inline .fld-check { min-width: 64px; }
.fld-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--orange-d); }
.fld-check label { font-size: .95rem; line-height: 1.45; cursor: pointer; }
.checks .fld-check label::after { content: ""; position: absolute; inset: 0; }   /* the whole tile is the target */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-send { justify-self: start; min-width: 200px; }
.form-status { margin: 0; font-weight: 600; min-height: 1.2em; }
.form-status[data-kind="ok"] { color: #1d6b3a; } .form-status[data-kind="error"] { color: #b3261e; } .form-status[data-kind="busy"] { color: var(--muted); }
.rform .note { margin: 0; }
.cf-turnstile { min-height: 65px; }
.contact-side { display: grid; gap: 16px; }
.contact-side .people { grid-template-columns: 1fr; }
.contact-side .people li { padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.contact-side .people a { font-size: 1.15rem; }
.contact-mail { margin: 0 0 20px; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 901px) { .vol-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (min-width: 1280px) and (max-width: 1400px) {
  .head-in { gap: 12px; }
  .brand img { height: 38px; }
  .nav-list a { padding: 8px 6px; font-size: .92rem; letter-spacing: .03em; }
}
.bib-soon { margin: 0; text-align: center; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 1.1rem; color: var(--ink); background: var(--orange-pale); border-radius: 12px; padding: 10px 16px; width: 100%; }
.phead-soon { display: inline-block; margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); background: var(--orange-pale); border-radius: 12px; padding: 10px 16px; }
.phead .phead-soon { margin-top: 22px; background: var(--orange); }
