:root {
  --cream: #fffdf8;
  --cream-deep: #f5f0e6;
  --green: #209b72;
  --green-deep: #17234b;
  --green-mid: #254dd4;
  --orange: #c75b70;
  --orange-light: #f5d240;
  --ink: #17234b;
  --muted: #66708c;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(23, 35, 75, 0.12);
  --brand-blue: #254dd4;
  --brand-pink: #c75b70;
  --brand-pink-bright: #ef5c9a;
  --brand-yellow: #f5d240;
  --brand-green: #209b72;
  --brand-purple: #6950c7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em 0;
  color: var(--green-deep);
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--orange); }

.slash { color: var(--orange); font-weight: 700; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Header ---------------- */
.site-header {
  background: var(--green-deep);
  color: var(--cream);
  padding: 16px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand .slash { color: var(--orange); }
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
nav.main-nav a {
  color: var(--cream);
  opacity: 0.85;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
nav.main-nav a:hover, nav.main-nav a.active { opacity: 1; color: var(--orange-light); }

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(circle at 20% 20%, var(--green-mid), var(--green-deep) 70%);
  color: var(--cream);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  color: var(--cream);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.hero h1 .slash { color: var(--orange); }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--cream-deep);
  margin-top: 14px;
}
.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.race-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.race-track .stop {
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(246,241,230,0.35);
  color: var(--cream-deep);
}
.race-track .stop.done {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.race-track .arrow { color: var(--orange-light); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.88rem;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: #d1531f; color: var(--white); }
.btn-outline { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange-light); }
.btn-outline-dark { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline-dark:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { padding: 8px 16px; font-size: 0.78rem; }

/* ---------------- Sections & cards ---------------- */
section.block { padding: 48px 0; }
section.block.alt { background: var(--cream-deep); }
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 34px;
}
.section-heading .kicker {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}
.section-heading h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); text-transform: uppercase; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .icon { font-size: 1.6rem; }
.card h3 { font-size: 1.05rem; text-transform: uppercase; margin-top: 8px; }
.card p { color: var(--muted); margin: 6px 0 14px; font-size: 0.95rem; }

.stat-tile {
  background: var(--green-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.stat-tile .value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange-light);
}
.stat-tile .label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--cream-deep);
  margin-top: 4px;
}

/* ---------------- Tables / standings ---------------- */
.board {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
table.standings { width: 100%; border-collapse: collapse; }
table.standings th {
  text-align: left;
  background: var(--green-deep);
  color: var(--cream);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
}
table.standings td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream-deep);
  font-size: 0.95rem;
}
table.standings tr:last-child td { border-bottom: none; }
table.standings td.pos { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--orange); width: 40px; }
table.standings tr:hover td { background: var(--cream); }
.pill {
  display: inline-block;
  background: var(--cream-deep);
  color: var(--green-deep);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pill.orange { background: var(--orange); color: var(--white); }

.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  box-shadow: var(--shadow);
}
.tabs a.active { background: var(--green-deep); color: var(--cream); }

