/* ============================================================
   styles.css — Bourbonnais ALPR Transparency Site
   ============================================================ */

:root {
  --navy:   #1A2744;
  --blue:   #2E4FA3;
  --red:    #C0392B;
  --orange: #E67E22;
  --green:  #27AE60;
  --gray:   #4A4A4A;
  --light:  #F2F4F8;
  --mid:    #D0D5E0;
  --white:  #ffffff;
  --font:   'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; width: 100%; }

img, table, pre, canvas, video, iframe { max-width: 100%; }

body {
  font-family: var(--font);
  color: var(--gray);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

/* ---- NAV ---- */
#navbar {
  position: static;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 56px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
#navbar .logo {
  color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: .03em;
  white-space: nowrap;
}
#navbar .logo span { color: #7BAFD4; }
nav { display: flex; gap: .25rem; flex-wrap: wrap; align-items: center; }
nav a {
  color: rgba(255,255,255,.75); text-decoration: none;
  font-size: .78rem; padding: .35rem .65rem; border-radius: 4px;
  transition: background .15s, color .15s; white-space: nowrap;
}
nav a:hover, nav a.active { background: rgba(255,255,255,.12); color: #fff; }

/* Nav dropdown groups */
.nav-group { position: relative; }
.nav-group-btn {
  background: none; border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); font-family: var(--font);
  font-size: .78rem; padding: .35rem .75rem; border-radius: 4px;
  cursor: pointer; transition: background .15s, color .15s;
  display: flex; align-items: center; gap: .3rem;
}
.nav-group-btn:hover, .nav-group.open .nav-group-btn {
  background: rgba(255,255,255,.15); color: #fff;
}
.nav-arrow { font-size: .65rem; transition: transform .2s; }
.nav-group.open .nav-arrow { transform: rotate(180deg); }
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--navy); border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px; padding: .4rem 0; min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); margin-top: .35rem; z-index: 200;
}
.nav-group.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: .5rem 1rem; font-size: .8rem;
  color: rgba(255,255,255,.75); text-decoration: none;
  transition: background .12s;
}
.nav-dropdown a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-group:last-child .nav-dropdown { left: auto; right: 0; }

