:root {
  --ink: #10202a;
  --coal: #0a2533;
  --paper: #fffdfa;
  --sand: #e6d6b8;
  --mist: #eef7fa;
  --mountain: #2d7353;
  --poster-green: #b9ffbd;
  --poster-red: #f3361f;
  --sea: #007fa3;
  --sea-deep: #063e57;
  --footer-bg: #063e57;
  --sea-soft: #dff3f8;
  --signal: #ff6b35;
  --signal-dark: #c8461f;
  --line: rgba(16, 32, 42, .12);
  --shadow: 0 20px 60px rgba(6, 62, 87, .16);
  --radius: 8px;
  --container: 1180px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px max(18px, calc((100vw - var(--container)) / 2));
  color: var(--paper);
  background: linear-gradient(90deg, rgba(6, 49, 70, .94), rgba(0, 127, 163, .88));
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: min-height .22s ease, padding .22s ease, background .22s ease, box-shadow .22s ease;
}

.site-header.is-compact {
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: linear-gradient(90deg, rgba(5, 32, 46, .98), rgba(4, 82, 111, .95));
  box-shadow: 0 14px 38px rgba(3, 31, 45, .22);
}

.registration-promo {
  position: relative;
  z-index: 18;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 54px);
  padding: 10px 18px;
  color: #fff;
  background: linear-gradient(90deg, #e65336, var(--poster-red));
  box-shadow: 0 12px 28px rgba(6, 35, 48, .2);
  font-size: .78rem;
  letter-spacing: .06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.registration-promo strong { font-weight: 900; }
.registration-promo span { font-weight: 700; }
.registration-promo a {
  color: #fff;
  font-weight: 900;
  border-bottom: 1px solid rgba(255, 255, 255, .72);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--paper);
  background: linear-gradient(135deg, var(--signal), var(--mountain));
  font-size: .8rem;
}

.brand-logo {
  width: 92px;
  height: 82px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18));
  transition: width .22s ease, height .22s ease, box-shadow .22s ease;
}

.site-header.is-compact .brand-logo {
  width: 62px;
  height: 56px;
}

.brand span:last-child {
  font-size: 1.06rem;
  transition: font-size .22s ease;
}

.site-header.is-compact .brand span:last-child {
  font-size: .96rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  font-size: .94rem;
}

.main-nav a,
.nav-dropdown-toggle {
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .84);
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.is-current,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 30;
  min-width: 210px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(5, 32, 46, .98);
  box-shadow: 0 18px 42px rgba(3, 31, 45, .3);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: .78rem;
}

.social-icon {
  --icon-url: url("../i/social/mail.svg");
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.social-icon::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background: var(--icon-url) center / contain no-repeat;
}

.social-icon span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.social-icon:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .2);
}

.social-instagram { --icon-url: url("../i/social/instagram.svg?v=20260727-8"); }
.social-facebook { --icon-url: url("../i/social/facebook.svg?v=20260727-8"); }
.social-whatsapp { --icon-url: url("../i/social/whatsapp.svg?v=20260727-8"); }
.social-strava { --icon-url: url("../i/social/strava.svg?v=20260727-8"); }
.social-wikiloc { --icon-url: url("../i/social/wikiloc.svg?v=20260727-8"); }
.social-mail { --icon-url: url("../i/social/mail.svg?v=20260727-8"); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: transparent;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-img,
.hero picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 28, 41, .88), rgba(6, 62, 87, .56) 42%, rgba(6, 62, 87, .08)), linear-gradient(0deg, rgba(5, 28, 41, .68), rgba(5, 28, 41, .05) 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 32px));
  margin: 0 auto 0 max(16px, calc((100vw - var(--container)) / 2));
  padding: 88px 0 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffb27f;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .12em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  line-height: .9;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 18px 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 800;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 16px 0 0;
  color: #ffb27f;
  font-size: clamp(.82rem, 1.4vw, 1rem);
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-tagline::before {
  content: "";
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.hero-copy {
  max-width: 620px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: .94rem;
  line-height: 1.55;
}

.race-countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(4px, 1vw, 12px);
  margin-top: 24px;
}

