/* ─────────────────────────────────────────────────────────
   CASE STUDY — classified dossier reading experience
   Forensic intelligence report. Evidence-green accents,
   structured metadata, intercepted testimony, scan lines.
   Prefix: cs-

   Distinct from article.css (editorial/cobalt) — this uses
   evidence green as primary accent, darker panels, more
   structured/formal layout. Reads like opening a case file.
   ───────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════
   1. READING PROGRESS — evidence-green scan line
   ═══════════════════════════════════════════════════════════ */
.cs-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--evidence);
  z-index: 200;
  pointer-events: none;
  transition: width 60ms linear;
}
/* Trailing scan pulse — moves with the edge */
.cs-progress::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 100%;
  background: linear-gradient(90deg, transparent, oklch(0.870 0.180 130 / 0.6));
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════
   2. HERO — clean case file header
   ═══════════════════════════════════════════════════════════ */
.cs-hero {
  padding-top: clamp(160px, 18vh, 220px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.cs-hero > .container {
  max-width: 860px;
}

/* ── Case file number — hidden, kept for semantic markup ── */
.cs-hero__file-num {
  display: none;
}

/* ── Classification stamp — evidence green bordered badge ── */
.cs-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  margin-bottom: 28px;
}
.cs-stamp__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: cs-pulse 2.4s var(--ease-out-strong) infinite;
}
@keyframes cs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.460 0.180 258 / 0.35); }
  50%      { box-shadow: 0 0 0 5px oklch(0.460 0.180 258 / 0); }
}

/* ── Hero title ── */
.cs-hero__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw + 0.8rem, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.036em;
  color: var(--ink);
  max-width: 20ch;
}
.cs-hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
}

/* ── Hero lede ── */
.cs-hero__lede {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(1.05rem, 0.5vw + 0.88rem, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.62;
  max-width: 56ch;
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--rule);
}

/* ── Metadata strip ── */
.cs-meta {
  margin-top: clamp(18px, 2vw, 24px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cs-meta__item {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.cs-meta__item strong {
  color: var(--ink-soft);
  font-weight: 600;
}
.cs-meta__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
}


/* ═══════════════════════════════════════════════════════════
   3. BODY LAYOUT — two-column with case file index
   ═══════════════════════════════════════════════════════════ */
.cs-body {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(32px, 4vw, 64px);
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 40px);
  position: relative;
}


/* ═══════════════════════════════════════════════════════════
   4. TABLE OF CONTENTS — case file index
   ═══════════════════════════════════════════════════════════ */
.cs-toc-col {
  position: relative;
}
.cs-toc {
  padding-top: 20px;
}

/* JS-driven sticky states */
.cs-toc.is-stuck {
  position: fixed;
  top: 100px;
  width: 190px;
}
.cs-toc.is-bottomed {
  position: absolute;
  bottom: 0;
  top: auto;
  width: 190px;
}

/* ── Label — evidence-green case file index header ── */
.cs-toc__label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--evidence);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

/* ── TOC list — numbered entries ── */
.cs-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  counter-reset: cs-index;
}
.cs-toc__item {
  display: block;
  counter-increment: cs-index;
}
.cs-toc__item a {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.35;
  text-decoration: none;
  border-bottom: 1px solid oklch(0.88 0.01 250 / 0.5);
  transition:
    color 200ms var(--ease-out-strong),
    background 200ms var(--ease-out-strong);
}
.cs-toc__item a::before {
  content: counter(cs-index, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  opacity: 0.5;
  flex-shrink: 0;
  padding-top: 1px;
  min-width: 18px;
  transition: color 200ms var(--ease-out-strong), opacity 200ms var(--ease-out-strong);
}
.cs-toc__item a:hover {
  color: var(--ink-soft);
}
.cs-toc__item a:hover::before {
  opacity: 0.8;
}

/* ── Active state — evidence-green number, tinted row ── */
.cs-toc__item.is-active a {
  color: var(--ink);
  background: oklch(0.870 0.180 130 / 0.05);
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: 2px;
  border-bottom-color: transparent;
}
.cs-toc__item.is-active a::before {
  color: var(--evidence);
  opacity: 1;
}


/* ═══════════════════════════════════════════════════════════
   5. PROSE — formal intelligence report typography
   ═══════════════════════════════════════════════════════════ */
.cs-prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink-soft);
}
.cs-prose > * + * {
  margin-top: 1.2em;
}

