:root {
  --ink: #09211b;
  --ink-2: #12342a;
  --ink-3: #285044;
  --paper: #f4f2ea;
  --paper-2: #ebe8dc;
  --white: #ffffff;
  --lime: #d9ff43;
  --lime-soft: #edffad;
  --orange: #ff6a3d;
  --blue: #98bfff;
  --teal: #52d8bd;
  --line: rgba(9, 33, 27, 0.14);
  --muted: #687770;
  --danger: #c94c3d;
  --shadow: 0 20px 60px rgba(7, 29, 23, 0.12);
  --shadow-small: 0 8px 24px rgba(7, 29, 23, 0.09);
  --radius: 18px;
  --radius-small: 12px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.section {
  padding: 96px 0;
}

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

.demo-ribbon {
  position: relative;
  z-index: 40;
  padding: 7px 0;
  color: var(--ink);
  background: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.demo-ribbon__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.demo-ribbon__inner > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.18);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  color: var(--white);
  background: rgba(9, 33, 27, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-logo-image {
  width: auto;
  height: 34px;
  object-fit: contain;
}

.beta-badge {
  padding: 4px 6px 3px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 4px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 31px;
  height: 29px;
  padding: 5px 6px;
  background: var(--lime);
  border-radius: 3px 10px 3px 3px;
  transform: skewX(-7deg);
}

.brand-mark span {
  display: block;
  width: 4px;
  background: var(--ink);
  border-radius: 2px 2px 0 0;
}

.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 15px; }
.brand-mark span:nth-child(3) { height: 19px; }

.brand-name {
  color: var(--white);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-name span {
  color: var(--lime);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0 auto;
}

.main-nav a,
.main-nav button {
  position: relative;
  padding: 26px 0 23px;
  color: rgba(255, 255, 255, 0.72);
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 700;
}

.main-nav a::after,
.main-nav button::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--lime);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav button:hover {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav button:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
}

.menu-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms var(--ease), box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.btn-small {
  min-height: 40px;
  padding: 0 15px;
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-dark {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(9, 33, 27, 0.17);
}

.btn-dark:hover {
  background: var(--ink-2);
  box-shadow: 0 12px 28px rgba(9, 33, 27, 0.23);
}

.btn-outline,
.btn-ghost-dark {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-outline:hover,
.btn-ghost-dark:hover {
  background: var(--white);
}

.btn-accent {
  color: var(--ink);
  background: var(--lime);
}

.btn-accent:hover {
  box-shadow: 0 12px 35px rgba(217, 255, 67, 0.2);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-glow-one {
  top: -280px;
  right: -190px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(75, 192, 156, 0.2), transparent 65%);
}

.hero-glow-two {
  bottom: -300px;
  left: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(217, 255, 67, 0.09), transparent 66%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.68fr);
  gap: 90px;
  align-items: center;
  min-height: 610px;
  padding-top: 74px;
  padding-bottom: 85px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--lime);
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: currentColor;
}

.kicker--light {
  color: var(--lime);
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 22px;
  font-size: clamp(58px, 7.2vw, 105px);
  font-weight: 900;
  line-height: 0.87;
  letter-spacing: -0.072em;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--lime);
}

.hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.65;
}

.hero-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  max-width: 690px;
  margin-top: 35px;
  padding: 7px;
  padding-left: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.hero-search > svg {
  width: 21px;
  height: 21px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.hero-search input {
  min-width: 0;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.hero-search button {
  height: 48px;
  padding: 0 24px;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.quick-search {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 17px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 700;
}

.quick-search button {
  padding: 5px 10px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 11px;
}

.quick-search button:hover {
  color: var(--lime);
  border-color: rgba(217, 255, 67, 0.4);
}

.hero-pulse {
  position: relative;
  overflow: hidden;
  background: #10372d;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  transform: rotate(1.5deg);
}

.pulse-topline {
  display: flex;
  justify-content: space-between;
  padding: 17px 20px;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
}

.live-label i {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(217, 255, 67, 0.1);
}

.pulse-visual {
  position: relative;
  height: 235px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(217, 255, 67, 0.05), transparent 60%),
    #0d2b24;
}

.track {
  position: absolute;
  top: 42px;
  left: 50%;
  border: 1px solid rgba(217, 255, 67, 0.22);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-13deg);
}

.track-outer { width: 340px; height: 155px; }
.track-middle { top: 55px; width: 288px; height: 126px; }
.track-inner { top: 69px; width: 232px; height: 96px; }

.finish-line {
  position: absolute;
  top: 106px;
  right: 48px;
  width: 49px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--white) 0 4px, transparent 4px 8px);
  transform: rotate(-18deg);
}

