/* Youth Sports Columbus — static, dependency-free stylesheet.
   Parent-facing, bright but trustworthy. WCAG AA contrast targets.
   Rounded type: self-hosted Nunito (variable, latin subset, SIL OFL; see fonts/OFL-Nunito.txt). */

@font-face {
  font-family: "Nunito";
  font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #f3f9ff;
  --surface: #ffffff;
  --ink: #0f1f3d;
  --ink-2: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #0a7a5f;
  --brand-hover: #08634d;
  --brand-ink: #ffffff;
  --brand-soft: #dff4ec;
  --warn-bg: #fff7e6;
  --warn-ink: #7a4b00;
  --ok-bg: #dff4ec;
  --ok-ink: #075a45;
  --focus: #1d4ed8;
  --shadow: 0 1px 2px rgba(15, 31, 61, .06), 0 6px 18px rgba(15, 31, 61, .06);
  --shadow-hover: 0 2px 4px rgba(15, 31, 61, .08), 0 10px 26px rgba(15, 31, 61, .12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --tap: 44px;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.75rem;
  /* Bright accents (decorative fills use dark ink text; AA checked) */
  --sun: #ffc933; --sun-soft: #fff3c4; --sky: #e6f5ff; --mint: #dff4ec; --coral: #ff6b57;
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Sport colors: white text on each is >= 4.5:1 */
  --c-hockey: #1d4ed8; --c-soccer: #15803d; --c-volleyball: #c2410c; --c-baseball: #b91c1c;
  --c-softball: #be185d; --c-basketball: #b45309; --c-lacrosse: #6d28d9; --c-cross-country-running: #0f766e;
  --c-track-field: #0369a1; --c-wrestling: #4338ca; --c-swimming: #0e7490; --c-dance: #a21caf;
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto }
a { color: var(--brand); text-underline-offset: 2px }
a:hover { text-decoration-thickness: 2px }
:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.btn:focus-visible,
.check:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
img { max-width: 100%; height: auto }
h1, h2, h3 {
  line-height: 1.25; margin: 0 0 .5rem; color: var(--ink);
  letter-spacing: -.01em; font-weight: 800;
}
h1 { font-size: clamp(1.55rem, 4.2vw, 2.2rem) }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-top: .15rem }
h3 { font-size: 1.05rem; letter-spacing: -.01em }
p { margin: 0 0 1rem }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem }
.skip {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
  background: var(--ink); color: #fff; padding: .75rem 1.1rem; z-index: 100;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip:focus, .skip:focus-visible {
  left: 1rem; top: 1rem; width: auto; height: auto; overflow: visible;
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem .85rem; padding-top: .65rem; padding-bottom: .65rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; color: var(--ink); text-decoration: none;
  font-size: 1rem; min-height: var(--tap);
  min-width: 0; max-width: 100%; flex: 1 1 auto;
}
.brand:hover { color: var(--brand); text-decoration: none }
.brand svg { flex: none; border-radius: 7px }
/* Keep full site name on all viewports; short/full spans share the same text. */
.brand-full, .brand-short {
  display: inline; overflow-wrap: anywhere; white-space: normal; line-height: 1.25;
}
.brand-full { display: none }
.brand-short { display: inline }
.nav { min-width: 0; flex: 1 1 100%; max-width: 100% }
.nav ul {
  list-style: none; margin: 0; padding: 0 0 2px;
  display: flex; flex-wrap: wrap; gap: .1rem .15rem;
  overflow-x: visible; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: .4rem .55rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink-2); font-size: .9rem; white-space: nowrap;
}
.nav a:hover { background: var(--bg); color: var(--ink); text-decoration: none }
.nav a[aria-current="page"] {
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}