/* ── First paragraph — no drop cap, instead a structured lead ── */
.cs-prose > p:first-of-type {
  font-size: 1.1em;
  line-height: 1.68;
  color: var(--ink);
}

/* ── Headings — section identifier + title ── */
.cs-prose h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.3vw + 0.5rem, 1.85rem);
  color: var(--ink);
  margin-top: 3em;
  margin-bottom: 0.3em;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cs-prose h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.cs-prose h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.1rem, 0.4vw + 0.65rem, 1.28rem);
  color: var(--ink);
  margin-top: 2em;
  line-height: 1.3;
}

/* ── Body text ── */
.cs-prose p,
.cs-prose li {
  color: var(--ink-soft);
}
.cs-prose strong {
  color: var(--ink);
  font-weight: 600;
}
.cs-prose em {
  font-style: italic;
}

/* ── Links ── */
.cs-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--paper-edge);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 200ms var(--ease-out-strong);
}
.cs-prose a:hover {
  text-decoration-color: var(--evidence);
}

/* ── Lists ── */
.cs-prose ul,
.cs-prose ol {
  padding-left: 1.4em;
}
.cs-prose li + li {
  margin-top: 0.6em;
}
.cs-prose li::marker {
  color: var(--ink-mute);
}
.cs-prose ol li::marker {
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 600;
  color: var(--evidence);
}


/* ═══════════════════════════════════════════════════════════
   6. BLOCKQUOTE — intercepted field testimony
   Dark panel, evidence-green signal indicator, monospace src
   ═══════════════════════════════════════════════════════════ */
.cs-prose blockquote {
  margin: 2.4em 0;
  padding: 24px 28px;
  background: oklch(0.14 0.02 260);
  border: 1px solid oklch(0.24 0.02 260);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.52;
  color: oklch(0.88 0.008 250);
  position: relative;
}
/* Signal indicator — evidence green bar at top */
.cs-prose blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--evidence), oklch(0.870 0.180 130 / 0.2));
}
/* Classification label */
.cs-prose blockquote::after {
  content: "FIELD TESTIMONY";
  position: absolute;
  top: -9px;
  left: 24px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--evidence);
  background: oklch(0.14 0.02 260);
  padding: 0 8px;
}


/* ═══════════════════════════════════════════════════════════
   7. EVIDENCE PANEL — comparison/findings callout
   ═══════════════════════════════════════════════════════════ */
.cs-evidence {
  margin: 2em 0 2.4em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: oklch(0.24 0.02 260);
  border: 1px solid oklch(0.24 0.02 260);
  border-radius: 2px;
  overflow: hidden;
}
.cs-evidence__cell,
.cs-evidence__col {
  padding: 24px;
  background: oklch(0.14 0.02 260);
  position: relative;
  overflow: hidden;
}
/* Subtle dot-grid texture — matches .cs-findings aesthetic */
.cs-evidence__cell::before,
.cs-evidence__col::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(1 0 0 / 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
/* Label in each cell */
.cs-evidence__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--evidence);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.cs-evidence__label--negative {
  color: var(--warning);
}
.cs-evidence__label--positive {
  color: var(--evidence);
}
.cs-evidence__label--reality {
  color: oklch(0.82 0.12 40); /* amber for cost/reality labels */
}