.race-countdown-unit {
  display: grid;
  min-width: clamp(62px, 8vw, 104px);
  padding: clamp(10px, 1.4vw, 16px) clamp(7px, 1vw, 13px);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 5px;
  background: rgba(2, 35, 57, .44);
  box-shadow: 0 16px 42px rgba(0, 20, 35, .24);
  text-align: center;
  backdrop-filter: blur(9px);
}

.race-countdown-unit strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  line-height: .95;
  letter-spacing: -.07em;
}

.race-countdown-unit span {
  margin-top: 7px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(.54rem, .8vw, .7rem);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.race-countdown-separator {
  padding-top: clamp(13px, 2vw, 25px);
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 2.1rem);
  font-weight: 700;
}

.race-day-message {
  margin: 24px 0 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hero-actions,
.signup-layout .btn {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--signal), #f24672);
  box-shadow: 0 12px 30px rgba(255, 107, 53, .3);
}

.btn-primary:hover { background: var(--signal-dark); }

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: rgba(0, 127, 163, .28);
}

.btn-download {
  color: var(--coal);
  border-color: rgba(185, 255, 189, .82);
  background: linear-gradient(135deg, #d9ff88, var(--poster-green));
  box-shadow: 0 12px 30px rgba(185, 255, 189, .2);
}

.btn-download:hover { background: #d9ff88; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.notice,
.form-notice {
  display: inline-flex;
  margin: 18px 0 0;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 127, 163, .88);
  font-weight: 700;
}

.section { padding: 86px 0; }

.intro-band,
.muted-section { background: var(--mist); }

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.signup-layout h2,
.legal-content h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.section-heading p,
.signup-layout p,
.page-hero p {
  color: rgba(21, 23, 21, .74);
}

.distance-grid,
.sponsor-grid,
.info-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.distance-grid { grid-template-columns: repeat(3, 1fr); }

.distance-card,
.info-card,
.contact-card,
.contact-form,
.sponsor-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(21, 23, 21, .06);
}

.distance-card {
  padding: 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.distance-km {
  color: var(--sea);
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 900;
}

.distance-card h3 { margin: 18px 0 6px; }
.distance-card p { margin: 0 0 20px; color: rgba(21, 23, 21, .7); }
.distance-card a { color: var(--signal-dark); font-weight: 800; }

.distance-card a:first-of-type { margin-top: auto; }

.distance-signup {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  color: #fff !important;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--signal-dark), var(--poster-red));
  text-align: center;
  box-shadow: 0 10px 22px rgba(200, 70, 31, .18);
}

.route-card {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) 1.1fr;
  gap: 30px;
  align-items: center;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.route-card-alt img { order: 2; }

.route-card-alt {
  grid-template-columns: 1.1fr minmax(280px, .9fr);
}

.route-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #15120f;
}

.route-image-crop {
  overflow: hidden;
  border-radius: 6px;
  background: #15120f;
}

.route-image-crop-5k {
  aspect-ratio: 16 / 9;
}

.route-image-crop-5k img {
  width: 121.581%;
  max-width: none;
  transform: translate(-8.875%, -8.875%);
}

.route-card h3 {
  margin: 4px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.route-description {
  max-width: 68ch;
  margin: 0;
  color: rgba(21, 23, 21, .78);
  line-height: 1.7;
}

.route-label {
  margin: 0;
  color: var(--sea);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .82rem;
}

.check-list {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mountain);
}

.route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--sea);
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(0, 95, 125, .22);
}

.route-link:hover { background: var(--sea-deep); }

.support-banner,
.support-strip {
  color: #fff;
  background: linear-gradient(135deg, var(--sea-deep), var(--sea));
}

.support-banner {
  padding: 42px 0;
}

.support-banner-inner,
.support-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.support-banner h2 {
  max-width: 820px;
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.02;
}

.support-banner p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.support-banner .eyebrow {
  color: var(--sand);
}