/* ---------- Hero / sections ---------- */
.hero { padding: var(--space-6) 0 var(--space-4) }
.hero p.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 44rem; margin-bottom: .85rem }
.stats {
  display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 0; padding: 0; list-style: none;
}
.stats li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem .85rem; font-size: .9rem; color: var(--ink-2); box-shadow: var(--shadow);
}
.stats strong { color: var(--ink); font-size: 1.05rem; font-variant-numeric: tabular-nums }
.notice {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: .85rem 1rem; color: var(--ink-2); font-size: .95rem;
  margin: 1rem 0; box-shadow: var(--shadow);
}
.notice p:last-child { margin: 0 }

section { padding: var(--space-5) 0 }
.sport-links {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem; list-style: none; margin: 0; padding: 0;
}
.sport-links a {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .75rem .9rem; text-decoration: none; color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow); min-height: var(--tap);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sport-links a:hover {
  border-color: var(--brand); box-shadow: var(--shadow-hover); text-decoration: none;
}
.sport-links span {
  color: var(--muted); font-weight: 500; font-size: .9rem; font-variant-numeric: tabular-nums;
}

/* ---------- Filters (collapsible on small screens via .filters-collapsed) ---------- */
.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow); display: grid; gap: .85rem;
}
.filters-toolbar { display: block }
.filters-toggle {
  font: inherit; font-weight: 600; min-height: var(--tap); width: 100%;
  padding: .55rem .85rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--brand-soft); color: var(--brand);
  cursor: pointer; text-align: left;
}
.filters-toggle::after { content: "Hide"; float: right; font-weight: 500; color: var(--ink-2) }
.filters-toggle[aria-expanded="false"]::after { content: "Show" }
.filters.filters-collapsed .filters-panel { display: none }
.filters-panel {
  display: grid; gap: .75rem; grid-template-columns: 1fr; align-items: end;
}
.filters .field { display: flex; flex-direction: column; gap: .3rem; min-width: 0 }
.filters .field.search { grid-column: 1 / -1 }
.filters label, .filters .label {
  font-size: .82rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em;
}
.filters input[type=search], .filters select {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  width: 100%; min-height: var(--tap);
}
.filters input[type=search]::placeholder { color: var(--muted); opacity: 1 }
.filters input[type=search]:hover, .filters select:hover { border-color: #94a3b8 }
.filters input[type=search]:focus, .filters select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 122, 95, .22); outline: none;
}
.filters .checks {
  display: flex; flex-wrap: wrap; gap: .35rem .9rem; grid-column: 1 / -1; align-items: center;
}
.filters .check {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .94rem; font-weight: 500; color: var(--ink); min-height: var(--tap); cursor: pointer;
}
.filters .check input { width: 1.2rem; height: 1.2rem; accent-color: var(--brand); flex: none }
.filters button#reset {
  font: inherit; min-height: var(--tap); padding: .5rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer;
  margin-left: 0; width: 100%; font-weight: 600;
}
.filters button#reset:hover { border-color: var(--ink-2); background: var(--bg) }
.no-js .filters, .no-js .result-count, .no-js .filters-toolbar { display: none }
.result-count { margin: .95rem 0 .65rem; color: var(--ink-2); font-size: .94rem }
.empty {
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 1.35rem; text-align: center; color: var(--ink-2);
}

/* ---------- Cards ---------- */
.cards {
  display: grid; gap: .9rem; grid-template-columns: 1fr;
  list-style: none; margin: 0; padding: 0;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.05rem .95rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .55rem; min-width: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: #c5d0dc; box-shadow: var(--shadow-hover) }
.card[hidden] { display: none }
.card h3 { margin: 0; font-size: 1.08rem }
.card .meta {
  margin: 0; color: var(--muted); font-size: .9rem;
  display: flex; flex-wrap: wrap; gap: .35rem; align-items: center;
}
.tag {
  display: inline-block; font-size: .76rem; font-weight: 600;
  padding: .15rem .5rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}
.tag.sport { background: var(--brand-soft); border-color: transparent; color: var(--brand) }
.card dl { margin: 0; display: grid; gap: .55rem }
.card dt {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; margin-bottom: .1rem;
}
.card dd { margin: 0; font-size: .95rem; overflow-wrap: anywhere; color: var(--ink) }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  padding: .12rem .45rem; border-radius: 6px; margin-right: .35rem; vertical-align: 1px;
}
.badge.ok { background: var(--ok-bg); color: var(--ok-ink) }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink) }
.next { display: block; font-size: .88rem; font-weight: 600; color: var(--brand); margin-top: .2rem }
.next:empty { display: none }
.links {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin-top: auto; padding-top: .45rem; border-top: 1px solid var(--line);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: .45rem .85rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; text-decoration: none;
  border: 1px solid var(--brand); color: var(--brand); background: #fff;
}
.btn:hover { background: var(--brand-soft); text-decoration: none }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand) }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover) }
.btn[aria-disabled="true"], .btn:disabled {
  background: #eef1f5; color: var(--muted); border-color: var(--line); cursor: not-allowed;
}
.checked { margin: 0; font-size: .8rem; color: var(--muted) }

