/* Self-hosted fonts (SIL Open Font License, see /brand/fonts/LICENSE.txt). Preloaded in index.html. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/brand/fonts/outfit-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/brand/fonts/inter-latin-var.woff2") format("woff2"); }

:root {
  /* playdar brand: deep blue, bright green accent, white wordmark. */
  --ink: #0B2F5E;
  --ink-2: #124A8F;
  --brand: #0B2F5E;
  --brand-text: #0B2F5E;
  --brand-ink: #ffffff;
  --spot: #3DE06B;
  --spot-dark: #1FB955;
  --bg: #F3F6FA;
  --surface: #ffffff;
  --surface-2: #E6EDF6;
  --text: #0B2F5E;
  --muted: #4E6078;
  --line: #D5DFEB;
  --ok: #15803d;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 47, 94, .06), 0 6px 20px rgba(11, 47, 94, .08);
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A2448;
    --surface: #0F3362;
    --surface-2: #164079;
    --text: #F3F6FA;
    --muted: #B3C3D9;
    --line: #22508F;
    --brand: #3DE06B;
    --brand-ink: #0B2F5E;
    --brand-text: #3DE06B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0A2448;
  --surface: #0F3362;
  --surface-2: #164079;
  --text: #F3F6FA;
  --muted: #B3C3D9;
  --line: #22508F;
  --brand: #3DE06B;
  --brand-ink: #0B2F5E;
  --brand-text: #3DE06B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--spot); color: var(--ink); border-color: var(--spot); }
:root[data-theme="dark"] .btn-call { background: #fff; color: var(--ink); border-color: #fff; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--spot); outline-offset: 2px; }
#app { outline: none; min-height: 60vh; }
.muted { color: var(--muted); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 16px;
  background: var(--ink); color: #fff;
}
/* Wordmark as live text: white "playdar" with a green "y". */
.logo { display: inline-flex; align-items: center; font: 700 28px/1 "Outfit", sans-serif; letter-spacing: -.02em; color: #fff; text-decoration: none; }
.logo em { font-style: normal; color: var(--spot); }
@media (max-width: 380px) { .logo { font-size: 24px; } }
.footer-logo { font-size: 24px; }
.topnav { display: none; gap: 4px; align-items: center; }
.topnav a {
  text-decoration: none; padding: 8px 12px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: #d6d9e0;
}
.topnav a:hover, .topnav a.active { color: #fff; background: var(--ink-2); }
.topnav .topnav-cta { background: var(--spot); color: var(--ink); }
.topnav .topnav-cta:hover, .topnav .topnav-cta.active { background: #5CEB84; color: var(--ink); }

.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink); padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid #222a3d;
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px 10px; font-size: 12px; font-weight: 600;
  text-decoration: none; color: #a3aab8;
}
.bottomnav a span { font-size: 20px; line-height: 1.2; }
.bottomnav a.active { color: var(--spot); }

@media (min-width: 800px) {
  .topnav { display: flex; }
  .bottomnav { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 60% 80% at 85% 0%, rgba(61, 224, 107, .22), transparent 60%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(18, 74, 143, .9), transparent 60%),
    linear-gradient(160deg, #124A8F 0%, var(--ink) 55%, #081F40 100%);
  color: #fff;
  padding: 32px 0 40px;
}
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -40px; top: -30px; width: min(46vw, 380px); aspect-ratio: 1;
  background: url("../brand/playdar-mark-green.svg") no-repeat center / contain;
  opacity: .22; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 12vw, 88px); line-height: .95;
  margin: 0 0 12px; letter-spacing: -.02em;
}
.hero h1 em { font-style: normal; color: var(--spot); }
.hero p { margin: 0 0 20px; color: #DCE6F4; font-size: 17px; max-width: 36em; }
.hero .hero-kicker { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 4.6vw, 28px); letter-spacing: -.01em; color: #fff; margin: 0 0 6px; }
.search {
  display: flex; gap: 8px; background: #fff; border-radius: 999px;
  padding: 6px; max-width: 560px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink); padding: 8px 12px;
}
.search button {
  border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink);
  font-weight: 700; padding: 10px 18px; cursor: pointer;
}
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; max-width: 720px; }
.quick-label { color: #d6d9e0; font-size: 14px; margin-right: 2px; }
.quick a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.quick a:hover, .quick a:focus-visible { background: rgba(255, 255, 255, .16); border-color: var(--spot); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 14px; color: #DCE6F4; }
.hero-stats strong { color: var(--spot); font-size: 18px; }

/* Landing-page photo: a full-width band under the copy on phones, a slanted panel beside it on
   wider screens. The green stripe is the ::before showing through the gap between two clip paths. */
.hero.has-photo {
  background:
    radial-gradient(ellipse 50% 70% at 30% 0%, rgba(61, 224, 107, .16), transparent 60%),
    linear-gradient(160deg, #124A8F 0%, var(--ink) 55%, #081F40 100%);
}
.hero.has-photo::after { display: none; }
.hero-photo { position: relative; margin: 26px -16px -40px; aspect-ratio: 16 / 10; overflow: hidden; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: var(--spot); clip-path: polygon(0 0, 100% 9%, 100% 100%, 0 100%); }
.hero-photo picture { position: absolute; inset: 0; display: block; }
.hero-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  clip-path: polygon(0 8px, 100% calc(9% + 8px), 100% 100%, 0 100%);
}
@media (min-width: 900px) {
  .hero.has-photo { padding: 0; }
  .hero.has-photo .wrap { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: center; }
  .hero-copy { padding: 44px 32px 48px 0; }
  .hero-photo {
    margin: 0 calc(-16px - max(0px, (100vw - 1100px) / 2)) 0 0;
    aspect-ratio: auto; align-self: stretch; min-height: 520px;
  }
  .hero-photo::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%); }
  .hero-photo img { object-position: 50% 40%; clip-path: polygon(10px 0, 100% 0, 100% 100%, calc(14% + 10px) 100%); }
}

