/* ═══════════════════════════════════════════════════════════════════════════
   SchoolDistrictFinder — Design System v5
   Optimized for: trust, mobile-first UX, strategic ad placement
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
  --bg:        #F0F4F8;
  --bg2:       #fff;
  --border:    #E2E8F0;
  --border-2:  #CBD5E1;
  --text:      #0F172A;
  --text-2:    #1E293B;
  --muted:     #64748B;
  --dim:       #94A3B8;
  --blue:      #2563EB;
  --blue-dk:   #1D4ED8;
  --blue-lt:   #EFF6FF;
  --indigo:    #4F46E5;
  --green:     #059669;
  --amber:     #D97706;
  --red:       #DC2626;
  --sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --sh-xs:     0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-sm:     0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --sh-md:     0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --sh-lg:     0 8px 32px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);
  --r-sm:      10px;
  --r-md:      14px;
  --r-lg:      18px;
  --r-xl:      22px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Header / Navigation ────────────────────────────────────────────────── */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.hi {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 12px;
}
.logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  letter-spacing: -.3px;
}
.logo-mark {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #2563EB, #4F46E5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}
.hlinks { display: flex; gap: 2px; }
.hlink {
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.hlink:hover { color: var(--blue); background: var(--blue-lt); }
.hlink-active { color: var(--blue) !important; background: var(--blue-lt) !important; font-weight: 700 !important; }
.hlink-cta {
  background: var(--blue);
  color: #fff !important;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 12px;
}
.hlink-cta:hover { background: var(--blue-dk) !important; color: #fff !important; }

/* Mobile nav */
.mob-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  border-radius: 8px;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.mob-menu-btn:hover { background: #F1F5F9; }
.mob-bar { width: 22px; height: 2px; background: var(--muted); border-radius: 2px; transition: all .25s; }
.mob-nav {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  z-index: 190;
  padding: 10px 14px 16px;
  flex-direction: column;
  gap: 2px;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  transition: all .15s;
}
.mob-nav a:hover, .mob-nav a.active { color: var(--blue); background: var(--blue-lt); }

/* ── E-E-A-T Trust Bar ───────────────────────────────────────────────────── */
.eeat-bar {
  background: #F8FAFC;
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.eeat-item { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.eeat-sep  { font-size: 11px; color: var(--dim); }
.eeat-link { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--dim); }
.eeat-link:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--border); padding: 9px 0; }
.bc-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.bc-link  { font-size: 12px; color: var(--muted); text-decoration: none; }
.bc-link:hover { color: var(--blue); }
.bc-sep   { font-size: 11px; color: var(--dim); }
.bc-cur   { font-size: 12px; color: var(--text-2); font-weight: 600; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0C1445 0%, #1E3A8A 52%, #312E81 100%);
  padding: 44px 0 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 65%, rgba(96,165,250,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(167,139,250,.16) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-left  { flex: 1; min-width: 280px; }
.hero-right { flex-shrink: 0; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 12px;
}
.hero-title em { font-style: normal; color: #93C5FD; }
.hero-sub { font-size: 15px; opacity: .82; line-height: 1.7; max-width: 480px; }
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 12px 18px;
  margin-top: 18px;
}
.hr-score  { font-size: 44px; font-weight: 900; line-height: 1; }
.hr-label  { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); }
.hr-badge  { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 8px; margin-left: 4px; color: #fff; }
.hero-share { margin-top: 14px; }
.share-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 9px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.share-btn:hover { background: rgba(255,255,255,.25); }
.geo-strip {
  background: rgba(255,255,255,.07);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 12px 24px;
  max-width: 1100px;
  margin: 16px auto 0;
}
.geo-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
}
.geo-btn:hover { background: rgba(255,255,255,.2); }

/* Search box (hero) */
.srch-box {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  padding: 20px 22px;
  width: 320px;
  backdrop-filter: blur(4px);
}
.srch-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 10px;
}
.srch-row   { display: flex; gap: 8px; }
.srch-in {
  flex: 1;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--sans);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.srch-in:focus { border-color: #60A5FA; box-shadow: 0 0 0 3px rgba(96,165,250,.2); }
.srch-in.err  { border-color: #F87171; }
.srch-btn {
  padding: 12px 16px;
  background: #4F46E5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  font-family: var(--sans);
}
.srch-btn:hover { background: #4338CA; }
.srch-hint { font-size: 11px; opacity: .65; margin-top: 8px; line-height: 1.5; }
.srch-err  { font-size: 12px; color: #FCA5A5; margin-top: 6px; display: none; }
.srch-err.show { display: block; }
.srch-errmsg { font-size: 12px; color: #FCA5A5; margin-top: 6px; min-height: 16px; }

/* Stat bar (hero bottom) */
.stat-bar {
  display: flex;
  gap: 0;
  margin-top: 20px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  overflow: hidden;
}
.stat-item { flex: 1; padding: 11px 8px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.1; }
.stat-lbl { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 2px; }
/* legacy stat-row/stat-pill */
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.stat-pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 10px 18px; text-align: center; }

/* ── Layout Shell ────────────────────────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.layout {
  display: grid;
  grid-template-columns: 1fr 308px;
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}
.main-col { min-width: 0; }
.side-col  { min-width: 0; position: sticky; top: 76px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--sh-sm);
  transition: box-shadow .18s;
}
.card-hdr {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFBFC;
}
.card-title { font-size: 14px; font-weight: 700; color: var(--text); }
.card-sub   { font-size: 11px; color: var(--muted); }

/* ── District Card ───────────────────────────────────────────────────────── */
.dc-hdr {
  background: linear-gradient(135deg, #1E3A8A, #3B82F6);
  padding: 22px 24px;
  color: #fff;
}
.dc-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .75; margin-bottom: 8px; }
.dc-name    { font-size: clamp(17px, 2.5vw, 24px); font-weight: 800; margin-bottom: 4px; letter-spacing: -.3px; line-height: 1.2; }
.dc-loc     { font-size: 13px; opacity: .8; }
.dc-stats   { display: grid; grid-template-columns: repeat(4, 1fr); }
.dc-stat    { padding: 16px 12px; text-align: center; border-right: 1px solid var(--border); }
.dc-stat:last-child { border-right: none; }
.dc-sv      { font-size: 22px; font-weight: 800; color: var(--blue); margin-bottom: 3px; line-height: 1.1; }
.dc-sv.great  { color: #16A34A; }
.dc-sv.good   { color: #059669; }
.dc-sv.avg    { color: #D97706; }
.dc-sv.below  { color: var(--red); }
.dc-sl      { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.dc-note {
  padding: 13px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FAFBFC;
}
.dc-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── District Action Buttons ─────────────────────────────────────────────── */
.district-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 16px 0 2px;
}
.da-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .15s;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  white-space: nowrap;
  line-height: 1;
}
.da-btn.da-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.da-btn.da-primary:hover {
  background: var(--blue-dk);
  border-color: var(--blue-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.da-btn.da-secondary {
  background: #fff;
  color: var(--blue);
  border-color: #BFDBFE;
}
.da-btn.da-secondary:hover {
  background: var(--blue-lt);
  border-color: #93C5FD;
  transform: translateY(-1px);
}

/* ── Info Grid (Contact Card) ────────────────────────────────────────────── */
.info-grid   { padding: 4px 0; }
.ig-item     { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.ig-item:last-child { border-bottom: none; }
.ig-icon     { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.ig-body     { flex: 1; min-width: 0; }
.ig-label    { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.ig-val      { font-size: 14px; color: var(--text); word-break: break-word; }
.ig-val a    { color: var(--blue); text-decoration: none; }
.ig-val a:hover { text-decoration: underline; }

/* ── School Cards ────────────────────────────────────────────────────────── */
.school-section-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.school-section-sub   { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.school-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.school-card:last-child { border-bottom: none; }
.school-card:hover { background: #FAFBFC; }
.sc-level {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sc-info     { flex: 1; min-width: 0; }
.sc-name     { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.sc-type     { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.sc-meta     { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.sc-bar-lbl  { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.sc-bar-track{ height: 5px; background: var(--border); border-radius: 5px; overflow: hidden; }
.sc-bar-fill { height: 100%; border-radius: 5px; }
.sc-right    { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; }
.sc-score    { font-size: 32px; font-weight: 900; line-height: 1; margin-bottom: 2px; }
.sc-slbl     { font-size: 9px; color: var(--dim); letter-spacing: 1px; text-transform: uppercase; }
.sc-badge    { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 10px; font-weight: 700; margin-top: 4px; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stable { width: 100%; border-collapse: collapse; font-size: 13px; }
.stable th {
  background: #F8FAFC;
  padding: 10px 16px;
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.stable td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.stable tr:last-child td { border-bottom: none; }
.stable tr:hover td { background: #F8FAFC; }
.stable a { color: var(--blue); text-decoration: none; font-weight: 600; }
.stable a:hover { text-decoration: underline; }
.r-badge  { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; color: #fff; }
.cmp-up   { color: #16A34A; font-weight: 700; }
.cmp-dn   { color: var(--red); font-weight: 700; }
.cmp-eq   { color: var(--muted); font-weight: 600; }

/* ── Widgets & Sidebar ───────────────────────────────────────────────────── */
.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--sh-sm);
}
.widget-hdr {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: #FAFBFC;
}
.widget-body { padding: 14px 16px; }
.quick-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.quick-stat:last-child { border-bottom: none; }
.qs-label { font-size: 12px; color: var(--muted); }
.qs-val   { font-size: 13px; font-weight: 700; color: var(--text); text-align: right; }
.qs-val.great { color: #16A34A; }
.qs-val.good  { color: var(--green); }
.qs-val.avg   { color: var(--amber); }
.qs-val.below { color: var(--red); }
.info-grid { padding: 4px 0; }
.wlink {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background .12s;
}
.wlink:last-child { border-bottom: none; }
.wlink-name { font-size: 13px; color: var(--blue); font-weight: 500; }
.wlink-meta { font-size: 11px; color: var(--muted); }

/* ── Affiliate CTAs ──────────────────────────────────────────────────────── */
.aff-widget {
  background: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);
  border: 1px solid #C7D2FE;
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.aff-title  { font-size: 13px; font-weight: 800; color: #1E3A8A; margin-bottom: 4px; }
.aff-body   { font-size: 12px; color: #3730A3; line-height: 1.5; margin-bottom: 12px; }
.aff-links  { display: flex; flex-direction: column; gap: 6px; }
.aff-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 10px 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #1E40AF;
  transition: all .15s;
}
.aff-link:hover {
  background: var(--blue-lt);
  border-color: #93C5FD;
  transform: translateX(2px);
  box-shadow: var(--sh-xs);
}
.aff-link-icon { font-size: 15px; flex-shrink: 0; }
.aff-link-text { flex: 1; }
.aff-link-arr  { color: var(--dim); font-size: 12px; }

/* ── Compare Widget ──────────────────────────────────────────────────────── */
.compare-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--sh-sm);
}
.compare-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.compare-sub   { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.compare-row   { display: flex; gap: 6px; }
.compare-in {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--sans);
  outline: none;
  color: var(--text);
  transition: border-color .15s;
}
.compare-in:focus  { border-color: #60A5FA; }
.compare-btn {
  background: var(--indigo);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--sans);
}
.compare-btn:hover { background: #4338CA; }
.compare-result    { margin-top: 12px; font-size: 13px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.compare-table th {
  background: #F8FAFC;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.compare-table td  { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .this-col { background: var(--blue-lt); }
.compare-link { display: block; margin-top: 8px; font-size: 12px; color: var(--blue); font-weight: 600; text-decoration: none; }
.compare-link:hover { text-decoration: underline; }

/* ── Related Zip Codes / Grid Cards ─────────────────────────────────────── */
.related-zips { padding: 14px; }
.zip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.zgc {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  display: block;
  transition: all .18s;
}
.zgc:hover {
  border-color: #93C5FD;
  background: var(--blue-lt);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37,99,235,.12);
}
.zgc-zip    { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.zgc-city   { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.zgc-rating { font-size: 12px; font-weight: 800; }

/* County / State grids */
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; padding: 14px; }
.cgc {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  display: block;
  transition: all .18s;
}
.cgc:hover { border-color: #93C5FD; background: var(--blue-lt); transform: translateY(-2px); }
.cgc-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.cgc-meta { font-size: 11px; color: var(--muted); }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 18px; }
.sgc {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  display: block;
  transition: all .18s;
}
.sgc:hover {
  border-color: #93C5FD;
  background: var(--blue-lt);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37,99,235,.12);
}
.sgc-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sgc-meta { font-size: 11px; color: var(--muted); }

/* ── SEO Content Block ───────────────────────────────────────────────────── */
.seo-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 24px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
  box-shadow: var(--sh-xs);
}
.seo-block h2  { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.seo-block h3  { font-size: 14px; font-weight: 700; color: var(--text); margin: 14px 0 6px; }
.seo-block strong { color: var(--text); }
.seo-block p   { margin-bottom: 12px; }
.seo-block p:last-child { margin-bottom: 0; }

/* ── Info Note (Blue Banner) ─────────────────────────────────────────────── */
.info-note {
  background: var(--blue-lt);
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 13px;
  color: #1E40AF;
  line-height: 1.65;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.info-note-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  color: var(--text);
  transition: background .12s;
  gap: 10px;
  line-height: 1.4;
}
.faq-q:hover { background: #F8FAFC; }
.faq-arr  { transition: transform .2s; color: var(--dim); font-size: 12px; flex-shrink: 0; }
.faq-a    { display: none; padding: 0 20px 15px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.faq-item.open .faq-arr { transform: rotate(180deg); }
.faq-item.open .faq-a   { display: block; }

/* ── Ads ─────────────────────────────────────────────────────────────────── */
.ad-wrap  { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.ad-slot  { overflow: hidden; min-height: 0; }
.ad-label {
  font-size: 10px;
  color: var(--dim);
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* ── Rating Tier (How-Ratings page) ─────────────────────────────────────── */
.rating-tier { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.rating-tier:last-child { border-bottom: none; }
.rating-dot  { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; flex-shrink: 0; }
.rating-tier-info  { flex: 1; }
.rating-tier-range { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.rating-tier-desc  { font-size: 13px; color: var(--muted); }

/* ── State Chips ─────────────────────────────────────────────────────────── */
.state-chip {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all .15s;
}
.state-chip:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 16px;
  margin-top: 48px;
  background: #fff;
}
.footer-states { max-width: 1100px; margin: 0 auto; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.footer-states-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
.footer-states-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-states-grid a { font-size: 11px; color: var(--muted); text-decoration: none; padding: 3px 8px; border-radius: 5px; }
.footer-states-grid a:hover { color: var(--blue); }
.fi {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}
.fc { font-size: 12px; color: var(--muted); line-height: 1.6; }
.fl { display: flex; flex-wrap: wrap; gap: 4px; }
.fl a { font-size: 12px; color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 5px; transition: color .12s; }
.fl a:hover { color: var(--blue); }
.disc { max-width: 1100px; margin: 0 auto; padding: 0 24px 12px; font-size: 11px; color: var(--dim); line-height: 1.75; }

/* ── Trust Strip ─────────────────────────────────────────────────────────── */
.trust-strip { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; }
.trust-items {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.trust-icon { font-size: 22px; flex-shrink: 0; }
.trust-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.trust-sub  { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── How-It-Works Grid ───────────────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.how-step { background: #F8FAFC; border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 18px; text-align: center; }
.how-num  {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #2563EB, #4F46E5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
  margin: 0 auto 12px;
}
.how-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.how-text  { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ── Section Headings ────────────────────────────────────────────────────── */
.sec-hdr { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: -.3px; }
.sec-sub { font-size: 13px; color: var(--muted); margin-bottom: 0; }

/* ── Rating Bar ──────────────────────────────────────────────────────────── */
.rating-bar  { display: flex; gap: 0; border-radius: 8px; overflow: hidden; margin: 12px 0 4px; height: 7px; }
.rb-seg      { flex: 1; }
.rating-scale-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.rating-how  { font-size: 11px; color: var(--muted); margin-top: 6px; }
.rating-how a { color: var(--blue); text-decoration: none; font-weight: 600; }
.rating-how a:hover { text-decoration: underline; }

/* ── State Page Filter Bar ───────────────────────────────────────────────── */
.sf-bar { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sf-in  {
  flex: 1; min-width: 180px;
  border: 1.5px solid var(--border); border-radius: 9px;
  padding: 9px 13px; font-size: 14px; font-family: var(--sans);
  outline: none; color: var(--text); background: #fff;
}
.sf-in:focus  { border-color: #60A5FA; box-shadow: 0 0 0 3px rgba(96,165,250,.15); }
.sf-sel {
  border: 1.5px solid var(--border); border-radius: 9px;
  padding: 9px 12px; font-size: 13px; font-family: var(--sans);
  outline: none; color: var(--text); background: #fff; cursor: pointer;
}
.sf-sel:focus { border-color: #60A5FA; }
.sf-count { font-size: 12px; color: var(--muted); white-space: nowrap; margin-left: auto; }
.stable tr.sf-hidden { display: none; }

/* ── Address Verifier Widget ─────────────────────────────────────────────── */
.avw {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.avw-title { font-size: 14px; font-weight: 700; color: #14532D; margin-bottom: 4px; }
.avw-sub   { font-size: 12px; color: #166534; margin-bottom: 12px; }
.avw-row   { display: flex; gap: 8px; }
.avw-in {
  flex: 1;
  border: 1.5px solid #BBF7D0; border-radius: 9px;
  padding: 10px 13px; font-size: 14px; font-family: var(--sans);
  outline: none; background: #fff; color: var(--text);
}
.avw-in:focus { border-color: #4ADE80; }
.avw-btn {
  background: #16A34A; color: #fff;
  border: none; border-radius: 9px;
  padding: 10px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; font-family: var(--sans);
}
.avw-btn:hover { background: #15803D; }
.avw-result { margin-top: 10px; font-size: 13px; min-height: 18px; }
.avw-yes { color: #15803D; font-weight: 700; }
.avw-no  { color: var(--red); font-weight: 700; }

/* ── Recently Viewed ─────────────────────────────────────────────────────── */
.recent-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--sh-sm);
}

/* ── Back to Top ─────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px; height: 44px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  opacity: 0; transform: translateY(12px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 990;
  line-height: 1; padding: 0;
}
.back-to-top.btt-show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--blue-dk); transform: translateY(-2px) !important; }

/* ── Map Loading Spinner ─────────────────────────────────────────────────── */
.map-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 10px; }
.map-ring { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: mapspin .75s linear infinite; }
@keyframes mapspin { to { transform: rotate(360deg); } }

/* ── ★ PILLAR 2: District Shortlist ──────────────────────────────────────── */
.da-sl {
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  border-radius: 11px;
  padding: 10px 16px;
  font-size: 13px;
  font-family: var(--sans);
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.da-sl:hover { background: var(--blue-lt); }
.da-sl.sl-saved { background: #FFF7ED; border-color: var(--amber); color: var(--amber); }
.sl-badge {
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 17px; height: 17px;
  font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 2px;
}

/* Toast notification */
.sdf-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1E3A8A;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: all .25s;
  pointer-events: none;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.sdf-toast a        { color: #93C5FD; }
.sdf-toast-warn     { background: #92400E; }
.sdf-toast-show     { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* Shortlist page */
.sl-empty          { text-align: center; padding: 60px 24px; }
.sl-empty-icon     { font-size: 60px; margin-bottom: 16px; }
.sl-empty h2       { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.sl-empty p        { color: var(--muted); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto; }
.sl-hdr            { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.sl-hdr-title      { font-size: 22px; font-weight: 800; color: var(--text); }
.sl-hdr-actions    { display: flex; gap: 10px; }
.sl-cards          { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.sl-card           { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.sl-card-hdr       { padding: 16px 18px; color: #fff; }
.sl-card-zip       { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .8; }
.sl-card-score     { font-size: 42px; font-weight: 900; line-height: 1; }
.sl-card-lbl       { font-size: 11px; opacity: .8; }
.sl-card-body      { padding: 14px 18px; }
.sl-card-name      { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.sl-card-loc       { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.sl-card-stats     { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.sl-card-acts      { display: flex; gap: 8px; flex-wrap: wrap; }
.sl-view           { background: var(--blue-lt); color: #1E40AF; padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; text-decoration: none; }
.sl-view:hover     { background: #DBEAFE; }
.sl-remove         { background: #FEF2F2; color: var(--red); border: none; padding: 7px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.sl-remove:hover   { background: #FEE2E2; }
.sl-tbl-wrap       { padding: 0; }

/* ── ★ PILLAR 1: Property Tax Calculator ─────────────────────────────────── */
.pc-card .card-hdr { padding: 14px 20px; }
.pc-body           { padding: 16px 20px 20px; }
.pc-label          { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .5px; margin-bottom: 8px; text-transform: uppercase; }
.pc-row            { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.pc-dollar         { font-size: 20px; font-weight: 800; color: var(--text); }
.pc-in {
  border: 2px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 18px; font-weight: 700;
  font-family: var(--sans); color: var(--text); outline: none;
  width: 180px; transition: border-color .15s;
}
.pc-in:focus       { border-color: #60A5FA; }
.pc-slider         { width: 100%; margin-bottom: 16px; accent-color: var(--blue); }
.pc-results        { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pc-result         { background: var(--bg); border-radius: 12px; padding: 12px 10px; text-align: center; }
.pc-result-val     { font-size: 20px; font-weight: 900; color: var(--text); }
.pc-school-val     { color: var(--green); }
.pc-result-lbl     { font-size: 11px; font-weight: 700; color: var(--muted); margin: 2px 0; }
.pc-result-note    { font-size: 10px; color: var(--dim); }
.pc-disc           { font-size: 11px; color: var(--dim); line-height: 1.5; }

/* ── ★ PILLAR 4: Questions Checklist ─────────────────────────────────────── */
.cq-card .card-hdr { cursor: pointer; user-select: none; }
.cq-body           { padding: 16px 20px 20px; }
.cq-body.cq-collapsed { display: none; }
.cq-list           { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cq-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; background: var(--bg); border-radius: 10px;
  cursor: pointer; transition: background .12s;
}
.cq-item:hover     { background: var(--blue-lt); }
.cq-item input     { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--blue); cursor: pointer; }
.cq-text           { font-size: 13px; line-height: 1.5; color: var(--text); }
.cq-done .cq-text  { text-decoration: line-through; color: var(--dim); }
.cq-acts           { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── ★ PILLAR 4: Moving Journey Stepper ─────────────────────────────────── */
.journey-bar {
  background: #fff;
  border-bottom: 2px solid #EFF6FF;
  padding: 10px 0;
}
.journey-bar > .journey-label {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.journey-steps {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 2px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.journey-steps::-webkit-scrollbar { display: none; }
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
  min-width: 72px;
}
.journey-step:hover     { background: var(--blue-lt); }
.journey-step.js-current{ background: var(--blue-lt); }
.journey-step.js-active { background: #DBEAFE; }
.journey-step.js-done .js-icon { opacity: 1; }
.journey-step:not(.js-done) .js-icon { opacity: .4; }
.js-icon   { font-size: 18px; }
.js-label  { font-size: 10px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.2; }
.journey-step.js-current .js-label { color: #1E40AF; }
.journey-step.js-done .js-label    { color: var(--green); }
.js-connector { height: 2px; width: 16px; background: var(--border); flex-shrink: 0; }
.journey-tip {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 10px;
  font-size: 13px;
  color: #1E40AF;
  background: var(--blue-lt);
  border-top: 1px solid #DBEAFE;
}
.journey-tip a { color: #1E40AF; font-weight: 600; }

/* ── ★ PILLAR 6: Enrollment Timeline ────────────────────────────────────── */
.enroll-timeline {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.et-icon  { font-size: 22px; flex-shrink: 0; }
.et-title { font-size: 13px; font-weight: 800; color: #92400E; margin-bottom: 4px; }
.et-info  { font-size: 13px; color: #78350F; margin-bottom: 4px; line-height: 1.5; }
.et-note  { font-size: 11px; color: #A16207; }

/* ── ★ PILLAR 1: Moving Decision Wizard ─────────────────────────────────── */
.mw-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.mw-modal {
  background: #fff;
  border-radius: 22px;
  padding: 32px 36px;
  max-width: 520px; width: 100%;
  position: relative;
  box-shadow: var(--sh-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.mw-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--dim); line-height: 1; padding: 4px;
  border-radius: 6px; transition: background .12s;
}
.mw-close:hover { color: var(--text); background: var(--bg); }
.mw-icon  { font-size: 38px; margin-bottom: 10px; }
.mw-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -.3px; }
.mw-sub   { font-size: 14px; color: var(--muted); margin-bottom: 18px; line-height: 1.5; }
.mw-row   { display: flex; gap: 8px; margin-bottom: 8px; }
.mw-in {
  flex: 1;
  border: 2px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 15px; font-family: var(--sans);
  outline: none; transition: border-color .15s;
}
.mw-in:focus    { border-color: #60A5FA; }
.mw-btn {
  background: var(--blue); color: #fff;
  border: none; border-radius: 10px;
  padding: 12px 18px; font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap; font-family: var(--sans);
}
.mw-btn:hover   { background: var(--blue-dk); }
.mw-hint        { font-size: 12px; color: var(--muted); min-height: 18px; }
.mw-priorities  { display: flex; flex-direction: column; gap: 8px; }
.mwp {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg); border-radius: 10px;
  cursor: pointer; font-size: 13px; font-weight: 600; transition: background .12s;
}
.mwp:hover         { background: var(--blue-lt); }
.mwp input         { accent-color: var(--blue); width: 16px; height: 16px; }
.mw-tips {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
}
.mw-tips ul { padding-left: 18px; margin-top: 6px; }
.mw-tips li { font-size: 13px; line-height: 1.7; color: #166534; }
.mw-steps-list {
  background: var(--blue-lt);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
}
.mw-steps-list ol { padding-left: 18px; margin-top: 6px; }
.mw-steps-list li { font-size: 13px; line-height: 1.7; color: #1E40AF; }

/* Wizard trigger button */
.wizard-btn {
  background: linear-gradient(135deg, #2563EB, #4F46E5);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all .15s;
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
  font-family: var(--sans);
}
.wizard-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.38); }

/* ── Shortlist Nav ───────────────────────────────────────────────────────── */
.sl-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sl-nav-count {
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  width: 16px; height: 16px;
  font-size: 9px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute;
  top: -4px; right: -4px;
}

/* ── Compare Page Specific ───────────────────────────────────────────────── */
.cmp-win-badge {
  display: inline-block;
  background: #DCFCE7;
  color: #15803D;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  margin-left: 6px;
  white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .side-col {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-top: 0;
  }
  .side-col > * { margin-bottom: 0; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .srch-box { width: 100%; max-width: 480px; }
  .dc-stats { grid-template-columns: 1fr 1fr; }
  .dc-stat:nth-child(2)  { border-right: none; }
  .dc-stat:nth-child(3)  { border-top: 1px solid var(--border); }
}
@media (max-width: 700px) {
  .trust-items { grid-template-columns: 1fr 1fr; }
  .how-grid    { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hlinks, nav[style*="display:flex"] { display: none !important; }
  .mob-menu-btn { display: flex; }
  .hero { padding: 28px 0 24px; }
  .srch-row { flex-direction: column; }
  .srch-btn { width: 100%; }
  .school-card { flex-wrap: wrap; }
  .sc-right { width: 100%; flex-direction: row; align-items: center; gap: 10px; text-align: left; }
  .zip-grid { grid-template-columns: repeat(2, 1fr); }
  .county-grid, .state-grid { grid-template-columns: 1fr 1fr; }
  .da-btn { width: 100%; justify-content: center; }
  .avw-row { flex-direction: column; }
  .avw-btn { width: 100%; }
  .pc-results { grid-template-columns: 1fr 1fr; }
  .pc-result:last-child { grid-column: span 2; }
  .mw-modal { padding: 24px 18px; }
  .mw-title { font-size: 18px; }
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 18px; }
  .side-col { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 22px; }
  .dc-stats { grid-template-columns: 1fr 1fr; }
  .trust-items { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .hi { padding: 0 14px; }
  .logo { font-size: 14px; }
  .logo-mark { width: 26px; height: 26px; font-size: 12px; }
}

/* Touch device optimizations */
@media (hover: none) {
  .srch-btn:hover   { background: #4F46E5; }
  .zgc:hover        { transform: none; box-shadow: none; }
  .sgc:hover        { transform: none; box-shadow: none; }
  .aff-link:hover   { transform: none; }
  .wizard-btn:hover { transform: none; }
  .da-btn.da-primary:hover   { transform: none; box-shadow: none; }
  .da-btn.da-secondary:hover { transform: none; }
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.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; }
.text-green { color: #16A34A; }
.text-amber { color: var(--amber); }
.text-red   { color: var(--red); }
.text-blue  { color: var(--blue); }
.text-muted { color: var(--muted); }
.fw-800 { font-weight: 800; }
.mt-0 { margin-top: 0; }