/* Body text inside cells */
.cs-evidence__cell p,
.cs-evidence__col p {
  font-size: 14px;
  color: oklch(0.80 0.01 250);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.cs-evidence__cell strong,
.cs-evidence__col strong {
  color: oklch(0.94 0 0);
  font-weight: 600;
}
.cs-evidence__cell em,
.cs-evidence__col em {
  font-style: italic;
  color: oklch(0.62 0.01 250);
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  position: relative;
  z-index: 1;
}

/* Lists inside evidence cells */
.cs-evidence__cell ul,
.cs-evidence__cell ol,
.cs-evidence__col ul,
.cs-evidence__col ol {
  position: relative;
  z-index: 1;
  padding-left: 1.2em;
  margin: 0;
}
.cs-evidence__cell li,
.cs-evidence__col li {
  font-size: 14px;
  color: oklch(0.80 0.01 250);
  line-height: 1.6;
}
.cs-evidence__cell li + li,
.cs-evidence__col li + li {
  margin-top: 0.55em;
}
.cs-evidence__cell li strong,
.cs-evidence__col li strong {
  color: oklch(0.94 0 0);
}
.cs-evidence__cell li::marker,
.cs-evidence__col li::marker {
  color: var(--evidence);
  font-family: var(--font-mono);
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   8. TABLE — intelligence comparison grid
   ═══════════════════════════════════════════════════════════ */
.cs-table-wrap {
  margin: 2em 0;
  overflow-x: auto;
  border: 1px solid oklch(0.24 0.02 260);
  border-radius: 2px;
  background: oklch(0.14 0.02 260);
}
.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cs-table thead th {
  text-align: left;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--evidence);
  background: oklch(0.10 0.02 260);
  border-bottom: 1px solid oklch(0.24 0.02 260);
}
.cs-table tbody td {
  padding: 13px 18px;
  color: oklch(0.78 0.01 250);
  border-bottom: 1px solid oklch(0.20 0.02 260);
}
.cs-table tbody td:first-child {
  font-weight: 600;
  color: oklch(0.88 0.008 250);
}
.cs-table tbody tr:last-child td {
  border-bottom: none;
}
.cs-table tbody td em {
  font-style: italic;
}


/* ═══════════════════════════════════════════════════════════
   9. SECTION DIVIDERS — classified break marks
   ═══════════════════════════════════════════════════════════ */
.cs-prose hr {
  border: none;
  height: 0;
  margin: 3.2em 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cs-prose hr::before {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--rule), transparent);
}
.cs-prose hr::after {
  content: "//";
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  opacity: 0.5;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════
   10. FINDINGS CALLOUT — structured dark panel
   ═══════════════════════════════════════════════════════════ */
.cs-findings {
  margin: 2.4em 0;
  padding: 28px;
  background: oklch(0.14 0.02 260);
  border: 1px solid oklch(0.24 0.02 260);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
/* Dot-grid texture */
.cs-findings::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(1 0 0 / 0.025) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
/* Corner marks — evidence green */
.cs-findings::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid oklch(0.870 0.180 130 / 0.35);
  border-left: 1.5px solid oklch(0.870 0.180 130 / 0.35);
  pointer-events: none;
}
.cs-findings__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--evidence);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.cs-findings p {
  font-size: 15px;
  color: oklch(0.80 0.01 250);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.cs-findings strong {
  color: oklch(0.94 0 0);
  font-weight: 600;
}
.cs-findings ol,
.cs-findings ul {
  position: relative;
  z-index: 1;
  padding-left: 1.2em;
}
.cs-findings li {
  font-size: 15px;
  color: oklch(0.80 0.01 250);
  line-height: 1.65;
}
.cs-findings li + li {
  margin-top: 0.6em;
}
.cs-findings li strong {
  color: oklch(0.94 0 0);
}
.cs-findings li::marker {
  color: var(--evidence);
  font-family: var(--font-mono);
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════
   11. INLINE CODE
   ═══════════════════════════════════════════════════════════ */
.cs-prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--paper-deeper);
  padding: 0.18em 0.45em;
  border-radius: 2px;
  border: 1px solid var(--paper-edge);
}