/* ---------- Sections ---------- */
.section { padding: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section h2, .page-title {
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(28px, 7vw, 40px); line-height: 1; margin: 0; letter-spacing: .01em;
}
.section-head a { font-weight: 600; font-size: 15px; color: var(--brand-text); text-decoration: none; white-space: nowrap; }
.group-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 10px; }

/* ---------- Sport tiles ---------- */
.legal p, .legal li { line-height: 1.55; }
.legal h2 { font-size: 20px; margin: 22px 0 8px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--surface-2); }
.area-row { margin-top: 8px; }
.area-select { max-width: 360px; }
.quick .quick-near { background: var(--spot); color: var(--ink); border-color: var(--spot); font-weight: 700; }
.sport-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .sport-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .sport-grid { grid-template-columns: repeat(5, 1fr); } }
.sport-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 116px; padding: 14px; border-radius: var(--radius);
  background: var(--c); color: #fff; text-decoration: none; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.sport-tile:hover { transform: translateY(-2px); }
.sport-tile:active { transform: scale(.98); }
.sport-tile .icon { font-size: 34px; line-height: 1; }
.sport-tile .name { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.05; letter-spacing: -.02em; }
.sport-tile .count { font-size: 13px; font-weight: 600; }
.sport-tile::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px;
  border-radius: 50%; background: rgba(255, 255, 255, .14);
}
.sport-tile.empty { filter: saturate(.35); opacity: .85; }

/* ---------- Sport page header ---------- */
.sport-hero { background: var(--c); color: #fff; padding: 18px 0 22px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; margin-bottom: 8px; min-height: 24px; }
.sport-hero h1 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(40px, 11vw, 72px); line-height: .95; margin: 0; }
.sport-hero p { margin: 6px 0 0; }

