/* ============================================
   PRINT STYLESHEET
   For per-article printing: factsheet format
   ============================================ */

@media print {
  @page {
    size: A4;
    margin: 2cm 1.8cm;
  }

  body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  /* Hide non-content chrome */
  .skip-link,
  .masthead,
  .site-nav,
  .site-footer,
  .masthead-search,
  .nav-toggle,
  .breadcrumb,
  .article-actions,
  .article-tags,
  .article-section-tag,
  .simons-take,
  .related-articles,
  .prev-next,
  .home-hero,
  .home-section,
  .home-nfsa,
  .ww-callout,
  .search-form-full,
  .search-filters,
  .hero-cta,
  .ww-cta,
  .ww-channel-embed,
  .ww-stats,
  .editorial-note,
  script,
  iframe,
  button,
  .print-button,
  .pdf-download {
    display: none !important;
  }

  .page-container,
  main {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Print header: site name + article title */
  .article-header::before {
    content: "simontownsendjournalist.com";
    display: block;
    font-family: Arial, sans-serif;
    font-size: 9pt;
    color: #555;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid #999;
    padding-bottom: 0.3cm;
    margin-bottom: 0.5cm;
  }

  h1 {
    font-family: Georgia, serif;
    font-size: 22pt;
    line-height: 1.2;
    margin: 0 0 0.3cm;
    page-break-after: avoid;
  }

  h2 {
    font-family: Georgia, serif;
    font-size: 14pt;
    margin: 0.5cm 0 0.2cm;
    page-break-after: avoid;
  }

  h3 {
    font-family: Georgia, serif;
    font-size: 12pt;
    margin: 0.4cm 0 0.2cm;
    page-break-after: avoid;
  }

  p, li {
    font-family: Georgia, serif;
    font-size: 11pt;
    line-height: 1.5;
    orphans: 3;
    widows: 3;
  }

  .article-byline {
    font-size: 10pt;
    color: #555;
    font-style: italic;
    margin-bottom: 0.5cm;
  }

  ul, ol {
    margin: 0.3cm 0 0.3cm 0.8cm;
  }

  li { margin-bottom: 0.15cm; }

  blockquote {
    border-left: 2pt solid #999;
    padding-left: 0.5cm;
    margin: 0.4cm 0;
    color: #333;
    font-style: italic;
  }

  /* Show URL after external links */
  .article-body a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
    word-break: break-all;
  }

  /* Don't show URL for internal links */
  .article-body a[href^="/"]::after { content: ""; }

  a {
    color: #000;
    text-decoration: none;
  }

  .article-body a { text-decoration: underline; }

  img, figure {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  figcaption {
    font-size: 9pt;
    color: #555;
    font-style: italic;
  }

  .article-footer {
    margin-top: 0.8cm;
    padding-top: 0.3cm;
    border-top: 1px solid #999;
    font-size: 9pt;
    color: #555;
  }

  .signoff {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 11pt;
    text-align: center;
    margin: 0.3cm 0;
  }

  /* Print footer via fixed position */
  .article-footer::after {
    content: "Simon Townsend, 1945-2025. simontownsendjournalist.com. Reproduced with permission of the Townsend family.";
    display: block;
    font-family: Arial, sans-serif;
    font-size: 8pt;
    color: #555;
    margin-top: 0.3cm;
    text-align: center;
  }
}
