/* cca-radiodb — shared custom styles layered on the NYC Core theme
   (same conventions as phonenumber-query: field-label/value, stat-badge). */

.field-label {
  font-weight: 600;
  color: #666;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.field-value {
  font-size: 1.1rem;
  color: #2C3E50;
  margin-bottom: 20px;
}
.field-value.large {
  font-size: 1.5rem;
  font-weight: 600;
  color: #004CBE;
}

.stat-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.stat-badge.primary   { background-color: #E3F2FD; color: #1976D2; }
.stat-badge.info      { background-color: #E3F2FD; color: #1976D2; }
.stat-badge.success   { background-color: #C8E6C9; color: #2E7D32; }
.stat-badge.warning   { background-color: #FFF9C4; color: #F57F17; }
.stat-badge.danger    { background-color: #FFCDD2; color: #C62828; }
.stat-badge.secondary { background-color: #ECEFF1; color: #546E7A; }
.stat-badge.purple    { background-color: #EDE7F6; color: #5E35B1; }

/* license page: what-this-service-is explainer panel */
.svc-explain {
  background: #F4F7FB;
  border: 1px solid #DCE6F2;
  border-radius: 8px;
  padding: .75rem 1rem;
}
.svc-explain-icon {
  font-size: 1.6rem;
  color: #004CBE;
  margin-top: .15rem;
  min-width: 2rem;
  text-align: center;
}

.meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.meta-strip .meta-times { font-size: 0.85rem; }

.search-container { max-width: 700px; margin: 0 auto; }
.search-input {
  font-size: 1.25rem;
  padding: 15px 20px;
  border: 2px solid #004CBE;
  border-radius: 8px;
}
.search-input:focus {
  border-color: #003380;
  box-shadow: 0 0 0 0.2rem rgba(0, 76, 190, 0.25);
}
.search-btn { font-size: 1.25rem; padding: 15px 40px; border-radius: 8px; }

.loading-spinner { display: none; text-align: center; padding: 40px; }
.loading-spinner.show { display: block; }
.error-message { display: none; margin-top: 20px; }
.error-message.show { display: block; }
.result-area { display: none; }
.result-area.show { display: block; }

.alert-info-custom {
  background-color: #FFF3E0;
  border-left: 4px solid #F57C00;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.map-frame {
  height: 420px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  overflow: hidden;
}
.map-frame--tall { height: clamp(460px, 62vh, 700px); }
.map-pop .badge { font-variant-numeric: tabular-nums; }
.maplibregl-popup-content { padding: 12px 14px; }
/* popups must layer above the legend (z-index 5) */
.maplibregl-popup { z-index: 6; }

.freq { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.lookup-tile { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.lookup-tile:hover { box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-2px); }

/* ---- cca-derived radio chips ---- */
.chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.5;
}
.chip-digital { background: #E8EAF6; color: #283593; }
.chip-analog  { background: #C8E6C9; color: #1B5E20; }
.chip-mixed   { background: #B2DFDB; color: #00695C; }
.chip-data    { background: #ECEFF1; color: #455A64; }
.chip-mode    { background: #F5F5F5; color: #424242; border: 1px solid #E0E0E0; }
.chip-sm      { background: #FAFAFA; color: #424242; border: 1px solid #E0E0E0; font-weight: 600; padding-left: 6px; }
.chip-tech    { background: #EDE7F6; color: #4527A0; }
.chip-tech-p25   { background: #EDE7F6; color: #4527A0; }
.chip-tech-dmr   { background: #E3F2FD; color: #0D47A1; }
.chip-tech-nxdn  { background: #E0F7FA; color: #006064; }
.chip-tech-dstar { background: #FFF3E0; color: #E65100; }
.chip-tech-ysf   { background: #FCE4EC; color: #AD1457; }
.chip-tech-tetra { background: #EFEBE9; color: #4E342E; }
.chip-tech-edacs { background: #ECEFF1; color: #37474F; }
.chip-tech-motorola { background: #ECEFF1; color: #37474F; }
.chip-tech-ltr   { background: #ECEFF1; color: #37474F; }
.chip-band-mf   { background: #EFEBE9; color: #5D4037; }
.chip-band-hf   { background: #EFEBE9; color: #5D4037; }
.chip-band-vhf  { background: #FFF8E1; color: #B26A00; }
.chip-band-uhf  { background: #FFF3E0; color: #D84315; }
.chip-band-b700 { background: #FFEBEE; color: #B71C1C; }
.chip-band-b800 { background: #FFEBEE; color: #880E4F; }
.chip-band-b900 { background: #F3E5F5; color: #6A1B9A; }
.chip-band-ghz  { background: #ECEFF1; color: #455A64; }

/* ---- filter pills ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  border: 1px solid #CFD8DC;
  background: #fff;
  color: #37474F;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}
.filter-chip:hover { border-color: #004CBE; color: #004CBE; }
.filter-chip.active { background: #004CBE; border-color: #004CBE; color: #fff; }
.filter-chip .count { opacity: 0.65; font-weight: 500; margin-left: 2px; }

/* ---- map legend ---- */
.map-frame { position: relative; }
.map-legend {
  position: absolute;
  bottom: 40px; /* clear the maplibre scale control (~30px incl. margin) */
  left: 10px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.76rem;
  max-height: 48%;
  overflow-y: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.map-legend-row { display: flex; align-items: center; gap: 7px; line-height: 1.7; white-space: nowrap; }
.map-legend-swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid;
  flex: none;
}
.map-legend-swatch.dashed { border-style: dashed; }

/* ---- trunked channel detail (LCN / control channels / channel IDs) ---- */
.sitefreq { white-space: nowrap; display: inline-block; margin: 0 .55rem .15rem 0; }
.lcn {
  display: inline-block; min-width: 1.15rem; padding: 0 .25rem; margin-right: .15rem;
  background: #e8e8e8; color: #333; border-radius: .2rem;
  font-size: .72rem; font-weight: 700; text-align: center; vertical-align: text-bottom;
}
.freq-ctrl { color: #b30000; font-weight: 700; }
.freq-altctrl { color: #9a6a00; font-weight: 600; }
.chid { color: #6c757d; font-size: .75rem; margin-left: .15rem; }
.site-extra { border: 1px solid #dee2e6; border-radius: .25rem; padding: .5rem .75rem; margin-top: .5rem; }
.site-extra summary { cursor: pointer; font-weight: 600; color: #004CBE; }
.site-extra[open] summary { margin-bottom: .5rem; }
.fleetmap-block {
  display: inline-block; padding: .15rem .5rem; margin: 0 .25rem .25rem 0;
  background: #f1f3f5; border: 1px solid #dee2e6; border-radius: .2rem; font-size: .8rem;
}
.fleetmap-block code { font-weight: 700; }

/* ---- RRDB-style flat browse maps (SVG choropleth) ---- */
.svgmap-frame {
  position: relative;
  background: #cfe3f2;
  border: 1px solid #97b6cc;
  border-radius: .25rem;
  padding: 6px;
}
.svgmap { display: block; width: 100%; height: auto; max-height: 460px; margin: 0 auto; }
.svgmap-tip {
  position: absolute;
  display: none;
  pointer-events: none;
  background: #1d2730;
  color: #fff;
  padding: 2px 8px;
  font-size: .78rem;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.svgmap path {
  stroke: #5b6770;
  stroke-width: .6;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}
.svgmap path.clickable { cursor: pointer; }
.svgmap path.clickable:hover,
.svgmap path.clickable:focus {
  fill: #7fb2e5;
  stroke: #1d4f7c;
  stroke-width: 1.2;
  outline: none;
}
.svgmap path.selected { fill: #ffe45c; stroke: #8a6d00; stroke-width: 1; }
.cov-swatch {
  display: inline-block; width: 12px; height: 12px; margin-right: 2px;
  border: 1px solid #888; vertical-align: text-bottom;
}
.browse-entity-table td { padding-top: .35rem; padding-bottom: .35rem; }
.county-link-cols { columns: 3 200px; column-gap: 1.5rem; }
.county-link-cols a { display: inline-block; }
.county-link-cols li { break-inside: avoid; line-height: 1.75; }
.cov-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #999; margin-right: 5px; vertical-align: baseline; }

/* ════════ UX overhaul (P0–P2): typography, sticky headers, accordions,
   mobile cards, hamburger nav, skeletons, clickable rows, print ════════ */

/* ---- P1: typography — 14px body minimum, 16px bold mono frequencies ---- */
.table { font-size: 0.875rem; }
.table.table-sm { font-size: 0.875rem; }
.freq {
  font-family: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- P0: sticky table headers (tables scroll inside their container) ---- */
.table-responsive { max-height: 72vh; }
.table-responsive thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  box-shadow: inset 0 -2px 0 #dee2e6;
}

/* ---- P0/P1: clickable rows ---- */
tr[data-href] { cursor: pointer; }
tr[data-href]:hover { background-color: #eaf2fd !important; }
tr[data-href] .row-chevron { color: #9aa5b1; }
tr[data-href]:hover .row-chevron { color: #004CBE; }

/* ---- P0: collapsible category sections ---- */
.acc-section { border: 1px solid #dee2e6; border-radius: .3rem; margin-bottom: .6rem; overflow: hidden; }
.acc-head {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .65rem .9rem; background: #f8f9fa; border: 0; text-align: left;
  font-size: 1rem; font-weight: 700; cursor: pointer; color: #212529;
  border-left: 4px solid var(--acc-accent, #6c757d);
}
.acc-head:hover { background: #eef1f4; }
.acc-head:focus-visible { outline: 2px solid #004CBE; outline-offset: -2px; }
.acc-head .acc-count {
  font-size: .8rem; font-weight: 600; color: #555;
  background: #e9ecef; border-radius: 10px; padding: .1rem .55rem; white-space: nowrap;
}
.acc-head .acc-chevron { margin-left: auto; transition: transform .15s; color: #6c757d; }
.acc-section.open .acc-head .acc-chevron { transform: rotate(90deg); }
.acc-body { display: none; padding: .75rem .9rem; }
.acc-section.open .acc-body { display: block; }
/* category accent palette (cycled by index) */
.acc-c0 { --acc-accent: #1976D2; } .acc-c1 { --acc-accent: #D32F2F; }
.acc-c2 { --acc-accent: #2E7D32; } .acc-c3 { --acc-accent: #7B1FA2; }
.acc-c4 { --acc-accent: #F57C00; } .acc-c5 { --acc-accent: #0097A7; }
.acc-c6 { --acc-accent: #5D4037; } .acc-c7 { --acc-accent: #C2185B; }
.acc-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.acc-toc { display: flex; flex-wrap: wrap; gap: .35rem .7rem; font-size: .85rem; margin-bottom: .5rem; }
.acc-toc a { white-space: nowrap; }

/* ---- P0: in-page text filter ---- */
.filter-text { max-width: 320px; }
@media (max-width: 575px) { .filter-text { max-width: 100%; width: 100%; } }

/* ---- P2: loading skeletons ---- */
@keyframes rdb-shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
.skeleton-block {
  border-radius: .3rem; min-height: 14px;
  background: linear-gradient(90deg, #eceff1 25%, #f7f9fa 37%, #eceff1 63%);
  background-size: 800px 100%;
  animation: rdb-shimmer 1.3s linear infinite;
}
.skeleton-table .skeleton-block { height: 16px; margin-bottom: 10px; }

/* ---- P2: friendly empty state ---- */
.empty-state { text-align: center; padding: 2.2rem 1rem; color: #555; }
.empty-state i { font-size: 2.2rem; color: #adb5bd; margin-bottom: .7rem; display: block; }

/* ---- nav: primary + "More" dropdown + mobile hamburger ---- */
.nav-more { position: relative; }
.nav-more-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; color: #212529; border: 1px solid #d5d9dd; border-radius: .3rem;
  min-width: 175px; box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 60; padding: .3rem 0;
}
.nav-more-menu.show { display: block; }
.nav-more-menu a { display: block; padding: .45rem .9rem; color: #212529 !important; white-space: nowrap; }
.nav-more-menu a:hover { background: #eef3fb; text-decoration: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.45); border-radius: .25rem;
  color: #fff; padding: .25rem .6rem; font-size: 1.05rem;
}
@media (max-width: 767px) {
  .nav-toggle { display: inline-block; }
  #primary-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #111; z-index: 70; padding: .4rem 1rem .7rem;
    box-shadow: 0 6px 14px rgba(0,0,0,.4);
  }
  #primary-nav.show { display: block; }
  #primary-nav ul { flex-direction: column; align-items: flex-start !important; gap: 0 !important; }
  #primary-nav li { width: 100%; }
  #primary-nav a { display: block; padding: .55rem .25rem; }
  .nav-more-menu { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 1.1rem; }
  .nav-more-menu a { color: #fff !important; padding: .45rem .25rem; }
  #nyc-top-header { position: relative; }
}

/* ---- P0: mobile-first card tables ---- */
@media (max-width: 767px) {
  .search-input, .search-btn { width: 100%; }
  /* iOS Safari zooms the page when focusing inputs smaller than 16px */
  .form-control, input, select, textarea { font-size: 16px; }
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr {
    border: 1px solid #dee2e6; border-radius: .3rem; margin-bottom: .6rem;
    padding: .45rem .6rem; background: #fff;
  }
  .table-cards td { border: 0 !important; padding: .15rem 0 !important; }
  .table-cards td:empty { display: none; }
  .table-cards td[data-label]::before {
    content: attr(data-label);
    display: inline-block; min-width: 6.2em;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; color: #6c757d;
    margin-right: .4rem;
  }
  .table-cards td.row-chevron-cell { display: none; }
  .table-responsive { max-height: none; }
  .meta-strip .meta-times { width: 100%; }
}

/* ---- P3: print-friendly frequency lists ---- */
@media print {
  /* -- page scaffolding: undo screen layout that breaks pagination -------
     The sticky-footer flex body and Bootstrap's flex .row prevent Chromium
     from fragmenting content across pages — each block lands on its own
     page. Flatten everything to plain block flow for print. */
  @page { margin: 14mm; }
  html, body { height: auto !important; }
  body { display: block !important; min-height: 0 !important; font-size: 10.5pt; }
  body > main { width: auto; }
  .container, .container-fluid { width: auto !important; max-width: none !important; padding: 0 !important; }
  .row { display: block !important; }
  [class*='col-'] { width: auto !important; max-width: 100% !important; flex: none !important; }

  /* -- hide interactive chrome ------------------------------------------ */
  #global-header, footer, .filter-bar, .acc-toolbar, .map-frame, .btn, .nav-toggle,
  .loading-spinner, .svgmap-frame, #map, .breadcrumb,
  #stepsBar, #wizardArea, .coord-map, #shareArea, .coord-actions,
  .band-strip-wrap, .band-lens, .heat-strip, #diveArea, .gloss-overlay { display: none !important; }

  /* -- let big sections flow; keep only small atoms together ------------- */
  .card { break-inside: auto; page-break-inside: auto; box-shadow: none !important;
    border: 1px solid #bbb; }
  .card-header { break-after: avoid; page-break-after: avoid; background: #eee !important;
    color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cand-card, .acc-section, .alert { break-inside: avoid; page-break-inside: avoid; }
  /* short stat strips stay side-by-side and move to the next page as a unit */
  .stat-row { display: flex !important; flex-wrap: wrap; break-inside: avoid; page-break-inside: avoid; }
  .stat-row [class*='col-'] { flex: 1 1 16% !important; width: auto !important; }
  h1, h2, h3, h4 { break-after: avoid; page-break-after: avoid; }
  img { break-inside: avoid; page-break-inside: avoid; max-width: 100% !important; }

  /* -- tables: repeat headers, keep rows whole --------------------------- */
  .table-responsive { max-height: none; overflow: visible; }
  table { border-collapse: collapse; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; page-break-inside: avoid; }

  /* -- expanded content: print everything the screen tucks away ---------- */
  .acc-body { display: block !important; }
  .acc-section { border: 0; }
  details.why summary { display: none; }
  details.why, #resultArea details { display: block; }
  details.why ul { display: block !important; }
  #resultArea { display: block !important; }
  a { color: #000 !important; text-decoration: none; }

  .print-only { display: block !important; }
}

/* print-only blocks are invisible on screen */
.print-only { display: none; }

/* ---- global sticky footer: short pages must not let the footer float ---- */
html { height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
body > footer { flex-shrink: 0; }

/* ---- plain-language glossary modal ---- */
.gloss-on {
  cursor: help;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
span.gloss-on:hover, span.gloss-on:focus-visible { text-decoration-style: solid; outline-offset: 2px; }
.gloss-overlay {
  position: fixed; inset: 0; z-index: 1080;
  background: rgba(23, 30, 41, .55);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.gloss-overlay[hidden] { display: none; }
.gloss-modal {
  background: #fff; border-radius: .5rem; max-width: 34rem; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 1.25rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.gloss-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.gloss-head .close { font-size: 1.6rem; line-height: 1; }
.gloss-body { font-size: .95rem; line-height: 1.55; margin-bottom: .9rem; white-space: pre-line; }
.gloss-foot { border-top: 1px solid #e9ecef; padding-top: .6rem; }
body.gloss-lock { overflow: hidden; }

/* ---- section permalink anchors ---- */
.anchor-link {
  opacity: 0; margin-left: .4rem; color: #6c757d; font-weight: 400;
  text-decoration: none; transition: opacity .15s;
}
.acc-head:hover .anchor-link, .anchor-link:focus,
h2:hover .anchor-link, h3:hover .anchor-link, .card-header:hover .anchor-link { opacity: 1; }
.anchor-link:hover { color: #004CBE; text-decoration: none; }

/* homepage typeahead suggestions */
.typeahead-wrap { position: relative; }
.typeahead-menu {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 1050;
  max-height: 260px; overflow-y: auto; text-align: left;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

/* ---- search results: family grouping + jump bar ---- */
.search-jumpbar {
  display: flex; flex-wrap: wrap; gap: .5rem;
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); padding: .5rem .75rem;
  border-bottom: 1px solid #e9ecef;
}
.jump-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .7rem; border-radius: 999px; font-size: .85rem;
  font-weight: 600; text-decoration: none; border: 1px solid #cfd8dc;
  color: #37474F; background: #fff; white-space: nowrap;
}
.jump-chip:hover { text-decoration: none; filter: brightness(.96); }
.jump-chip .count {
  background: rgba(0,0,0,.08); border-radius: 999px;
  padding: 0 .45rem; font-size: .75rem;
}
.jump-chip.fam-geo { border-color: #5E35B1; color: #5E35B1; background: #f6f2fc; }
.jump-chip.fam-rr  { border-color: #2E7D32; color: #2E7D32; background: #f1f8f1; }
.jump-chip.fam-fcc { border-color: #1565C0; color: #1565C0; background: #f0f6fd; }

.search-fam-head {
  margin: .75rem 0 .75rem; padding: .5rem .9rem;
  border-left: 5px solid #90A4AE; background: #f8f9fa; border-radius: 4px;
}
.search-fam-head.fam-geo { border-left-color: #5E35B1; }
.search-fam-head.fam-rr  { border-left-color: #2E7D32; }
.search-fam-head.fam-fcc { border-left-color: #1565C0; }

.group-card { border-top: 3px solid #90A4AE; scroll-margin-top: 64px; }
.group-card.fam-geo { border-top-color: #5E35B1; }
.group-card.fam-rr  { border-top-color: #2E7D32; }
.group-card.fam-fcc { border-top-color: #1565C0; }

/* keyboard hint chip inside the header omni search */
.omni-form .omni-wrap { position: relative; }
.omni-form .omni-wrap input { width: 100%; padding-right: 34px; }
.omni-form .omni-kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  pointer-events: none; user-select: none;
  font: 600 11px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #6c757d; background: #f1f3f5; border: 1px solid #ced4da;
  border-radius: 4px; padding: 3px 7px;
}
.omni-form .omni-wrap input:focus ~ .omni-kbd { display: none; }
@media (max-width: 767.98px) { .omni-form .omni-kbd { display: none; } }

/* live count badges in the browse "What's in RadioDB" explainer */
.inv-stat { display: none; font-weight: 500; vertical-align: middle; }
.inv-stat.show { display: inline-block; }

/* shared pill-tab switcher between /map and /sites */
.map-tabs { display: inline-flex; border: 1px solid #c8cdd2; border-radius: 6px; overflow: hidden; white-space: nowrap; }
.map-tabs a { padding: .3rem .9rem; font-size: .85rem; color: #333; text-decoration: none; }
.map-tabs a.active { background: #1f2a44; color: #fff; font-weight: 600; }
.map-tabs a:not(.active):hover { background: #f1f3f5; }


/* cca-schools retargeted UI */
.entity-hero { border-left: 5px solid #004CBE; }
.entity-title { font-size: clamp(1.45rem, 2.4vw, 2.25rem); }
.entity-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: #607D8B; }
.type-school-public { background:#E3F2FD; color:#0D47A1; }
.type-school-private { background:#FCE4EC; color:#880E4F; }
.type-district { background:#EDE7F6; color:#4527A0; }
.type-postsecondary { background:#E8F5E9; color:#1B5E20; }
.type-system { background:#FFF3E0; color:#E65100; }
.type-state-agency { background:#ECEFF1; color:#37474F; }
.id-graph .list-group-item { border-left: 4px solid #CFD8DC; }
.id-graph .verified { border-left-color: #2E7D32; }
.rel-card .rel-role { font-variant: all-small-caps; letter-spacing: .04em; }
.diff-pre { max-height: 360px; overflow:auto; background:#111827; color:#E5E7EB; border-radius:.35rem; padding:.8rem; font-size:.8rem; }
.stat-num { font-size: 1.65rem; font-weight: 800; color:#004CBE; }
.school-map { min-height: 360px; height: 56vh; border:1px solid #dee2e6; border-radius:8px; overflow:hidden; }
.leaflet-container { font: inherit; }
.cmdk-overlay { position:fixed; inset:0; z-index:2000; background:rgba(17,24,39,.58); display:flex; align-items:flex-start; justify-content:center; padding:8vh 1rem 1rem; }
.cmdk-overlay[hidden] { display:none; }
.cmdk-dialog { width:min(760px,100%); background:#fff; border-radius:.7rem; box-shadow:0 24px 80px rgba(0,0,0,.35); overflow:hidden; }
.cmdk-input { border:0; border-bottom:1px solid #E5E7EB; border-radius:0; font-size:1.15rem; padding:1rem 1.1rem; }
.cmdk-input:focus { box-shadow:none; border-color:#004CBE; }
.cmdk-body { max-height:62vh; overflow:auto; padding:.55rem; }
.cmdk-section { font-size:.72rem; font-weight:800; color:#607D8B; text-transform:uppercase; letter-spacing:.08em; padding:.55rem .65rem .25rem; }
.cmdk-item { width:100%; display:flex; align-items:center; gap:.75rem; border:0; background:#fff; color:#1F2937; text-align:left; padding:.65rem .75rem; border-radius:.45rem; }
.cmdk-item:hover, .cmdk-item.active { background:#EAF2FD; color:#003380; }
.cmdk-item i { width:1.25rem; text-align:center; color:#607D8B; }
.cmdk-kbd { border:1px solid #CBD5E1; border-bottom-width:2px; border-radius:.3rem; padding:0 .35rem; font-size:.72rem; background:#F8FAFC; color:#475569; }
.palette-hint { gap:.35rem; }
.result-card { border-top:3px solid #90A4AE; }
.result-card.type-school-public { border-top-color:#1976D2; background:#fff; color:inherit; }
.result-card.type-school-private { border-top-color:#C2185B; background:#fff; color:inherit; }
.result-card.type-district { border-top-color:#7B1FA2; background:#fff; color:inherit; }
.result-card.type-postsecondary { border-top-color:#2E7D32; background:#fff; color:inherit; }
.result-card.type-system { border-top-color:#F57C00; background:#fff; color:inherit; }
.timeline { border-left:3px solid #DCE6F2; margin-left:.55rem; padding-left:1rem; }
.timeline-item { position:relative; margin-bottom:.85rem; }
.timeline-item::before { content:''; position:absolute; left:-1.43rem; top:.25rem; width:.72rem; height:.72rem; border-radius:50%; background:#004CBE; border:2px solid #fff; box-shadow:0 0 0 2px #DCE6F2; }
@media (max-width: 575px) { .cmdk-overlay { padding-top:1rem; } .cmdk-body { max-height:75vh; } }
