/*
Theme Name: ProblemTerminator
Theme URI: https://problemterminator.com
Author: Asad
Description: Cyber-hacker terminal theme for a PC troubleshooting blog. Dark, green-on-black, desktop/terminal-styled hero — built for speed and AdSense readiness.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: problemterminator
*/

/* ========================================================================
   ProblemTerminator — shared stylesheet
   Thriller "case dossier" design system — white, simple, investigative
   ======================================================================== */

:root {
  --bg: #0E1116;
  --paper: #171B22;
  --surface: #1B2029;
  --border: #262C36;
  --border-strong: #3A414D;
  --ink: #E7EAF0;
  --ink-muted: #8D96A6;
  --red: #33FF88;
  --red-dim: #0E2A1C;
  --tape: #E7EAF0;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

img, svg { max-width: 100%; display: block; }

a { color: var(--red); text-decoration: none; }
a:hover { color: #1FAE5C; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
  color: var(--ink);
}

.mono { font-family: var(--font-mono); }

p { margin: 0 0 1em; color: var(--ink); }
p.muted, .muted { color: var(--ink-muted); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.logo strong { color: var(--red); }

.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; column-gap: 22px; }
.main-nav a {
  color: var(--ink-muted);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.main-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a { padding: 14px 24px; border-top: 1px solid var(--border); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 600px 300px at 50% 0%, rgba(51,255,136,0.07), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

/* faint circuit-grid backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51,255,136,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,255,136,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero .inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto 28px; }

.hero .kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 5px 14px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  margin-bottom: 14px;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(51,255,136,0.25);
}
.hero h1 .u { color: var(--red); text-shadow: 0 0 14px rgba(51,255,136,0.5); }

.hero p.lead {
  font-size: 16.5px;
  color: var(--ink-muted);
  margin: 0 auto;
  max-width: 56ch;
}

/* ---------- Desktop / monitor mockup ---------- */

.desktop-mockup {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.monitor-col { flex: 1 1 480px; max-width: 700px; display: flex; flex-direction: column; align-items: center; }

/* ---------- CPU tower ---------- */

.cpu-tower {
  width: 84px;
  align-self: stretch;
  min-height: 250px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}
.cpu-tower .vents {
  position: absolute;
  top: 20px; left: 12px; right: 12px; height: 64px;
  background: repeating-linear-gradient(180deg, var(--border-strong) 0px, var(--border-strong) 2px, transparent 2px, transparent 8px);
  opacity: 0.55;
  border-radius: 2px;
}
.cpu-tower .power-led {
  position: absolute;
  top: 104px; left: 50%;
  transform: translateX(-50%);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px 2px rgba(51,255,136,0.8);
}
.cpu-tower .rgb-strip {
  position: absolute;
  left: 8px; top: 124px; bottom: 16px; width: 3px;
  background: linear-gradient(var(--red), transparent 92%);
  box-shadow: 0 0 10px 2px rgba(51,255,136,0.5);
  border-radius: 2px;
}
.cpu-tower .drive-bay {
  position: absolute;
  left: 12px; right: 12px; bottom: 36px; height: 5px;
  background: var(--border-strong);
  border-radius: 2px;
}
.cpu-tower .drive-bay.two { bottom: 24px; }

@media (max-width: 700px) {
  .cpu-tower { display: none; }
}

/* ---------- Keyboard ---------- */

.keyboard-wrap {
  margin-top: 20px;
  width: 100%;
  max-width: 460px;
}
.keyboard-svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.55)) drop-shadow(0 0 18px rgba(51,255,136,0.12));
}
.keyboard-svg .kb-base {
  fill: var(--paper);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}
.keyboard-svg .key {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1;
  transition: fill 0.15s ease, stroke 0.15s ease;
}
.keyboard-svg .key-glow {
  fill: #0E2A1C;
  stroke: var(--red);
  stroke-width: 1;
}
.keyboard-svg .key-label {
  fill: #A9B0B8;
  font-family: var(--font-mono);
  dominant-baseline: middle;
  pointer-events: none;
  transition: fill 0.15s ease, filter 0.15s ease;
}
.keyboard-svg .keycap:hover .key {
  stroke: #C7CCD1;
}
.keyboard-svg .keycap:hover .key-label {
  fill: #FFFFFF;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.85));
}
.keyboard-svg .kb-glow-bar {
  fill: var(--red);
  opacity: 0.55;
  filter: blur(1.5px);
}

.monitor {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 40px 80px -30px rgba(51,255,136,0.12), 0 20px 50px -20px rgba(0,0,0,0.6);
  overflow: hidden;
}

.monitor-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.monitor-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.monitor-bar .dot-r { background: #FF5F56; }
.monitor-bar .dot-y { background: #FFBD2E; }
.monitor-bar .dot-g { background: #27C93F; }
.monitor-bar .monitor-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.monitor-screen {
  position: relative;
  padding: 34px 32px 30px;
  text-align: left;
  background:
    repeating-linear-gradient(0deg, rgba(51,255,136,0.025) 0px, rgba(51,255,136,0.025) 1px, transparent 1px, transparent 3px),
    var(--bg);
}

.boot-log {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.boot-log .ok { color: var(--red); font-weight: 700; }
.boot-log .path { color: var(--ink); }

.monitor-screen h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 32px);
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.15;
}
.monitor-screen h2 .u { color: var(--red); text-shadow: 0 0 14px rgba(51,255,136,0.5); }

.monitor-screen p.screen-lead {
  font-size: 14.5px;
  color: var(--ink-muted);
  max-width: 54ch;
  margin: 0 0 22px;
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--red);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: pt-blink 1s steps(1) infinite;
}
@keyframes pt-blink { 50% { opacity: 0; } }

.monitor-stand {
  width: 130px; height: 16px;
  background: linear-gradient(var(--border-strong), var(--paper));
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
}
.monitor-base {
  width: 240px; height: 8px;
  background: var(--border-strong);
  margin: 6px auto 0;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .monitor-screen { padding: 24px 20px 26px; }
}

/* ---------- Search (hero, section 1) ---------- */

.terminal-input { text-align: left; }
.terminal-input .prompt {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--red);
  flex-shrink: 0;
  white-space: nowrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  padding: 14px 18px;
  background: var(--surface);
}
.search-box:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(51,255,136,0.12); }
.search-box input {
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  width: 100%;
}
.search-box input::placeholder { color: var(--ink-muted); }
.search-box input:focus { outline: none; }
.search-box svg { flex-shrink: 0; color: var(--ink); }
.search-box button {
  background: #0A0D10;
  color: #229459;
  font-weight: 700;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease;
}
.search-box button:hover {
  color: var(--red);
  border-color: var(--red);
  text-shadow: 0 0 10px rgba(51,255,136,0.85), 0 0 22px rgba(51,255,136,0.4);
}

