/*
Theme Name: ADVTRAIL 2027
Theme URI: https://www.alcudiadeveotrail.com/
Author: ADVTeam
Description: Tema oficial para la XV edición de ADVTRAIL.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: advtrail-2027
*/

:root {
  --adv-red: #e30613;
  --adv-red-dark: #b4000a;
  --adv-ink: #101014;
  --adv-muted: #64646d;
  --adv-paper: #f6f3ed;
  --adv-white: #ffffff;
  --adv-line: rgba(16, 16, 20, 0.14);
  --adv-max: 1240px;
  --adv-radius: 22px;
  --adv-shadow: 0 24px 70px rgba(16, 16, 20, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--adv-ink);
  background: var(--adv-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.2);
  color: #fff;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  color: var(--adv-ink);
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 40px rgba(16,16,20,.12);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--adv-max));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 128px; background: #fff; border-radius: 5px; padding: 5px 8px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--adv-red); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--adv-red);
  color: #fff !important;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.menu-toggle { display: none; margin-left: auto; border: 0; color: inherit; background: transparent; font-weight: 800; }

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #151515;
}
.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%; }
.hero-media::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(5,7,7,.88) 0%, rgba(5,7,7,.48) 42%, rgba(5,7,7,.14) 75%),
    linear-gradient(0deg, rgba(5,7,7,.74) 0%, transparent 58%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--adv-max));
  margin: 0 auto;
  padding: 180px 0 82px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--adv-red); }