/* ---------------- Forms ---------------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  max-width: 520px;
  margin: 0 auto;
}
label { display: block; font-weight: 700; font-size: 0.85rem; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: 0.02em; }
label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 2px solid var(--cream-deep);
  font-size: 1rem;
  font-family: inherit;
  background: var(--cream);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); }
.help { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.agreement-box {
  margin: 28px 0 0;
  padding: 18px;
  border: 3px solid var(--ink);
  background: #fff4f6;
  box-shadow: 6px 6px 0 var(--brand-pink);
}
.agreement-box legend {
  padding: 0 8px;
  color: var(--ink);
  background: var(--cream);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
}
.agreement-intro { margin: 0 0 14px; color: var(--muted); font-size: 0.88rem; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 13px 0 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}
.check-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand-pink);
}
.check-row a { text-decoration: underline; text-decoration-thickness: 2px; }
.race-choice-box {
  margin: 28px 0;
  padding: 22px;
  border: 2px solid var(--ink);
  background: var(--cream-deep);
}
.race-choice-box legend {
  padding: 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}
.race-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.race-choice {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  cursor: pointer;
}
.race-choice:has(input:checked) {
  background: var(--brand-yellow);
  box-shadow: 4px 4px 0 var(--brand-blue);
}
.race-choice input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-pink); }
.race-choice span, .race-choice strong, .race-choice small { display: block; }
.race-choice span { flex: 1; }
.race-choice small { margin: 4px 0; color: var(--muted); }
.race-choice b { color: var(--green-deep); }
.checkout-wrap { max-width: 720px; }
.checkout-lines { list-style: none; padding: 0; margin: 0; }
.checkout-lines li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(22, 31, 27, 0.2);
}
.checkout-lines li span, .checkout-lines li small { display: block; }
.checkout-lines li small { margin-top: 3px; color: var(--muted); }
.checkout-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}
.money-input { display: flex; align-items: center; border: 2px solid var(--ink); background: var(--white); }
.money-input span { padding-left: 14px; font-weight: 700; }
.money-input input { border: 0; }
.payment-success-card { max-width: 650px; margin: 0 auto; }
.payment-tick {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
}
.entry-race-line { display: block; margin-bottom: 7px; white-space: nowrap; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem; font-weight: 600; }
.flash.error { background: #fbe0d6; color: #9a3412; }
.flash.success { background: #dcefe1; color: #14532d; }
.flash.warning { background: #fdf3d6; color: #7c5a00; }

/* ---------------- Profile ---------------- */
.profile-hero {
  background: var(--green-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.profile-hero .ar-id { color: var(--orange-light); font-weight: 700; letter-spacing: 0.06em; }
.race-list { list-style: none; margin: 0; padding: 0; }
.race-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-deep);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}
.race-list li:last-child { border-bottom: none; }
.race-list .pb { color: var(--orange); font-size: 0.8rem; margin-left: 8px; }
.streak {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 10px;
}