.search-hint {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #0A0D10;
  color: #229459;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  color: var(--red);
  border-color: var(--red);
  text-shadow: 0 0 10px rgba(51,255,136,0.85), 0 0 22px rgba(51,255,136,0.4);
}
.btn-primary { border-color: var(--red); color: var(--red); }
.btn-primary:hover { text-shadow: 0 0 10px rgba(51,255,136,0.85), 0 0 22px rgba(51,255,136,0.4); }
.btn-ghost { background: #0A0D10; border: 1px solid var(--border-strong); color: #229459; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ---------- Ad slots ---------- */

.ad-slot {
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  margin: 48px 0;
}
.ad-slot.leaderboard { min-height: 90px; }
.ad-slot.in-article { min-height: 250px; margin: 36px 0; }

/* ---------- Section headers ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 56px 0 24px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
}
.section-head h2 { font-size: 24px; }
.section-head .count { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }

/* ---------- Category filter chips ---------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #0A0D10;
  color: #229459;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease;
}
.chip:hover { color: var(--red); border-color: var(--red); text-shadow: 0 0 10px rgba(51,255,136,0.7); }
.chip.active { color: var(--red); border-color: var(--red); font-weight: 600; text-shadow: 0 0 10px rgba(51,255,136,0.7); }

/* ---------- Latest cases: dossier list (section 2) ---------- */

.case-log { border-top: 1px solid var(--border); }

.case-log-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
}
.case-log-row:nth-child(even) { background: var(--paper); }
.case-log-row:hover { background: rgba(51, 255, 136, 0.06); }

.case-log-num { font-family: var(--font-mono); font-size: 13px; color: var(--red); font-weight: 600; }

.case-log-main h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.case-log-main h3 a { color: var(--ink); }
.case-log-main h3 a:hover { color: var(--red); }
.case-log-main .sub { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.case-log-main .sub .tag { color: var(--red); }

.case-log-meta {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}
.status-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 3px;
  padding: 2px 7px;
  display: inline-block;
  transform: rotate(-3deg);
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .case-log-row { grid-template-columns: 1fr; gap: 6px; }
  .case-log-meta { text-align: left; }
}

