:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --muted: #5c6b7e;
  --line: #d8e0ea;
  --paper: #f7f4ef;
  --card: #ffffff;
  --navy: #1e3a5f;
  --navy-deep: #14283f;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --green: #166534;
  --green-soft: #dcfce7;
  --red-soft: #fee2e2;
  --shadow: 0 1px 2px rgba(20,40,63,.06), 0 8px 24px rgba(20,40,63,.06);
  --radius: 14px;
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--amber); }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Header */
.site-header {
  background: var(--navy-deep);
  color: #fff;
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.hdr {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(145deg, #f59e0b, #b45309);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; letter-spacing: .02em;
  color: #1a1205; box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 650; font-size: 1.15rem; }
.brand-sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.site-header nav { display: flex; gap: .15rem 1rem; flex-wrap: wrap; font-size: .95rem; }
.site-header nav a { color: rgba(255,255,255,.88); text-decoration: none; padding: .25rem 0; }
.site-header nav a:hover { color: #fcd34d; }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-deep);
  min-height: 420px;
  display: grid; align-items: end;
}
.hero-media {
  position: absolute; inset: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  filter: brightness(.55) saturate(1.05);
}
.hero-content {
  position: relative; z-index: 1; padding: 3.5rem 0 2.75rem;
}
.kicker {
  display: inline-block; background: rgba(217,119,6,.92); color: #1a1205;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px; margin: 0 0 .9rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 650; font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.15; margin: 0 0 .75rem; max-width: 18ch; text-wrap: balance;
}
.lede { max-width: 42rem; margin: 0 0 1.4rem; font-size: 1.08rem; color: rgba(255,255,255,.92); }
.hero-stats {
  display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.hero-stats li {
  background: rgba(255,255,255,.1); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: .7rem 1rem; min-width: 7.5rem;
}
.hero-stats strong { display: block; font-size: 1.35rem; font-family: var(--display); }
.hero-stats span { font-size: .82rem; opacity: .85; }

/* Search */
.search-box {
  display: grid; gap: .6rem; max-width: 36rem;
}
.search-box label { font-size: .9rem; color: rgba(255,255,255,.85); }
.search-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-row input[type=search], .search-row select, .filter-bar select, .filter-bar input {
  font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem;
  background: #fff; color: var(--ink); min-width: 0;
}
.search-row input[type=search] { flex: 1; min-width: 14rem; }
.results {
  list-style: none; margin: .4rem 0 0; padding: 0; background: #fff; color: var(--ink);
  border-radius: 12px; box-shadow: var(--shadow); max-height: 280px; overflow: auto;
  display: none;
}
.results.open { display: block; }
.results li a {
  display: block; padding: .7rem .9rem; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.results li a:hover { background: var(--amber-soft); }
.results .meta { color: var(--muted); font-size: .85rem; }

/* Sections */
.band { padding: 2.5rem 0; }
.band.alt { background: #fff; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.section-head h2 {
  font-family: var(--display); font-size: clamp(1.4rem, 2.5vw, 1.85rem); margin: 0; font-weight: 650;
}
.notice, .disclaimer {
  background: var(--amber-soft); border: 1px solid #fcd34d; border-radius: var(--radius);
  padding: 1rem 1.15rem; margin: 1.25rem 0; color: #78350f; font-size: .95rem;
}
.disclaimer { background: #eef2ff; border-color: #c7d2fe; color: #312e81; }

/* Cards / grids */
.grid-states, .grid-cards, .grid-schools, .grid-guides {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.grid-cards, .grid-guides { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-schools { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card, .state-chip, .school-card, .guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.card:hover, a.state-chip:hover, a.school-card:hover, a.guide-card:hover {
  transform: translateY(-2px); box-shadow: 0 4px 20px rgba(20,40,63,.12);
}
.state-chip {
  display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem;
}
.state-chip .name { font-weight: 700; color: var(--navy); }
.state-chip .count { font-size: .85rem; color: var(--muted); }
.school-card { padding: 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; }
.school-card h3 { margin: 0; font-size: 1.05rem; font-family: var(--display); font-weight: 650; color: var(--navy); }
.school-card .where { color: var(--muted); font-size: .92rem; }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: .22rem .5rem; border-radius: 999px; background: #e8eef6; color: var(--navy);
}
.badge.a { background: #dbeafe; color: #1e40af; }
.badge.b { background: #ede9fe; color: #5b21b6; }
.badge.btw { background: var(--green-soft); color: var(--green); }
.badge.online { background: #fce7f3; color: #9d174d; }
.badge.private { background: #f3f4f6; color: #4b5563; }

.guide-card { overflow: hidden; display: flex; flex-direction: column; }
.guide-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.guide-card .body { padding: 1rem 1.1rem 1.2rem; }
.guide-card h3 { margin: 0 0 .4rem; font-family: var(--display); font-size: 1.15rem; color: var(--navy); }
.guide-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Breadcrumb + page */
.crumbs {
  font-size: .88rem; color: var(--muted); padding: 1rem 0 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.crumbs a { color: var(--navy); }
.page-title {
  font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 650;
  margin: .6rem 0 .5rem; line-height: 1.2;
}
.page-lede { color: var(--ink-soft); max-width: 48rem; margin: 0 0 1.25rem; }

/* School detail */
.detail-grid {
  display: grid; gap: 1.25rem; grid-template-columns: 1.4fr .8fr;
}
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; box-shadow: var(--shadow);
}
.panel h2 { font-family: var(--display); font-size: 1.2rem; margin: 0 0 .8rem; }
.kv { display: grid; gap: .55rem; margin: 0; }
.kv div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; font-size: .95rem; }
.kv dt { color: var(--muted); margin: 0; }
.kv dd { margin: 0; }
.training-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.training-table th, .training-table td {
  text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--line);
}
.training-table th { color: var(--muted); font-weight: 600; }
.yes { color: var(--green); font-weight: 700; }
.no { color: #9ca3af; }

/* Prose guides */
.prose { max-width: 42rem; }
.prose h2 { font-family: var(--display); font-size: 1.45rem; margin: 2rem 0 .7rem; }
.prose h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; color: var(--navy); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; }
.prose .callout {
  background: #fff; border-left: 4px solid var(--amber); padding: .9rem 1rem; margin: 1.2rem 0;
  border-radius: 0 10px 10px 0; box-shadow: var(--shadow);
}
.figure {
  margin: 1.4rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.figure figcaption { font-size: .82rem; color: var(--muted); padding: .5rem .2rem 0; }

/* Ad slots */
.ad-slot {
  min-height: 90px; background: #eef2f6; border: 1px dashed #c5d0dc; border-radius: 10px;
  margin: 1.25rem 0; display: grid; place-items: center; color: #94a3b8; font-size: .8rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 2.5rem 0 2rem; margin-top: 2rem;
  font-size: .92rem;
}
.site-footer a { color: #fcd34d; }
.foot-grid {
  display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 1.5rem;
}
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.foot-note { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; font-size: .85rem; opacity: .85; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 0 0 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem;
}
.filter-bar label { font-size: .88rem; color: var(--muted); }
.visually-hidden {
  position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.muted { color: var(--muted); }
.btn {
  display: inline-block; background: var(--amber); color: #1a1205; font-weight: 700;
  text-decoration: none; padding: .65rem 1.1rem; border-radius: 10px; border: none; cursor: pointer;
  font: inherit;
}
.btn:hover { filter: brightness(1.05); color: #1a1205; }
.btn-ghost {
  background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.city-list { columns: 2; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .city-list { columns: 3; } }
.city-list li { break-inside: avoid; margin: .25rem 0; }
.city-list a { text-decoration: none; font-weight: 600; }
.city-list span { color: var(--muted); font-weight: 400; font-size: .9rem; }

.badge.price { background: #ffedd5; color: #9a3412; }
.badge.paid { background: #d1fae5; color: #065f46; }
.badge.sched { background: #e0e7ff; color: #3730a3; }

/* Claim / update form */
.claim-panel { margin-top: 1.5rem; }
.claim-form .form-row { margin-bottom: .85rem; }
.claim-form label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: .3rem; color: var(--ink-soft); }
.claim-form .req { color: #b45309; }
.claim-form input[type=text],
.claim-form input[type=email],
.claim-form input[type=tel],
.claim-form input[type=url],
.claim-form textarea {
  width: 100%; font: inherit; padding: .65rem .8rem; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
.claim-form textarea { resize: vertical; min-height: 5rem; }
.form-grid-2 { display: grid; gap: .85rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-grid-2 { grid-template-columns: 1fr; } }
.claim-form .consent label.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; }
.claim-form .consent input { margin-top: .25rem; }
.hp-field { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; opacity: 0; }
.claim-form .btn { margin-top: .4rem; }