footer {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.center { text-align: center; }
.mt { margin-top: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  table.standings { font-size: 0.85rem; }
  table.standings th, table.standings td { padding: 9px 10px; }
}

/* ---------------- Brand-led homepage ---------------- */
.site-header {
  background: var(--cream);
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 5;
}
.site-header .wrap { min-height: 58px; }
.brand {
  display: block;
  line-height: 0;
  flex: 0 0 auto;
  padding: 7px 11px;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--brand-yellow);
}
.brand img {
  display: block;
  width: min(176px, 40vw);
  height: auto;
}
nav.main-nav { align-items: center; gap: 4px 16px; }
nav.main-nav a {
  color: var(--ink);
  opacity: 0.9;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
nav.main-nav a:hover { color: var(--brand-green); }
nav.main-nav a.nav-entry {
  color: var(--white);
  background: var(--brand-blue);
  border: 2px solid var(--ink);
  border-radius: 999px;
  opacity: 1;
  padding: 8px 15px;
  box-shadow: 3px 3px 0 var(--ink);
}
nav.main-nav a.nav-entry:hover {
  color: var(--white);
  background: var(--brand-green);
}

.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}
.home-hero::before {
  content: "";
  position: absolute;
  width: 54vw;
  height: 54vw;
  max-width: 720px;
  max-height: 720px;
  right: -15vw;
  top: -22vw;
  border-radius: 50%;
  background: var(--brand-yellow);
  opacity: 0.92;
}
.hero-grid {
  min-height: 625px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.hero-copy { padding: 72px 0 78px; }
.eyebrow {
  color: var(--brand-pink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow-mark { color: var(--brand-blue); margin-right: 6px; }
.eyebrow.light { color: var(--brand-yellow); }
.eyebrow.light .eyebrow-mark { color: var(--white); }
.hero-copy h1 {
  color: var(--ink);
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  margin: 22px 0 28px;
  text-transform: uppercase;
}
.scribble { position: relative; display: inline-block; }
.scribble::after {
  content: "";
  position: absolute;
  left: 0;
  right: -3px;
  bottom: -4px;
  height: 8px;
  border-bottom: 3px solid currentColor;
  transform: rotate(-2deg);
}
.scribble.pink { color: var(--brand-pink-bright); }
.scribble.blue { color: var(--brand-blue); }
.scribble.yellow { color: var(--brand-yellow); }
.hero-intro {
  max-width: 47ch;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.55;
  margin: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
}
.btn-entry {
  color: var(--white);
  background: var(--brand-green);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 15px 22px;
}
.btn-entry:hover {
  color: var(--white);
  background: var(--brand-blue);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.home-hero .series-entry,
.final-cta .series-entry {
  color: var(--ink);
  background: var(--brand-pink-bright);
}
.home-hero .series-entry:hover,
.final-cta .series-entry:hover { color: var(--white); }
.btn-entry span { font-size: 1.15em; margin-left: 8px; }
.text-link {
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
}
.text-link:hover { color: var(--brand-green); border-color: var(--brand-green); }
.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 350px;
  margin-top: 42px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  font-size: 0.82rem;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 700;
}
.proof-number {
  color: var(--brand-blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.3rem;
  line-height: 1;
}
.hero-art { min-height: 560px; position: relative; }
.hero-art-card {
  position: absolute;
  width: min(410px, 78%);
  right: 11%;
  top: 50%;
  transform: translateY(-48%) rotate(4deg);
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 14px 14px 0 var(--brand-blue);
  padding: 18px;
}
.hero-art-card::before {
  content: "AFFORDABLE RUNNING";
  display: block;
  color: var(--brand-blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.hero-art-card img,
.hero-loop {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center 36%;
}
.hero-loop {
  opacity: 0.76;
  filter: saturate(0.72) contrast(1.06);
  mix-blend-mode: multiply;
}
.hero-loop-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.loop-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-green);
  border-radius: 50%;
  animation: loop-pulse 1.8s ease-in-out infinite;
}
@keyframes loop-pulse { 50% { opacity: 0.35; } }
.hero-sticker {
  position: absolute;
  left: 4%;
  top: 16%;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 3px solid var(--brand-blue);
  border-radius: 50%;
  color: var(--brand-blue);
  background: var(--brand-yellow);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 0.9;
  text-align: center;
  transform: rotate(-12deg);
  box-shadow: 5px 5px 0 var(--ink);
}
.hero-note {
  position: absolute;
  right: 0;
  bottom: 15%;
  padding: 13px 15px;
  color: var(--white);
  background: var(--brand-blue);
  border: 2px solid var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
  transform: rotate(8deg);
  box-shadow: 4px 4px 0 var(--ink);
}
.hero-note.note-yellow {
  color: var(--brand-green);
  background: var(--brand-yellow);
}
.hero-line {
  position: absolute;
  width: 160px;
  height: 55px;
  right: 1%;
  top: 22%;
  border-top: 3px solid var(--brand-green);
  border-bottom: 3px solid var(--brand-green);
  transform: rotate(-18deg);
}

.mission-block {
  background: var(--brand-blue);
  color: var(--white);
  padding: 94px 0;
  overflow: hidden;
}
.mission-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(44px, 8vw, 112px);
}
.mission-image { position: relative; }
.image-frame {
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 14px;
  transform: rotate(-3deg);
  box-shadow: 12px 12px 0 var(--brand-yellow);
}
.image-frame img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.image-caption {
  color: var(--brand-yellow);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.image-caption span { color: var(--white); }
.mission-copy h2 {
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 18px 0 24px;
  text-transform: uppercase;
}
.mission-copy p {
  max-width: 55ch;
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
}
.mission-copy strong { color: var(--brand-yellow); }
.mission-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 2px solid rgba(255,255,255,0.4);
}
.mission-stats div { display: flex; flex-direction: column; gap: 3px; }
.mission-stats strong {
  color: var(--brand-yellow);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.3rem;
  line-height: 1;
}
.mission-stats span {
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.video-block {
  background: var(--ink);
  color: var(--white);
  padding: 82px 0 92px;
}
.video-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.video-heading h2 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 0.95;
  margin: 10px 0 0;
  text-transform: uppercase;
}
.video-heading p { max-width: 28ch; color: rgba(255,255,255,0.75); margin: 0; }
.video-placeholder {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  border: 3px dashed var(--brand-yellow);
  background:
    linear-gradient(135deg, transparent 48%, rgba(245,210,64,0.08) 49%, transparent 50%),
    linear-gradient(45deg, transparent 48%, rgba(239,92,154,0.1) 49%, transparent 50%);
  background-size: 42px 42px;
  text-align: center;
}
.play-button {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding-left: 5px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--brand-yellow);
  font-size: 1.4rem;
}
.video-placeholder strong, .video-placeholder span { display: block; text-align: left; }
.video-placeholder strong { color: var(--white); font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; letter-spacing: 0.05em; }
.video-placeholder span { color: var(--brand-pink); font-size: 0.85rem; text-transform: uppercase; }
.video-spec {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: right;
}
.video-spec code { color: var(--brand-yellow); }
.race-video-shell {
  display: grid;
  grid-template-columns: minmax(260px, 430px) 1fr;
  align-items: center;
  gap: 50px;
  min-height: 560px;
  padding: 34px clamp(28px, 7vw, 90px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(235,15,116,0.92), rgba(92,33,171,0.9)),
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255,255,255,0.06) 18px 20px);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--brand-yellow);
}
.race-video {
  display: block;
  width: 100%;
  max-height: 510px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 9px 9px 0 var(--brand-blue);
}
.video-caption {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--white);
}
.video-caption-number {
  color: var(--brand-yellow);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}