/* ---------- Article grid (used on article page "related") ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-card:hover { border-color: var(--ink); }
.case-card .row-top { display: flex; align-items: center; justify-content: space-between; }
.case-no { font-family: var(--font-mono); font-size: 12px; color: var(--red); }
.case-card h3 { font-size: 18px; }
.case-card h3 a { color: var(--ink); }
.case-card h3 a:hover { color: var(--red); }
.case-card .excerpt { font-size: 14px; color: var(--ink-muted); margin: 0; }
.case-card .meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.tag { color: var(--red); }

/* ---------- Newsletter ---------- */

.newsletter {
  margin-top: 64px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter h3 { font-size: 20px; margin-bottom: 6px; }
.newsletter form { display: flex; gap: 10px; }
.newsletter input[type="email"] {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  min-width: 240px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 44px 0 30px;
  background: var(--paper);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 { font-size: 13px; color: var(--ink-muted); font-family: var(--font-mono); letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: var(--ink-muted); font-size: 14px; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Article page ---------- */

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  padding: 20px 0;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--red); }

.case-header { padding: 8px 0 36px; border-bottom: 1px solid var(--border); }
.case-header .row-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.case-header h1 { font-size: clamp(26px, 4.5vw, 42px); max-width: 22ch; margin-bottom: 16px; }
.case-header .byline { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); }

.article-body { max-width: 700px; margin: 0 auto; padding: 40px 0 0; }
.article-body h2 {
  font-size: 22px;
  margin: 40px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-body h2::before { content: ""; width: 4px; height: 20px; background: var(--red); display: inline-block; }
.article-body p, .article-body li { font-size: 16.5px; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }

.evidence-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.evidence-item:last-child { border-bottom: none; }
.evidence-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 50%;
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.evidence-item p { margin: 0; }

.code-block {
  background: #15171B;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #E7EAF0;
  overflow-x: auto;
  margin: 16px 0;
  line-height: 1.5;
}
.code-block code { color: #6ED2E0; background: rgba(255,255,255,0.06); padding: 1px 4px; border-radius: 2px; }
p code, li code { background: var(--paper); border: 1px solid var(--border); border-radius: 3px; padding: 1px 6px; font-family: var(--font-mono); font-size: 0.9em; }

.verdict-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  padding: 20px 22px;
  margin: 18px 0;
}

.related { max-width: 700px; margin: 64px auto 0; }

/* ---------- FAQ accordion ---------- */

.faq-section { max-width: 700px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 44px 16px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--red);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--red); }

.faq-answer {
  padding: 0 18px 18px;
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- WordPress block-editor content mapping ---------- */

.article-body pre {
  background: #15171B;
  color: #E7EAF0;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  overflow-x: auto;
  margin: 16px 0;
  line-height: 1.5;
}
.article-body pre code { background: none; border: none; padding: 0; color: inherit; }

.article-body blockquote {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  padding: 18px 22px;
  margin: 18px 0;
  font-style: normal;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body img { border-radius: 5px; margin: 20px 0; width: 100%; height: auto; display: block; }
.article-body figure { margin: 20px 0; }
.article-body figure img { margin: 0; }

/* ---------- Case exhibit (featured image on single posts) ---------- */

.case-exhibit {
  max-width: 720px;
  margin: 28px auto 0;
}
.case-exhibit-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.case-exhibit figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 8px;
  text-align: left;
}
.article-body figcaption { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); text-align: center; margin-top: 6px; }

.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.article-body th { background: var(--paper); font-family: var(--font-mono); font-size: 12px; }

/* ---------- Pagination ---------- */

.pt-pagination { display: flex; gap: 10px; justify-content: center; margin: 48px 0 12px; flex-wrap: wrap; }
.pt-pagination a, .pt-pagination span {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #0A0D10;
  color: #229459;
  transition: color 0.2s ease, text-shadow 0.2s ease, border-color 0.2s ease;
}
.pt-pagination .current { color: var(--red); border-color: var(--red); text-shadow: 0 0 10px rgba(51,255,136,0.7); }
.pt-pagination a:hover { border-color: var(--red); color: var(--red); text-shadow: 0 0 10px rgba(51,255,136,0.7); }

/* ---------- 404 ---------- */

.cold-case { text-align: center; padding: 90px 0; }
.cold-case .case-log-num { font-size: 15px; }
.cold-case h1 { font-size: clamp(30px, 6vw, 50px); margin: 18px 0; }

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }
