/* ==========================================================
   THE FIND PAGES (C1, Outperform every rival, 11-Nov-2026)
   One sheet for /forms/find/ (Youth FIRST: green and blue) and
   /forms/next-find/ (Brevard NEXT: red and blue), and every
   program page under them. The side is the body class; every
   color below is a token on it. Self-hosted fonts, no third
   party request. Red is display only on NEXT, never body text.
   No endless animation; motion only on hover and focus, and none
   at all under prefers-reduced-motion.
   ========================================================== */
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(/fonts/barlow-condensed-800.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url(/fonts/barlow-condensed-800-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 800; font-style: normal; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); }

:root {
  --bg: #0B1220; --bg-top: #0D1526; --card: #16233B; --card-2: #1A2A46; --line: #24344F;
  --line-strong: rgba(141,160,188,.28); --text: #F2F5F9; --dim: #8DA0BC; --ink: #0B1220;
  --brand: #7CC248; --accent: #3E97D9; --on-brand: #0B1220; --split: 50%;
  --glow: rgba(124,194,72,.55);
}
body.side-adult { --brand: #EB0000; --on-brand: #F2F5F9; --split: 55%; --glow: rgba(235,0,0,.5); }

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible + span, input[type=search]:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
h1, h2, h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase;
  letter-spacing: .03em; line-height: .95; margin: 0; text-wrap: balance;
}
h2 { font-size: clamp(30px, 8vw, 40px); margin: 6px 0 14px; }
h2 span { color: var(--accent); }
.side-youth h2 span { color: var(--brand); }
p { margin: 10px 0; }
.dim { color: var(--dim); }
.small { font-size: 13.5px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 800; z-index: 5; }
.skip:focus { top: 12px; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 34px 0 0; }

/* ---------- hero: speed lines, a huge italic word, the split bar ---------- */
.hero {
  position: relative; overflow: clip; padding: 22px 0 34px;
  background: radial-gradient(130% 80% at 85% 0%, #17305A 0%, var(--bg-top) 55%, var(--bg) 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--brand) 0 var(--split), var(--accent) var(--split) 100%); }
.speed {
  position: absolute; inset: -20% -30% 0 30%; transform: skewX(-24deg); opacity: .55; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(62,151,217,.16) 34px 38px, transparent 38px 70px, rgba(255,255,255,.05) 70px 72px),
    linear-gradient(90deg, transparent 0%, var(--glow) 60%, transparent 61%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}
.hero .wrap { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 26px -6px var(--glow); }
.hero h1 { margin-top: 26px; font-size: clamp(54px, 17vw, 104px); }
.hero h1 .top { display: block; font-size: .42em; letter-spacing: .2em; color: var(--dim); }
.hero h1 b {
  display: inline-block; font-style: italic; color: var(--brand); transform: skewX(-6deg);
  text-shadow: 0 0 28px var(--glow), 4px 4px 0 rgba(62,151,217,.55);
}
.hero h1.prog { font-size: clamp(42px, 12vw, 76px); }
.lead { font-size: 17.5px; max-width: 520px; margin-top: 14px; }
.ribbon { margin: 18px 0 0; }
.ribbon span {
  display: inline-block; transform: skewX(-12deg); background: var(--brand); color: var(--on-brand);
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 16px; box-shadow: 6px 6px 0 var(--accent);
}

/* ---------- facts ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px auto 0; }
.facts li { font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }

/* ---------- search and filters ---------- */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin: 0 0 16px; }
.filters[hidden] { display: none; }
.search input {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  color: var(--text); font: inherit; padding: 10px 14px;
}
.search input::placeholder { color: var(--dim); }
.facet { border: 0; margin: 12px 0 0; padding: 0; min-width: 0; }
.facet legend { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 0; margin-bottom: 6px; }
.chip { display: inline-block; margin: 0 6px 6px 0; position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-weight: 700; font-size: 14px; background: rgba(255,255,255,.04);
}
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.count { margin: 0; font-size: 13.5px; color: var(--dim); }
.clear, .linkish { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 8px 4px; min-height: 40px; text-decoration: underline; }
.none { color: var(--dim); }

/* ---------- cards: the split flag on the left edge ---------- */
.cards { display: grid; gap: 14px; }
@media (min-width: 680px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  position: relative; overflow: clip; min-width: 0; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 16px 16px 24px; background: linear-gradient(160deg, var(--card-2) 0%, #131F36 100%);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card[hidden] { display: none; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(var(--brand) 0 var(--split), var(--accent) var(--split) 100%); }
.card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; transform: rotate(45deg);
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(255,255,255,.035) 10px 14px); pointer-events: none;
}
.card:hover, .card:focus-within { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 34px -18px var(--glow); }
.card h3 { font-size: 27px; margin: 2px 0 6px; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 4px; }
.card.big { padding: 20px 20px 20px 28px; }
.card.big h2 { margin-top: 2px; }
.kind { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.who { font-size: 13px; color: var(--dim); margin: 8px 0 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 10px 0 0; }
.tags li { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }
.trainer::before { background: linear-gradient(var(--accent) 0 100%); }

/* ---------- buttons: one row, never wrapping text inside ---------- */
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin-top: 14px; }
.big .row, .coach .row, .contact .row { grid-template-columns: 1fr; }
@media (min-width: 600px) { .big .row, .coach .row, .contact .row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.btn {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 12px; min-width: 0;
  text-align: center; border-radius: 13px; font-weight: 800; font-size: 14.5px; line-height: 1.2; text-decoration: none; border: 1px solid transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-g { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 26px -12px var(--glow); }
.btn-b { background: rgba(62,151,217,.14); color: var(--text); border-color: rgba(62,151,217,.5); }
.btn-o { background: transparent; color: var(--text); border-color: var(--line-strong); }

.crumbs { margin-top: 18px; font-size: 13.5px; color: var(--dim); }
.crumbs a { font-weight: 700; }
.coach, .contact { margin-top: 30px; }
.foot { margin-top: 36px; padding: 18px 0 30px; border-top: 1px solid var(--line); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
  .card:hover, .card:focus-within, .btn:hover { transform: none; }
}