.video-caption strong, .video-caption small { display: block; }
.video-caption strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-transform: uppercase;
}
.video-caption small { margin-top: 5px; color: rgba(255,255,255,0.72); }

.league-block { padding: 92px 0; background: var(--cream); }
.left-heading { text-align: left; max-width: 540px; margin: 0 0 38px; }
.left-heading h2 {
  color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 12px 0;
}
.left-heading p { color: var(--muted); max-width: 44ch; margin: 0; }
.league-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr); gap: 30px; align-items: start; }
.league-options { display: grid; gap: 12px; }
.league-option {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.league-option:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.option-blue { border-left: 12px solid var(--brand-blue); }
.option-yellow { border-left: 12px solid var(--brand-yellow); }
.option-pink { border-left: 12px solid var(--brand-pink); }
.option-purple { border-left: 12px solid var(--brand-purple); }
.option-green { border-left: 12px solid var(--brand-green); }
.option-icon {
  color: var(--brand-blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.option-yellow .option-icon { color: #c19e00; }
.option-pink .option-icon { color: var(--brand-pink); }
.option-purple .option-icon { color: var(--brand-purple); }
.option-green .option-icon { color: var(--brand-green); }
.league-option strong, .league-option small { display: block; }
.league-option strong { font-family: "Space Grotesk", sans-serif; text-transform: uppercase; }
.league-option small { color: var(--muted); font-size: 0.8rem; margin-top: 3px; }
.option-arrow { font-size: 1.4rem; }
.live-board {
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--brand-green);
}
.board-topline {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--brand-yellow);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.live-dot { width: 8px; height: 8px; background: var(--brand-green); border-radius: 50%; }
.board-rule { margin-left: auto; color: var(--brand-green); }
.live-board table.standings { box-shadow: none; border-radius: 0; }
.live-board table.standings th { padding: 12px 16px; color: var(--white); background: var(--ink); }
.live-board table.standings td { padding: 15px 16px; }
.live-board table.standings td.pos { color: var(--brand-blue); }
.board-link {
  display: block;
  padding: 15px 16px;
  border-top: 2px solid var(--cream-deep);
  color: var(--brand-blue);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}
.board-link:hover { color: var(--brand-green); }

.entry-block { padding: 90px 0; background: var(--ink); }
.entry-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.entry-copy h2 {
  color: var(--white);
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 16px 0 24px;
  text-transform: uppercase;
}
.entry-copy p { max-width: 40ch; color: rgba(255,255,255,0.82); font-size: 1.05rem; }
.dark-entry { color: var(--ink); background: var(--brand-yellow); border-color: var(--ink); box-shadow: 5px 5px 0 var(--brand-blue); margin-top: 12px; }
.dark-entry:hover { color: var(--white); background: var(--brand-green); }
.entry-cards { display: grid; gap: 12px; }
.entry-card {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.entry-card:hover { color: var(--ink); background: var(--brand-yellow); transform: translate(2px, 2px); }
.entry-card-number { color: var(--brand-blue); font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; font-weight: 700; }
.entry-card strong, .entry-card small { display: block; }
.entry-card strong { font-family: "Space Grotesk", sans-serif; text-transform: uppercase; }
.entry-card small { color: var(--muted); font-size: 0.8rem; margin-top: 3px; }

.race-gallery {
  padding: 90px 0;
  color: var(--white);
  background: var(--brand-blue);
}
.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}
.gallery-heading h2 {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.gallery-heading p {
  max-width: 27ch;
  color: rgba(255,255,255,0.8);
}
.light-link { display: inline-block; margin-top: 12px; color: var(--white); border-color: var(--white); }
.light-link:hover { color: var(--brand-yellow); border-color: var(--brand-yellow); }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 225px;
  gap: 14px;
}
.photo-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 3px solid var(--ink);
  background: var(--cream-deep);
}
.photo-card:nth-child(2) { transform: rotate(1deg); }
.photo-card:nth-child(3) { transform: rotate(-1deg); }
.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
}
.photo-card img.photo-grass {
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
}
.photo-card figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--brand-yellow);
  border: 2px solid var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.photo-tall { grid-row: span 2; }