/* ---------- Controls ---------- */
.controls { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.controls-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.input {
  width: 100%; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip[aria-pressed="true"] { background: var(--spot); color: var(--ink); border-color: var(--spot); }
}
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.toggle button { border: 0; background: transparent; padding: 8px 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.btn-near {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.result-count { font-size: 14px; color: var(--muted); margin: 0 0 10px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 12px; }
@media (min-width: 800px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.card.featured { border: 2px solid var(--spot); box-shadow: 0 0 0 4px rgba(61, 224, 107, .2), var(--shadow); }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card h2, .card h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.card h2 a, .card h3 a { text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { text-decoration: underline; }
.card-area { font-size: 14px; color: var(--muted); margin-top: 2px; }
.distance { font-size: 13px; font-weight: 700; color: var(--brand-text); white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.badge-featured { background: var(--spot); color: var(--ink); }
.badge-sponsored { background: var(--surface-2); color: var(--muted); }
.sport-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sport-tag { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); text-decoration: none; }
.style-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.style-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; color: var(--brand-text); }
.facts { display: grid; gap: 6px; margin: 0; font-size: 14px; }
.facts div { display: grid; grid-template-columns: 22px 1fr; gap: 6px; }
.facts dt { margin: 0; }
.facts dd { margin: 0; }
.ask { color: var(--muted); font-style: italic; }
.rating { font-size: 14px; font-weight: 700; }
.rating .stars { color: #f59e0b; letter-spacing: 1px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.actions .btn { flex: 1 1 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 14px;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { filter: brightness(.97); }
.btn-call { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #06331a; border-color: var(--wa); }
.btn-primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn-spot { background: var(--spot); color: var(--ink); border-color: var(--spot); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-call { background: #fff; color: var(--ink); border-color: #fff; }
}
.missing {
  font-size: 14px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px;
}
.missing a { color: var(--brand-text); font-weight: 700; }

/* ---------- Map ---------- */
.map { height: 62vh; min-height: 360px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; z-index: 0; }
.map-small { height: 260px; min-height: 0; }
.map-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.pin {
  width: 38px; height: 38px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--c, var(--brand)); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  display: grid; place-items: center;
}
.pin span { transform: rotate(45deg); font-size: 18px; line-height: 1; }
.pin.approx { border-style: dashed; }
.pin.featured { border-color: var(--spot); box-shadow: 0 0 0 4px rgba(61, 224, 107, .5), 0 3px 8px rgba(0, 0, 0, .35); }
.you-pin { width: 18px; height: 18px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37, 99, 235, .25); }
.leaflet-popup-content { font-family: var(--body); font-size: 14px; }
.leaflet-popup-content strong { font-size: 15px; }
.leaflet-popup-content a.popup-link { display: inline-block; margin-top: 6px; color: var(--brand-text); font-weight: 700; }

/* ---------- Academy page ---------- */
.detail { display: grid; gap: 16px; padding: 16px 0 32px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel h2 { font-size: 18px; margin: 0 0 12px; }
.detail-title { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(32px, 8vw, 52px); line-height: 1; margin: 6px 0 6px; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.photos img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review p { margin: 4px 0 0; }
.sources { font-size: 13px; color: var(--muted); word-break: break-word; }

/* ---------- Events ---------- */
.event {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.event.promoted { border: 2px solid var(--spot); }
.event-date {
  background: var(--ink); color: #fff; border-radius: 12px; text-align: center; padding: 8px 4px;
  font-weight: 800; line-height: 1.1;
}
.event-date .d { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--spot); display: block; }
.event-date .m { font-size: 12px; text-transform: uppercase; }
.event h2, .event h3 { margin: 0 0 4px; font-size: 17px; }
.event .type { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-text); }
.event p { margin: 4px 0 0; font-size: 14px; }

/* ---------- Misc blocks ---------- */
.cta-band {
  background: var(--spot); color: var(--ink); border-radius: var(--radius); padding: 22px;
  display: grid; gap: 12px;
}
.cta-band h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 32px; line-height: 1; margin: 0; }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--ink); color: #fff; border-color: var(--ink); justify-self: start; }
.tips { display: grid; gap: 12px; }
@media (min-width: 700px) { .tips { grid-template-columns: repeat(2, 1fr); } }
.tip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tip strong { display: block; margin-bottom: 4px; }
.tip p { margin: 0; font-size: 15px; color: var(--muted); }
.empty-state { text-align: center; padding: 32px 16px; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--radius); }
.empty-state .big { font-size: 44px; }
.empty-state h2, .empty-state h3 { margin: 6px 0; }
.empty-state p { margin: 0 0 14px; color: var(--muted); }
.sponsor {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-top: 16px;
}
.sponsor img { width: 40px; height: 40px; object-fit: contain; }
.sponsor small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

.plans { display: grid; gap: 12px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.plan.premium { border: 2px solid var(--spot); }
.plan h3, .plan-title { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 28px; }
.plan .price { font-size: 20px; font-weight: 800; }
.plan ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.plan li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.plan .btn { margin-top: auto; }

.footer { background: var(--ink); color: #DCE6F4; padding: 24px 16px 28px; font-size: 14px; }
.footer p { max-width: 1100px; margin: 0 auto 8px; }
.footer .muted { color: #8b93a5; }
.footer a { color: var(--spot); }
.footer-social a { margin-right: 12px; }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 2000;
  box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center;
}
@media (min-width: 800px) { .toast { bottom: 24px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 720px; }
.form h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 24px; margin: 8px 0 0; letter-spacing: .01em; }
.field { display: grid; gap: 6px; }
.field > label, .field .label { font-weight: 700; font-size: 15px; }
.req { color: var(--brand-text); }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
select.input { appearance: auto; }
textarea.input { resize: vertical; min-height: 88px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.check:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.row2 { display: grid; gap: 16px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.btn-wide { width: 100%; font-size: 16px; min-height: 52px; }
.btn:disabled { opacity: .6; cursor: progress; }
.form-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #dc2626 12%, var(--surface)); color: var(--text); font-weight: 600; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; display: grid; gap: 10px; justify-items: center; max-width: 720px; }
.success .big { font-size: 44px; }
.success h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 30px; margin: 0; }
.success p { margin: 0; }
.stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 40px; line-height: 1; color: var(--line); cursor: pointer; }
.stars-input label:hover, .stars-input label:hover ~ label,
.stars-input input:checked ~ label { color: #f59e0b; }
.stars-input input:focus-visible + label { outline: 3px solid var(--spot); outline-offset: 2px; border-radius: 6px; }

/* ---------- Utilities ---------- */
.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; }
.stack { display: grid; gap: 16px; min-width: 0; }
.gap { height: 10px; }
.mt { margin-top: 12px; }
.mt-lg { margin-top: 20px; }
.m0 { margin: 0; }
.small { font-size: 13px; }
.self-start { justify-self: start; }
h1.h3 { font-size: 1.17em; margin: 6px 0; }
.popup-muted { color: #6b7280; }
.map-fallback { padding: 16px; }
.sources a { display: inline-block; min-height: 24px; line-height: 24px; }
.sport-tile.empty { filter: none; opacity: 1; }
.sport-tile.empty .count { text-decoration: underline; text-underline-offset: 3px; }

/* Find a class */
.chips-label { margin: 4px 0 -2px; font-size: 14px; font-weight: 600; }
#radius .chips { margin-top: 8px; }
.find-events { margin: 4px 0 20px; }
.find-events h2 { font-size: 20px; margin: 0; }
.more { text-align: center; margin: 16px 0 0; }

/* Claimed listings and owner pages */
.badge-verified { background: #DCFCE7; color: #14532D; }
:root[data-theme="dark"] .badge-verified { background: #14532D; color: #DCFCE7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge-verified { background: #14532D; color: #DCFCE7; } }
.owner-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0 4px; }
.owner-stat { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.owner-stat strong { display: block; font-size: 26px; line-height: 1.1; }
.owner-stat span { font-size: 13px; color: var(--muted); }
button.owner-stat { border: 2px solid transparent; text-align: left; cursor: pointer; font: inherit; color: inherit; }
button.owner-stat:hover { border-color: var(--line); }
button.owner-stat.is-active { border-color: var(--brand-text); }
.stats-controls { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.stats-custom { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.stats-custom label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.stats-custom .input { width: auto; }
.chart-title { margin: 14px 0 4px; font-size: 14px; color: var(--muted); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { stroke: var(--muted); stroke-width: 1; }
.chart-tick { fill: var(--muted); font-size: 11px; font-family: var(--body); font-variant-numeric: tabular-nums; }
.chart-fill { fill: var(--spot-dark, #1FB955); }
:root[data-theme="dark"] .chart-fill { fill: var(--spot); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chart-fill { fill: var(--spot); } }
.chart-hit { fill: transparent; }
.chart-bar:hover .chart-fill, .chart-bar:focus .chart-fill { opacity: .75; }
.chart-bar:focus { outline: none; }
.chart-bar:focus .chart-hit { fill: rgba(61, 224, 107, .12); }
.chart-tip { position: absolute; top: 4px; width: 160px; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13px; pointer-events: none; box-shadow: var(--shadow); }
.chart-tip strong { font-size: 15px; margin-right: 4px; }
.chart-table { margin-top: 10px; font-size: 13px; }
.chart-table summary { cursor: pointer; color: var(--brand-text); }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.chart-table th, .chart-table td { text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.sport-icon { width: 1em; height: 1em; vertical-align: -.12em; display: inline-block; }
.pin .sport-icon { vertical-align: 0; }
.sort-wrap { display: inline-flex; align-items: center; }
.sort-select { width: auto; padding: 8px 10px; font-size: 14px; }
.claim-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 26px; font-weight: 700; letter-spacing: .08em; padding: 10px 16px; border-radius: 10px; background: var(--surface-2); display: inline-block; margin: 6px 0 10px; }
.owner-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.owner-photos figure { margin: 0; display: grid; gap: 6px; }
.owner-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.owner-events { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 8px; }
.owner-events li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
#m-ev-form h3 { margin: 8px 0 4px; font-size: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.btn-ghost { background: transparent; }
.follow { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.follow a { font-weight: 700; color: var(--brand-text); }
.ig-link { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.ig-icon { flex: none; }
.footer-social .ig-only { padding: 6px; border-radius: 10px; }
.footer-social .ig-only:hover { background: rgba(255, 255, 255, .1); }