/* ---------- Tryouts list ---------- */
.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem }
.tlist li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .8rem .95rem; display: grid; grid-template-columns: 1fr; gap: .2rem .9rem;
  box-shadow: var(--shadow);
}
.tlist li[hidden] { display: none }
.tlist .when { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums }
.tlist .what p { margin: .15rem 0 0; color: var(--ink-2); font-size: .93rem }

/* ---------- Alerts CTA ---------- */
.alerts {
  background: linear-gradient(135deg, #0f1f3d 0%, #1d3a8a 60%, #0a7a5f 130%);
  color: #fff; border-radius: var(--radius); padding: 1.35rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow);
}
.alerts h2 { color: #fff; margin: 0 0 .35rem }
.alerts p { margin: 0; color: #d7e0ec; max-width: 44rem }
.alerts .btn.primary { background: #fff; color: var(--ink); border-color: #fff }
.alerts .btn.primary:hover { background: var(--brand-soft); border-color: var(--brand-soft) }
.alerts .btn[aria-disabled="true"] {
  background: transparent; color: #c5d0dc; border-color: #6b7894;
}

.prose { max-width: 42rem }
.prose h2 { margin-top: 1.65rem }
.prose li { margin-bottom: .4rem }
.crumbs { font-size: .88rem; color: var(--muted); margin: 1.15rem 0 0 }
.crumbs a { color: var(--muted) }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-6); border-top: 1px solid var(--line);
  background: var(--surface); padding: var(--space-5) 0 var(--space-6);
  font-size: .9rem; color: var(--ink-2); flex-shrink: 0;
}
.site-footer p { margin: 0 0 .55rem; max-width: 52rem }
.site-footer ul {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-wrap: wrap; gap: .35rem 1.1rem;
}
.site-footer a {
  font-weight: 500; min-height: var(--tap); display: inline-flex; align-items: center;
}

/* ============================================================
   Breakpoints: ~360 (base+), 768 (tablet), 1024 (desktop)
   ============================================================ */

@media (min-width: 360px) {
  .wrap { padding: 0 1.1rem }
  .sport-links { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) }
}

/* Tablet ~768px — show full brand, wrap nav, multi-col filters/cards */
@media (min-width: 768px) {
  .brand-full { display: inline }
  .brand-short { display: none }
  .brand { font-size: 1.05rem; flex: 0 1 auto }
  .nav { flex: 1 1 auto }
  .nav ul { flex-wrap: wrap; overflow: visible; justify-content: flex-end }
  .filters-toolbar { display: none } /* panel always visible; JS also expands */
  .filters.filters-collapsed .filters-panel { display: grid } /* never hide on tablet+ */
  .filters-panel { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .filters button#reset { width: auto; margin-left: auto }
  .hero { padding: var(--space-7) 0 var(--space-5) }
  .hero p.lede { font-size: 1.12rem }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .tlist li { grid-template-columns: 8.75rem 1fr; align-items: start }
  .sport-links { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) }
  .alerts { padding: 1.5rem }
}

/* Desktop ~1024px */
@media (min-width: 1024px) {
  .wrap { padding: 0 1.5rem }
  .filters-panel { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) }
  .filters .field.search { grid-column: 1 / -1 }
  .cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) }
  .site-header .wrap { padding-top: .75rem; padding-bottom: .75rem }
}