.support-strip {
  padding: 18px 0;
}

.support-strip-inner {
  flex-wrap: wrap;
}

.support-strip span {
  color: rgba(255, 255, 255, .78);
}

.support-strip a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.signups {
  color: #fff;
  background: linear-gradient(135deg, #052232, #074966 48%, #007fa3);
}

.signup-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 30px;
  align-items: center;
}

.signup-layout p,
.signup-layout .eyebrow { color: rgba(255, 255, 255, .78); }

.signup-countdown {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--signal);
  background: rgba(255, 255, 255, .08);
}

.signup-countdown span {
  color: #ffb99e;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.signup-countdown strong {
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.signup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.signup-actions .btn { margin-top: 0; }
.btn-calendar { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.btn-calendar:hover { background: rgba(255, 255, 255, .1); }

.entry-includes {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06)),
    rgba(4, 36, 52, .45);
  box-shadow: 0 24px 70px rgba(2, 24, 36, .24);
  backdrop-filter: blur(10px);
}

.entry-includes::after {
  content: "";
  position: absolute;
  right: -65px;
  top: -85px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(185, 255, 189, .12);
  pointer-events: none;
}

.entry-includes-heading {
  position: relative;
  z-index: 1;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.entry-includes-kicker {
  color: #b9ffbd;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.entry-includes h3 {
  margin: 5px 0 8px;
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.1;
}

.entry-includes-heading p {
  max-width: 580px;
  margin: 0;
  font-size: .92rem;
}

.entry-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.entry-benefits li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 11px;
  align-items: start;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .06);
  font-size: .82rem;
  line-height: 1.45;
}

.entry-benefits li:last-child,
.entry-benefits .benefit-featured {
  grid-column: 1 / -1;
}

.entry-benefits .benefit-featured {
  border-color: rgba(185, 255, 189, .35);
  background: linear-gradient(90deg, rgba(45, 115, 83, .36), rgba(255, 255, 255, .07));
}

.entry-benefits strong {
  color: #fff;
  font-weight: 850;
}

.entry-benefits small {
  display: block;
  margin-top: 3px;
  color: #b9ffbd;
  font-size: .72rem;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #062f43;
  background: #b9ffbd;
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .02em;
}

.entry-includes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.entry-includes-footer span {
  color: rgba(255, 255, 255, .6);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.entry-includes-footer a {
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.poster-feature {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 98px) 0;
  background:
    linear-gradient(135deg, rgba(185, 255, 189, .24), rgba(255, 255, 255, .86) 42%, rgba(243, 54, 31, .08)),
    var(--paper);
}

.poster-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(45, 115, 83, .12), transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(243, 54, 31, .16), transparent 30%);
}

.poster-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
}

.poster-copy h2 {
  max-width: 760px;
  margin: 0;
  color: var(--sea-deep);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .95;
}

.poster-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(16, 32, 42, .78);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.poster-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.poster-actions span {
  color: var(--signal-dark);
  font-weight: 900;
}

.poster-card {
  display: block;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 70px rgba(6, 62, 87, .18);
  transform: rotate(1.2deg);
}

.poster-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
}

.sponsors {
  padding-bottom: 28px;
}

.collab-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 34px 0 0;
  padding: 24px;
  color: #fff;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #07384f, #0b7898);
  box-shadow: var(--shadow);
}

.collab-cta h3 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.collab-cta p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.sponsor-grid article {
  flex: 0 1 calc((100% - 72px) / 5);
  min-height: 108px;
}

.sponsor-grid article.sponsor-silver {
  flex-basis: calc((100% - 72px) / 5);
  border-color: rgba(0, 127, 163, .28);
  background: linear-gradient(135deg, #fff, rgba(223, 243, 248, .72));
}

.sponsor-grid article.sponsor-silver .sponsor-link {
  min-height: 106px;
}

.sponsor-grid article.sponsor-silver img {
  width: min(210px, 100%);
  height: 72px;
}

.sponsor-link {
  min-height: 106px;
  padding: 14px 12px;
  display: grid;
  place-items: center;
  color: inherit;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  border-radius: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

.sponsor-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(6, 62, 87, .12);
}

.sponsor-link:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
}

