/* TENET5 — chapter-page monochrome slate (Cap#166, 2026-04-24)
   Applies monochrome site-wide when linked after style.css on chapter
   pages (findings / veterans / 5gw-subversion / accountability).
   Keeps heraldic crest + semantic colors (success/warn/danger) at full
   saturation but base palette matches the landing: #202020 / #b9b9b9.
   ---------------------------------------------------------------- */
:root {
  --bg:          #202020 !important;
  --bg-elevated: #2a2a2a !important;
  --bg-card:     #262626 !important;
  --bg-card-h:   #2f2f2f !important;
  --bg-surface:  #262626 !important;
  --bg-table:    #1a1a1a !important;
  --bg-dark:     #161616 !important;
  --bg-evidence: rgba(255,255,255,0.02) !important;

  --text-primary:    #ffffff !important;
  --text-secondary:  #b9b9b9 !important;
  --text-tertiary:   #8a8a8a !important;
  --text-quaternary: #5a5a5a !important;
  --text-light:      #ffffff !important;
  --text-light-muted:#e0e0e0 !important;

  --accent:        #d4d4d4 !important;
  --accent-bright: #ffffff !important;
  --accent-glow:   rgba(255,255,255,0.10) !important;
  --accent-soft:   rgba(255,255,255,0.03) !important;
  --accent-med:    rgba(255,255,255,0.06) !important;

  --border:       #333333 !important;
  --border-hover: #4a4a4a !important;
  --border-accent:#555555 !important;

  /* Cap#227 — Shift5 typography tokens (mirrored from css/slates/ops.css)
     so chapter pages that reference s5-* vars resolve correctly without
     having to also link ops.css. Ref: findings.html .s5-display / .s5-eyebrow */
  --s5-font-display:  'Space Grotesk', 'Inter', system-ui, sans-serif;
  --s5-font-mono:     'JetBrains Mono', ui-monospace, Consolas, monospace;
  --s5-track-eyebrow: 0.18em;
  --s5-track-display: -0.015em;
  --s5-weight-display: 600;
  --s5-weight-eyebrow: 500;
  --s5-line:        rgba(185, 185, 185, 0.18);
  --s5-line-soft:   rgba(185, 185, 185, 0.08);
  --s5-line-strong: rgba(185, 185, 185, 0.32);
  --s5-paper:       #b9b9b9;
  --s5-paper-hi:    #ededed;
  --s5-paper-lo:    #6e6e6e;
  --s5-ink:         #202020;
  --s5-ink-deep:    #141414;
  --s5-ink-floor:   #060606;
}

/* Body override — swap red/blue gradient for neutral charcoal */
html, body {
  background: #202020 !important;
  color: #ffffff !important;
}
body::before {
  /* Drop any radial/red-ensign overlay inherited from style.css */
  background: none !important;
}

/* Cards + tables — monochrome surfaces */
.card, .glass-card, .glass-panel, .pipeline-card, .case-card,
.crisis-card, .news-card, .record-card, .ext-card, .dashboard-card {
  background: #262626 !important;
  border-color: #333333 !important;
  color: #ffffff !important;
}
.card:hover, .glass-card:hover, .dashboard-card:hover {
  background: #2f2f2f !important;
  border-color: #555555 !important;
}

/* Headings + body copy */
h1, h2, h3, h4 { color: #ffffff !important; }
p, li, dd, blockquote { color: #b9b9b9 !important; }

/* Nav — match landing */
.site-nav, nav.site-nav, .nav-ensign-stripe, .nav-identity, .nav-bar {
  background: #161616 !important;
  border-color: #333333 !important;
}
.nav-ensign-stripe { display: none !important; } /* drop the red band */

/* Links */
a { color: #ffffff; }
a:hover { color: #c9a44c; }

/* Evidence highlights keep a subtle warn tint */
.evidence, .highlight, .alert {
  background: rgba(201,164,76,0.06) !important;
  border-color: rgba(201,164,76,0.22) !important;
}

/* Code / pre — monochrome terminal */
code, pre {
  background: #161616 !important;
  color: #b9b9b9 !important;
  border-color: #333333 !important;
}

/* Footer */
footer, .site-footer {
  background: #161616 !important;
  border-top-color: #333333 !important;
  color: #b9b9b9 !important;
}

/* Chapter-page heraldic crest retains its brand colors */
.crest-svg, #brand-crest, img[alt*="crest" i] {
  filter: none !important;
}
