:root {
  color-scheme: only light;
  --pink: #e60069;
  --pink-dark: #be0058;
  --ink: #171519;
  --charcoal: #262328;
  --ice: #f5f3f5;
  --white: #fff;
  --muted: #68636a;
  --line: #ded9df;
  --page: 1220px;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--ice); }
body { margin: 0; background: var(--ice); color: var(--ink); font: 14px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--pink-dark); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 10; top: -60px; left: 12px; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

.site-header { position: relative; height: 84px; padding: 0 max(24px, calc((100% - var(--page)) / 2)); display: flex; align-items: center; gap: 38px; background: var(--ice); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 94px; height: 4px; background: var(--pink); clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.brand { display: inline-flex; align-items: center; white-space: nowrap; }
.brand-logo-box { width: 132px; height: 76px; padding: 3px 6px; display: flex; align-items: center; justify-content: center; }
.brand-logo-box img { display: block; width: 122px; height: 72px; object-fit: contain; }
.site-header nav { display: flex; gap: 27px; margin-left: auto; }
.site-header nav a { color: var(--ink); background: var(--ice); font-size: 12px; font-weight: 700; }
.site-header nav a:hover, .footer-contact:hover { color: var(--pink-dark); }
.header-cta { min-height: 38px; padding: 0 13px; display: inline-flex; align-items: center; gap: 15px; background: var(--pink); color: white; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.header-cta:hover, .button:hover { background: var(--pink-dark); }

.hero { width: min(100%, var(--page)); margin: 0 auto; padding: 22px 24px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: stretch; }
.event-column { min-width: 0; padding: 9px 0 5px; }
.event-intro { padding: 4px 4px 19px; }
.event-intro::before { content: ""; display: block; width: 34px; height: 5px; margin: 0 0 10px 1px; background: var(--pink); transform: skewX(-30deg); }
.eyebrow { margin: 0 0 12px; color: var(--pink-dark); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { padding: 0 4px; color: var(--muted); }
.event-intro h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: .96; letter-spacing: -.07em; font-weight: 900; text-transform: uppercase; }
.event-intro h1 em { color: var(--pink); font-style: normal; }
.hero-edition { margin: 14px 0 0; color: #4f4a51; font-size: 13px; font-weight: 700; }
.hero-edition b { padding: 0 5px; color: var(--pink-dark); }
.hero-price { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 13px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-price strong { font-size: 22px; letter-spacing: -.04em; }
.button { min-height: 39px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; background: var(--pink); color: white; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.button span, .header-cta span { font-size: 15px; }
.hero-note { max-width: 350px; margin: 8px 0 8px; color: #625d64; font-size: 12px; line-height: 1.45; }

.categories { padding-top: 14px; border-top: 1px solid var(--line); }
.categories-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.categories-heading h2 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.04em; }
.categories-heading > span { color: #5e5961; font-size: 11px; text-align: right; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 11px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.category-card { min-width: 0; min-height: 138px; padding: 9px 9px 8px 0; position: relative; }
.category-card + .category-card { padding-left: 10px; border-left: 1px solid var(--line); }
.category-order { display: none; }
.category-card h3 { margin: 0; font-size: 15px; line-height: 1.1; letter-spacing: -.03em; font-weight: 900; text-transform: uppercase; }
.category-label { min-height: 18px; margin: 3px 0 0; color: #5d5760; font-size: 12px; font-weight: 700; }
.category-label:empty { display: block; }
.laps { display: flex; align-items: baseline; gap: 5px; margin: 4px 0 0; }
.laps strong { color: var(--pink); font-size: 40px; line-height: .95; letter-spacing: -.08em; }
.laps span { font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.category-distance { margin: 5px 0 0; color: #635e66; font-size: 11px; line-height: 1.3; }
.reference-note { margin: 8px 0 0; color: #625d64; font-size: 11px; line-height: 1.4; }

.route-panel { min-width: 0; padding: 19px 20px 15px; display: flex; flex-direction: column; background: var(--ink); color: white; }
.route-heading h2 { margin: 2px 0 0; font-size: 23px; line-height: 1.15; letter-spacing: -.045em; }
.route-stats { display: flex; gap: 28px; margin: 10px 0 8px; }
.route-stats div { display: flex; flex-direction: column; gap: 1px; }
.route-stats dt { color: #c5bec7; font-size: 11px; }
.route-stats dd { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -.04em; }
.route-visual { display: flex; flex: 1; flex-direction: column; gap: 7px; min-height: 0; }
.route-visual figure { width: 100%; margin: 0; }
.route-visual img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.route-trace img { width: 100%; max-height: none; }
.route-profile img { width: 100%; max-height: none; }
.profile-interactive { position: relative; }
.profile-interactive svg { display: block; width: 100%; height: auto; background: var(--ink); }
.profile-hit-area { cursor: crosshair; touch-action: pan-y; outline: none; }
.profile-hit-area:focus-visible { stroke: #fff; stroke-width: 1; stroke-dasharray: 3 3; outline: 2px solid #fff; outline-offset: 3px; }
.profile-cursor { pointer-events: none; }
.profile-readout { position: absolute; z-index: 1; padding: 4px 7px; border: 1px solid #ff4599; border-radius: 5px; background: #171519; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px #0005; }
.profile-readout[hidden] { display: none; }
.route-hover-point { filter: drop-shadow(0 1px 3px #171519); }
.route-map-shell { position: relative; height: 360px; isolation: isolate; overflow: hidden; border: 1px solid #48434a; }
#route-map { position: absolute; inset: 0; background: var(--ink); z-index: 0; }
.route-map-fallback { position: absolute; inset: 0; width: 100% !important; height: 100% !important; padding: 140px 15px 25px; object-fit: contain; z-index: 1; }
.route-map-fallback[hidden] { display: none; }
.route-info { position: absolute; top: 12px; left: 12px; z-index: 500; max-width: calc(100% - 24px); padding: 7px 10px 8px; border-left: 3px solid var(--pink); background: var(--ink); pointer-events: none; }
.route-info .route-heading h2 { margin: 0; font-size: 21px; line-height: 1.1; }
.route-info .route-stats dt { font-size: 10px; line-height: 1.2; }
.route-info .route-stats { margin: 5px 0 0; gap: 24px; }
.route-info .route-stats dd { font-size: 18px; }
.route-km-marker { background: transparent; border: 0; }
.route-km-label { display: block; width: 38px; height: 22px; border: 1.5px solid #ff4599; border-radius: 12px; background: #171519; color: white; font: 700 11px/19px Arial, sans-serif; text-align: center; box-shadow: 0 1px 4px rgb(0 0 0 / 25%); }
.route-map-shell .leaflet-control-attribution { font-size: 10px; background: #fff; }
.route-map-shell .leaflet-control-attribution a { color: #075985; }
.route-map-shell .leaflet-control-zoom { display: flex; flex-direction: column; gap: 8px; border: 0; box-shadow: none; }
.route-map-shell .leaflet-control-zoom a { position: relative; display: flex; align-items: center; justify-content: center; color: #171519; border: 1px solid #aaa; border-radius: 4px; box-shadow: 0 1px 5px #0005; }
.route-panel a:focus-visible { outline-color: #fff; }
.route-map-shell .leaflet-control-zoom a:focus-visible { outline-color: var(--ink); }
.map-zoom-icon { width: 20px; height: 20px; pointer-events: none; }
.map-control-tooltip { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); visibility: hidden; padding: 4px 7px; border-radius: 4px; background: var(--ink); color: #fff; font: 700 11px/1.5 var(--sans); white-space: nowrap; pointer-events: none; }
.leaflet-control-zoom a:not(.tooltip-dismissed):hover .map-control-tooltip,
.leaflet-control-zoom a:not(.tooltip-dismissed):focus-visible .map-control-tooltip { visibility: visible; }
.map-status { position: absolute; z-index: 500; right: 9px; bottom: 27px; margin: 0; padding: 4px 7px; background: rgb(23 21 25 / 90%); color: #d5d0d7; font-size: 10px; }
.route-visual figcaption { position: relative; margin-top: 2px; background: var(--ink); color: #b9b2bb; font-size: 11px; text-align: right; }
.route-foot { margin-top: 8px; padding-top: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-top: 1px solid #48434a; }
.route-foot a { flex: 0 0 auto; color: #ff70b1; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.route-foot p { margin: 0; color: #b9b2bb; font-size: 11px; line-height: 1.35; text-align: right; }

.section-wrap { width: min(100%, var(--page)); margin: 0 auto; padding: 38px 24px; }
.partners { padding-top: 34px; padding-bottom: 35px; border-top: 1px solid var(--line); }
.partners-heading { margin-bottom: 15px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.partners-heading .eyebrow { margin-bottom: 4px; }
.partners-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); line-height: 1.05; letter-spacing: -.055em; }
.partners-heading h2 em { color: var(--pink); font-style: normal; }
.partners-heading > span { color: #625d64; font-size: 12px; text-align: right; }
.sponsor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sponsor-card { min-width: 0; min-height: 140px; padding: 6px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.sponsor-frame { width: 100%; height: 96px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sponsor-logo { display: block; max-width: 100%; width: auto; height: 96px; object-fit: contain; }
.sponsor-crop { position: relative; flex: none; overflow: hidden; }
.sponsor-crop img { position: absolute; display: block; max-width: none; }
.sponsor-card p { margin: 0; color: #57515a; font-size: 12px; line-height: 1.2; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
.institutional-partner { margin-top: 12px; padding: 9px 12px; display: flex; align-items: center; gap: 13px; background: #ece8ec; }
.city-logo { width: 86px; height: 86px; flex: 0 0 86px; position: relative; overflow: hidden; }
.city-logo img { position: absolute; width: 363px; height: auto; max-width: none; left: -12px; top: -16px; }
.institutional-partner > div:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.partner-label { position: relative; color: var(--pink-dark); background: #ece8ec; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.institutional-partner strong { margin-top: 2px; font-size: 14px; }

.faq { padding-top: 0; padding-bottom: 30px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 10px 28px 10px 0; list-style: none; font-size: 12px; font-weight: 800; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 5px; color: var(--pink); font-size: 20px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 26px 12px 0; color: #625d64; font-size: 12px; line-height: 1.5; }
.faq details p a { color: var(--pink-dark); text-decoration: underline; text-underline-offset: 3px; }
.site-footer { padding: 15px max(24px, calc((100% - var(--page)) / 2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: var(--ink); color: white; }
.site-footer .brand-logo-box { width: 128px; height: 74px; }
.site-footer .brand-logo-box img { width: 118px; height: 68px; filter: brightness(0) invert(1); }
.site-footer p { margin: 0; color: #c5c0c7; font-size: 12px; }
.footer-contact { color: #ff65aa; font-size: 12px; font-weight: 800; }

@media (max-width: 800px) {
  .site-header { padding: 0 18px; gap: 20px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 11px; }
  .hero { padding: 18px; gap: 16px; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  .event-intro h1 { font-size: clamp(32px, 4.6vw, 42px); }
  .route-panel { padding: 16px 14px 13px; }
  .route-foot { align-items: flex-start; flex-direction: column; gap: 5px; }
  .route-foot p { text-align: left; }
  .section-wrap { padding-left: 18px; padding-right: 18px; }
  .city-logo { width: 76px; height: 76px; flex-basis: 76px; }
  .city-logo img { width: 321px; height: auto; left: -11px; top: -14px; }
}

@media (min-width: 1000px) {
  .sponsor-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 104px; }
  .site-header { height: auto; min-height: 72px; flex-wrap: wrap; gap: 0 12px; padding: 5px 14px 0; }
  .brand-logo-box { width: 112px; height: 65px; }
  .brand-logo-box img { width: 102px; height: 59px; }
  .header-cta { min-height: 36px; margin-left: auto; padding: 0 10px; gap: 8px; font-size: 10px; }
  .site-header nav { order: 3; width: 100%; margin: 0; justify-content: center; gap: 24px; }
  .site-header nav a { min-height: 36px; display: inline-flex; align-items: center; font-size: 12px; }
  .hero { padding: 17px 14px 20px; grid-template-columns: 1fr; gap: 15px; }
  .event-column { padding: 0; }
  .event-intro { padding: 4px 2px 14px; }
  .event-intro h1 { font-size: clamp(34px, 9vw, 43px); }
  .hero-edition { font-size: 12px; }
  .hero-price strong { font-size: 21px; }
  .categories { padding-top: 11px; }
  .categories-heading h2 { font-size: 19px; }
  .categories-heading > span { max-width: 130px; font-size: 11px; }
  .category-grid { margin-top: 9px; }
  .category-card { min-height: 130px; padding-right: 6px; }
  .category-card + .category-card { padding-left: 7px; }
  .category-card h3 { font-size: 13px; }
  .category-label { font-size: 12px; }
  .laps { gap: 4px; }
  .laps strong { font-size: 36px; }
  .laps span { font-size: 9px; }
  .category-distance, .reference-note { font-size: 11px; }
  .route-panel { padding: 16px 13px 13px; }
  .route-heading h2 { font-size: 21px; }
  .route-stats { gap: 22px; }
  .route-visual { gap: 5px; }
  .route-visual figcaption { font-size: 11px; }
  .route-foot { margin-top: 7px; }
  .partners { padding-top: 25px; padding-bottom: 23px; }
  .partners-heading { margin-bottom: 11px; align-items: flex-start; flex-direction: column; gap: 5px; }
  .partners-heading h2 { font-size: 25px; }
  .partners-heading > span { text-align: left; font-size: 12px; }
  .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsor-card { min-height: 140px; padding: 6px; }
  .sponsor-frame { height: 84px; }
  .sponsor-logo { height: 84px; }
  .sponsor-card p { font-size: 12px; }
  .institutional-partner { margin-top: 9px; padding: 7px 9px; }
  .city-logo { width: 76px; height: 76px; flex-basis: 76px; }
  .city-logo img { width: 321px; height: auto; left: -11px; top: -14px; }
  .institutional-partner strong { font-size: 13px; }
  .faq { padding-bottom: 22px; }
  .site-footer { padding: 13px; grid-template-columns: 1fr auto; gap: 8px; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
  .footer-contact { grid-column: 2; grid-row: 1; font-size: 11px; }
}

@media (max-width: 370px) {
  .site-header { padding-left: 10px; padding-right: 10px; gap: 0 8px; }
  .brand-logo-box { width: 102px; height: 60px; padding: 2px 4px; }
  .brand-logo-box img { width: 94px; height: 56px; }
  .header-cta { min-height: 34px; gap: 6px; padding: 0 8px; font-size: 9px; }
  .site-header nav { gap: 17px; }
  .site-header nav a { font-size: 11px; }
  .hero { padding-left: 11px; padding-right: 11px; }
  .category-card h3 { font-size: 12px; }
  .category-distance { font-size: 10px; }
}

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