.sponsor-link img {
  width: min(180px, 100%);
  height: 76px;
  object-fit: contain;
}

.sponsor-marquee {
  margin-top: 46px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #fff;
}

.sponsor-marquee-featured {
  margin-top: 0;
  box-shadow: 0 16px 34px rgba(6, 62, 87, .08);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 46px;
  width: max-content;
  padding: 20px 0;
  animation: marquee 34s linear infinite;
}

.sponsor-marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track img {
  width: 170px;
  height: 72px;
  object-fit: contain;
  filter: saturate(.85);
}

.marquee-track img.marquee-sponsor-wide {
  width: 260px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
}

.editions-section {
  padding-top: 48px;
  background: var(--mist);
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}

.editions-grid a {
  position: relative;
  min-height: 190px;
  height: 100%;
  display: grid;
  align-content: space-between;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 127, 163, .16);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 30px rgba(21, 23, 21, .06);
}

.editions-grid .edition-year {
  justify-self: end;
  color: var(--sea);
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 900;
}

.edition-card-info {
  display: grid;
  gap: 4px;
}

.edition-card-info strong {
  color: rgba(21, 23, 21, .74);
  font-size: .96rem;
}

.edition-card-info small {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 450;
  line-height: 1.35;
}

.edition-card-with-photos {
  isolation: isolate;
  min-height: 190px !important;
  border-color: rgba(0, 0, 0, .08) !important;
  background: #173229 !important;
}

.edition-card-with-photos::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .76));
  pointer-events: none;
}

.edition-card-slideshow {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.edition-card-slideshow img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .7s ease, transform 4.8s ease;
}

.edition-card-slideshow img.is-active {
  opacity: 1;
  transform: scale(1.08);
}

.edition-card-with-photos .edition-year,
.edition-card-with-photos .edition-card-info strong,
.edition-card-with-photos .edition-card-info small {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(21, 23, 21, .12);
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 4px;
  height: clamp(430px, 55vw, 680px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #dce8e6;
  box-shadow: 0 18px 48px rgba(21, 23, 21, .14);
}

.photo-mosaic-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #c8d9d7;
}

.photo-mosaic-item:nth-child(1) { grid-area: 1 / 1 / 5 / 5; }
.photo-mosaic-item:nth-child(2) { grid-area: 1 / 5 / 3 / 9; }
.photo-mosaic-item:nth-child(3) { grid-area: 1 / 9 / 4 / 13; }
.photo-mosaic-item:nth-child(4) { grid-area: 3 / 5 / 5 / 7; }
.photo-mosaic-item:nth-child(5) { grid-area: 3 / 7 / 5 / 9; }
.photo-mosaic-item:nth-child(6) { grid-area: 4 / 9 / 7 / 13; }
.photo-mosaic-item:nth-child(7) { grid-area: 5 / 1 / 7 / 5; }
.photo-mosaic-item:nth-child(8) { grid-area: 5 / 5 / 7 / 9; }

.photo-mosaic-item img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .8s ease, transform 5s ease;
}

.photo-mosaic-item img.is-active {
  opacity: 1;
  transform: scale(1.07);
}

.page-hero {
  padding: 96px 0 72px;
  background: linear-gradient(135deg, var(--sea-soft), #fff 46%, #eaf7ef);
}

.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); color: var(--ink); }
.page-hero p { max-width: 760px; font-size: 1.08rem; }

.guide-download {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  max-width: 1040px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--sea-deep), #087b9d);
  box-shadow: var(--shadow);
}

.guide-download-icon {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 14px;
  color: var(--coal);
  background: var(--poster-green);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.guide-download-copy h2 {
  margin: 2px 0 5px;
  color: #fff;
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  line-height: 1.1;
}

.guide-download-copy p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .94rem;
}

