/* TENET5 — Article 15 Referral Package print stylesheet.
   Pairs with article-15-referral.html and the existing
   scene-template.css. The interactive walkthrough chrome is hidden
   in print, every scene is shown stacked (not absolute-positioned),
   and the document is formatted for an ICC OTP submission package
   at A4 page size with legal-document margins.
   Powered by LIRIL AI | SEED 118400. */

@media print {
  /* Page setup — A4 with legal-document margins */
  @page {
    size: A4;
    margin: 1.6cm 1.8cm;
  }

  /* Force light theme for print so the PDF reads on paper */
  body.topo {
    background: #ffffff !important;
    color: #111111 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Strip non-essential chrome */
  .grain-overlay,
  .vignette,
  .skip-link,
  #site-header-frame,
  #site-footer-frame,
  .walkthrough-chrome,
  .wt-progress,
  .wt-counter,
  .wt-btn,
  #liril-narrate-toggle,
  audio,
  video {
    display: none !important;
  }

  /* Header — keep but flatten */
  .page-header {
    border-bottom: 1px solid #cccccc;
    padding-bottom: 0.6cm;
    margin-bottom: 0.6cm;
  }
  .page-header h1 {
    color: #111111 !important;
    font-size: 22pt;
  }
  .page-header p {
    color: #444444 !important;
  }

  /* Slate intro card */
  .ts-slate {
    background: #f6f6f6 !important;
    border-left: 3px solid #c41e3a;
    padding: 0.4cm 0.6cm;
    margin-bottom: 0.6cm;
  }
  .ts-fact {
    color: #111111 !important;
  }

  /* Override scene-template absolute positioning so every scene
     prints in document order. */
  .walkthrough-host {
    position: static !important;
    width: auto !important;
    min-height: 0 !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }
  .scene {
    position: static !important;
    inset: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0.4cm 0 !important;
    page-break-inside: avoid;
    color: #111111 !important;
    background: #ffffff !important;
  }
  .scene + .scene {
    border-top: 1px dashed #cccccc;
    margin-top: 0.4cm;
  }
  .scene__inner {
    max-width: none !important;
    text-align: left !important;
  }
  .scene__act {
    color: #6b3a06 !important;
    font-size: 9pt;
  }
  .scene__rome {
    color: #6b3a06 !important;
    font-size: 9pt;
  }
  .scene__headline {
    color: #111111 !important;
    font-size: 16pt;
    font-weight: 700;
    margin: 0 0 0.25cm 0;
  }
  .scene__subhead {
    color: #444444 !important;
    font-size: 10.5pt;
    margin: 0;
  }
  .scene--quote .scene__quote {
    color: #111111 !important;
    font-size: 12pt;
    font-style: italic;
    border-left: 2px solid #888888;
    padding-left: 0.4cm;
    margin: 0 0 0.25cm 0;
  }
  .scene--quote .scene__cite {
    color: #444444 !important;
    font-size: 10pt;
    font-style: normal;
  }
  .scene--quote .scene__cite-meta {
    color: #666666 !important;
    font-size: 9pt;
  }
  .scene--stat .scene__stat-value {
    color: #c41e3a !important;
    font-size: 26pt;
    font-weight: 800;
  }
  .scene--stat .scene__stat-unit {
    color: #111111 !important;
    font-size: 11pt;
  }
  .scene--stat .scene__stat-context {
    color: #333333 !important;
    font-size: 10pt;
    text-align: left;
    max-width: none;
    margin: 0.2cm 0;
  }
  .scene--impact .scene__headline {
    color: #111111 !important;
    font-size: 13pt;
    font-weight: 700;
  }
  .scene--impact .scene__body {
    color: #222222 !important;
    font-size: 10.5pt;
    line-height: 1.45;
    text-align: left;
    max-width: none;
  }
  .scene--impact .scene__body p {
    margin-bottom: 0.25cm;
  }
  .scene--impact .scene__body ul,
  .scene--impact .scene__body ol {
    color: #222222 !important;
  }
  .scene--impact .scene__body strong {
    color: #111111 !important;
  }
  .scene__source {
    background: #ffffff !important;
    color: #1a4d8a !important;
    border: 1px solid #aaaaaa !important;
    padding: 0.05cm 0.18cm;
    font-size: 9pt;
    margin-top: 0.15cm;
  }
  .scene__source::after {
    content: " (printed reference)";
    color: #777777;
    font-size: 8.5pt;
  }

  /* Anchor URLs printed inline so the PDF retains the citation */
  .scene__body a[href]::after {
    content: " [" attr(href) "]";
    color: #1a4d8a;
    font-size: 8.5pt;
    word-break: break-all;
  }

  /* Don't print the trailing nav links section */
  main > section.tnt-style-6 {
    display: none !important;
  }

  /* Outro chapter — kept as final separator */
  .scene--chapter:last-child {
    page-break-before: avoid;
    border-top: 1px solid #c41e3a;
    margin-top: 0.4cm;
    padding-top: 0.4cm;
  }
}

/* On-screen, the print tip helper is shown above the walkthrough so
   the owner sees the Save-as-PDF instruction without printing. */
.print-tip {
  background: rgba(196, 30, 58, 0.08);
  border: 1px solid rgba(196, 30, 58, 0.3);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  margin: 0.8rem 0 1.4rem;
  font-size: 0.92rem;
  color: rgba(245, 245, 245, 0.85);
}
.print-tip strong { color: #c41e3a; }
@media print {
  .print-tip { display: none !important; }
}
