:root {
  --paper: #f4ecd8;
  --paper-aged: #ede2c4;
  --ink: #1a1a1a;
  --ink-faded: #4a4035;
  --ink-blue: #1a3a8a;
  --stamp: #b8202c;
  --stamp-faded: #8a1820;
  --rule: #8b7d5b;
  --redact: #1a1a1a;

  --paper-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 17px;
  line-height: 1.7;
}

body {
  background-image: var(--paper-noise);
  background-attachment: fixed;
  background-size: 240px 240px;
  min-height: 100vh;
}

a {
  color: var(--ink-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 2px;
}

.mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; letter-spacing: 0.02em; }
.stencil { font-family: 'Stardos Stencil', 'Special Elite', monospace; }

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

/* ─────── §2 HEADER ─────── */

.classification-banner {
  border: 2px solid var(--stamp);
  margin: 1.25rem auto 1.25rem;
  max-width: 1100px;
  padding: 0.5rem 1rem;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--stamp);
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(184, 32, 44, 0.04);
}

.site-header {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 2rem 1.5rem 1.5rem;
  overflow: visible;
}

.site-title {
  font-family: 'Stardos Stencil', sans-serif;
  font-size: clamp(2.4rem, 6.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}

.site-subtitle {
  font-family: 'Special Elite', monospace;
  font-size: 1.05rem;
  color: var(--ink-faded);
  margin: 0 0 1.1rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
}

.case-meta {
  border: 1.5px solid var(--rule);
  background: rgba(255,255,255,0.18);
  padding: 1rem 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  max-width: 38rem;
  margin: 0.6rem auto 0;
  position: relative;
}
.case-meta::before, .case-meta::after {
  content: "";
  position: absolute;
  left: -1.5px; right: -1.5px;
  border-top: 1.5px solid var(--rule);
  height: 0;
}
.case-meta::before { top: 4px; }
.case-meta::after  { bottom: 4px; }

.case-meta dl {
  margin: 0;
  display: grid;
  grid-template-columns: 11rem 1fr;
  row-gap: 0.35rem;
  column-gap: 1rem;
}
.case-meta dt {
  text-transform: uppercase;
  color: var(--ink-faded);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.case-meta dd {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.case-meta .redact {
  background: var(--redact);
  color: var(--redact);
  user-select: none;
  padding: 0 0.2rem;
  letter-spacing: 0;
}

.site-disclaimer {
  margin: 1.1rem auto 0;
  font-style: italic;
  color: var(--ink-faded);
  font-size: 0.92rem;
  max-width: 760px;
  line-height: 1.6;
  text-align: center;
}

/* corner DECLASSIFIED stamp */

.corner-stamp {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: 'Stardos Stencil', sans-serif;
  color: var(--stamp);
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  letter-spacing: 0.18em;
  border: 4px double var(--stamp);
  padding: 0.55rem 1.4rem 0.55rem 1.2rem;
  width: auto;
  max-width: 32vw;
  text-align: center;
  transform: rotate(-8deg);
  opacity: 0.35;
  pointer-events: none;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}

.archive-watermark {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink-faded);
  letter-spacing: 0.5em;
  font-size: 0.78rem;
  text-align: left;
  margin: 0 0 0.6rem;
  opacity: 0.7;
}

/* ─────── §3 HERO QUOTE ─────── */

.hero-quote {
  background: var(--paper-aged);
  background-image: var(--paper-noise);
  background-blend-mode: multiply;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 1.5rem 0 0;
}
.hero-quote-inner {
  max-width: 64rem;
  margin: 0 auto;
  position: relative;
}
.hero-quote-mark {
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 8rem;
  color: var(--stamp);
  opacity: 0.5;
  line-height: 0.6;
  margin-bottom: -1rem;
  user-select: none;
}
.hero-quote-text {
  font-family: 'Special Elite', monospace;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  line-height: 1.45;
  color: var(--ink);
  font-style: normal;
  font-weight: 400;
  margin: 0;
  padding: 0;
  quotes: none;
}
.hero-quote-text::before, .hero-quote-text::after { content: ""; }
.hero-quote-attribution {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  color: var(--ink-faded);
  margin-top: 2rem;
  letter-spacing: 0.04em;
  font-style: normal;
  position: relative;
  padding-top: 1rem;
}
.hero-quote-attribution::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6rem;
  height: 1px;
  background: var(--rule);
}

/* ─────── §4 FILTER BAR ─────── */

.filter-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper-aged);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  padding: 0.55rem 1.25rem;
  margin: 0 auto 2rem;
}
.filter-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  flex: 1 1 280px;
  min-width: 0;
}
.search-row label {
  color: var(--ink-faded);
  text-transform: uppercase;
  white-space: nowrap;
}
.search-row input {
  flex: 1;
  font-family: 'IBM Plex Mono', monospace;
  background: transparent;
  border: none;
  border-bottom: 1.5px dashed var(--rule);
  padding: 0.3rem 0.25rem;
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  min-width: 0;
}
.search-row input:focus {
  outline: none;
  border-bottom-color: var(--stamp);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  align-items: center;
  flex: 0 1 auto;
}
.chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1.2px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
  transition: background 120ms ease, color 120ms ease;
  white-space: nowrap;
  scroll-snap-align: start;
}
.chip:hover { background: rgba(26,26,26,0.06); }
.chip[aria-pressed="true"] {
  background: var(--stamp);
  border-color: var(--stamp);
  color: #f4ecd8;
}