.photo-wide { grid-column: span 2; }
.sponsor-photo { grid-column: span 1; }

.pairs-hero {
  padding: 72px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), var(--brand-blue));
}
.pairs-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: center;
  gap: 60px;
}
.pairs-hero h1 {
  margin: 14px 0 20px;
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.pairs-hero p {
  max-width: 53ch;
  color: rgba(255,255,255,0.88);
  font-size: 1.06rem;
}
.pairs-hero img {
  display: block;
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 40%);
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--brand-yellow);
  transform: rotate(2deg);
}
.pairs-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.pairs-boards h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
}
.equal-scoring {
  padding: 38px 0;
  color: var(--white);
  background: var(--brand-green);
  border-bottom: 3px solid var(--ink);
}
.equal-scoring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.equal-scoring-grid > div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.score-step {
  grid-row: span 2;
  color: var(--brand-yellow);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.equal-scoring strong { font-family: "Space Grotesk", sans-serif; text-transform: uppercase; }
.equal-scoring p { margin: 5px 0 0; color: rgba(255,255,255,0.82); font-size: 0.88rem; }

.archive-hero {
  padding: 82px 0 88px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(23,35,75,0.96), rgba(37,77,212,0.88)),
    url("../images/race-finish-line-grass.webp") center 64% / cover;
}
.archive-hero h1 {
  max-width: 760px;
  margin: 15px 0 20px;
  color: var(--white);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}