.hero h1, .display-title {
  max-width: 890px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4rem, 9.4vw, 8.6rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .88;
  text-transform: uppercase;
}
.hero h1 span { color: var(--adv-red); }
.hero-lead { max-width: 650px; margin: 26px 0 0; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 620; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--adv-red); color: #fff; }
.button-primary:hover { background: var(--adv-red-dark); }
.button-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.button-ghost:hover { background: #fff; color: #111; }
.button-dark { background: var(--adv-ink); color: #fff; }

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 26px;
  margin-top: 56px;
}
.hero-proof strong { display: block; font-size: 1.05rem; }
.hero-proof span { color: rgba(255,255,255,.72); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }

.opening-strip { background: var(--adv-red); color: #fff; }
.opening-inner {
  width: min(calc(100% - 40px), var(--adv-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.opening-item { padding: 25px 28px; border-left: 1px solid rgba(255,255,255,.28); }
.opening-item:first-child { border-left: 0; padding-left: 0; }
.opening-item small { display: block; opacity: .78; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.opening-item strong { display: block; margin-top: 2px; font-size: 1.18rem; }

.section { padding: clamp(78px, 10vw, 138px) 0; }
.section-inner { width: min(calc(100% - 40px), var(--adv-max)); margin: 0 auto; }
.section-heading { max-width: 780px; margin-bottom: 52px; }
.section-heading h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.1rem, 7vw, 6.3rem);
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.section-heading p { max-width: 650px; margin: 20px 0 0; color: var(--adv-muted); font-size: 1.08rem; }

.races-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.race-card {
  position: relative;
  min-height: 500px;
  padding: 34px;
  border-radius: var(--adv-radius);
  overflow: hidden;
  color: #fff;
  background: #151515;
  box-shadow: var(--adv-shadow);
}
.race-card:nth-child(1), .race-card:nth-child(2) { grid-column: span 6; }
.race-card-long { grid-column: 1 / -1; min-height: 560px; }
.race-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.race-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,8,10,.92), rgba(8,8,10,.18) 70%); }
.race-card-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.race-tag { position: absolute; top: 0; left: 0; padding: 8px 13px; background: var(--adv-red); font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.race-card h3 { margin: 0 0 12px; font-family: Impact, sans-serif; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .9; text-transform: uppercase; }
.race-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.race-meta span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: .76rem; font-weight: 800; }
.race-card p { max-width: 630px; margin: 0; color: rgba(255,255,255,.78); }
.race-card-long h3 { max-width: 900px; }

.legacy { background: var(--adv-ink); color: #fff; }
.legacy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.poster-frame { position: relative; max-width: 500px; margin: auto; }
.poster-frame img { width: 100%; border-radius: var(--adv-radius); box-shadow: 0 32px 90px rgba(0,0,0,.45); }
.poster-badge {
  position: absolute;
  right: -26px;
  bottom: 44px;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--adv-red);
  text-align: center;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
  transform: rotate(-8deg);
}
.legacy-copy h2 { margin: 0; font-family: Impact, sans-serif; font-size: clamp(3.6rem, 7vw, 7rem); line-height: .9; text-transform: uppercase; }
.legacy-copy h2 span { color: var(--adv-red); }
.legacy-copy p { max-width: 620px; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.fact { padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; }
.fact strong { display: block; font-size: 1.5rem; }
.fact span { color: rgba(255,255,255,.6); font-size: .82rem; text-transform: uppercase; }

.territory-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.photo-card { min-height: 640px; position: relative; overflow: hidden; border-radius: var(--adv-radius); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card-small { min-height: 310px; }
.photo-stack { display: grid; gap: 20px; }
.photo-label { position: absolute; inset: auto 20px 20px; padding: 12px 15px; border-radius: 12px; color: #fff; background: rgba(10,10,12,.7); backdrop-filter: blur(10px); font-weight: 800; }

.sponsor-cta { background: var(--adv-red); color: #fff; }
.sponsor-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: center; }
.sponsor-grid h2 { margin: 0; font-family: Impact, sans-serif; font-size: clamp(3.4rem, 7vw, 6.5rem); line-height: .9; text-transform: uppercase; }
.sponsor-grid p { max-width: 650px; font-size: 1.06rem; }
.sponsor-panel { padding: 30px; border: 1px solid rgba(255,255,255,.4); border-radius: 18px; }
.sponsor-panel strong { display: block; font-size: 1.4rem; }

.site-footer { padding: 64px 0 30px; color: #fff; background: #08080a; }
.footer-grid { width: min(calc(100% - 40px), var(--adv-max)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-logo { width: 160px; padding: 8px; border-radius: 6px; background: #fff; }
.footer-title { margin: 0 0 12px; color: rgba(255,255,255,.55); font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li + li { margin-top: 8px; }
.footer-list a { color: #fff; text-decoration: none; }
.footer-bottom { width: min(calc(100% - 40px), var(--adv-max)); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.48); font-size: .78rem; }

.page-shell { min-height: 70vh; padding: 150px 0 100px; }
.page-shell > * { width: min(calc(100% - 40px), 900px); margin-inline: auto; }
.page-shell h1 { font-family: Impact, sans-serif; font-size: clamp(3.2rem, 8vw, 6.5rem); line-height: .9; text-transform: uppercase; }
.page-shell a { color: var(--adv-red); }

.subhero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #101014;
}
.subhero-media, .subhero-media::after { position: absolute; inset: 0; }
.subhero-media img { width: 100%; height: 100%; object-fit: cover; }
.subhero-media::after { content: ""; background: linear-gradient(0deg, rgba(5,5,7,.9), rgba(5,5,7,.2) 75%); }
.subhero-inner { position: relative; z-index: 1; width: min(calc(100% - 40px), var(--adv-max)); margin: 0 auto; padding: 170px 0 65px; }
.subhero h1 { max-width: 980px; margin: 0; font-family: Impact, sans-serif; font-size: clamp(4rem, 9vw, 8rem); line-height: .88; letter-spacing: -.03em; text-transform: uppercase; }
.subhero p:not(.eyebrow) { max-width: 690px; margin: 22px 0 0; font-size: 1.18rem; }
.content-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.content-card { grid-column: span 6; padding: clamp(26px, 4vw, 42px); border: 1px solid var(--adv-line); border-radius: var(--adv-radius); background: #fff; }
.content-card-wide { grid-column: 1 / -1; }
.content-card-dark { color: #fff; background: var(--adv-ink); }
.content-card-red { color: #fff; background: var(--adv-red); }
.content-card h2, .content-card h3 { margin-top: 0; }
.content-card h2 { font-family: Impact, sans-serif; font-size: clamp(2.8rem, 5vw, 4.8rem); line-height: .92; text-transform: uppercase; }
.content-card h3 { font-size: 1.45rem; }
.content-card p:last-child { margin-bottom: 0; }
.button-small { min-height: 46px; padding-inline: 19px; font-size: .76rem; }
.card-action { margin-top: 26px !important; }
.race-switcher { position: sticky; top: 82px; z-index: 50; color: #fff; background: var(--adv-ink); }
body.admin-bar .race-switcher { top: 114px; }
.race-switcher-inner { width: min(calc(100% - 40px), var(--adv-max)); min-height: 64px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.race-switcher a { padding: 10px 17px; border-radius: 999px; text-decoration: none; font-size: .78rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.race-switcher a:hover, .race-switcher a:focus-visible, .race-switcher a.is-active { color: #fff; background: var(--adv-red); }
.race-hero-stats { display: grid; grid-template-columns: repeat(4, minmax(135px, max-content)); gap: 13px; margin-top: 34px; }
.race-hero-stats div { padding: 14px 18px; border: 1px solid rgba(255,255,255,.42); border-radius: 14px; background: rgba(10,10,12,.3); backdrop-filter: blur(9px); }
.race-hero-stats strong { display: block; font-size: 1.35rem; line-height: 1.1; }
.race-hero-stats span { display: block; margin-top: 4px; color: rgba(255,255,255,.7); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.race-detail-section { background: #fff; }
.race-intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.race-story h2, .route-section h2 { margin: 0; font-family: Impact, sans-serif; font-size: clamp(3.2rem, 7vw, 6.5rem); line-height: .9; text-transform: uppercase; }
.race-story .lead { max-width: 760px; font-size: clamp(1.18rem, 2vw, 1.5rem); font-weight: 760; }
.race-story p { max-width: 780px; }
.track-panel { padding: clamp(26px, 4vw, 40px); border-radius: var(--adv-radius); color: #fff; background: var(--adv-ink); box-shadow: var(--adv-shadow); }
.track-panel h2 { margin: 0; font-family: Impact, sans-serif; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .9; text-transform: uppercase; }
.track-panel p { color: rgba(255,255,255,.72); }
.track-panel .notice { margin: 24px 0; border-left-color: var(--adv-red); background: rgba(255,255,255,.08); }
.track-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.route-description { color: #fff; background: var(--adv-ink); }
.route-description .section-heading p { color: rgba(255,255,255,.7); }
.route-description .section-heading { max-width: 900px; }
.route-stage-list { border-top: 1px solid rgba(255,255,255,.2); }
.route-stage { display: grid; grid-template-columns: 210px 1fr; gap: clamp(24px, 5vw, 72px); padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.route-stage-data small { display: block; color: var(--adv-red); font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.route-stage-data strong { display: block; margin-top: 7px; font-family: Impact, sans-serif; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: .9; text-transform: uppercase; }
.route-stage-copy h3 { margin: 0 0 12px; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.15; text-transform: uppercase; }
.route-stage-copy p { max-width: 850px; margin: 0; color: rgba(255,255,255,.7); }
.profile-section { padding-top: 0; color: #fff; background: var(--adv-ink); }
.profile-card { padding: clamp(24px, 4vw, 46px); border: 1px solid rgba(255,255,255,.16); border-radius: var(--adv-radius); background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); overflow: hidden; }
.profile-card-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 30px; }
.profile-card-head h2 { max-width: 720px; margin: 0; font-family: Impact, sans-serif; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .9; text-transform: uppercase; }
.profile-card-head p { max-width: 430px; margin: 0; color: rgba(255,255,255,.66); }
.elevation-profile { position: relative; padding: 22px 18px 14px; border-radius: 18px; color: #fff; background: #08080b; }
.profile-chart { position: relative; }
.elevation-profile svg { display: block; width: 100%; height: auto; overflow: visible; }
.elevation-profile .profile-grid { stroke: rgba(255,255,255,.11); stroke-width: 1; vector-effect: non-scaling-stroke; }
.elevation-profile .profile-area { fill: url(#profile-gradient); }
.elevation-profile .profile-line { fill: none; stroke: var(--adv-red); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.profile-scale { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; color: rgba(255,255,255,.52); font-size: .69rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.profile-markers { position: absolute; inset: 0; pointer-events: none; }
.aid-marker { position: absolute; top: 0; bottom: 7.4%; left: var(--x); width: 0; border-left: 1px dashed rgba(255,255,255,.68); }
.aid-marker::after { content: ""; position: absolute; top: var(--y); left: -6px; width: 11px; height: 11px; border: 3px solid #fff; border-radius: 50%; background: var(--adv-red); box-shadow: 0 0 0 4px rgba(227,6,19,.28); }
.aid-marker-label { position: absolute; top: var(--label-top, 3px); left: 0; transform: translateX(-50%); padding: 5px 8px; border-radius: 7px; color: #fff; background: rgba(16,16,20,.92); font-size: .62rem; font-weight: 950; line-height: 1; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; }
.aid-marker.is-edge .aid-marker-label { transform: translateX(-100%); }
.aid-stations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.aid-stations > strong { width: 100%; margin-bottom: 2px; color: rgba(255,255,255,.6); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.aid-stations span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.07); font-size: .76rem; font-weight: 800; }
.aid-stations small { width: 100%; margin-top: 5px; color: rgba(255,255,255,.58); }
.profile-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.profile-facts div { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.07); }
.profile-facts strong { display: block; font-size: 1.2rem; }
.profile-facts span { display: block; margin-top: 3px; color: rgba(255,255,255,.55); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.profile-source { margin: 18px 0 0; color: rgba(255,255,255,.55); font-size: .78rem; }
.profile-source a { color: #fff; font-weight: 850; }
.finish-party { position: relative; overflow: hidden; color: #fff; background: var(--adv-red); }
.finish-party::after { content: "ADV"; position: absolute; right: -28px; bottom: -86px; color: rgba(255,255,255,.08); font-family: Impact, sans-serif; font-size: clamp(15rem, 34vw, 34rem); line-height: .8; pointer-events: none; }
.finish-party-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.finish-party-copy h2 { max-width: 700px; margin: 0; font-family: Impact, sans-serif; font-size: clamp(4rem, 8.5vw, 8rem); line-height: .86; letter-spacing: -.025em; text-transform: uppercase; }
.finish-party-copy .eyebrow::before { background: #fff; }
.finish-party-lead { max-width: 630px; margin: 25px 0 0; font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 850; line-height: 1.25; }
.finish-party-copy > p:last-child { max-width: 650px; }
.party-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.party-feature { min-height: 150px; padding: 22px; border: 1px solid rgba(255,255,255,.42); border-radius: 18px; background: rgba(16,16,20,.13); backdrop-filter: blur(5px); }
.party-feature small { display: block; margin-bottom: 12px; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; opacity: .68; }
.party-feature strong { display: block; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.12; text-transform: uppercase; }
.party-feature span { display: block; margin-top: 8px; font-size: .9rem; line-height: 1.4; opacity: .82; }
.party-callout { grid-column: 1 / -1; margin: 2px 0 0; padding: 20px 22px; border-radius: 16px; color: #fff; background: var(--adv-ink); font-weight: 850; }
.finisher-ceremony { color: #fff; background: var(--adv-ink); }
.finisher-ceremony-grid { display: grid; grid-template-columns: .42fr .58fr; gap: clamp(34px, 7vw, 100px); align-items: center; }
.ceremony-time { position: relative; min-height: 360px; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 54px); border-radius: var(--adv-radius); background: var(--adv-red); overflow: hidden; }
.ceremony-time::after { content: "TAE"; position: absolute; right: -18px; bottom: -30px; color: rgba(255,255,255,.12); font-family: Impact, sans-serif; font-size: clamp(8rem, 18vw, 15rem); line-height: .8; }
.ceremony-time small, .ceremony-time strong, .ceremony-time span { position: relative; z-index: 1; }
.ceremony-time small { font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.ceremony-time strong { display: block; margin-top: 12px; font-family: Impact, sans-serif; font-size: clamp(5.5rem, 12vw, 10rem); line-height: .78; }
.ceremony-time span { display: block; margin-top: 20px; font-weight: 850; }
.ceremony-copy h2 { max-width: 780px; margin: 0; font-family: Impact, sans-serif; font-size: clamp(3.5rem, 7vw, 7rem); line-height: .88; text-transform: uppercase; }
.ceremony-copy .lead { max-width: 720px; margin: 25px 0 0; font-size: clamp(1.18rem, 2vw, 1.55rem); font-weight: 800; }
.ceremony-copy p:not(.eyebrow):not(.lead) { max-width: 720px; color: rgba(255,255,255,.7); }
.ceremony-name { display: inline-block; margin-top: 18px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .75rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.route-section { padding-top: 0; background: #fff; }
.route-landmarks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; }
.route-landmark { min-height: 116px; padding: 20px; border: 1px solid var(--adv-line); border-radius: 16px; background: var(--adv-paper); }
.route-landmark small { display: block; margin-bottom: 7px; color: var(--adv-red); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.route-landmark strong { display: block; font-size: 1.04rem; }
.race-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.race-info-card { padding: clamp(25px, 4vw, 40px); border-radius: var(--adv-radius); background: var(--adv-paper); }
.race-info-card-dark { color: #fff; background: var(--adv-ink); }
.race-info-card h3 { margin: 0 0 20px; font-family: Impact, sans-serif; font-size: clamp(2.4rem, 4vw, 4rem); line-height: .95; text-transform: uppercase; }
.race-info-card-dark .data-table th, .race-info-card-dark .data-table td { border-color: rgba(255,255,255,.2); }
.statline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.statline div { padding: 18px; border: 1px solid currentColor; border-radius: 14px; }
.statline strong { display: block; font-size: 1.5rem; }
.statline span { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 15px 0; border-bottom: 1px solid var(--adv-line); text-align: left; vertical-align: top; }
.data-table th { width: 42%; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.content-card-dark .data-table th, .content-card-dark .data-table td,
.content-card-red .data-table th, .content-card-red .data-table td { border-color: rgba(255,255,255,.25); }
.notice { padding: 22px; border-left: 5px solid var(--adv-red); background: rgba(227,6,19,.07); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 0 0 28px 70px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--adv-red); font-size: 1.3rem; font-weight: 950; }
.steps li + li { padding-top: 4px; border-top: 1px solid var(--adv-line); }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--adv-line); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--adv-red); font-weight: 950; }
.big-quote { margin: 0; font-family: Impact, sans-serif; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: .95; text-transform: uppercase; }
.clubs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.clubs span { padding: 10px 14px; border: 1px solid var(--adv-line); border-radius: 999px; font-size: .82rem; font-weight: 800; }
.contact-link { display: block; margin-top: 10px; font-size: clamp(1.35rem, 3vw, 2.3rem); font-weight: 900; text-decoration: none; overflow-wrap: anywhere; }
.contact-link:hover { color: var(--adv-red); }

@media (max-width: 900px) {
  .content-card { grid-column: 1 / -1; }
  .statline { grid-template-columns: 1fr; }
  .race-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .race-intro-grid, .race-info-grid { grid-template-columns: 1fr; }
  .route-landmarks { grid-template-columns: repeat(2, 1fr); }
  .route-stage { grid-template-columns: 1fr; gap: 16px; }
  .profile-card-head { display: block; }
  .profile-card-head p { margin-top: 16px; }
  .finish-party-grid { grid-template-columns: 1fr; }
  .finisher-ceremony-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .race-switcher { top: 116px; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 22px; background: #fff; color: var(--adv-ink); box-shadow: var(--adv-shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: flex-start; flex-direction: column; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .hero { min-height: 850px; }
  .hero-media img { object-position: 68% center; }
  .hero-content { padding-bottom: 56px; }
  .hero-proof { grid-template-columns: 1fr; gap: 12px; }
  .opening-inner { grid-template-columns: 1fr; }
  .opening-item, .opening-item:first-child { padding: 18px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.25); }
  .opening-item:first-child { border-top: 0; }
  .race-card:nth-child(1), .race-card:nth-child(2), .race-card-long { grid-column: 1 / -1; }
  .legacy-grid, .territory-grid, .sponsor-grid { grid-template-columns: 1fr; }
  .poster-badge { right: -8px; width: 120px; height: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner { width: min(calc(100% - 28px), var(--adv-max)); min-height: 70px; }
  .brand img { width: 105px; }
  .hero-content, .section-inner, .opening-inner, .footer-grid, .footer-bottom { width: min(calc(100% - 28px), var(--adv-max)); }
  .hero h1 { font-size: clamp(3.45rem, 18vw, 5rem); }
  .hero-actions .button { width: 100%; }
  .race-card { min-height: 460px; padding: 24px; }
  .facts { grid-template-columns: 1fr; }
  .photo-card { min-height: 470px; }
  .photo-card-small { min-height: 260px; }
  .footer-bottom { flex-direction: column; }
  .race-switcher { top: 70px; overflow-x: auto; }
  body.admin-bar .race-switcher { top: 116px; }
  .race-switcher-inner { width: max-content; min-width: 100%; padding-inline: 14px; }
  .race-hero-stats, .route-landmarks { grid-template-columns: 1fr; }
  .profile-facts { grid-template-columns: 1fr; }
  .elevation-profile { padding-inline: 10px; }
  .profile-scale span:nth-child(even) { display: none; }
  .aid-marker-label { display: none; }
  .party-features { grid-template-columns: 1fr; }
}

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