/* ═══════════════════════════════════════════════════════════
   12. CASE FILE FOOTER — structured metadata
   ═══════════════════════════════════════════════════════════ */
.cs-footer {
  max-width: 68ch;
  padding-top: 2.8em;
  margin-top: 2em;
  border-top: 1px solid var(--rule);
}
.cs-footer__filed {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-footer__filed::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--evidence);
  flex-shrink: 0;
}
.cs-footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.cs-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 5px 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper-deeper);
  text-decoration: none;
  transition:
    border-color 200ms var(--ease-out-strong),
    color 200ms var(--ease-out-strong);
}
.cs-tag:hover {
  border-color: var(--evidence);
  color: var(--evidence);
}


/* ═══════════════════════════════════════════════════════════
   13. CLOSING CTA — evidence-green emphasis
   ═══════════════════════════════════════════════════════════ */
.cs-closing {
  text-align: left;
  padding-block: clamp(64px, 9vw, 112px);
  border-top: 2px solid var(--evidence);
  position: relative;
  background:
    linear-gradient(180deg,
      oklch(0.870 0.180 130 / 0.03) 0%,
      transparent 40%
    );
}
.cs-closing .container {
  max-width: 780px;
}
.cs-closing__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-closing__label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--evidence);
  opacity: 0.6;
}
.cs-closing h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2rem, 3vw + 0.6rem, 3rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ink);
  max-width: 22ch;
}
.cs-closing h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.cs-closing p {
  margin-top: 24px;
  font-size: clamp(1rem, 0.5vw + 0.86rem, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.62;
  max-width: 54ch;
}
.cs-closing__actions {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}


/* ═══════════════════════════════════════════════════════════
   14. DARK MODE
   ═══════════════════════════════════════════════════════════ */

/* Hero — already dark, just deepen */
html.dark .cs-hero {
  background:
    linear-gradient(180deg, oklch(0.08 0.02 260) 0%, oklch(0.10 0.02 260) 60%, var(--paper) 100%);
}
html.dark .cs-hero::before {
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.015) 1px, transparent 1px);
}
html.dark .cs-hero__file-num {
  color: oklch(1 0 0 / 0.025);
}

/* Progress bar — intensify glow */
html.dark .cs-progress {
  box-shadow: 0 0 8px oklch(0.870 0.180 130 / 0.3);
}

/* Stamp */
html.dark .cs-stamp {
  border-color: oklch(0.870 0.180 130 / 0.25);
  background: oklch(0.870 0.180 130 / 0.04);
}

/* TOC */
html.dark .cs-toc__label {
  border-bottom-color: oklch(0.248 0.016 260);
}
html.dark .cs-toc__item a {
  border-bottom-color: oklch(0.22 0.016 260);
}
html.dark .cs-toc__item.is-active a {
  background: oklch(0.870 0.180 130 / 0.06);
}

/* Blockquote — already dark, minor adjustments */
html.dark .cs-prose blockquote {
  background: oklch(0.10 0.025 260);
  border-color: oklch(0.20 0.02 260);
}
html.dark .cs-prose blockquote::after {
  background: oklch(0.10 0.025 260);
}

/* Evidence panel */
html.dark .cs-evidence {
  background: oklch(0.20 0.02 260);
  border-color: oklch(0.20 0.02 260);
}
html.dark .cs-evidence__cell,
html.dark .cs-evidence__col {
  background: oklch(0.10 0.025 260);
}

/* Table */
html.dark .cs-table-wrap {
  border-color: oklch(0.20 0.02 260);
  background: oklch(0.10 0.025 260);
}
html.dark .cs-table thead th {
  background: oklch(0.08 0.02 260);
  border-bottom-color: oklch(0.20 0.02 260);
}
html.dark .cs-table tbody td {
  border-bottom-color: oklch(0.16 0.02 260);
}

/* Findings callout */
html.dark .cs-findings {
  background: oklch(0.08 0.02 260);
  border-color: oklch(0.18 0.02 260);
}