.guide-download-kicker {
  color: var(--poster-green);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-download-actions {
  display: grid;
  gap: 9px;
  justify-items: center;
}

.guide-download-actions .btn { white-space: nowrap; }

.guide-preview-link {
  color: rgba(255, 255, 255, .88);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.edition-hero {
  background:
    linear-gradient(135deg, rgba(223, 243, 248, .92), rgba(255, 253, 250, .94)),
    url("../img/hero/tossa-muralla.webp") center / cover;
}

.edition-layout {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.edition-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(21, 23, 21, .06);
}

.edition-panel h2 {
  margin: 0 0 8px;
}

.edition-results-panel {
  order: -1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.edition-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.edition-result-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(21, 23, 21, .06);
}

.edition-result-card .results-label {
  margin: 0 0 10px;
  color: var(--sea);
  font-size: 1.35rem;
  font-weight: 900;
}

.edition-result-card .results-link {
  align-self: center;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 0;
  text-align: center;
}

.edition-result-card .results-list {
  margin-bottom: 26px;
}

.edition-result-card.is-unavailable {
  justify-content: center;
  min-height: 260px;
}

.edition-result-card.is-unavailable p:last-child {
  color: var(--muted);
}

.edition-results-panel > .results-source {
  margin-top: 16px;
}

.results-label {
  margin: 20px 0 10px;
  color: var(--ink);
  font-weight: 850;
}

.results-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.results-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.result-position { color: var(--sea); font-weight: 900; }
.result-name { color: var(--ink); font-weight: 750; }
.result-time { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 850; }

.results-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.results-links .route-link { margin: 0; }

.results-link {
  display: inline-flex;
  margin: 10px 0 8px;
}

.results-source {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.edition-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.edition-placeholder-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.edition-gallery-status {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.edition-gallery-status.is-error {
  padding: 12px 14px;
  border-radius: 8px;
  color: #7b2d26;
  background: #fff0ed;
}

.edition-cloudinary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.edition-gallery-item {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: var(--mist);
  cursor: zoom-in;
}

.edition-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.edition-gallery-item:hover img,
.edition-gallery-item:focus-visible img {
  transform: scale(1.035);
}

.gallery-more {
  margin-top: 18px;
}

.edition-lightbox {
  width: min(94vw, 1180px);
  max-width: none;
  height: min(92vh, 900px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #111;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.edition-lightbox::backdrop {
  background: rgba(0, 0, 0, .86);
}

.edition-lightbox-inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.edition-lightbox-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edition-lightbox-close,
.edition-lightbox-nav {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, .58);
  cursor: pointer;
}

.edition-lightbox-close {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
}

.edition-lightbox-nav {
  top: 50%;
  width: 46px;
  height: 64px;
  border-radius: 9px;
  font-size: 2rem;
  transform: translateY(-50%);
}

.edition-lightbox-prev { left: 12px; }
.edition-lightbox-next { right: 12px; }

.edition-lightbox-position {
  position: absolute;
  right: 16px;
  bottom: 12px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .58);
  font-size: .82rem;
}

.edition-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 72px;
}

.edition-nav-link {
  display: inline-flex;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--sea);
  font-weight: 850;
}

.edition-nav-link:first-child { justify-self: start; }
.edition-nav-link:last-child { justify-self: end; }

.info-grid { grid-template-columns: repeat(3, 1fr); }

.info-card {
  padding: 22px;
}

.info-card h2,
.contact-card h2,
.site-footer h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.info-card p { margin: 0; color: rgba(21, 23, 21, .72); }
.info-card.pending { border-color: rgba(230, 95, 42, .35); }

.tracks-card {
  background: linear-gradient(135deg, #fff, var(--sea-soft));
}

.track-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.track-list a,
.track-list span {
  color: var(--sea-deep);
  font-weight: 850;
}

.track-note {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(21, 23, 21, .68);
  font-size: .95rem;
  line-height: 1.55;
}

.route-status {
  display: inline-flex;
  width: fit-content;
  margin: 4px 0 0;
  padding: 9px 12px;
  color: var(--sea-deep);
  border: 1px solid rgba(45, 115, 83, .2);
  border-radius: 6px;
  background: rgba(185, 255, 189, .32);
  font-weight: 900;
}

.legal-content {
  max-width: 850px;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.65rem;
}

.legal-content h2:first-child { margin-top: 0; }

details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.contact-form,
.contact-card { padding: 26px; }

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(18, 108, 133, .16);
  border-color: var(--sea);
}

.form-notice {
  width: fit-content;
  margin: 0 0 12px;
  color: #fff;
}

.form-feedback {
  min-height: 1.4em;
  margin: 0;
  color: var(--sea);
  font-weight: 800;
}

.contact-card {
  align-self: start;
  display: grid;
  gap: 10px;
  background: linear-gradient(135deg, var(--sea-deep), var(--sea));
  color: #fff;
}

.contact-card a { color: var(--sand); font-weight: 800; }

.site-footer {
  position: relative;
  margin-top: clamp(86px, 21.92vw, 306px);
  padding: 0 0 42px;
  color: rgba(255, 255, 255, .78);
  background: var(--footer-bg);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  height: 4px;
  background: var(--footer-bg);
  pointer-events: none;
}

.footer-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  display: block;
  overflow: hidden;
  height: clamp(86px, 21.92vw, 306px);
  padding: 0;
  background: #fff;
  pointer-events: none;
}