.archive-hero p { max-width: 58ch; margin: 0; color: rgba(255,255,255,0.84); font-size: 1.05rem; }
.archive-nav { position: sticky; top: 0; z-index: 4; background: var(--brand-yellow); border-bottom: 2px solid var(--ink); }
.archive-nav .wrap { display: flex; overflow-x: auto; padding-top: 0; padding-bottom: 0; }
.archive-nav a {
  flex: 1 0 auto;
  padding: 16px 22px;
  color: var(--ink);
  border-right: 2px solid var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.archive-nav a:first-child { border-left: 2px solid var(--ink); }
.archive-nav a:hover { color: var(--white); background: var(--brand-blue); }
.archive-nav a span { margin-right: 8px; color: var(--brand-blue); }
.archive-nav a:hover span { color: var(--brand-yellow); }
.archive-nav a.is-upcoming { opacity: 0.65; }
.archive-event { padding: 78px 0 94px; background: var(--cream); scroll-margin-top: 55px; }
.archive-event:nth-of-type(odd) { background: var(--cream-deep); }
.archive-event-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.archive-event-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.archive-count {
  padding: 7px 11px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 360px; gap: 18px; }
.archive-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--brand-blue);
}
.archive-photo:nth-child(even) { box-shadow: 7px 7px 0 var(--brand-yellow); }
.archive-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
  transition: transform 250ms ease;
}
.archive-photo:hover img { transform: scale(1.025); }
.archive-photo figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(23,35,75,0.92));
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.archive-photo figcaption span { color: var(--brand-yellow); }
.archive-landscape { grid-column: span 2; }
.archive-empty {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 180px;
  padding: 32px;
  border: 3px dashed var(--brand-blue);
  background: rgba(37,77,212,0.05);
}
.empty-number { color: var(--brand-blue); font-family: "Space Grotesk", sans-serif; font-size: 3.5rem; font-weight: 700; }
.archive-empty strong { font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; text-transform: uppercase; }
.archive-empty p { margin: 4px 0 0; color: var(--muted); }

