/* ═══════════════════════════════════════════════════════════════════
   TENET·5 — The Argument · Evidence-Packet Print Stylesheet
   Cap#205 · Loaded with media="print" on argument-transcript.html
   Goal: durable, paginated, offline PDF artifact of all 25 chapters.
   No deps. Local-only. Strips chrome. Visible source URLs.
   ═══════════════════════════════════════════════════════════════════ */

@page {
  size: Letter;
  margin: 0.85in 0.75in 0.95in 0.75in;
  @top-left   { content: "TENET·5 — The Argument · Cap#205"; font-family: Georgia, "Times New Roman", serif; font-size: 9pt; color: #444; }
  @top-right  { content: "tenet-5.github.io/argument-transcript.html"; font-family: Georgia, serif; font-size: 9pt; color: #444; }
  @bottom-right { content: "Page " counter(page) " / " counter(pages); font-family: Georgia, serif; font-size: 9pt; color: #444; }
  @bottom-left  { content: "Every claim has a receipt. This is intentional."; font-family: Georgia, serif; font-style: italic; font-size: 8.5pt; color: #666; }
}

@page :first {
  @top-left { content: ""; }
  @top-right { content: ""; }
}

/* ── Reset to printable page ───────────────────────────────────────── */
html, body {
  background: #ffffff !important;
  color: #000000 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 11pt !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wrap { max-width: none !important; margin: 0 !important; padding: 0 !important; }

/* ── Chrome OFF (non-content UI must not print) ────────────────────── */
.actions,
.liril-slate-toggle,
.liril-slate-panel,
.arg-hud,
.arg-prog,
.arg-bg,
.arg-foot,
.arg-transport,
.arg-toast,
.arg-break,
.arg-toc,
.arg-boot,
.arg-viz,
.arg-center__overlay,
nav.toc,
[aria-hidden="true"],
[hidden] {
  display: none !important;
}

/* ── Cover page (transcript header acts as title page) ─────────────── */
header.t-head {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 0.5in 0 !important;
  page-break-after: always;
  break-after: page;
  text-align: center;
}
header.t-head h1 {
  font-family: Georgia, serif !important;
  font-size: 32pt !important;
  font-weight: 700 !important;
  color: #000 !important;
  letter-spacing: -0.01em !important;
  margin: 1.4in 0 0.25in !important;
  line-height: 1.15 !important;
}
header.t-head .subtitle {
  font-size: 13pt !important;
  font-style: italic;
  color: #333 !important;
  margin: 0 0 0.6in !important;
}
header.t-head .thesis {
  font-family: Georgia, serif !important;
  font-size: 16pt !important;
  font-weight: 700 !important;
  color: #6a3500 !important;
  margin: 0.5in 0 0.4in !important;
}
header.t-head .meta {
  display: block !important;
  font-family: "Courier New", Courier, monospace !important;
  font-size: 10pt !important;
  color: #555 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.6in !important;
}
header.t-head .meta span { display: block; margin: 4pt 0; }

header.t-head::after {
  content: "Generated for offline durability. Source of record: tenet-5.github.io.";
  display: block;
  margin-top: 0.8in;
  font-size: 9pt;
  font-style: italic;
  color: #777;
}

/* ── Chapters: one per page, no mid-element splits ─────────────────── */
.chapter {
  page-break-before: page;
  break-before: page;
  page-break-inside: auto;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 0.4in 0 !important;
}
.chapter:first-of-type { page-break-before: page; break-before: page; }

.chapter h2 {
  font-family: Georgia, serif !important;
  font-size: 18pt !important;
  font-weight: 700 !important;
  color: #000 !important;
  margin: 0 0 6pt !important;
  line-height: 1.2 !important;
  page-break-after: avoid;
  break-after: avoid;
}
.chapter .num {
  font-family: "Courier New", Courier, monospace !important;
  font-size: 9.5pt !important;
  color: #555 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4pt;
}
.chapter .coord {
  font-family: "Courier New", Courier, monospace !important;
  font-size: 9pt !important;
  color: #777 !important;
  margin-bottom: 14pt;
}
.chapter .overlay {
  font-family: Georgia, serif !important;
  font-size: 14pt !important;
  font-weight: 700 !important;
  font-style: italic;
  color: #6a3500 !important;
  margin: 10pt 0 16pt !important;
  page-break-after: avoid;
  break-after: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
}
.chapter .narration {
  page-break-inside: auto;
}
.chapter .narration p {
  margin: 0 0 9pt !important;
  font-size: 11pt !important;
  orphans: 3;
  widows: 3;
}
.chapter .narration p:first-child {
  page-break-after: avoid;
  break-after: avoid;
}

/* ── Sources: visible URLs, kept with chapter ──────────────────────── */
.chapter .sources {
  margin-top: 16pt !important;
  padding-top: 8pt !important;
  border-top: 0.5pt solid #999 !important;
  font-family: "Courier New", Courier, monospace !important;
  font-size: 8.5pt !important;
  color: #333 !important;
  page-break-inside: avoid;
  break-inside: avoid;
}
.chapter .sources a {
  color: #000 !important;
  text-decoration: none !important;
  word-break: break-all;
}
/* Print the actual URL after the link label, scoped to source citations */
.chapter .sources a[href]::after {
  content: " ⟨" attr(href) "⟩";
  color: #666;
  font-size: 8pt;
}

/* Suppress URL printing for in-document anchors */
.chapter .sources a[href^="#"]::after { content: ""; }