/* MAJOR ONLY toggle chip — visually distinct from tag chips */
.chip--severity {
  margin-left: 0.6rem;
  border-color: var(--stamp);
  color: var(--stamp);
  position: relative;
}
.chip--severity::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--rule);
}
.chip--severity:hover {
  background: rgba(184, 32, 44, 0.08);
}
.chip--severity[aria-pressed="true"] {
  background: var(--stamp);
  color: var(--paper);
  border-color: var(--stamp);
}

.year-row {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--ink-faded);
  border-top: 1px dashed var(--rule);
  padding-top: 0.4rem;
  margin-top: 0.1rem;
}
.year-row span.label { text-transform: uppercase; }
.year-row a {
  color: var(--ink-faded);
  text-decoration: none;
  border-bottom: 1px dotted var(--rule);
  padding-bottom: 1px;
}
.year-row a:hover { color: var(--stamp); border-bottom-color: var(--stamp); }
.year-row a[data-active="true"] {
  color: var(--stamp);
  border-bottom: 1.5px solid var(--stamp);
  font-weight: 600;
}

/* ─────── §5 TIMELINE ─────── */

.timeline {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  position: relative;
}

.year-divider {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 3rem 0 1.5rem;
  scroll-margin-top: 6rem;
  position: relative;
}
.year-divider .yd-line {
  flex: 1;
  height: 1px;
  background: var(--rule);
  position: relative;
}
.year-divider .yd-line.left::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px; height: 8px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
}
.year-divider .yd-line.right::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent var(--rule);
  transform: translateY(-50%);
}
.year-divider .yd-label-wrap {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}
.year-divider .yd-caption {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ink-faded);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.year-divider .yd-label {
  font-family: 'Stardos Stencil', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  color: var(--ink);
  text-transform: uppercase;
}

/* ─────── §6 ENTRY CARDS ─────── */

.entry {
  position: relative;
  background: var(--paper-aged);
  background-image: var(--paper-noise);
  background-blend-mode: multiply;
  padding: 2.5rem 2.5rem 2.5rem;
  margin: 2rem 0 1.6rem;
  border: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.08), 2px 4px 8px rgba(0,0,0,0.12);
  transition: opacity 220ms ease, transform 220ms ease;
  cursor: pointer;
  transform: rotate(var(--card-rot, 0deg));
}
.entry.is-hidden {
  opacity: 0;
  transform: translateY(6px);
  display: none;
}

/* paper-clip */
.entry .paperclip {
  position: absolute;
  top: -1.2rem;
  left: 1.5rem;
  width: 32px; height: 80px;
  transform: rotate(-12deg);
  pointer-events: none;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.2));
  z-index: 3;
}

/* tape (only on tagged entries) */
.entry .tape {
  position: absolute;
  width: 120px;
  height: 28px;
  pointer-events: none;
  z-index: 3;
}
.entry[data-tape="top-right"] .tape {
  top: -10px;
  right: 1.2rem;
  transform: rotate(6deg);
}
.entry[data-tape="bottom-left"] .tape {
  bottom: -10px;
  left: 1.2rem;
  transform: rotate(-8deg);
}

/* annotations */
.annotation {
  font-family: 'Caveat', 'Special Elite', cursive;
  color: var(--stamp);
  font-size: 1.4rem;
  font-weight: 600;
  transform: rotate(-3deg);
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
  z-index: 3;
  white-space: nowrap;
}

.entry-strip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ink-faded);
  text-transform: uppercase;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: baseline;
  justify-content: space-between;
}
.entry-strip .strip-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: baseline;
}
.entry-strip .strip-meta .sep { color: var(--rule); }
.entry-strip .badge {
  border: 1px solid var(--ink-faded);
  padding: 0.1rem 0.5rem;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

/* click-to-copy file no */
.file-meta-no {
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  transition: opacity 120ms ease;
}
.file-meta-no:hover { opacity: 0.7; }
.file-meta-no:hover .copy-hint { opacity: 1; transform: translateY(0); }
.file-meta-no .copy-hint {
  position: absolute;
  left: 0;
  top: 100%;
  font-size: 0.65rem;
  color: var(--stamp);
  letter-spacing: 0.18em;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
  margin-top: 2px;
}

.entry-title {
  font-family: 'Special Elite', monospace;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.6rem 0 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
  line-height: 1.25;
  text-shadow: 0.3px 0.3px 0 rgba(0,0,0,0.15);
}

.entry-summary {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
  margin: 0.6rem 0 0.9rem;
}

.entry-body {
  display: none;
  color: var(--ink);
  margin: 0.4rem 0 0.6rem;
}
.entry-body p { margin: 0 0 1rem; }
.entry[aria-expanded="true"] .entry-body { display: block; }

.entry-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin: 1rem 0 0.4rem;
}
.entry-tags .tag {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--ink-faded);
  color: var(--ink-faded);
  background: transparent;
}

.sources-block {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}
.sources-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-blue);
  margin: 0 0 0.6rem;
}
.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}
.entry:not([aria-expanded="true"]) .sources-list .src:nth-child(n+3) {
  display: none;
}
.entry:not([aria-expanded="true"]) .sources-more {
  display: block;
  font-style: italic;
  color: var(--ink-faded);
  margin-top: 0.4rem;
  font-size: 0.78rem;
}
.entry[aria-expanded="true"] .sources-more { display: none; }

.src {
  margin: 0 0 0.6rem;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.4rem;
  align-items: start;
}
.src .num { color: var(--ink-faded); letter-spacing: 0.06em; }
.src .pub { text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.src .pub .em-dash { color: var(--rule); margin: 0 0.35em; }
.src .src-title { color: var(--ink-faded); font-style: italic; }
.src .src-url {
  display: inline-block;
  margin-top: 0.15rem;
  word-break: break-all;
  position: relative;
  transition: color 120ms ease;
}
.src .src-url::before { content: "→ "; color: var(--ink-blue); }
.src .src-url::after {
  content: " ↗";
  opacity: 0;
  transition: opacity 120ms ease;
  margin-left: 0.15rem;
}
.src .src-url:hover::after,
.src .src-url:focus-visible::after { opacity: 1; }

.card-stamp {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-family: 'Stardos Stencil', sans-serif;
  color: var(--stamp);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  border: 2px solid var(--stamp);
  padding: 0.18rem 0.55rem;
  opacity: 0.5;
  pointer-events: none;
  text-transform: uppercase;
  z-index: 2;
}

.page-no {
  position: absolute;
  bottom: 0.7rem;
  right: 1.1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--ink-faded);
  letter-spacing: 0.14em;
}

.entry-toggle-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ink-faded);
  text-transform: uppercase;
  margin-top: 0.6rem;
}
.entry[aria-expanded="true"] .entry-toggle-hint::after { content: " // CLICK TO COLLAPSE"; }
.entry:not([aria-expanded="true"]) .entry-toggle-hint::after { content: " // CLICK TO EXPAND"; }

/* error / empty / loading states */

.app-error, .app-empty {
  max-width: 720px;
  margin: 3rem auto;
  padding: 1.5rem;
  border: 1.5px solid var(--stamp);
  background: rgba(184,32,44,0.05);
  font-family: 'IBM Plex Mono', monospace;
  color: var(--stamp-faded);
  font-size: 0.9rem;
  line-height: 1.6;
}
.app-empty {
  border-color: var(--rule);
  color: var(--ink-faded);
  background: transparent;
}

/* §7 loading */
.loading-screen {
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--stamp);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  padding: 5rem 1rem;
  transition: opacity 0.5s ease;
}
.loading-screen .loading-bar {
  margin-top: 1rem;
  letter-spacing: 0.05em;
}
.loading-screen .loading-cursor {
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
.loading-screen.is-fading { opacity: 0; pointer-events: none; }

/* toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1rem;
  color: var(--ink);
  box-shadow: 2px 4px 10px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  z-index: 200;
}
.toast--visible { opacity: 1; transform: translateY(0); }

/* ─────── §8 FOOTER ─────── */

.site-footer {
  text-align: center;
  margin: 4rem auto 3rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--rule);
  max-width: 900px;
  color: var(--ink-faded);
}
.site-footer .seal { margin: 0 auto 0.6rem; display: block; opacity: 0.85; }
.site-footer .footer-stencil {
  font-family: 'Stardos Stencil', sans-serif;
  letter-spacing: 0.18em;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0.3rem 0 0.7rem;
}
.site-footer .footer-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  line-height: 1.7;
}
.site-footer .end-volume {
  margin-top: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.4em;
  font-size: 0.85rem;
  color: var(--ink-faded);
}
.site-footer .footer-rollup {
  margin-top: 0.6rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-faded);
  letter-spacing: 0.1em;
}

/* ─────── RESPONSIVE ─────── */

@media (max-width: 1024px) {
  .site-title { white-space: normal; }
  .site-title .title-row1 { display: inline; }
  .site-title .title-row2 { display: block; }
}

@media (max-width: 900px) {
  .filter-inner { gap: 0.5rem 0.8rem; }
  .search-row { flex: 1 0 100%; }
  .chips-row { flex: 1 0 100%; justify-content: flex-start; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .corner-stamp {
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.95rem;
    width: auto;
    padding: 0.3rem 0.55rem;
  }

  .case-meta dl {
    grid-template-columns: 1fr;
    row-gap: 0.15rem;
  }
  .case-meta dt { margin-top: 0.4rem; }

  .timeline { padding-left: 1rem; padding-right: 1rem; }
  .entry { padding: 1.6rem 1.4rem 2rem; }

  .src { grid-template-columns: 1.8rem 1fr; }

  .hero-quote { padding: 2.5rem 1.25rem; }
  .hero-quote-mark { font-size: 5rem; }
}

@media (max-width: 600px) {
  .chips-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.2rem;
  }
  .chips-row::-webkit-scrollbar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .entry, .entry.is-hidden { transition: none; transform: rotate(0); }
  .corner-stamp, .card-stamp, .annotation, .entry .paperclip, .entry .tape { transform: none !important; }
  .loading-screen .loading-cursor { animation: none; }
}

::selection {
  background: var(--stamp);
  color: var(--paper);
}

/* ─────── §11 PRINT ─────── */

@media print {
  html, body {
    background: white !important;
    color: black !important;
    font-size: 11pt;
  }
  body { background-image: none !important; }

  .filter-bar, .search-row, .year-row, .corner-stamp,
  .toast, .entry-toggle-hint, .archive-watermark,
  .entry .paperclip, .entry .tape, .annotation, .card-stamp,
  .copy-hint, .loading-screen { display: none !important; }

  .classification-banner {
    color: black !important;
    border-color: black !important;
    background: none !important;
  }

  .entry {
    background: white !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 1px solid #555 !important;
    transform: none !important;
    page-break-inside: avoid;
    margin: 1rem 0 !important;
    padding: 1rem !important;
    cursor: auto !important;
  }
  .entry .entry-body { display: block !important; }
  .entry .sources-list .src { display: grid !important; }
  .entry .sources-more { display: none !important; }

  .year-divider { page-break-after: always; }
  .year-divider .yd-line { background: #555 !important; }
  .year-divider .yd-label { color: black !important; }

  a { color: black !important; text-decoration: underline; }
  .src .src-url::after { display: none; }
  .src a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }

  .site-footer { border-color: #555 !important; color: #555 !important; }
}