/* Very narrow phones */
@media (max-width: 359px) {
  .wrap { padding: 0 .75rem }
  body { font-size: 15px }
  .cards { grid-template-columns: 1fr }
  .filters button#reset { width: 100%; margin-left: 0 }
  .brand { font-size: .95rem }
  .filters .checks { flex-direction: column; align-items: stretch }
  .filters .check { width: 100% }
}

/* Mobile-only filter stack refinements (below tablet) */
@media (max-width: 767px) {
  .site-header .wrap {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
  }
  .brand { width: 100%; flex: 1 1 auto }
  .brand-full { display: none }
  .brand-short { display: inline }
  .nav { width: 100%; flex: 1 1 auto }
  .nav ul {
    flex-wrap: wrap; overflow-x: visible; justify-content: flex-start;
    row-gap: .15rem;
  }
  .filters .checks { flex-direction: column; align-items: stretch; gap: .35rem }
  .filters .check { width: 100% }
  .filters button#reset { width: 100%; margin-left: 0 }
}


/* ---------- Paid placements (rendered only when active) ---------- */
.placements { margin: 1rem 0 1.25rem }
.placements-heading { font-size: 1.05rem; margin: 0 0 .65rem }
.placements-note { font-size: .88rem; color: var(--muted); margin: .65rem 0 0; max-width: 48rem }
.placements-grid { display: grid; gap: .75rem; grid-template-columns: 1fr }
.placement {
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: .85rem 1rem; box-shadow: var(--shadow);
}
.placement-sponsor { border-style: solid; border-left: 4px solid var(--brand) }
.placement-featured { border-style: solid }
.placement-ad { background: #fafbfc }
.placement-label {
  margin: 0 0 .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.placement-inner { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-start }
.placement-identity {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .65rem .85rem;
  text-decoration: none; color: inherit; max-width: 100%;
}
.placement-identity:hover { text-decoration: none }
.placement-identity .placement-name { margin: 0; color: var(--brand) }
.placement-identity:hover .placement-name { text-decoration: underline }
.placement-logo { object-fit: contain; max-height: 60px; width: auto; border-radius: 6px; background: #fff }
.placement-body { flex: 1 1 12rem; min-width: 0 }
.placement-name { display: block; font-size: 1.02rem; margin: 0 0 .25rem; color: var(--ink) }
.placement-message { margin: 0 0 .45rem; color: var(--ink-2); font-size: .95rem }
.placement-cta { margin: .35rem 0 0 }
.placement-jump { margin: .55rem 0 0; font-size: .88rem }
.affiliate-disclosure {
  margin: .5rem 0 0; font-size: .82rem; color: var(--muted); font-style: italic;
}
@media (min-width: 768px) {
  .placements-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { transition: none !important; animation: none !important }
}
@media print {
  .filters, .alerts, .nav, .result-count, .filters-toolbar { display: none }
  .site-header { position: static }
  .card { break-inside: avoid; box-shadow: none }
  body { background: #fff }
}

/* =====================================================================
   Brighter look (home redesign). Shared by every page; home-only parts
   are namespaced (.home-*, .finder, .tile*, .slot*).
   ===================================================================== */
body { background: linear-gradient(180deg, var(--sky) 0, var(--bg) 520px) no-repeat, var(--bg) }
.site-header { background: rgba(255, 255, 255, .96); border-bottom: 1px solid #d6e6f5 }
.site-header::before {
  content: ""; display: block; height: 5px;
  background: linear-gradient(90deg, var(--c-hockey) 0 12.5%, var(--c-soccer) 0 25%, var(--c-volleyball) 0 37.5%, var(--c-baseball) 0 50%,
    var(--c-softball) 0 62.5%, var(--c-basketball) 0 75%, var(--c-lacrosse) 0 87.5%, var(--c-track-field) 0 100%);
}
.brand { font-weight: 800; font-size: 1.08rem }
.nav a { font-weight: 700; color: var(--ink-2) }
.nav a:hover { background: var(--sun-soft); color: var(--ink) }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; font-weight: 800 }
.btn { border-radius: 999px; border-width: 2px; font-weight: 800 }
.btn.primary { box-shadow: 0 2px 0 rgba(0, 0, 0, .12) }
.hero p.lede { color: var(--ink-2) }
.stats li { border-radius: 999px; border-color: #d6e6f5 }
.notice { border-left-color: var(--sun); border-left-width: 6px }

/* per-sport accent on cards and tags (sport + club pages inherit) */
.card { border-top: 5px solid var(--sc, var(--brand)) }
.card .tag.sport { background: var(--sc, var(--brand)); color: #fff; border-color: transparent }
.card[data-sport="hockey"] { --sc: var(--c-hockey) }
.card[data-sport="soccer"] { --sc: var(--c-soccer) }
.card[data-sport="volleyball"] { --sc: var(--c-volleyball) }
.card[data-sport="baseball"] { --sc: var(--c-baseball) }
.card[data-sport="softball"] { --sc: var(--c-softball) }
.card[data-sport="basketball"] { --sc: var(--c-basketball) }
.card[data-sport="lacrosse"] { --sc: var(--c-lacrosse) }
.card[data-sport="cross-country-running"] { --sc: var(--c-cross-country-running) }
.card[data-sport="track-field"] { --sc: var(--c-track-field) }
.card[data-sport="wrestling"] { --sc: var(--c-wrestling) }
.card[data-sport="swimming"] { --sc: var(--c-swimming) }
.card[data-sport="dance"] { --sc: var(--c-dance) }
.card .next { color: var(--brand-hover) }
.tlist li { border-left: 5px solid var(--sun) }
.tlist .when { color: var(--ink) }
.filters { border-color: #d6e6f5 }
.filters-toggle { background: var(--sun-soft); color: var(--ink); border-color: #f0d36a }

/* ---------- Home: hero + finder ---------- */
.home-hero {
  position: relative; margin: 1rem 0 0; padding: 1.5rem 1.1rem 1.25rem; border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 201, 51, .55) 0 90px, transparent 91px),
    radial-gradient(circle at 4% 100%, rgba(255, 107, 87, .22) 0 110px, transparent 111px),
    linear-gradient(135deg, #e6f5ff 0%, #f4fbf7 55%, #fff8dc 100%);
  border: 1px solid #d6e6f5;
}
.home-hero h1 { font-size: clamp(1.7rem, 5.4vw, 2.7rem); max-width: 22ch; margin-bottom: .6rem; line-height: 1.12 }
.home-hero .lede { font-size: 1.05rem; max-width: 46rem; margin-bottom: 1rem }
.finder {
  background: #fff; border-radius: 20px; padding: .9rem; border: 2px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink), 0 14px 30px rgba(15, 31, 61, .14); display: grid; gap: .7rem; margin-bottom: 1.1rem;
}
.finder label { display: block; font-size: .8rem; font-weight: 800; color: var(--ink-2); margin-bottom: .2rem }
.finder input[type=search], .finder select {
  font: inherit; font-size: 1.05rem; width: 100%; min-height: 52px; padding: .6rem .85rem; color: var(--ink);
  border: 2px solid var(--line-strong); border-radius: 14px; background: #fff;
}
.finder input[type=search]::placeholder { color: var(--muted); opacity: 1 }
.finder input[type=search]:focus, .finder select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 122, 95, .22); outline: none }
.finder-row { display: grid; gap: .7rem; grid-template-columns: 1fr 1fr; align-items: end }
.finder-row > div { min-width: 0 }
.finder .go {
  font: inherit; font-weight: 800; font-size: 1.1rem; min-height: 52px; padding: .6rem 1.4rem; border-radius: 14px; cursor: pointer;
  background: var(--sun); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink);
}
.finder .go:hover { background: #ffd866 }
.finder .go:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink) }
.finder-note { margin: 0; font-size: .82rem; color: var(--muted) }
.no-js .finder { display: none }
.home-hero .stats { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem }
.home-hero .stats li { text-align: center; padding: .5rem .6rem }
.home-hero .notice { margin-bottom: 0; background: rgba(255, 255, 255, .85) }
.home-hero .stats li:nth-child(1) { background: var(--mint) }
.home-hero .stats li:nth-child(2) { background: var(--sky) }
.home-hero .stats li:nth-child(3) { background: var(--sun-soft) }
.home-hero .stats li:nth-child(4) { background: #ffe3de }
.home-hero .stats li { box-shadow: none; border-color: transparent; color: var(--ink) }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap }
.section-head p { margin: 0; font-size: .92rem; color: var(--muted) }
.home-section { padding: var(--space-5) 0 .5rem }
html { scroll-padding-top: 5.5rem }

/* ---------- Sport tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; list-style: none; margin: .5rem 0 0; padding: 0 }
.tile {
  --tc: var(--brand); background: #fff; border: 2px solid var(--tc); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover) }
.tile-main {
  display: flex; align-items: center; gap: .65rem; flex: 1; min-height: 76px; padding: .7rem .8rem;
  background: var(--tc); color: #fff; text-decoration: none; font-weight: 800; line-height: 1.2;
}
.tile-main:hover { text-decoration: none; color: #fff }
.tile-icon {
  flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  background: rgba(255, 255, 255, .96); border-radius: 50%; box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
.tile-name { display: block; font-size: 1.02rem; overflow-wrap: anywhere }
.tile-count { display: block; font-size: .85rem; font-weight: 700; opacity: 1 }
.tile-spons {
  display: block; padding: .38rem .6rem; font-size: .78rem; line-height: 1.25; font-weight: 700; color: var(--ink-2); background: #fff;
  text-decoration: none; border-top: 1px dashed var(--line-strong); min-height: 2.2rem;
}
a.tile-spons:hover { background: var(--sun-soft); color: var(--ink); text-decoration: none }
.tile-spons .lab { display: block; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted) }
.tile-spons.is-paid { border-top-style: solid; background: var(--sun-soft); color: var(--ink) }
.tile-spons.is-paid .lab { color: var(--ink-2) }
.tile[data-sport="hockey"] { --tc: var(--c-hockey) }
.tile[data-sport="soccer"] { --tc: var(--c-soccer) }
.tile[data-sport="volleyball"] { --tc: var(--c-volleyball) }
.tile[data-sport="baseball"] { --tc: var(--c-baseball) }
.tile[data-sport="softball"] { --tc: var(--c-softball) }
.tile[data-sport="basketball"] { --tc: var(--c-basketball) }
.tile[data-sport="lacrosse"] { --tc: var(--c-lacrosse) }
.tile[data-sport="cross-country-running"] { --tc: var(--c-cross-country-running) }
.tile[data-sport="track-field"] { --tc: var(--c-track-field) }
.tile[data-sport="wrestling"] { --tc: var(--c-wrestling) }
.tile[data-sport="swimming"] { --tc: var(--c-swimming) }
.tile[data-sport="dance"] { --tc: var(--c-dance) }

/* ---------- Sponsor / ad slots (all clearly labeled; reserve space = no layout shift) ---------- */
.slot-label {
  display: inline-block; margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: .1rem .55rem;
}
.slot-strip { background: var(--ink); color: #fff; font-size: .9rem }
.slot-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem .75rem; padding-top: .4rem; padding-bottom: .4rem; min-height: 44px }
.slot-strip .slot-label { background: var(--sun); color: var(--ink); border-color: var(--sun) }
.slot-strip p { margin: 0 }
.slot-strip a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 36px }
.slot-strip a:hover { color: var(--sun) }
.slot-strip .placements { margin: 0; width: 100% }
.slot-strip .placement { background: transparent; border: 0; box-shadow: none; padding: 0; color: #fff }
.slot-strip .placement-label { color: var(--ink); background: var(--sun); display: inline-block; padding: .05rem .5rem; border-radius: 999px; margin: 0 .6rem 0 0 }
.slot-strip .placement-inner { display: inline-flex; align-items: center }
.slot-strip .placement-name, .slot-strip .placement-message { color: #fff; margin: 0 .5rem 0 0; display: inline }
.slot-strip .placement-identity .placement-name { color: #fff }
.slot-strip .btn { min-height: 32px; padding: .1rem .7rem; background: var(--sun); color: var(--ink); border-color: var(--sun) }

.featured-row { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: .6rem }
.featured-row .placements-grid { display: contents }
.slot-featured {
  background: #fff; border: 2px dashed var(--line-strong); border-radius: 18px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .35rem;
  min-height: 130px; box-shadow: none;
}
.slot-featured .slot-label { align-self: flex-start }
.slot-featured strong { font-size: 1.05rem }
.slot-featured p { margin: 0; color: var(--ink-2); font-size: .92rem }
.slot-featured .btn { align-self: flex-start; margin-top: auto }
.featured-row .placement { height: 100%; border-style: solid; border-width: 2px; border-color: var(--sun); background: #fffdf3; border-radius: 18px }
.featured-note { margin: .6rem 0 0; font-size: .82rem; color: var(--muted) }

.slot-ad { margin: 1.4rem auto .4rem; width: 100%; max-width: 728px; text-align: center }
.slot-ad .slot-label { margin-bottom: .35rem }
.slot-ad-box {
  /* reserves 300x250 on phones, 728x90 from 768px: no layout shift when an ad loads */
  width: 100%; max-width: 300px; min-height: 250px; margin: 0 auto; padding: 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  background: repeating-linear-gradient(135deg, #fff 0 14px, #f7fbff 14px 28px);
  border: 2px dashed #8aa4c4; border-radius: 18px; color: var(--ink);
}
.slot-ad-box strong { font-size: 1.15rem; line-height: 1.25 }
.slot-ad-box p { margin: 0; font-size: .9rem; color: var(--ink-2) }
.slot-ad .placements { margin: 0 auto; max-width: 728px; text-align: left }
.tag-note { font-size: .8rem; color: var(--muted) }

/* ---------- Tryouts coming up ---------- */
.home-tryouts .tlist li { border-radius: 16px }
.home-tryouts .tlist .when {
  display: inline-block; justify-self: start; background: var(--sun); color: var(--ink); border-radius: 999px; padding: .05rem .75rem;
}
.more-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800 }

@media (max-width: 767px) {
  .site-header { position: static }  /* 3-4 line nav should not eat the phone viewport while scrolling */
  .slot-featured[aria-hidden="true"] { display: none }
}
@media (min-width: 560px) {
  .home-hero .stats { display: flex; flex-wrap: wrap }
  .tiles { grid-template-columns: repeat(3, 1fr) }
  .featured-row { grid-template-columns: repeat(3, 1fr) }
}
@media (min-width: 768px) {
  .home-hero { padding: 2.2rem 2rem 1.6rem }
  .finder { padding: 1.1rem; grid-template-columns: 1fr }
  .finder-row { grid-template-columns: 1.1fr 1.1fr .9fr auto }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: .9rem }
  .slot-ad-box { max-width: 728px; min-height: 90px; flex-direction: row; flex-wrap: wrap; gap: .4rem 1.2rem; padding: .6rem 1rem }
  .slot-ad-box > div { text-align: left }
  .slot-strip .wrap { justify-content: center }
}
@media print {
  .slot-strip, .slot-ad, .finder, .tile-spons, .featured-row { display: none }
}

/* long URLs in club-page text must wrap on phones */
.prose { overflow-wrap: anywhere }