/* Code blocks */
html.dark .cs-prose code {
  background: oklch(0.150 0.015 260);
  border-color: oklch(0.248 0.016 260);
}

/* Tags */
html.dark .cs-tag {
  border-color: oklch(0.248 0.016 260);
  background: oklch(0.150 0.015 260);
}
html.dark .cs-tag:hover {
  border-color: oklch(0.7 0.14 130);
  color: oklch(0.7 0.14 130);
}

/* Closing CTA */
html.dark .cs-closing {
  border-top-color: oklch(0.6 0.14 130);
  background:
    linear-gradient(180deg,
      oklch(0.870 0.180 130 / 0.04) 0%,
      transparent 40%
    );
}

/* Footer filed dot */
html.dark .cs-footer__filed::before {
  background: oklch(0.7 0.14 130);
}


/* ═══════════════════════════════════════════════════════════
   15. RESPONSIVE — tablet (max-width: 900px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .cs-body {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cs-toc-col {
    position: static;
  }

  /* TOC horizontal tabs */
  .cs-toc,
  .cs-toc.is-stuck,
  .cs-toc.is-bottomed {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    padding-top: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 36px;
  }
  .cs-toc__label {
    border-bottom: none;
    margin-bottom: 12px;
    padding-bottom: 0;
  }
  .cs-toc__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cs-toc__item a {
    border-bottom: none;
    padding: 5px 12px;
    font-size: 11px;
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: var(--paper-deeper);
  }
  .cs-toc__item a::before {
    display: none;
  }
  .cs-toc__item.is-active a {
    background: oklch(0.870 0.180 130 / 0.08);
    border-color: oklch(0.870 0.180 130 / 0.3);
    color: var(--ink);
    margin-inline: 0;
    padding-inline: 12px;
  }

  /* Evidence panel stack */
  .cs-evidence {
    grid-template-columns: 1fr;
  }

  /* Hero file number hidden */
  .cs-hero__file-num {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   16. RESPONSIVE — small screens (max-width: 600px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .cs-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }
  .cs-toc {
    display: none;
  }
  .cs-body {
    padding-inline: 20px;
  }

  /* Blockquote tighter */
  .cs-prose blockquote {
    padding: 20px 20px;
    font-size: 1.08em;
  }
  .cs-prose blockquote::before {
    left: 20px;
    right: 20px;
  }
  .cs-prose blockquote::after {
    left: 20px;
    font-size: 7px;
  }

  /* Findings tighter */
  .cs-findings {
    padding: 22px 20px;
  }

  /* Evidence panel */
  .cs-evidence__cell,
  .cs-evidence__col {
    padding: 20px;
  }

  /* Table scroll */
  .cs-table-wrap {
    margin-inline: -20px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Stamp smaller */
  .cs-stamp {
    padding: 4px 10px 4px 8px;
    gap: 8px;
  }

  /* Closing/footer */
  .cs-closing {
    padding-block: clamp(48px, 7vw, 72px);
  }
  .cs-closing__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cs-closing__actions .btn {
    justify-content: center;
  }
}


/* ═══════════════════════════════════════════════════════════
   17. RESEARCH REPORTS — attached reference documents
   ═══════════════════════════════════════════════════════════ */
.cs-reports {
  padding: 0 0 var(--space-lg);
}
.cs-reports .container {
  max-width: 860px;
}
.cs-reports__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.cs-reports__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Card — compact row, not a boxed card */
.cs-report-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  transition: opacity 0.2s;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
}
.cs-report-card:hover {
  opacity: 0.7;
}
.cs-report-card:active {
  opacity: 0.5;
}
.cs-report-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: oklch(from var(--accent) l c h / 0.08);
  color: var(--accent);
}
.cs-report-card__icon svg {
  width: 22px;
  height: 22px;
}
.cs-report-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cs-report-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cs-report-card__title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.cs-report-card__subtitle {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.cs-report-card__action {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--ink-mute);
  transition: color 0.2s, transform 0.2s;
}
.cs-report-card__action svg {
  width: 14px;
  height: 14px;
}
.cs-report-card:hover .cs-report-card__action {
  color: var(--accent);
  transform: translateX(2px);
}

