/* ==================================================================
   WARREN STOKES — PUBLIC SAFETY NOTICE
   Design system: "Trust & Authority + Conversion" (Accessible & Ethical)
   Sourced via ui-ux-pro-max design intelligence:
     - Palette:     Legal Services — navy #1E3A8A + gold #B45309 + red #DC2626
     - Typography:  Legal Professional — EB Garamond (headings) + Lato (body)
     - Pattern:     Hero (credibility) -> Proof (stats) -> Evidence -> CTA
     - Motion:      GSAP scroll-reveal, Standard tier, reduced-motion safe
   This file layers design tokens + component classes on top of the
   Tailwind CDN utility layer loaded in <head>.
   ================================================================== */

:root {
  --navy:        #1E3A8A;
  --navy-dark:   #16296B;
  --navy-light:  #3B5BC4;
  --gold:        #B45309;
  --gold-light:  #D97706;
  --red:         #DC2626;
  --red-light:   #FEE2E2;

  --bg:          #F8FAFC;
  --card:        #FFFFFF;
  --ink:         #0F172A;
  --ink-soft:    #334155;
  --ink-faint:   #64748B;
  --border:      #E2E8F0;
  --muted:       #E9EEF5;

  --serif:  "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:   "Lato", -apple-system, "Segoe UI", sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
::selection { background: var(--gold-light); color: #14100a; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--sans);
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Visible focus ring everywhere (WCAG 2.2) */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

img, svg { display: block; }
.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* Restore default list markers stripped by the Tailwind CDN preflight reset */
.section ul:not(.checklist):not(.timeline), .section--muted ul:not(.checklist):not(.timeline),
.evidence-body ul, .card ul {
  list-style: disc;
}
.section ol.plain, .section--muted ol.plain { list-style: decimal; }

/* ---------- Top notice strip ---------- */
.notice-strip {
  background: var(--navy-dark);
  color: #E6ECFB;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 9px 20px;
  letter-spacing: 0.2px;
}
.notice-strip strong { color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: 11.5px; }

/* ---------- Site header / nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
}
.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  text-decoration: none;
}
.site-nav__brand .icon { width: 22px; height: 22px; color: var(--red); }
.site-nav__links { display: flex; gap: 26px; }
.site-nav__links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav__links a:hover, .site-nav__links a.active { color: var(--navy); border-color: var(--gold); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy);
}
@media (max-width: 860px) {
  .site-nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(15,23,42,0.08); }
  .site-nav__links.open { display: flex; }
  .site-nav__links a { padding: 14px 24px; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-toggle { display: inline-flex; align-items: center; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-light);
  border: 1px solid #FCA5A5;
  border-radius: 999px;
  padding: 7px 16px;
  width: fit-content;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.12;
  color: var(--ink);
  margin: 22px 0 20px;
  max-width: 20ch;
}
.hero h1 .hl { color: var(--navy); }
.hero__lede {
  font-family: var(--sans);
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 26px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.hero__meta strong { color: var(--ink-soft); }

/* ---------- Banner / media images ---------- */
.hero-banner {
  max-width: var(--maxw);
  margin: 4px auto 0;
  padding: 0 24px;
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.16);
}

.media-figure {
  margin: 28px 0;
}
.media-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(15,23,42,0.10);
}
.media-figure figcaption {
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 8px;
  line-height: 1.5;
}
.media-figure figcaption .credit {
  font-style: italic;
}

.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;
}

/* ---------- Proof stat strip ---------- */
.stat-strip {
  max-width: var(--maxw);
  margin: 20px auto 0;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.stat-card .num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 30px);
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .lbl {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-faint);
  line-height: 1.4;
}
@media (max-width: 780px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Section shell ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; scroll-margin-top: 96px; }
.section--muted { background: var(--muted); }
.section--muted .section-inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }
.section__eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.section h2, .section--muted h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 36px);
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.2;
}
.section p.lede, .section--muted p.lede { font-size: 18px; color: var(--ink-soft); max-width: 74ch; margin-bottom: 22px; }
.section p, .section--muted p { max-width: 74ch; color: var(--ink-soft); }
.section p strong, .section li strong, .section--muted p strong, .section--muted li strong { color: var(--ink); }
.section ul, .section ol.plain, .section--muted ul, .section--muted ol.plain { max-width: 74ch; color: var(--ink-soft); padding-left: 24px; }
.section ul li, .section ol.plain li, .section--muted ul li, .section--muted ol.plain li { margin: 9px 0; }

/* ---------- Card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 28px;
  margin: 20px 0;
  max-width: 900px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 14px;
}

/* ---------- Badges (icon + text; never color alone) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge .icon { width: 13px; height: 13px; }
.badge.court   { background: #EFF6FF; color: var(--navy); border-color: #BFDBFE; }
.badge.press   { background: #FFF7ED; color: var(--gold-light); border-color: #FED7AA; }
.badge.local   { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.badge.pr      { background: var(--red-light); color: var(--red); border-color: #FCA5A5; }
.badge.data    { background: var(--muted); color: var(--ink-faint); border-color: var(--border); }

/* ---------- Evidence accordion ---------- */
.evidence { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin: 16px 0; max-width: 900px; background: var(--card); }
.evidence summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.evidence summary::-webkit-details-marker { display: none; }
.evidence summary .ev-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.evidence summary .ev-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.evidence summary .ev-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--muted);
  color: var(--navy);
  transition: transform 0.2s;
}
.evidence[open] summary .ev-icon { transform: rotate(45deg); background: var(--navy); color: #fff; }
.evidence:hover summary { background: #FAFBFD; }
.evidence-body { padding: 0 26px 26px; border-top: 1px solid var(--border); padding-top: 20px; }
.evidence-body p, .evidence-body ul { color: var(--ink-soft); font-size: 15.5px; max-width: 74ch; }
.evidence-body p strong, .evidence-body li strong { color: var(--ink); }

/* ---------- Verified quote ---------- */
blockquote.verified {
  border-left: 4px solid var(--navy);
  margin: 22px 0;
  padding: 6px 0 6px 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  max-width: 70ch;
}
blockquote.verified cite {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- Callouts ---------- */
.callout {
  border-left: 4px solid var(--gold);
  background: #FFFBEB;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 22px 0;
  max-width: 74ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  display: flex;
  gap: 12px;
}
.callout .icon { color: var(--gold-light); width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.callout.danger { border-left-color: var(--red); background: var(--red-light); }
.callout.danger .icon { color: var(--red); }
.callout strong { color: var(--ink); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 30px 0; padding: 0; max-width: 78ch; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 26px 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gold);
}
.timeline .tl-year {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.timeline .tl-text { color: var(--ink-soft); font-size: 15.5px; }
.timeline .tl-text strong { color: var(--ink); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; max-width: 900px; border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead th {
  text-align: left;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink-soft); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #FAFBFD; }

/* ---------- Citation chips ---------- */
.cite-links { margin: 16px 0 4px; max-width: 74ch; display: flex; flex-wrap: wrap; gap: 8px; }
.cite-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: all 0.15s;
}
.cite-links a:hover { border-color: var(--navy); color: var(--navy); background: #F5F8FF; }
.cite-links a .icon { width: 13px; height: 13px; color: var(--ink-faint); }
.cite-links a:hover .icon { color: var(--navy); }

.sources-line {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ---------- Legend ---------- */
.legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; max-width: 780px; margin: 20px 0; font-size: 14px; color: var(--ink-soft); }
.legend .item { display: flex; align-items: center; gap: 10px; }
@media (max-width: 620px) { .legend { grid-template-columns: 1fr; } }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 24px 0; padding: 0; max-width: 76ch; }
.checklist li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 15.5px;
}
.checklist li:last-child { border-bottom: none; }
.checklist .num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.checklist strong { color: var(--ink); }

/* ---------- Buttons / CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-primary { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--navy); background: #F5F8FF; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 24px;
  margin-top: 22px;
  max-width: 78ch;
}
.disclaimer strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 4px solid var(--navy);
  background: var(--ink);
  padding: 56px 24px 42px;
}
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.site-footer h4 {
  font-family: var(--serif);
  font-size: 22px;
  color: #fff;
  margin: 0 0 14px;
}
.site-footer h5 {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 14px;
}
.site-footer p { color: #A9B4C8; font-size: 13.5px; max-width: 44ch; margin: 0 0 10px; }
.site-footer a { display: block; color: #A9B4C8; font-size: 13.5px; margin-bottom: 10px; text-decoration: none; }
.site-footer a:hover { color: #fff; }
@media (max-width: 780px) { .site-footer__inner { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.15s;
  z-index: 80;
  box-shadow: 0 8px 24px rgba(15,23,42,0.25);
  display: flex; align-items: center; justify-content: center;
}
#backToTop.show { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-2px); background: var(--navy-dark); }

/* ---------- Reveal (GSAP handles animation; CSS provides no-JS fallback) ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Print ---------- */
@media print {
  .notice-strip, .site-nav, #backToTop, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .hero { padding: 44px 20px 10px; }
  body { font-size: 16px; }
  .section, .section--muted .section-inner { padding: 48px 20px; }
  .evidence summary { padding: 16px 18px; }
  .site-footer__inner { text-align: left; }
}
