/* ============================================================
   Print stylesheet — clean printable dossiers
   Loaded automatically via media="print" in head.php
   ============================================================ */

@media print {

  /* ─── Hide all chrome ──────────────────────────────────── */

  .site-header,
  .nav-toggle,
  .nav-backdrop,
  .justice-banner,
  .breadcrumbs,
  .actor-filter-bar,
  .search-module,
  .dossier-sidebar,
  .related-docs,
  .source-links,
  .anchor-copy,
  .file-number,
  .updates-teaser,
  .share-buttons,
  footer,
  script {
    display: none !important;
  }

  /* ─── Reset page to print-friendly defaults ────────────── */

  html, body {
    background: #fff !important;
    color: #000 !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11pt;
    line-height: 1.45;
  }

  body {
    padding: 0 !important;
    margin: 0 !important;
  }

  .wrapper {
    display: block !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  main.page-content {
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
  }

  /* ─── Frames → flat boxes ──────────────────────────────── */

  .glossy-frame,
  #actor-dossier,
  section.glossy-frame {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 0 0.5cm !important;
  }

  /* ─── Headings: high contrast, no glow ─────────────────── */

  h1, h2, h3, h4 {
    color: #000 !important;
    text-shadow: none !important;
    page-break-after: avoid;
  }

  h1 {
    font-size: 22pt;
    letter-spacing: 0;
    text-transform: none;
    margin: 0 0 0.4cm;
    border-bottom: 2px solid #000;
    padding-bottom: 0.2cm;
  }

  h2 {
    font-size: 14pt;
    text-transform: none;
    margin: 0.7cm 0 0.2cm;
    border-bottom: 1px solid #777;
    padding-bottom: 0.1cm;
  }

  h3 {
    font-size: 12pt;
    text-transform: none;
    margin: 0.5cm 0 0.15cm;
  }

  /* ─── Banner: keep image small, content visible ────────── */

  #actor-dossier .dossier-banner {
    border: 1px solid #000 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin-bottom: 0.5cm;
    page-break-inside: avoid;
    page-break-after: avoid;
  }

  #actor-dossier .dossier-banner .banner-media {
    height: 4cm !important;
  }

  #actor-dossier .dossier-banner .banner-media img {
    filter: grayscale(1) contrast(1.1) !important;
  }

  #actor-dossier .dossier-banner .banner-text {
    position: static !important;
    background: #fff !important;
    padding: 0.4cm !important;
  }

  #actor-dossier .dossier-banner h1 {
    border-bottom: none;
  }

  .role-chip {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }

  .subtitle::before,
  .subtitle::after {
    content: "" !important;
  }

  .subtitle {
    font-style: italic;
    color: #555 !important;
    opacity: 1 !important;
  }

  /* ─── Body prose ───────────────────────────────────────── */

  p, li {
    color: #000 !important;
    orphans: 3;
    widows: 3;
  }

  section {
    page-break-inside: avoid;
  }

  .glitch-line {
    font-style: italic;
    color: #444 !important;
    border-left: 2px solid #444;
    padding-left: 0.4cm;
    animation: none !important;
  }

  .neon-line {
    background: #000 !important;
    box-shadow: none !important;
    height: 1px !important;
    margin: 0.6cm 0 !important;
  }

  /* ─── Links: show URLs after the text ──────────────────── */

  a {
    color: #000 !important;
    text-decoration: underline !important;
    border-bottom: none !important;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
    word-wrap: break-word;
  }

  /* Don't dump hashes for in-page anchor links */
  a[href^="#"]::after { content: ""; }

  /* Don't dump mailto: for email links */
  a[href^="mailto:"]::after { content: ""; }

  /* ─── Page setup ───────────────────────────────────────── */

  @page {
    size: letter;
    margin: 2cm 1.8cm;
  }
}