/* ═══════════════════════════════════════════════════════════
   18. PDF VIEWER MODAL
   ═══════════════════════════════════════════════════════════ */
.cs-pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.08 0.01 260 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity 0.25s ease;
}
.cs-pdf-viewer[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}
.cs-pdf-viewer__chrome {
  display: flex;
  flex-direction: column;
  width: min(96vw, 1100px);
  height: min(92vh, 900px);
  border-radius: 10px;
  overflow: hidden;
  background: oklch(0.13 0.015 260);
  box-shadow: 0 24px 80px oklch(0 0 0 / 0.6);
}
.cs-pdf-viewer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: oklch(0.10 0.015 260);
  border-bottom: 1px solid oklch(0.20 0.01 260);
  flex-shrink: 0;
}
.cs-pdf-viewer__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: oklch(0.75 0.01 260);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.cs-pdf-viewer__controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.cs-pdf-viewer__page {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: oklch(0.65 0.01 260);
  padding: 0 8px;
  min-width: 60px;
  text-align: center;
}
.cs-pdf-viewer__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: oklch(0.70 0.01 260);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cs-pdf-viewer__btn:hover {
  background: oklch(0.20 0.01 260);
  color: oklch(0.90 0.01 260);
}
.cs-pdf-viewer__btn svg {
  width: 16px;
  height: 16px;
}
.cs-pdf-viewer__btn--zoom {
  margin-left: 4px;
}
.cs-pdf-viewer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: oklch(0.60 0.01 260);
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.15s, color 0.15s;
}
.cs-pdf-viewer__close:hover {
  background: oklch(0.25 0.05 15);
  color: oklch(0.85 0.08 15);
}
.cs-pdf-viewer__close svg {
  width: 14px;
  height: 14px;
}
.cs-pdf-viewer__viewport {
  flex: 1;
  overflow: auto;
  padding: 24px;
  position: relative;
}
.cs-pdf-viewer__pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cs-pdf-viewer__canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 2px 16px oklch(0 0 0 / 0.35);
}
.cs-pdf-viewer__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: oklch(0.55 0.01 260);
  letter-spacing: 0.05em;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .cs-reports__grid {
    grid-template-columns: 1fr;
  }
  .cs-pdf-viewer__chrome {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  .cs-pdf-viewer__title {
    font-size: 11px;
  }
  .cs-pdf-viewer__btn--zoom {
    display: none;
  }
  .cs-pdf-viewer__viewport {
    padding: 12px;
  }
}


/* ═══════════════════════════════════════════════════════════
   19. REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .cs-progress {
    transition: none;
  }
  .cs-progress::after {
    display: none;
  }
  .cs-stamp__dot {
    animation: none;
  }
  .cs-hero::after {
    animation: none;
    display: none;
  }
  .cs-toc__item a {
    transition: none;
  }
  .cs-tag {
    transition: none;
  }
  .cs-prose a {
    transition: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   TL;DR / KEY TAKEAWAYS SUMMARY BOX
   ═══════════════════════════════════════════════════════════ */
.art-tldr {
  border: 1px solid oklch(0.460 0.180 258 / 0.35);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: oklch(0.460 0.180 258 / 0.06);
  padding: 1.25rem 1.5rem;
  margin-block: 2rem;
}

.art-tldr__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.art-tldr ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.art-tldr ul li {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg);
  padding-left: 0;
}

.art-tldr ul li::before {
  content: "→";
  position: absolute;
  left: -1.25rem;
  color: var(--accent);
  font-weight: 500;
}

html.dark .art-tldr {
  background: oklch(0.460 0.180 258 / 0.10);
  border-color: oklch(0.460 0.180 258 / 0.40);
}