.footer-skyline .footer-panorama {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 182px minmax(260px, 1fr);
  gap: 28px;
  align-items: center;
  padding-top: 16px;
}

.footer-brand { color: #fff; }

.footer-brand .brand-logo {
  width: 78px;
  height: 70px;
}

.site-footer a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: rgba(255, 255, 255, .88);
  margin: 6px 0;
}

.site-footer h2 { color: #fff; }

.footer-social {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  justify-content: center;
  align-content: center;
  gap: 10px;
  margin-top: 12px;
  justify-self: center;
  grid-column: 2;
}

.site-footer .social-icon,
.contact-card .social-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  margin: 0;
  color: #fff;
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
}

.site-footer .social-icon::before,
.contact-card .social-icon::before {
  width: 27px;
  height: 27px;
}

.footer-insta {
  grid-column: 3;
  justify-self: end;
  width: 300px;
}

.insta-hashtag {
  display: inline-flex;
  margin: 0 0 10px;
  color: #dff3f8;
  font-weight: 900;
  font-size: .9rem;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .08);
}

.insta-grid a,
.insta-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, .14);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.insta-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .18);
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .62);
  font-size: .86rem;
}

.footer-legal a {
  display: inline-flex;
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 12px auto;
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(21, 23, 21, .98);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 2px 0 6px 12px;
    padding: 4px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, .18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu { display: none; }

  .nav-dropdown.is-open .nav-dropdown-menu { display: block; transform: none; }

  .header-contact {
    margin-left: auto;
  }

  .social-icon {
    width: 38px;
    height: 38px;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .distance-grid,
  .info-grid,
  .gallery-grid,
  .poster-layout,
  .editions-grid { grid-template-columns: repeat(2, 1fr); }

  .route-card,
  .signup-layout,
  .poster-layout,
  .contact-layout,
  .edition-layout,
  .footer-grid { grid-template-columns: 1fr; }

  .poster-card {
    max-width: 420px;
    margin-inline: auto;
  }

  .edition-results-grid { grid-template-columns: 1fr; }
  .edition-cloudinary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .support-banner-inner,
  .collab-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    justify-items: center;
    text-align: center;
  }

  .footer-about {
    display: grid;
    justify-items: center;
  }

  .footer-brand {
    justify-content: center;
    margin-inline: auto;
  }

  .footer-social {
    grid-column: auto;
    justify-self: center;
    margin-inline: auto;
  }

  .footer-insta {
    grid-column: auto;
    justify-self: center;
    width: min(300px, 100%);
  }

  .insta-hashtag {
    margin-inline: auto;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-legal a,
  .footer-legal span {
    text-align: center;
  }

  .route-card-alt img { order: 0; }
  .sponsor-grid article { flex-basis: calc((100% - 36px) / 3); }
  .sponsor-grid article.sponsor-silver { flex-basis: calc((100% - 36px) / 3); }

}

@media (max-width: 640px) {
  :root { --header-height: 125px; }
  .container { width: min(100% - 24px, var(--container)); }
  .site-header { flex-wrap: wrap; padding-inline: 12px; }
  .registration-promo { align-items: flex-start; flex-direction: column; gap: 3px; padding: 11px 12px; }
  .registration-promo strong { font-size: .7rem; }
  .registration-promo span { font-size: .68rem; }
  .brand span:last-child { max-width: 138px; overflow: hidden; text-overflow: ellipsis; }
  .brand-logo { width: 62px; height: 56px; }
  .header-contact {
    order: 4;
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .header-contact a { white-space: nowrap; }
  .header-contact .social-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }
  .hero-content { width: min(100% - 24px, 760px); margin-inline: auto; padding-bottom: 172px; }
  .hero h1 { font-size: 3.15rem; }
  .race-countdown { justify-content: space-between; gap: 4px; }
  .race-countdown-unit { min-width: 0; flex: 1; padding-inline: 5px; }
  .race-countdown-separator { display: none; }
  .hero-actions .btn { width: 100%; }
  .guide-download {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 20px;
  }
  .guide-download-actions {
    width: 100%;
    justify-items: stretch;
  }
  .guide-download-actions .btn { width: 100%; }
  .guide-preview-link { padding: 7px 0; text-align: center; }
  .signup-actions { align-items: stretch; flex-direction: column; }
  .signup-actions .btn { width: 100%; }
  .entry-includes { padding: 22px 16px; }
  .entry-benefits { grid-template-columns: 1fr; }
  .entry-benefits li:last-child,
  .entry-benefits .benefit-featured { grid-column: auto; }
  .entry-includes-footer { align-items: flex-start; flex-direction: column; }
  .section { padding: 58px 0; }
  .distance-grid,
  .info-grid,
  .gallery-grid,
  .poster-layout,
  .sponsor-grid,
  .editions-grid { grid-template-columns: 1fr; }
  .sponsor-grid article,
  .sponsor-grid article.sponsor-silver {
    flex-basis: min(100%, 300px);
    max-width: 300px;
  }
  .poster-feature { padding: 48px 0; }
  .poster-card { transform: none; }
  .poster-actions { align-items: stretch; flex-direction: column; }
  .poster-actions .btn { width: 100%; }
  .support-banner { padding: 34px 0; }
  .support-strip-inner { align-items: flex-start; flex-direction: column; }
  .route-card { padding: 12px; gap: 18px; }
  .route-card > div { padding: 0 4px 8px; }
  .edition-placeholder-grid,
  .edition-cloudinary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 180px);
    height: auto;
  }
  .photo-mosaic-item:nth-child(n) { grid-area: auto; }
  .photo-mosaic-item:nth-child(1),
  .photo-mosaic-item:nth-child(6) { grid-column: span 2; }
  .edition-nav { grid-template-columns: 1fr; }
  .edition-nav-link,
  .edition-nav-link:first-child,
  .edition-nav-link:last-child { justify-self: stretch; }
  .page-hero { padding: 72px 0 52px; }
  .footer-social { grid-template-columns: repeat(3, 54px); }
  .footer-legal { justify-content: center; }
  .insta-grid { grid-template-columns: repeat(4, 1fr); }
  .edition-lightbox {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .edition-lightbox-nav {
    width: 42px;
    height: 56px;
  }
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #111;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid #f2cb05;
  outline-offset: 3px;
}

.error-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 48px 0;
  text-align: center;
  background: linear-gradient(145deg, #f8f7f1, #e7f2ea);
}

.error-page-content { max-width: 700px; }
.error-page h1 { margin: 12px 0 18px; }
.error-page .btn { margin-top: 18px; }