.collage-block { padding: 84px 0; background: var(--cream-deep); }
.collage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.collage-art { padding: 12px; background: var(--white); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--brand-pink); transform: rotate(-2deg); }
.collage-grid img { display: block; width: 100%; max-height: 420px; object-fit: contain; mix-blend-mode: multiply; }
.collage-copy h2 {
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 16px 0 22px;
  text-transform: uppercase;
}
.collage-copy p { max-width: 40ch; color: var(--muted); }
.dark-link { display: inline-block; margin-top: 12px; }
.terms-wrap { max-width: 760px; }
.terms-card {
  padding: 34px;
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--brand-yellow);
}
.terms-scroll-box {
  max-height: 430px;
  overflow-y: auto;
  padding: 22px 26px 22px 42px;
  border: 2px solid var(--ink);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(23, 37, 84, 0.12);
  -webkit-overflow-scrolling: touch;
}
.terms-question-list { margin: 0; padding: 0; }
.terms-question-list li { padding: 0 0 16px 8px; color: var(--ink); }
.terms-question-list li:last-child { padding-bottom: 0; }
.terms-question-list a { color: var(--brand-green); font-weight: 700; }
.question-answer-scroll { max-height: 520px; }
.question-answer-scroll > .help { margin: 0 0 14px; }
.question-answer-scroll .question-divider {
  border: 0;
  border-top: 2px solid rgba(23, 37, 84, 0.2);
  margin: 22px 0 16px;
}
.terms-card h3 { margin: 22px 0 6px; font-size: 1.15rem; text-transform: uppercase; }
.terms-card h3:first-child { margin-top: 0; }
.terms-card p { color: var(--muted); }
.partner-block { padding: 84px 0; background: var(--brand-blue); color: var(--white); }
.partner-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 72px; align-items: center; }
.partner-copy h2 {
  margin: 16px 0 22px;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.partner-copy p { max-width: 48ch; color: rgba(255,255,255,0.86); }
.partner-card {
  padding: 30px;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--brand-pink);
  transform: rotate(1.5deg);
}
.partner-card-kicker {
  margin-bottom: 15px;
  color: var(--brand-blue);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.partner-card ul { margin: 0; padding: 0 0 0 22px; }
.partner-card li { padding: 6px 0; }
.partner-button { margin-top: 20px; background: var(--brand-yellow); color: var(--ink); }
.partner-button:hover { color: var(--ink); }
.final-cta { padding: 78px 0 92px; background: var(--brand-yellow); text-align: center; }
.final-cta-inner { display: flex; align-items: center; flex-direction: column; }
.final-logo { width: min(370px, 80%); margin-bottom: 10px; }
.final-cta h2 { color: var(--ink); font-size: clamp(2rem, 4vw, 3.3rem); text-transform: uppercase; }
.final-cta .btn-entry { margin-top: 14px; }

@media (max-width: 860px) {
  .site-header .wrap { align-items: flex-start; }
  nav.main-nav { gap: 5px 10px; justify-content: flex-end; }
  .hero-grid, .mission-grid, .entry-grid, .collage-grid, .pairs-hero-grid, .pairs-boards, .partner-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-copy { padding: 66px 0 28px; }
  .hero-art { min-height: 490px; }
  .hero-art-card { right: 15%; width: min(390px, 70%); }
  .hero-sticker { left: 12%; top: 13%; }
  .hero-note { right: 9%; bottom: 13%; }
  .mission-grid { gap: 50px; }
  .mission-image { max-width: 580px; }
  .entry-grid, .collage-grid { gap: 42px; }
  .league-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .sponsor-photo { grid-column: span 2; }
  .equal-scoring-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .site-header { padding: 10px 0 13px; }
  .site-header .wrap { display: block; }
  .brand img { width: 168px; }
  nav.main-nav { justify-content: flex-start; gap: 8px 13px; margin-top: 15px; }
  nav.main-nav a { font-size: 0.7rem; }
  nav.main-nav a:nth-child(4), nav.main-nav a:nth-child(6) { display: none; }
  nav.main-nav a.nav-entry { padding: 7px 12px; }
  .race-choice-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero-intro { font-size: 1rem; }
  .hero-art { min-height: 410px; }
  .hero-art-card { right: 9%; width: 74%; padding: 12px; }
  .hero-art-card img { max-height: 325px; }
  .hero-loop { height: 325px; }
  .hero-sticker { left: 0; top: 11%; width: 90px; height: 90px; font-size: 0.8rem; }
  .hero-note { right: 0; bottom: 12%; font-size: 0.75rem; }
  .hero-line { width: 95px; right: -3%; }
  .mission-block, .video-block, .league-block, .entry-block, .race-gallery, .collage-block, .partner-block { padding: 64px 0; }
  .mission-stats { gap: 8px; }
  .mission-stats strong { font-size: 1.75rem; }
  .mission-stats span { font-size: 0.62rem; }
  .image-frame img { height: 270px; }
  .video-heading { display: block; }
  .video-heading p { margin-top: 16px; }
  .video-placeholder { min-height: 290px; display: grid; grid-template-columns: auto 1fr; justify-content: center; padding: 25px; }
  .video-spec { position: static; grid-column: 1 / -1; text-align: center; }
  .race-video-shell { grid-template-columns: 1fr; min-height: auto; padding: 28px; gap: 34px; }
  .race-video { max-width: 330px; max-height: 500px; margin: 0 auto; }
  .video-caption { justify-content: center; }
  .league-option { grid-template-columns: 58px 1fr auto; padding: 15px 12px; }
  .option-icon { font-size: 1.2rem; }
  .entry-card { padding: 16px 14px; }
  .gallery-heading { display: block; }
  .photo-grid { grid-auto-rows: 190px; }
  .photo-tall { grid-row: span 2; }
  .photo-wide, .sponsor-photo { grid-column: span 1; }
  .archive-event { padding: 58px 0 70px; }
  .archive-event-heading { align-items: flex-start; }
  .archive-grid { grid-template-columns: 1fr; grid-auto-rows: 420px; }
  .archive-landscape { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-loop { display: none; }
  .hero-art-card { background: url("../images/race-finisher-family.webp") center 42% / cover; min-height: 430px; }
  .hero-loop-label { display: none; }
  .loop-dot { animation: none; }
  .archive-photo img { transition: none; }
}

/* ---------------- Gallery administration & photo finder ---------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.photo-find-cta { margin-top: 26px; }
.admin-upload-panel {
  margin: 0 0 44px;
  padding: 28px;
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--brand-yellow);
}
.admin-upload-panel h2 { text-transform: uppercase; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.admin-checks { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 16px 0 20px; }
.admin-checks .check-row { margin: 0; }
.admin-event-section { padding: 26px 0 36px; border-top: 2px solid var(--ink); }
.admin-event-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.admin-event-heading h2 { margin-bottom: 0; text-transform: uppercase; }
.admin-photo-list { display: grid; gap: 12px; }
.admin-photo-row {
  display: grid;
  grid-template-columns: 112px minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--white);
  border: 2px solid var(--ink);
}
.admin-photo-row > img { display: block; width: 112px; height: 82px; object-fit: cover; }
.admin-photo-copy { display: grid; gap: 3px; }
.admin-photo-copy strong { font-family: "Space Grotesk", sans-serif; text-transform: uppercase; }
.admin-photo-copy span, .table-detail { color: var(--muted); font-size: .82rem; }
.table-detail { display: block; margin-top: 2px; }
.entries-board { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entries-board .standings { min-width: 780px; }
.admin-photo-status, .admin-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.admin-photo-actions form { margin: 0; }
.admin-delete { color: var(--white); background: var(--brand-pink); border-color: var(--ink); }
.admin-delete:hover { color: var(--white); background: var(--ink); }
.admin-empty { padding: 22px; background: var(--cream-deep); border-left: 7px solid var(--brand-yellow); }
.photo-find-hero {
  padding: 76px 0;
  color: var(--white);
  background: linear-gradient(125deg, var(--ink), var(--brand-blue));
}
.photo-find-hero h1 {
  margin: 13px 0 16px;
  color: var(--white);
  font-size: clamp(3.3rem, 8vw, 6.5rem);
  line-height: .88;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.photo-find-hero p { max-width: 44ch; margin: 0; color: rgba(255,255,255,.86); font-size: 1.08rem; }
.photo-find-section { padding-bottom: 78px; }
.photo-find-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, .75fr); align-items: start; gap: clamp(32px, 8vw, 100px); }
.photo-find-copy h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: .98; text-transform: uppercase; }
.photo-find-copy p { max-width: 48ch; font-size: 1.02rem; }
.photo-find-form { max-width: none; margin: 0; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--brand-pink); }
.photo-find-form .btn { margin-top: 21px; }
.consent-check { margin-top: 20px; }
.photo-results { margin-top: 72px; padding-top: 60px; border-top: 2px solid var(--ink); }
.match-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.match-card { margin: 0; overflow: hidden; background: var(--white); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--brand-green); }
.match-card img { display: block; width: 100%; aspect-ratio: 1 / .8; object-fit: cover; }
.match-card figcaption { display: grid; gap: 4px; padding: 15px; }
.match-card figcaption strong { font-family: "Space Grotesk", sans-serif; text-transform: uppercase; }
.match-card figcaption span { font-size: .87rem; }
.match-card .match-score { margin-top: 4px; color: var(--brand-blue); font-family: "Space Grotesk", sans-serif; font-weight: 700; }
@media (max-width: 720px) {
  .admin-form-grid, .photo-find-layout { grid-template-columns: 1fr; }
  .admin-photo-row { grid-template-columns: 88px minmax(0, 1fr); }
  .admin-photo-row > img { width: 88px; height: 72px; }
  .admin-photo-status, .admin-photo-actions { grid-column: 1 / -1; }
  .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .admin-upload-panel { padding: 20px; }
  .admin-event-heading { align-items: flex-start; flex-direction: column; }
  .admin-photo-actions .btn { padding: 7px 11px; }
  .match-grid { grid-template-columns: 1fr; }
}