.runner-dot {
  position: absolute;
  top: 64px;
  right: 75px;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border: 3px solid #ffd0c2;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 106, 61, 0.12);
}

.pulse-number {
  position: absolute;
  right: 21px;
  bottom: -25px;
  color: rgba(255, 255, 255, 0.035);
  font-size: 134px;
  font-weight: 900;
  line-height: 1;
}

.pulse-content {
  position: relative;
  padding: 25px 26px 29px;
}

.sport-pill {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pulse-content h2 {
  margin: 16px 0 7px;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.pulse-content p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 4px;
  color: var(--lime);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(217, 255, 67, 0.4);
  font-size: 12px;
  font-weight: 800;
}

.text-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.text-link--dark {
  color: var(--ink);
  border-color: var(--line);
}

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.hero-stats > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
}

.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div:last-child { border-right: 0; }

.hero-stats strong {
  color: var(--lime);
  font-size: 28px;
  letter-spacing: -0.05em;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.47);
  font-size: 11px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 9px 0 0;
  font-size: clamp(38px, 5vw, 61px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.section-heading > p {
  margin: 15px 0 0;
  color: var(--muted);
}

.section-heading--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

.section-heading--split h2 {
  max-width: 670px;
}

.sport-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.sport-card {
  --sport-tint: 9, 33, 27;
  position: relative;
  display: flex;
  min-height: 310px;
  padding: 25px;
  overflow: hidden;
  color: var(--white);
  text-align: left;
  background: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
  transition: transform 250ms var(--ease), box-shadow 250ms ease;
  grid-column: span 2;
}

.sport-card:nth-last-child(2),
.sport-card:nth-last-child(1) { grid-column: span 3; }

.sport-card::before,
.sport-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.sport-card::before {
  background: linear-gradient(180deg, rgba(4, 18, 14, 0.08) 0%, rgba(4, 18, 14, 0.12) 38%, rgba(4, 18, 14, 0.9) 100%);
}

.sport-card::after {
  background: linear-gradient(90deg, rgba(var(--sport-tint), 0.5), transparent 72%);
  transition: opacity 250ms ease;
}

.sport-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.sport-card:hover::after { opacity: 0.75; }
.sport-card--athletics { --sport-tint: 9, 52, 39; background: #1d4b3d; }
.sport-card--cycling { --sport-tint: 10, 38, 59; background: #15374f; }
.sport-card--triathlon { --sport-tint: 73, 34, 22; background: #633627; }
.sport-card--hybrid { --sport-tint: 54, 30, 92; background: #4c3572; }
.sport-card--ocr { --sport-tint: 95, 48, 9; background: #713d16; }

.sport-card__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms var(--ease), filter 300ms ease;
}

.sport-card:hover .sport-card__image {
  filter: saturate(1.06) contrast(1.03);
  transform: scale(1.04);
}

.sport-card__number {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 24px;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.8;
}

.sport-card__icon {
  position: absolute;
  top: 40px;
  right: 34px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.88);
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 1;
}

.sport-card__content {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 68%;
}

.sport-card__content strong {
  color: var(--white);
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.sport-card__content small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
}

.sport-card__count {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 5px 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 5px;
  backdrop-filter: blur(7px);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.explorer {
  background: var(--white);
}

.explorer-heading {
  margin-bottom: 34px;
}

.explorer-shell {
  border-top: 1px solid var(--line);
}

.explorer-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
}

.explorer-tab,
.saved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 15px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.explorer-tab svg,
.saved-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.explorer-tab span,
.saved-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--paper-2);
  border-radius: 999px;
  font-size: 10px;
}

.explorer-tab.is-active {
  color: var(--white);
  background: var(--ink);
}

.explorer-tab.is-active span {
  color: var(--ink);
  background: var(--lime);
}

.saved-toggle {
  margin-left: auto;
  border-color: var(--line);
}

.saved-toggle.is-active {
  color: var(--danger);
  background: #fff3f1;
  border-color: rgba(201, 76, 61, 0.2);
}

.saved-toggle.is-active svg {
  fill: currentColor;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 45px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-search:focus-within {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(40, 80, 68, 0.08);
}

.filter-search svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.filter-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.filter-selects {
  display: flex;
  gap: 8px;
}

.filter-selects select,
.sort-label select {
  height: 45px;
  padding: 0 38px 0 13px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  font-size: 12px;
  font-weight: 700;
}

.filter-selects select:focus,
.sort-label select:focus {
  border-color: var(--ink-3);
}

.mobile-filter-button {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 45px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.mobile-filter-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 0;
  padding-top: 0;
}

.active-filters:not(:empty) {
  padding-top: 12px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: var(--ink-3);
  background: #edf4f0;
  border: 0;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
}

.filter-chip span {
  font-size: 14px;
  line-height: 1;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 18px;
}

.results-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.results-toolbar p strong {
  color: var(--ink);
}

.toolbar-actions,
.sort-label,
.view-toggle {
  display: flex;
  align-items: center;
}

.toolbar-actions { gap: 14px; }
.sort-label { gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.sort-label select { height: 36px; padding-left: 10px; }

.view-toggle {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.view-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 35px;
  color: var(--muted);
  background: var(--white);
  border: 0;
  border-right: 1px solid var(--line);
}

.view-toggle button:last-child { border-right: 0; }
.view-toggle button.is-active { color: var(--white); background: var(--ink); }

.view-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

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

.results-grid[hidden],
.map-panel[hidden],
.sort-label[hidden],
.view-toggle button[hidden] {
  display: none;
}

.map-panel {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #dce8e2;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-small);
}

.race-map {
  width: 100%;
  height: 590px;
}

.map-panel__info {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 20px;
  max-width: min(620px, calc(100% - 40px));
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(9, 33, 27, 0.13);
  border-radius: 10px;
  box-shadow: 0 12px 35px rgba(9, 33, 27, 0.16);
  backdrop-filter: blur(9px);
  pointer-events: none;
}

.map-panel__info p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.map-legend,
.map-legend span {
  display: flex;
  align-items: center;
}

.map-legend {
  flex-wrap: wrap;
  gap: 7px 13px;
}

.map-legend span {
  gap: 6px;
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.map-dot--athletics { background: #d9ff43; }
.map-dot--cycling { background: #98bfff; }
.map-dot--triathlon { background: #ff8a64; }
.map-dot--hybrid { background: #c7a8ff; }
.map-dot--ocr { background: #ffbf47; }

.map-cluster-label {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.maplibregl-map {
  color: var(--ink);
  font-family: inherit;
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(9, 33, 27, 0.13);
  border-radius: 8px;
  box-shadow: 0 7px 20px rgba(9, 33, 27, 0.12);
}

.maplibregl-popup-content {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(9, 33, 27, 0.12);
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(9, 33, 27, 0.22);
}

.maplibregl-popup-close-button {
  z-index: 1;
  width: 29px;
  height: 29px;
  color: var(--ink);
  font-size: 19px;
}

.map-popup {
  min-width: 230px;
  padding: 20px;
}

.map-popup__sport {
  display: block;
  padding-right: 18px;
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.map-popup h3 {
  margin: 8px 0 13px;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.map-popup p {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 7px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.map-popup p svg,
.map-popup button svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.map-popup small {
  display: inline-flex;
  margin-top: 4px;
  padding: 4px 6px;
  color: #6b5b1e;
  background: #f3f7d7;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 800;
}

.map-popup button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 36px;
  margin-top: 14px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
}

.result-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease;
}

.result-card:hover {
  border-color: rgba(9, 33, 27, 0.24);
  box-shadow: var(--shadow-small);
  transform: translateY(-4px);
}

.result-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 132px;
  padding: 20px;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper-2);
}

.result-card__visual::after {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 160px;
  height: 160px;
  content: "";
  border: 30px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
}

.result-card__cover {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.result-card__visual.has-cover::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(9, 33, 27, 0.32), rgba(9, 33, 27, 0.02) 58%, rgba(9, 33, 27, 0.18));
}

.result-card__visual.has-cover::after {
  display: none;
}

.result-card__visual.has-cover .date-block {
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.result-card__visual.has-cover .visual-route {
  display: none;
}

.result-card[data-sport="Atletismo"] .result-card__visual { background: #e2efb2; color: #21493d; }
.result-card[data-sport="Ciclismo"] .result-card__visual { background: #c8dcf4; color: #193c54; }
.result-card[data-sport="Triatlo"] .result-card__visual { background: #ffd1c1; color: #623827; }
.result-card[data-sport="Fitness Híbrido"] .result-card__visual { background: #ded0f8; color: #3f2863; }
.result-card[data-sport="Obstáculos / OCR"] .result-card__visual { background: #ffe0a2; color: #613a10; }
.result-card[data-sport="Multidesporto"] .result-card__visual { background: #d4e8e1; color: #183f34; }

.date-block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 76px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(9, 33, 27, 0.12);
  border-radius: 11px;
  box-shadow: 0 6px 15px rgba(9, 33, 27, 0.08);
}

.date-block strong {
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.date-block span {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.visual-route {
  position: absolute;
  right: 28px;
  bottom: 26px;
  width: 70px;
  height: 42px;
  opacity: 0.45;
}

.visual-route svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-dasharray: 3 3;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.team-monogram {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--white);
  background: var(--team-color, var(--ink));
  border: 4px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(9, 33, 27, 0.16);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.card-badges {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.card-badge--pending {
  color: #80511b;
  background: #fff0c8;
}

.card-badge--official {
  color: var(--ink);
  background: var(--lime);
}

.card-badge--test {
  color: #fff;
  background: #7856d8;
}

.result-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 21px;
}

.card-meta-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card-meta-top i {
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.5;
}

.result-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.13;
  letter-spacing: -0.04em;
}

.result-card__description {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-details {
  display: grid;
  gap: 8px;
  margin: 17px 0 0;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
}

.card-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
}

.card-detail svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--ink-3);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.card-detail span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.card-tag {
  padding: 4px 7px;
  color: var(--ink-3);
  background: var(--paper);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 800;
}

.result-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.card-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 900;
}

.card-open svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.card-open:hover svg { transform: translateX(3px); }

.save-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: var(--paper);
  border: 0;
  border-radius: 8px;
}

.save-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.save-button.is-saved {
  color: var(--danger);
  background: #fff0ed;
}

.save-button.is-saved svg { fill: currentColor; }

.results-grid.is-list {
  grid-template-columns: 1fr;
}

.results-grid.is-list .result-card {
  display: grid;
  grid-template-columns: 200px 1fr;
}

.results-grid.is-list .result-card__visual {
  min-height: 100%;
}

.results-grid.is-list .result-card__body {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) auto;
  gap: 25px;
  align-items: center;
}

.results-grid.is-list .result-card__description {
  -webkit-line-clamp: 1;
}

.results-grid.is-list .card-details {
  margin: 0;
  padding: 0 0 0 22px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

.results-grid.is-list .card-tags { display: none; }
.results-grid.is-list .result-card__footer { margin: 0; padding: 0; }

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

.load-more-wrap[hidden] { display: none; }

.empty-state {
  padding: 65px 20px;
  text-align: center;
  background: var(--paper);
  border: 1px dashed rgba(9, 33, 27, 0.24);
  border-radius: 14px;
}

.empty-state[hidden] { display: none; }

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin: 0 auto 17px;
  color: var(--ink-3);
  background: var(--white);
  border-radius: 50%;
}

.empty-state__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.empty-state h3 { margin: 0 0 6px; font-size: 22px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }

.contribute {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.contribute::after {
  position: absolute;
  top: -200px;
  right: -180px;
  width: 550px;
  height: 550px;
  content: "";
  border: 90px solid rgba(217, 255, 67, 0.055);
  border-radius: 50%;
}

.contribute-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  align-items: end;
}

.contribute-copy h2 {
  margin: 12px 0 20px;
  font-size: clamp(43px, 5vw, 66px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.contribute-copy p {
  max-width: 485px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.6);
}

.contribute-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contribute-steps > div {
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 22px 19px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.contribute-steps > div:last-child { border-right: 0; }

.contribute-steps span {
  margin-bottom: auto;
  color: var(--lime);
  font-size: 10px;
  font-weight: 900;
}

.contribute-steps strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.contribute-steps small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.site-footer {
  padding: 65px 0 25px;
  color: rgba(255, 255, 255, 0.63);
  background: #051510;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.65fr 0.65fr 0.75fr 0.9fr;
  gap: 38px;
  padding-bottom: 50px;
}

.brand--footer { margin-bottom: 18px; }
.footer-grid > div:first-child p { max-width: 260px; margin: 0; font-size: 12px; }

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links strong,
.footer-note strong {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links button {
  padding: 0;
  color: rgba(255, 255, 255, 0.53);
  background: transparent;
  border: 0;
  font-size: 11px;
}

.footer-links button:hover { color: var(--lime); }

.footer-note strong {
  display: block;
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-transform: none;
}

.footer-note span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.footer-note i { width: 18px; height: 1px; background: rgba(217, 255, 67, 0.4); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-top: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 15, 11, 0.72);
  backdrop-filter: blur(7px);
  animation: fade-in 180ms ease both;
}

.modal-backdrop[hidden] { display: none; }

.modal {
  position: relative;
  width: min(100%, 760px);
  max-height: min(880px, calc(100vh - 48px));
  overflow: auto;
  background: var(--paper);
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
  animation: modal-in 260ms var(--ease) both;
}

.modal-close {
  position: sticky;
  z-index: 5;
  top: 16px;
  float: right;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 16px 16px -54px 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-small);
}

.modal-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.detail-hero {
  position: relative;
  min-height: 230px;
  padding: 45px 52px 38px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.detail-hero::after {
  position: absolute;
  top: -90px;
  right: -50px;
  width: 280px;
  height: 280px;
  content: "";
  border: 45px solid rgba(217, 255, 67, 0.09);
  border-radius: 50%;
}

.detail-hero__label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 590px;
  margin: 18px 0 14px;
  font-size: clamp(35px, 5vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.detail-hero p {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.detail-hero p svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.detail-body {
  padding: 36px 52px 45px;
}

.detail-intro {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.detail-fact {
  padding: 17px 19px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-fact:nth-child(2n) { border-right: 0; }
.detail-fact:nth-last-child(-n + 2) { border-bottom: 0; }

.detail-fact small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-fact strong {
  display: block;
  font-size: 13px;
}

.detail-fact .location-precision {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.detail-section {
  margin-top: 30px;
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-contact-list {
  display: grid;
  gap: 8px;
}

.detail-contact-list a,
.detail-contact-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--ink-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.detail-contact-list svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.detail-actions .btn {
  min-height: 42px;
  padding-inline: 15px;
}

.detail-notice {
  margin-top: 30px;
  padding: 13px 15px;
  color: #725020;
  background: #fff0c8;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.5;
}

.submit-modal {
  width: min(100%, 680px);
  padding: 43px 48px 42px;
}

.info-modal {
  width: min(100%, 680px);
}

.info-modal__header {
  padding: 50px 52px 30px;
  color: var(--white);
  background: var(--ink);
}

.info-modal__header h2 {
  margin: 9px 0 0;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.info-modal__body {
  padding: 34px 52px 46px;
}

.info-modal__body h3 {
  margin: 28px 0 8px;
  font-size: 13px;
}

.info-modal__body h3:first-child { margin-top: 0; }

.info-modal__body p,
.info-modal__body li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.info-modal__body ul { padding-left: 20px; }

.submit-modal__header h2 {
  margin: 8px 0 8px;
  font-size: 39px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.submit-modal__header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.submit-form { margin-top: 26px; }

.form-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 5px;
  background: var(--paper-2);
  border-radius: 10px;
}

.form-type-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-type-switch span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.form-type-switch input:checked + span {
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow-small);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 23px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field--wide { grid-column: 1 / -1; }

.form-field > span {
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 900;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  font-size: 12px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(40, 80, 68, 0.08);
}

.form-field textarea { resize: vertical; }

.form-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
}

.form-consent input { margin-top: 2px; accent-color: var(--ink); }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

.success-state {
  padding: 45px 0 20px;
  text-align: center;
}

.success-state[hidden] { display: none; }

.success-state > span {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
}

.success-state svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.success-state h3 { margin: 0 0 7px; font-size: 28px; }
.success-state p { margin: 0 0 23px; color: var(--muted); font-size: 12px; }

.toast {
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  max-width: 340px;
  padding: 13px 17px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1050px) {
  .hero-inner {
    grid-template-columns: 1fr 330px;
    gap: 45px;
  }

  .hero h1 { font-size: clamp(58px, 7vw, 80px); }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sport-grid { grid-template-columns: repeat(2, 1fr); }
  .sport-card,
  .sport-card:nth-last-child(2),
  .sport-card:nth-last-child(1) { grid-column: span 1; }
  .sport-card:last-child { grid-column: 1 / -1; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-selects label { flex: 1; }
  .filter-selects select { width: 100%; }
  .contribute-inner { gap: 55px; }
  .footer-grid { gap: 35px; }
  .results-grid.is-list .result-card__body { grid-template-columns: 1fr 1fr auto; }
}

@media (max-width: 820px) {
  .demo-ribbon__inner > span:last-child { display: none; }
  .demo-ribbon__inner { justify-content: center; }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 10px;
    background: var(--ink-2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open { display: flex; }
  .main-nav a,
  .main-nav button { padding: 12px; text-align: left; }
  .main-nav a::after,
  .main-nav button::after { display: none; }
  .menu-toggle { display: flex; }
  .desktop-only { display: none; }
  .header-inner { min-height: 64px; justify-content: space-between; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 45px;
    min-height: 0;
    padding-top: 65px;
    padding-bottom: 60px;
  }

  .hero-pulse { display: none; }
  .hero-copy > p { max-width: 630px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div:nth-child(2) { border-right: 0; }
  .hero-stats > div:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, 0.11); }
  .hero-stats > div:nth-child(3) { padding-left: 0; }
  .section { padding: 76px 0; }
  .sport-grid { grid-template-columns: 1fr; }
  .sport-card:last-child { grid-column: auto; }
  .sport-card { min-height: 225px; }
  .sport-card__content { max-width: 65%; }
  .contribute-inner { grid-template-columns: 1fr; }
  .contribute-steps { max-width: 650px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-note { display: none; }
  .results-grid.is-list .result-card { grid-template-columns: 150px 1fr; }
  .results-grid.is-list .result-card__body { grid-template-columns: 1fr auto; }
  .results-grid.is-list .card-details { display: none; }
  .submit-modal { padding: 36px 28px; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 62px 0; }
  .hero-inner { padding-top: 55px; }
  .hero h1 { margin-top: 16px; font-size: clamp(52px, 16vw, 70px); }
  .hero-copy > p { font-size: 15px; }
  .hero-search {
    grid-template-columns: auto 1fr;
    padding-right: 7px;
  }
  .hero-search button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .quick-search > span { width: 100%; }
  .hero-stats > div { flex-direction: column; gap: 2px; padding: 20px 14px; }
  .hero-stats strong { font-size: 24px; }
  .section-heading--split { align-items: flex-start; flex-direction: column; }
  .section-heading--split .text-link { display: none; }
  .section-heading h2 { font-size: 42px; }
  .sport-card { min-height: 205px; }
  .sport-card__icon { font-size: 58px; }

  .explorer-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .explorer-tab { justify-content: center; padding-inline: 9px; }
  .saved-toggle { grid-column: 1 / -1; justify-content: center; margin: 0; }
  .filter-bar { padding: 12px; }
  .filter-bar.filters-collapsed .filter-selects { display: none; }
  .filter-selects { flex-direction: column; }
  .mobile-filter-button { display: flex; }
  .results-toolbar { align-items: flex-start; }
  .toolbar-actions { margin-left: auto; }
  .sort-label > span { display: none; }
  .sort-label select { width: 118px; }
  .results-grid { grid-template-columns: 1fr; }
  .results-grid.is-list .result-card { display: flex; }
  .results-grid.is-list .result-card__visual { min-height: 120px; }
  .results-grid.is-list .result-card__body { display: flex; }
  .results-grid.is-list .card-details { display: grid; margin-top: 17px; padding: 15px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .map-panel { min-height: 68vh; border-radius: 12px; }
  .race-map { height: 68vh; min-height: 460px; }
  .map-panel__info { right: 12px; bottom: 30px; left: 12px; max-width: none; }
  .maplibregl-ctrl-attrib { max-width: 220px; font-size: 9px; }
  .contribute-steps { grid-template-columns: 1fr; border-top: 0; }
  .contribute-steps > div { min-height: 115px; border-top: 1px solid rgba(255, 255, 255, 0.16); border-right: 0; }
  .contribute-copy h2 { font-size: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .detail-hero { padding: 50px 25px 30px; }
  .detail-body { padding: 28px 25px 35px; }
  .info-modal__header { padding: 50px 25px 26px; }
  .info-modal__body { padding: 28px 25px 38px; }
  .detail-facts { grid-template-columns: 1fr; }
  .detail-fact { border-right: 0; }
  .detail-fact:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .detail-fact:last-child { border-bottom: 0; }
  .submit-modal { padding: 42px 20px 30px; }
  .submit-modal__header h2 { font-size: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--wide { grid-column: auto; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .toast { right: 14px; bottom: 14px; left: 14px; max-width: none; }
}

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