/* ---- HAMBURGER BUTTON ---- */
.hamburger {
  display: none; background: none; border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px; cursor: pointer;
  flex-direction: column; gap: 6px; padding: 10px; z-index: 201;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 3px; background: #fff;
  border-radius: 2px; transition: transform .25s, opacity .2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---- MOBILE NAV ---- */
@media (max-width: 700px) {
  .hamburger { display: flex; }
  nav {
    display: none; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
    background: var(--navy); flex-direction: column; padding: 1.5rem;
    gap: .5rem; overflow-y: auto; z-index: 199;
  }
  nav.mobile-open { display: flex; }
  .nav-group { position: static; }
  .nav-group-btn {
    width: 100%; font-size: .95rem; padding: .6rem .75rem;
    justify-content: space-between;
  }
  .nav-dropdown {
    position: static; box-shadow: none; border: none;
    margin-top: 0; padding-left: .75rem; min-width: 0;
    background: rgba(255,255,255,.05); border-radius: 4px;
  }
  .nav-dropdown a { font-size: .9rem; padding: .55rem 1rem; }
}

/* ---- SECTIONS ---- */
.section {
  padding: 5rem 2rem;
  max-width: 1100px; margin: 0 auto;
}
.section-full {
  padding: 5rem 2rem;
  width: 100%;
  overflow-x: clip;
}
.section-full .inner { max-width: 1100px; margin: 0 auto; }

.section-alt { background: var(--light); }

h1 { font-size: 2.4rem; color: var(--navy); line-height: 1.2; margin-bottom: .75rem; }
h2 { font-size: 1.6rem; color: var(--navy); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: .5rem; }
p  { margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: #555; margin-bottom: 2rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .1em; font-size: .75rem;
  color: var(--blue); font-weight: 700; margin-bottom: .5rem;
}

/* ---- HERO ---- */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1d3a 60%, #1a2e5a 100%);
  color: #fff; padding: 6rem 2rem 5rem;
  text-align: center;
}
#hero h1 { color: #fff; font-size: 2.8rem; max-width: 800px; margin: 0 auto 1rem; }
#hero .subtitle { font-size: 1.15rem; color: rgba(255,255,255,.7); max-width: 680px; margin: 0 auto 3rem; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem; margin: 0 auto 3rem; max-width: 950px;
}
.stat-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 1.5rem 1rem; text-align: center;
}
.stat-card .num {
  font-size: 2.4rem; font-weight: 800;
  display: block; line-height: 1;
}
.stat-card .lbl { font-size: .8rem; opacity: .7; margin-top: .35rem; }
.stat-card.red  .num { color: #e87070; }
.stat-card.orange .num { color: #f0ad6b; }
.stat-card.yellow .num { color: #f5d76e; }
.stat-card.green .num  { color: #7be09b; }

.alert-banner {
  display: inline-block; max-width: 100%;
  background: rgba(192,57,43,.25); border: 1px solid rgba(192,57,43,.5);
  color: #f5b8b2; border-radius: 6px;
  padding: .6rem 1.2rem; font-size: .9rem; margin-bottom: 2rem;
}

/* ---- PILLS / BADGES ---- */
.badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 20px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.badge-red    { background: #FADBD8; color: var(--red); }
.badge-orange { background: #FDEBD0; color: var(--orange); }
.badge-blue   { background: #D6EAF8; color: var(--blue); }
.badge-green  { background: #D5F5E3; color: var(--green); }
.badge-gray   { background: #eee; color: #555; }

/* ---- CAMERA GRID ---- */
.camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.camera-card {
  border: 1px solid var(--mid); border-radius: 10px;
  padding: 1rem 1.1rem; background: #fff;
  transition: box-shadow .2s;
}
.camera-card:hover { box-shadow: 0 4px 16px rgba(46,79,163,.12); }
.camera-card .cam-id {
  font-weight: 800; font-size: .85rem; color: var(--blue);
  font-family: monospace;
}
.camera-card .cam-loc { font-size: .9rem; color: var(--navy); font-weight: 600; margin: .2rem 0; }
.camera-card .cam-dir { font-size: .78rem; color: #888; }

/* ---- NATIVE TRACKER SECTION ---- */
.trk-dark {
  background: #f6f8fa;
  color: #333;
}
.trk-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem;
}
.trk-dot {
  display: inline-block; width: 10px; height: 10px; background: #C0392B;
  border-radius: 50%; margin-right: 8px; animation: trkPulse 2s infinite;
  vertical-align: middle;
}
@keyframes trkPulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.trk-label {
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: #C0392B; font-weight: 700;
}
.trk-period { text-align: right; font-size: .75rem; color: #888; }
.trk-period strong { color: #7BAFD4; font-size: .85rem; }
.trk-title {
  font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: .4rem;
}
.trk-subtitle {
  font-size: .92rem; color: #555; margin-bottom: 1.2rem; max-width: 700px;
}

/* Controls */
.trk-controls {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: #fff; border: 1px solid #d0d7de; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 1rem;
}
.trk-btn {
  background: #f6f8fa; border: 1px solid #d0d7de; color: #333;
  padding: 7px 14px; border-radius: 6px; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.trk-btn:hover { background: #eaeef2; }
.trk-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.trk-speed { display: flex; align-items: center; gap: 5px; }
.trk-speed label { font-size: .75rem; color: #666; }
.trk-speed select {
  background: #fff; border: 1px solid #d0d7de; color: var(--blue);
  padding: 4px 8px; border-radius: 4px; font-size: .8rem; font-family: inherit;
}
.trk-counter {
  font-size: .85rem; color: #666; margin-left: auto; white-space: nowrap;
}
.trk-counter #trkCurrent { color: var(--blue); font-weight: 700; }
.trk-fullscreen {
  margin-left: 8px; color: var(--blue); border-color: var(--blue);
  text-decoration: none; display: inline-block;
}
.trk-fullscreen:hover { background: var(--blue); color: #fff; }

/* Layout: map + sidebar */
.trk-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 0;
  border-radius: 10px; overflow: hidden;
  border: 1px solid #d0d7de; margin-bottom: 1rem;
  height: 450px;
}
@media(max-width:800px){
  .trk-layout { grid-template-columns: 1fr; height: auto; }
  .trk-sidebar { max-height: 300px; }
}
.trk-map-col { position: relative; min-height: 300px; }
.trk-map { width: 100%; height: 100%; background: #f6f8fa; }

/* Sidebar */
.trk-sidebar {
  background: #fff; border-left: 1px solid #d0d7de;
  display: flex; flex-direction: column; overflow: hidden;
}
.trk-date-nav {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-bottom: 1px solid #eaeef2; background: #f6f8fa;
}
.trk-date-btn {
  background: #fff; border: 1px solid #d0d7de; color: #666;
  padding: 4px 10px; border-radius: 4px; cursor: pointer; font-size: .8rem;
}
.trk-date-btn:hover { border-color: var(--blue); color: var(--blue); }
.trk-date-select {
  flex: 1; background: #fff; border: 1px solid #d0d7de; color: #333;
  padding: 4px 8px; border-radius: 4px; font-size: .8rem; font-family: inherit;
}
.trk-list {
  flex: 1; overflow-y: auto; padding: 6px;
}
.trk-list::-webkit-scrollbar { width: 6px; }
.trk-list::-webkit-scrollbar-track { background: #f6f8fa; }
.trk-list::-webkit-scrollbar-thumb { background: #d0d7de; border-radius: 3px; }

/* Detection items in sidebar */
.trk-date-hdr {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: #666; padding: 8px 8px 4px; font-weight: 700;
  border-left: 3px solid #d0d7de; margin-top: 6px; cursor: pointer;
}
.trk-date-hdr:hover { border-color: var(--blue); color: var(--blue); }
.trk-date-hdr.active { border-color: var(--orange); color: var(--orange); }
.trk-item {
  display: flex; gap: 8px; align-items: center;
  padding: 6px 8px; border-radius: 6px; cursor: pointer;
  border: 1px solid transparent; transition: all .12s; margin-bottom: 2px;
}
.trk-item:hover { background: #f6f8fa; border-color: #d0d7de; }
.trk-item.active {
  background: rgba(46,79,163,.06); border-color: var(--blue);
  box-shadow: 0 0 8px rgba(46,79,163,.1);
}
.trk-item-thumb {
  width: 42px; height: 42px; border-radius: 4px; overflow: hidden;
  background: #f6f8fa; border: 1px solid #d0d7de; flex-shrink: 0;
}
.trk-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trk-item-info { flex: 1; min-width: 0; }
.trk-item-time { font-size: .82rem; font-weight: 600; color: var(--blue); }
.trk-item-cam {
  font-size: .7rem; color: #888; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* Photo panel */
.trk-photo-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 10px; overflow: hidden;
  border: 1px solid #d0d7de; background: #fff;
  min-height: 280px;
}
@media(max-width:800px){
  .trk-photo-panel { grid-template-columns: 1fr; }
}
.trk-photo-box {
  background: #f6f8fa; display: flex; align-items: center;
  justify-content: center; padding: 16px; min-height: 250px;
}
.trk-photo-img {
  max-width: 100%; max-height: 350px; object-fit: contain; border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.trk-photo-meta { padding: 1.2rem 1.5rem; display: flex; align-items: center; }
.trk-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem .5rem; width: 100%;
}
.trk-meta-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  color: #888; margin-bottom: 2px;
}
.trk-meta-value { font-size: .92rem; font-weight: 600; color: #333; }

/* Leaflet overrides inside tracker */
.trk-dark .leaflet-popup-content-wrapper {
  background: #fff; border: 1px solid var(--blue); border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.trk-dark .leaflet-popup-content { color: #333; margin: 8px; font-family: inherit; }
.trk-dark .leaflet-popup-content strong { color: var(--blue); }
.trk-dark .leaflet-popup-tip { background: #fff; }

/* Camera markers */
.trk-cam-marker {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(46,79,163,.85); border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 11px;
  font-family: 'Inter', sans-serif; cursor: pointer; transition: all .2s;
}
.trk-cam-marker.no-det { opacity: .4; border-style: dashed; }
.trk-cam-marker:hover {
  background: rgba(46,79,163,1); border-color: var(--orange);
  box-shadow: 0 0 10px rgba(230,126,34,.5);
}
.trk-cam-marker.cam-active {
  background: var(--orange); border-color: var(--orange);
  box-shadow: 0 0 14px rgba(230,126,34,.7);
  animation: trkCamPulse 1.2s infinite;
}
@keyframes trkCamPulse {
  0%,100%{ box-shadow: 0 0 14px rgba(192,57,43,.7); }
  50%{ box-shadow: 0 0 22px rgba(192,57,43,1); }
}
.trk-pos-marker {
  width: 12px; height: 12px; background: #C0392B; border: 2px solid #E67E22;
  border-radius: 50%; box-shadow: 0 0 12px rgba(192,57,43,.9);
  animation: trkPosPulse 1s infinite;
}
@keyframes trkPosPulse {
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.3); }
}

/* Tracker is always light mode — no dark/light overrides needed */

/* ---- FLOCK PHOTO GALLERY ---- */
.flock-gallery {
  margin-bottom: 2.5rem;
}
.flock-gallery h3 {
  font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; color: var(--navy);
}
.gallery-sub {
  font-size: .92rem; opacity: .8; margin-bottom: 1.2rem; line-height: 1.6;
}
.gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem;
}
@media(max-width:700px){ .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item {
  border-radius: 10px; overflow: hidden;
  border: 2px solid rgba(26,39,68,.15);
  background: #000;
  transition: transform .2s, box-shadow .2s;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.gallery-item img {
  width: 100%; display: block;
}
.gallery-caption {
  padding: .6rem .8rem;
  font-size: .78rem; color: #ccc; line-height: 1.4;
  background: #111827;
}
.gallery-caption strong { color: #7BAFD4; }
.gallery-note {
  background: #1A2744; color: rgba(255,255,255,.75);
  border-left: 4px solid var(--red);
  border-radius: 8px; padding: 1rem 1.2rem;
  font-size: .84rem; line-height: 1.6;
}
body.light-mode .flock-gallery h3 { color: var(--navy); }
body.light-mode .gallery-item { border-color: #ccc; }
body.light-mode .gallery-caption { background: #f0f2f5; color: #444; }
body.light-mode .gallery-caption strong { color: var(--blue); }
body.light-mode .gallery-note { background: #fdf2f2; color: #7B241C; border-color: var(--red); }

/* ---- CAPTURE TIMELINE ---- */
.capture-intro {
  display: grid; grid-template-columns: 1fr 2fr; gap: 2rem;
  align-items: start; margin-bottom: 2rem;
}
@media(max-width:700px){ .capture-intro { grid-template-columns: 1fr; } }

.capture-summary-box {
  background: var(--navy); color: #fff;
  border-radius: 12px; padding: 1.5rem;
}
.capture-summary-box .big { font-size: 3rem; font-weight: 800; line-height: 1; }
.capture-summary-box .lbl { font-size: .85rem; opacity: .7; }
.capture-summary-box hr { border: none; border-top: 1px solid rgba(255,255,255,.15); margin: 1rem 0; }
.capture-summary-box .row { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .4rem; }
.capture-summary-box .row strong { color: #7BAFD4; }

.timeline {
  max-height: 480px; overflow-y: auto;
  border: 1px solid var(--mid); border-radius: 10px;
}
.timeline table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.timeline thead th {
  background: var(--navy); color: #fff;
  padding: .6rem .9rem; text-align: left; position: sticky; top: 0;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
}
.timeline tbody tr { border-bottom: 1px solid #f0f0f0; }
.timeline tbody tr:hover { background: #f8f9ff; }
.timeline tbody td { padding: .55rem .9rem; }
.timeline .cam-tag {
  background: #EDF3FF; color: var(--blue); border-radius: 4px;
  padding: .15rem .45rem; font-size: .75rem; font-family: monospace; font-weight: 700;
}

/* ---- AGENCY LIST ---- */
.agency-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-btn {
  border: 1px solid var(--mid); background: #fff; color: var(--gray);
  padding: .35rem .9rem; border-radius: 20px; cursor: pointer; font-size: .82rem;
  transition: all .15s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

.agency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .75rem;
}
.agency-card {
  border: 1px solid var(--mid); border-radius: 8px;
  padding: .85rem 1rem; background: #fff;
  display: flex; align-items: flex-start; gap: .75rem;
}
.agency-icon {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.flag-federal     { background: #FADBD8; }
.flag-corrections { background: #FDEBD0; }
.flag-state       { background: #D6EAF8; }
.flag-prosecutorial{ background: #E8DAEF; }
.flag-other       { background: #E8F8F5; }

.agency-name { font-weight: 600; font-size: .88rem; color: var(--navy); }
.agency-type { font-size: .78rem; color: #888; }

/* ---- CHARTS ---- */
.charts-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-top: 1.5rem;
}
@media(max-width:720px){ .charts-row { grid-template-columns: 1fr; } }
.chart-box {
  background: #fff; border: 1px solid var(--mid); border-radius: 12px;
  padding: 1.5rem;
}
.chart-box h3 { margin-bottom: 1rem; font-size: 1rem; }

/* ---- POLICY GAPS ---- */
.gap-list { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.5rem; }
.gap-item {
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--mid);
}
.gap-header {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.1rem; cursor: pointer;
  background: #fff; user-select: none;
  transition: background .15s;
}
.gap-header:hover { background: #f8f9ff; }
.gap-sev {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.sev-critical { background: var(--red); }
.sev-high     { background: var(--orange); }
.sev-medium   { background: #F0E040; }

.gap-title { font-weight: 600; font-size: .9rem; flex: 1; }
.gap-arrow { color: #aaa; transition: transform .2s; font-size: .85rem; }
.gap-item.open .gap-arrow { transform: rotate(90deg); }
.gap-body {
  display: none;
  padding: .75rem 1.1rem 1rem 2.5rem;
  background: #fafbff; font-size: .88rem; border-top: 1px solid var(--mid);
}
.gap-item.open .gap-body { display: block; }

/* ---- RECOMMENDATIONS ---- */
.rec-tabs { display: flex; gap: 0; margin-bottom: 0; border-bottom: 2px solid var(--mid); }
.rec-tab {
  padding: .75rem 1.5rem; cursor: pointer; font-weight: 600; font-size: .9rem;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s; color: #888;
}
.rec-tab.active { color: var(--navy); }
.rec-tab[data-priority="immediate"].active { border-color: var(--red); color: var(--red); }
.rec-tab[data-priority="short"].active     { border-color: var(--orange); color: var(--orange); }
.rec-tab[data-priority="longer"].active    { border-color: var(--blue); color: var(--blue); }

.rec-panel { display: none; padding-top: 1.5rem; }
.rec-panel.active { display: block; }

.rec-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.rec-card {
  border: 1px solid var(--mid); border-radius: 12px; overflow: hidden;
  background: #fff;
}
.rec-card-header {
  padding: 1.1rem 1.3rem;
  display: flex; align-items: center; gap: .75rem; cursor: pointer;
}
.rec-num {
  width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rec-title-text { font-weight: 700; font-size: 1rem; color: var(--navy); flex: 1; }
.rec-toggle { color: #aaa; font-size: .85rem; transition: transform .2s; }
.rec-card.open .rec-toggle { transform: rotate(90deg); }
.rec-body { display: none; padding: 0 1.3rem 1.3rem; }
.rec-card.open .rec-body { display: block; }

.rec-section { margin-bottom: 1rem; }
.rec-section-label {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: #aaa; font-weight: 700; margin-bottom: .25rem;
}
.rec-section-text { font-size: .9rem; color: var(--gray); }

.precedent-box {
  background: #EDF3FF; border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0; padding: .65rem 1rem;
  font-size: .85rem; color: var(--navy); margin-top: .75rem;
}
.precedent-box strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: .2rem; }

.impact-box {
  background: #E8F8F1; border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0; padding: .65rem 1rem;
  font-size: .85rem; color: #1a4a30; margin-top: .5rem;
}
.impact-box strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green); margin-bottom: .2rem; }

/* ---- NATIONAL EXAMPLES ---- */
.national-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.national-card {
  border: 1px solid var(--mid); border-radius: 10px;
  padding: 1.1rem; background: #fff;
}
.national-card .city { font-weight: 700; color: var(--navy); font-size: .95rem; }
.national-card .date { font-size: .75rem; color: #aaa; }
.national-card .action { font-weight: 600; font-size: .88rem; color: var(--red); margin: .4rem 0 .25rem; }
.national-card .reason { font-size: .82rem; color: #666; margin-bottom: .4rem; }
.national-card .outcome { font-size: .82rem; color: var(--green); font-weight: 600; }

/* ---- EXIT OPTIONS ---- */
.exit-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.exit-card {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--mid); background: #fff;
}
.exit-card-header {
  padding: 1.1rem 1.3rem;
  color: #fff; font-weight: 700;
}
.exit-card-body { padding: 1rem 1.3rem; }
.exit-card .avail { font-size: .78rem; opacity: .85; }
.exit-card p { font-size: .88rem; margin-bottom: .75rem; }
.exit-steps { padding-left: 1.2rem; }
.exit-steps li { font-size: .85rem; margin-bottom: .35rem; color: #555; }
.difficulty-badge {
  display: inline-block; padding: .2rem .7rem; border-radius: 20px;
  font-size: .75rem; font-weight: 700; margin-bottom: .75rem;
}

/* ---- FOIA TABLE ---- */
.foia-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: .88rem; }
.foia-table th {
  background: var(--navy); color: #fff; padding: .7rem 1rem;
  text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
}
.foia-table td { padding: .7rem 1rem; border-bottom: 1px solid #f0f0f0; }
.foia-table tr:hover td { background: #f8f9ff; }
.status-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .4rem;
}
.status-ok { background: var(--green); }
.status-partial { background: var(--orange); }
.status-critical { background: var(--red); }

/* ---- TAKE ACTION ---- */
.action-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.action-card {
  border: 1px solid var(--mid); border-radius: 12px; padding: 1.3rem;
  background: #fff;
}
.action-card h3 { color: var(--navy); margin-bottom: .5rem; }
.action-card p  { font-size: .88rem; }
.action-card a {
  display: inline-block; margin-top: .75rem;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: .5rem 1.1rem; border-radius: 6px; font-size: .85rem; font-weight: 600;
  transition: background .15s;
}
.action-card a:hover { background: var(--blue); }

/* ---- FOOTER ---- */
footer {
  background: var(--navy); color: rgba(255,255,255,.6);
  text-align: center; padding: 2rem; font-size: .82rem;
}
footer strong { color: #fff; }

/* ---- UTILITIES ---- */
.divider { border: none; border-top: 1px solid var(--mid); margin: 2rem 0; }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue); }
.text-green { color: var(--green); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ---- BREACH SECTION ---- */
.breach-alert {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #FADBD8; border: 2px solid var(--red); border-radius: 10px;
  padding: 1.2rem 1.5rem; font-size: .92rem; color: #5a1a13;
}
.breach-alert-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }

.breach-timeline {
  position: relative; padding-left: 2rem;
}
.breach-timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(to bottom, var(--red), var(--orange), var(--blue));
  border-radius: 3px;
}
.breach-event {
  position: relative; margin-bottom: 1.5rem; padding-left: 1.5rem;
}
.breach-event::before {
  content: ''; position: absolute; left: -1.55rem; top: .35rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--red);
}
.breach-event .be-date {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--red); font-weight: 700; margin-bottom: .15rem;
}
.breach-event .be-title { font-weight: 700; font-size: .95rem; color: var(--navy); }
.breach-event .be-desc { font-size: .88rem; color: #555; margin-top: .2rem; }

.breach-exposed-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.exposed-card {
  background: #FADBD8; border: 1px solid #e8b4b0; border-radius: 8px;
  padding: .85rem 1rem;
}
.exposed-card .exposed-icon { font-size: 1.3rem; margin-bottom: .3rem; }
.exposed-card .exposed-text { font-size: .88rem; color: #5a1a13; font-weight: 500; }

.breach-note {
  background: #FDEBD0; border: 1px solid #f0c080; border-radius: 8px;
  padding: 1rem 1.3rem; font-size: .9rem; color: #7d4e00;
}

.rights-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.rights-card {
  border: 1px solid var(--mid); border-radius: 10px;
  padding: 1.2rem 1.3rem; background: #fff;
  border-left: 4px solid var(--red);
}
.rights-card .rights-title {
  font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: .4rem;
}
.rights-card .rights-amendment {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--red); font-weight: 700; margin-bottom: .5rem;
}
.rights-card .rights-desc { font-size: .88rem; color: #555; line-height: 1.55; }
.rights-card .rights-case {
  margin-top: .6rem; padding-top: .5rem; border-top: 1px solid #f0f0f0;
  font-size: .82rem; color: var(--blue); font-style: italic;
}

/* ---- SEARCH AUDIT DASHBOARD (dark themed) ---- */
.audit-dark {
  background: #0a0f1e;
  padding: 3rem 2rem;
}
.audit-dark .inner { max-width: 1100px; margin: 0 auto; }

.audit-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: .5rem;
}
.audit-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: #00ffcc; margin-right: .5rem; vertical-align: middle;
  box-shadow: 0 0 8px rgba(0,255,204,.5);
}
.audit-org {
  color: #8899bb; font-size: .78rem; letter-spacing: .12em; font-weight: 600;
  text-transform: uppercase;
}
.audit-period {
  text-align: right; font-size: .72rem; color: #667; letter-spacing: .06em;
  text-transform: uppercase;
}
.audit-title {
  color: #fff; font-size: 1.8rem; font-weight: 800; margin-bottom: 1.5rem;
  letter-spacing: .02em;
}

.audit-tabs {
  display: flex; gap: 0; border-bottom: 2px solid #1a2244; margin-bottom: 1.5rem;
}
.audit-tab {
  background: none; border: none; color: #556; font-size: .85rem;
  font-weight: 600; letter-spacing: .08em; padding: .75rem 1.5rem;
  cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.audit-tab:hover { color: #aab; }
.audit-tab.active { color: #00d4ff; border-color: #00d4ff; }

.audit-panel { display: none; }
.audit-panel.active { display: block; }

.audit-kpi-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.audit-kpi {
  background: #111827; border: 1px solid #1e2a4a; border-radius: 10px;
  padding: 1.2rem 1.3rem;
}
.audit-kpi .kpi-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: #556; margin-bottom: .4rem;
}
.audit-kpi .kpi-val {
  font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1;
}
.audit-kpi .kpi-sub {
  font-size: .78rem; color: #00d4ff; margin-top: .2rem;
}

.audit-chart-box {
  background: #111827; border: 1px solid #1e2a4a; border-radius: 12px;
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.audit-chart-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: #556; margin-bottom: .3rem;
}
.audit-chart-row {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}

.audit-anomaly {
  background: rgba(255,200,50,.08); border: 1px solid rgba(255,200,50,.25);
  border-radius: 8px; padding: .85rem 1.1rem;
  color: #ffd866; font-size: .85rem; font-family: monospace; line-height: 1.5;
}

/* Two-column layout for reasons tab */
.audit-two-col {
  display: grid; grid-template-columns: 3fr 2fr; gap: 1rem;
}
@media(max-width:800px) { .audit-two-col { grid-template-columns: 1fr; } }

/* Reason list inside chart box */
.audit-reason-list-inner {
  display: flex; flex-direction: column; gap: .5rem;
}
.audit-reason-row {
  display: flex; justify-content: space-between; align-items: center;
  background: #0d1220; border: 1px solid #1a2040; border-radius: 6px;
  padding: .6rem .85rem;
}
.audit-reason-name { color: #bbc; font-size: .84rem; font-weight: 500; flex: 1; }
.audit-reason-count {
  color: #00ffcc; font-weight: 800; font-size: .9rem; font-family: monospace;
  min-width: 40px; text-align: right;
}
.audit-reason-pct {
  color: #556; font-size: .75rem; font-family: monospace;
  min-width: 50px; text-align: right; margin-left: .5rem;
}
.audit-reason-bar-wrap {
  height: 3px; background: #1a2040; border-radius: 2px;
  margin-top: .3rem; overflow: hidden;
}
.audit-reason-bar {
  height: 100%; background: linear-gradient(90deg, #00d4ff, #00ffcc);
  border-radius: 2px;
}

/* Officer grid inside chart box */
.audit-officer-grid-inner {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem;
}
.audit-officer-card {
  display: flex; justify-content: space-between; align-items: center;
  background: #0d1220; border: 1px solid #1a2040; border-radius: 6px;
  padding: .6rem .85rem;
}
.audit-officer-name { color: #bbc; font-size: .84rem; }
.audit-officer-rank {
  font-size: .65rem; color: #445; background: #151d33; border-radius: 3px;
  padding: .1rem .4rem; margin-right: .4rem; font-weight: 700;
}
.audit-officer-count { color: #00ffcc; font-weight: 800; font-family: monospace; font-size: .9rem; }
.audit-officer-pct { color: #556; font-size: .72rem; margin-left: .3rem; }

/* Mini stat badges (time tab) */
.audit-mini-stat {
  background: #0d1220; border: 1px solid #1a2040; border-radius: 6px;
  padding: .5rem .85rem; display: flex; flex-direction: column;
  flex: 1; min-width: 120px;
}
.audit-mini-stat .ams-val { color: #00ffcc; font-weight: 800; font-size: 1rem; }
.audit-mini-stat .ams-lbl { color: #556; font-size: .72rem; margin-top: .1rem; }

/* Top reason by month grid */
.audit-month-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .5rem;
}
.audit-month-card {
  background: #0d1220; border: 1px solid #1a2040; border-radius: 6px;
  padding: .65rem .85rem;
}
.audit-month-card .amc-month {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: #445; font-weight: 600; margin-bottom: .3rem;
}
.audit-month-card .amc-reason { color: #ccd; font-size: .84rem; font-weight: 600; }
.audit-month-card .amc-count { color: #00d4ff; font-size: .78rem; font-family: monospace; }

@media(max-width:700px){
  h1 { font-size: 1.8rem; }
  #hero h1 { font-size: 2rem; }
  #hero { padding: 4rem 1.25rem 3rem; }
  .section { padding: 3rem 1.25rem; }
  .section-full { padding: 3rem 1.25rem; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat-card .num { font-size: 1.8rem; }
  .alert-banner { font-size: .82rem; padding: .5rem .8rem; }
  .rights-grid { grid-template-columns: 1fr; }
  .breach-exposed-grid { grid-template-columns: 1fr 1fr; }
  .action-grid { grid-template-columns: 1fr; }
  .exit-cards { grid-template-columns: 1fr; }
  .capture-intro { grid-template-columns: 1fr; }
}

/* ---- FLOATING THEME TOGGLE BUTTON ---- */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background: var(--navy);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 50px;
  padding: .65rem 1.2rem;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: .45rem;
  transition: background .25s, color .25s, border-color .25s, transform .15s, box-shadow .25s;
  white-space: nowrap;
  font-family: var(--font);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  letter-spacing: .02em;
}
.theme-toggle:hover {
  background: #2c3e63;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
}
.theme-toggle:active { transform: translateY(0); }
.theme-toggle .icon { font-size: 1.15rem; line-height: 1; }

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */
body.light-mode {
  background: #f8f9fc;
}

/* Nav goes soft blue-gray */
body.light-mode #navbar {
  background: #e8ecf4;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
body.light-mode #navbar .logo { color: var(--navy); }
body.light-mode #navbar .logo span { color: var(--blue); }
body.light-mode nav a { color: rgba(26,39,68,.6); }
body.light-mode nav a:hover,
body.light-mode nav a.active { background: rgba(26,39,68,.08); color: var(--navy); }

/* Nav group buttons in light mode */
body.light-mode .nav-group-btn {
  color: rgba(26,39,68,.7); border-color: rgba(26,39,68,.2);
}
body.light-mode .nav-group-btn:hover,
body.light-mode .nav-group.open .nav-group-btn {
  background: rgba(26,39,68,.08); color: var(--navy);
}
body.light-mode .hamburger span { background: var(--navy); }

/* Nav dropdowns in light mode */
body.light-mode .nav-dropdown {
  background: #fff; border-color: rgba(26,39,68,.12);
  box-shadow: 0 8px 24px rgba(26,39,68,.12);
}
body.light-mode .nav-dropdown a { color: rgba(26,39,68,.7); }
body.light-mode .nav-dropdown a:hover { background: rgba(26,39,68,.06); color: var(--navy); }

/* Mobile nav overlay in light mode */
@media (max-width: 700px) {
  body.light-mode nav {
    background: #f0f2f8;
  }
  body.light-mode .nav-dropdown {
    background: rgba(26,39,68,.04); box-shadow: none;
  }
}
body.light-mode .theme-toggle {
  background: #fff;
  border: 2px solid var(--navy);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(26,39,68,.2);
}
body.light-mode .theme-toggle:hover {
  background: #f0f2f8;
  box-shadow: 0 6px 24px rgba(26,39,68,.3);
}

/* Hero becomes a soft gradient */
body.light-mode #hero {
  background: linear-gradient(135deg, #dce3f0 0%, #c8d4ea 40%, #e2e8f4 100%);
  color: var(--navy);
}
body.light-mode #hero h1 { color: var(--navy); }
body.light-mode #hero .subtitle { color: rgba(26,39,68,.65); }
body.light-mode #hero .stat-card {
  background: rgba(255,255,255,.7);
  border-color: rgba(26,39,68,.1);
  backdrop-filter: blur(4px);
}
body.light-mode #hero .stat-card .num { color: var(--navy); }
body.light-mode #hero .stat-card.red .num { color: var(--red); }
body.light-mode #hero .stat-card.orange .num { color: var(--orange); }
body.light-mode #hero .stat-card.yellow .num { color: #b8960a; }
body.light-mode #hero .stat-card.green .num { color: var(--green); }
body.light-mode #hero .stat-card .lbl { color: rgba(26,39,68,.55); }
body.light-mode #hero p[style] { color: rgba(26,39,68,.4) !important; }

body.light-mode .alert-banner {
  background: rgba(192,57,43,.08);
  border-color: rgba(192,57,43,.3);
  color: #8b2a20;
}

/* Audit dashboard goes light */
body.light-mode .audit-dark {
  background: #eef1f7;
}
body.light-mode .audit-title { color: var(--navy); }
body.light-mode .audit-org { color: var(--blue); }
body.light-mode .audit-period { color: #888; }
body.light-mode .audit-tabs { border-color: #d0d5e0; }
body.light-mode .audit-tab { color: #999; }
body.light-mode .audit-tab:hover { color: #666; }
body.light-mode .audit-tab.active { color: var(--blue); border-color: var(--blue); }

body.light-mode .audit-kpi {
  background: #fff;
  border-color: #d0d5e0;
}
body.light-mode .audit-kpi .kpi-label { color: #888; }
body.light-mode .audit-kpi .kpi-val { color: var(--navy); }
body.light-mode .audit-kpi .kpi-sub { color: var(--blue); }

body.light-mode .audit-chart-box {
  background: #fff;
  border-color: #d0d5e0;
}
body.light-mode .audit-chart-label { color: #888; }

body.light-mode .audit-reason-row {
  background: #f5f7fb;
  border-color: #dce0ea;
}
body.light-mode .audit-reason-name { color: #555; }
body.light-mode .audit-reason-count { color: var(--blue); }
body.light-mode .audit-reason-pct { color: #999; }
body.light-mode .audit-reason-bar-wrap { background: #dce0ea; }
body.light-mode .audit-reason-bar {
  background: linear-gradient(90deg, var(--blue), #5b8fd9);
}

body.light-mode .audit-officer-card {
  background: #f5f7fb;
  border-color: #dce0ea;
}
body.light-mode .audit-officer-name { color: #555; }
body.light-mode .audit-officer-rank { color: #888; background: #eef1f7; }
body.light-mode .audit-officer-count { color: var(--blue); }
body.light-mode .audit-officer-pct { color: #999; }

body.light-mode .audit-anomaly {
  background: rgba(230,126,34,.08);
  border-color: rgba(230,126,34,.25);
  color: #8a5a10;
}

body.light-mode .audit-month-card {
  background: #f5f7fb;
  border-color: #dce0ea;
}
body.light-mode .audit-month-card .amc-month { color: #888; }
body.light-mode .audit-month-card .amc-reason { color: #444; }
body.light-mode .audit-month-card .amc-count { color: var(--blue); }

body.light-mode .audit-mini-stat {
  background: #f5f7fb;
  border-color: #dce0ea;
}
body.light-mode .audit-mini-stat .ams-val { color: var(--blue); }
body.light-mode .audit-mini-stat .ams-lbl { color: #888; }

/* Capture summary box */
body.light-mode .capture-summary-box {
  background: #e8ecf4;
  color: var(--navy);
}
body.light-mode .capture-summary-box .lbl { color: rgba(26,39,68,.55); }
body.light-mode .capture-summary-box hr { border-color: rgba(26,39,68,.1); }
body.light-mode .capture-summary-box .row strong { color: var(--blue); }

/* Timeline table */
body.light-mode .timeline thead th {
  background: var(--blue);
}

/* FOIA table */
body.light-mode .foia-table th {
  background: var(--blue);
}

/* Footer goes light */
body.light-mode footer {
  background: #e8ecf4;
  color: rgba(26,39,68,.55);
}
body.light-mode footer strong { color: var(--navy); }

/* Section alt background tweak */
body.light-mode .section-alt { background: #eef1f7; }

/* Breach section tweaks */
body.light-mode .breach-event::before {
  border-color: #f8f9fc;
}

/* ============================================================
   NEW SECTIONS — Local Sharing, Misuse Risks, State Protections
   ============================================================ */

/* ---- LOCAL SHARING ---- */
.local-benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 1rem; margin: 1.5rem 0 2.5rem;
}
.local-benefit-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid #d0e8d0; border-radius: 10px;
  padding: 1.1rem; transition: transform .15s;
}
.local-benefit-card:hover { transform: translateY(-2px); }
.lb-icon { font-size: 1.6rem; flex-shrink: 0; }
.lb-title { font-weight: 700; color: var(--green); margin-bottom: .3rem; font-size: .92rem; }
.lb-detail { font-size: .85rem; color: #555; line-height: 1.5; }

.local-divider {
  display: flex; align-items: center; gap: 1rem; margin: 2rem 0;
}
.local-divider-line { flex: 1; height: 1px; background: #ccc; }
.local-divider-text {
  font-weight: 700; font-size: 1rem; color: var(--red);
  white-space: nowrap;
}

.local-problem-box {
  background: #FFF5F5; border: 2px solid #FADBD8;
  border-radius: 10px; padding: 1.3rem 1.5rem;
  font-size: .92rem; line-height: 1.65; color: #5a2020;
  margin-bottom: 2rem;
}

.local-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.local-compare-card {
  border-radius: 12px; padding: 1.5rem; text-align: center;
}
.local-good {
  background: #E8F8E8; border: 2px solid #a0d8a0;
}
.local-bad {
  background: #FDE8E8; border: 2px solid #e8a0a0;
}
.lcc-header {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; margin-bottom: .5rem; color: #888;
}
.lcc-number {
  font-size: 2.5rem; font-weight: 800; line-height: 1;
}
.local-good .lcc-number { color: var(--green); }
.local-bad .lcc-number { color: var(--red); }
.lcc-label { font-size: .88rem; color: #666; margin-bottom: .75rem; }
.lcc-list { text-align: left; }
.lcc-partner {
  font-size: .82rem; padding: .3rem .6rem;
  background: rgba(39,174,96,.08); border-radius: 4px;
  margin-bottom: .25rem; color: #2d6b3f;
}
.lcc-detail { font-size: .82rem; color: #7B241C; line-height: 1.5; text-align: left; }

/* ---- MISUSE RISKS ---- */
.misuse-cases {
  display: grid; gap: 1rem; margin: 1.5rem 0 2.5rem;
}
.misuse-card {
  background: #fff; border-radius: 10px; padding: 1.3rem;
  border-left: 4px solid #ccc;
}
.misuse-criminal { border-left-color: var(--red); }
.misuse-policy { border-left-color: var(--orange); }
.mc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.mc-badge {
  font-size: .72rem; font-weight: 600; padding: .2rem .6rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .04em;
}
.mc-badge-criminal { background: #FADBD8; color: var(--red); }
.mc-badge-policy { background: #FDEBD0; color: var(--orange); }
.mc-date { font-size: .78rem; color: #999; }
.mc-title { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: .5rem; }
.mc-detail { font-size: .88rem; line-height: 1.6; color: #555; margin-bottom: .5rem; }
.mc-source {
  font-size: .78rem; color: var(--blue); text-decoration: none;
  display: inline-block;
}
.mc-source:hover { text-decoration: underline; }

/* Stalker scenario */
.stalker-scenario {
  background: var(--navy); color: #fff; border-radius: 12px;
  padding: 2rem; margin-top: 2rem;
}
.stalker-scenario h3 { color: #ffd866; font-size: 1.2rem; margin-bottom: 1.25rem; }
.stalker-steps { display: grid; gap: .75rem; }
.ss-step {
  display: flex; gap: .85rem; align-items: flex-start;
}
.stalker-steps .ss-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,216,102,.15); color: #ffd866;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem;
}
.ss-text { font-size: .88rem; line-height: 1.55; opacity: .9; }
.stalker-punchline {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.stalker-punchline p {
  font-size: .92rem; line-height: 1.6; color: #ff8888;
  font-weight: 500;
}

/* ---- STATE PROTECTIONS ---- */
.state-stats-row {
  display: flex; gap: 1.5rem; margin: 1.5rem 0 2rem;
  justify-content: center; flex-wrap: wrap;
}
.state-stat {
  text-align: center; min-width: 140px;
  background: #fff; border-radius: 10px; padding: 1.1rem 1.5rem;
  border: 1px solid #dde;
}
.ss-num { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.state-stat .ss-label { font-size: .82rem; color: #888; margin-top: .3rem; }

.state-exposure-box {
  background: #FADBD8; border: 1px solid #e8b4b0; border-radius: 10px;
  padding: 1.3rem 1.5rem; margin-bottom: 1.5rem;
}
.state-exposure-box h3 { color: var(--red); margin-bottom: .5rem; }
.state-exposure-box p { font-size: .9rem; color: #5a2020; line-height: 1.55; }

.state-share-table { margin-bottom: 1rem; }
.sst-header {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  color: #888; padding: .5rem .75rem; font-weight: 600;
}
.sst-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: .65rem .75rem; background: #fff; border-radius: 6px;
  margin-bottom: .3rem; font-size: .88rem;
  border: 1px solid #eee;
}
.sst-no-law { background: #FFF5F5; border-color: #f0d0d0; }
.sst-state { font-weight: 600; color: var(--navy); }
.sst-count { font-weight: 600; }
.sst-yes { color: var(--green); font-weight: 600; }
.sst-no { color: var(--red); font-weight: 600; }

.state-pending-box {
  background: #EDF3FF; border-radius: 10px; padding: 1.3rem 1.5rem;
}
.sp-pending-card {
  background: #fff; border-radius: 8px; padding: .85rem;
  margin-bottom: .5rem; border: 1px solid #d0d8e8;
}
.sp-state { font-weight: 700; color: var(--navy); font-size: .92rem; }
.sp-bill { font-size: .82rem; color: var(--blue); margin-bottom: .3rem; }
.sp-highlights { font-size: .82rem; color: #666; }

.state-no-law-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #FFF5F5; border: 2px solid #FADBD8;
  border-radius: 10px; padding: 1.2rem 1.5rem; margin-top: 1.5rem;
  font-size: .9rem; color: #5a2020; line-height: 1.55;
}
.snl-icon { font-size: 1.5rem; flex-shrink: 0; }

/* ---- RESPONSIVE — new sections ---- */
@media (max-width: 700px) {
  .local-compare { grid-template-columns: 1fr; }
  .state-stats-row { flex-direction: column; align-items: stretch; }
  .nav-dropdown { min-width: 0; }
  .camera-grid,
  .agency-grid,
  .national-grid,
  .rights-grid,
  .audit-kpi-row,
  .audit-officer-grid-inner,
  .local-benefits-grid { grid-template-columns: 1fr; }
}

/* ---- LIGHT MODE overrides for new sections ---- */
body.light-mode .local-benefit-card { background: #f8fdf8; }
body.light-mode .misuse-card { background: #fafafa; }
body.light-mode .stalker-scenario { background: #1a2744; }
body.light-mode .state-stat { background: #fff; }
body.light-mode .sst-row { background: #fff; }
body.light-mode .sst-no-law { background: #fff5f5; }
