:root {
  --bg: #0a0c10;
  --bg-raised: #12151b;
  --bg-card: #14181f;
  --border: #262c36;
  --text: #d8dce2;
  --text-dim: #8891a0;
  --navy: #1b3a63;
  --blue: #2e6fd9;
  --red: #c5202e;
  --gold: #c9a24b;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Courier Prime', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.015),
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 500;
}

/* ---------- Police light bar ---------- */
.light-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  display: flex;
  z-index: 1000;
  opacity: 0.55;
  box-shadow: 0 0 24px rgba(0,0,0,0.6);
}
.light-bar .light {
  flex: 1;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.light-a { background: var(--red); }
.light-b { background: var(--blue); }
.light-bar.swap .light-a { background: var(--blue); }
.light-bar.swap .light-b { background: var(--red); }

.light-bar.strobing .light-a { box-shadow: 0 0 20px 2px var(--red); }
.light-bar.strobing.swap .light-a { box-shadow: 0 0 20px 2px var(--blue); }
.light-bar.strobing .light-b { box-shadow: 0 0 20px 2px var(--blue); }
.light-bar.strobing.swap .light-b { box-shadow: 0 0 20px 2px var(--red); }

.light-bar.settled {
  height: 4px;
  opacity: 0.2;
}

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  margin-top: 6px;
  background: linear-gradient(180deg, var(--bg-raised), rgba(18,21,27,0.92));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.badge-star {
  font-size: 28px;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201,162,75,0.5);
}
.badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.badge-title {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 18px;
  color: #f0f2f5;
}
.badge-sub {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.navlinks {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.navlinks a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.navlinks a:hover {
  color: #fff;
  border-color: var(--red);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 64px 20px 40px;
  background:
    radial-gradient(ellipse at top, rgba(46,111,217,0.10), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(197,32,46,0.08), transparent 60%);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  font-family: var(--font-head);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 12px;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 3px;
  margin: 0;
  color: #f5f6f8;
}
.hero h1 span {
  display: block;
  font-size: 0.42em;
  letter-spacing: 6px;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 10px;
}
.case-status {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  letter-spacing: 2px;
  font-size: 13px;
  color: #f0f2f5;
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* ---------- Sections ---------- */
.cards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
}
.cards-section h2 {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f0f2f5;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.section-index {
  font-family: var(--font-body);
  font-size: 13px;
  color: #0a0c10;
  background: var(--gold);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.card.wide { grid-column: 1 / -1; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--navy);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 1px;
  color: #f0f2f5;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.tab {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: #3a0b10;
  border: 1px solid rgba(197,32,46,0.55);
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--font-body);
  white-space: nowrap;
}
.card-body {
  padding: 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
}
.card-body p { margin: 0 0 14px; }
.card-body p:last-child { margin-bottom: 0; }
.card-body h3 {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 18px 0 10px;
}
.card-body ul { margin: 0; padding-left: 20px; }
.card-body li { margin-bottom: 10px; }
.card-body em { color: #eef1f5; font-style: normal; border-left: 2px solid var(--red); padding-left: 10px; }

/* ---------- Redacted / empty personal-info cards ---------- */
.card.redacted { border-left-color: var(--red); }
.card.redacted .card-body { display: flex; flex-direction: column; gap: 14px; }
.field {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.field-label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 110px;
}
.redact-bar {
  display: inline-block;
  height: 14px;
  flex: 1;
  min-width: 120px;
  max-width: 320px;
  background: repeating-linear-gradient(
    45deg,
    #05060a,
    #05060a 4px,
    #101319 4px,
    #101319 8px
  );
  border-radius: 2px;
}
.redact-bar.short { max-width: 140px; }

.stamp {
  position: absolute;
  top: 18px;
  right: -34px;
  transform: rotate(28deg);
  background: rgba(197,32,46,0.12);
  border: 2px solid rgba(197,32,46,0.65);
  color: rgba(197,32,46,0.85);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 5px 40px;
  pointer-events: none;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 28px 20px 40px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .topnav { padding: 14px 18px; }
  .cards-section { padding: 36px 18px; }
  .field-label { min-width: 90px; }
}
