/* ===================================================================
   THE UNITED STATES TIMES — Print Stylesheet
   Curtis License — LeMay Inc.
   Century Schoolbook 12pt, GPO margins, registry footer.
   =================================================================== */

@page {
  margin: 1in 1.25in;
}

@media print {
  /* Hide non-essential elements */
  .pillar-nav,
  .site-footer,
  .reading-progress,
  .article-share,
  .search-form,
  .search-button,
  .pillar-nav-arrow,
  .skip-link,
  .breadcrumb,
  .related-articles,
  .pillars-overview,
  .pillar-interlinks,
  .sibling-nav,
  .pagination,
  .footer-nav,
  .article-cluster-tag {
    display: none !important;
  }

  /* Base print typography */
  body {
    font-family: "Century Schoolbook", Georgia, "Times New Roman", serif;
    font-size: 12pt;
    line-height: 14pt;
    color: #000;
    background: #fff;
  }

  /* Masthead: minimal for print */
  .masthead {
    background: none !important;
    color: #000 !important;
    padding: 0 0 12pt 0;
    text-align: center;
    border-bottom: 1pt solid #000;
    margin-bottom: 18pt;
  }

  .masthead-title {
    color: #000 !important;
    font-size: 24pt;
    font-variant: small-caps;
    letter-spacing: 0.15em;
  }

  .masthead-rule {
    display: none;
  }

  .masthead-location {
    color: #333 !important;
    font-size: 9pt;
  }

  /* Content */
  .content-wrapper {
    max-width: 100%;
    padding: 0;
  }

  /* Headlines */
  .lead-headline,
  .article-headline {
    font-size: 20pt;
    line-height: 24pt;
    margin-bottom: 8pt;
  }

  .page-heading,
  .pillar-heading,
  .sub-pillar-heading {
    font-size: 18pt;
    line-height: 22pt;
    margin-bottom: 8pt;
  }

  /* Article body */
  .article-body {
    font-size: 12pt;
    line-height: 14pt;
  }

  .article-body p {
    margin-bottom: 8pt;
    text-align: justify;
    orphans: 3;
    widows: 3;
  }

  .article-body p:first-child::first-letter {
    float: none;
    font-size: 12pt;
    padding: 0;
  }

  .article-body h2 {
    font-size: 14pt;
    margin: 16pt 0 8pt;
    page-break-after: avoid;
  }

  .article-body h3 {
    font-size: 13pt;
    margin: 14pt 0 6pt;
    page-break-after: avoid;
  }

  .article-body blockquote {
    border-left: 2pt solid #000;
    padding-left: 12pt;
    margin: 10pt 0;
  }

  /* Show URLs as footnotes */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #333;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  .masthead-title::after {
    content: "" !important;
  }

  /* Page breaks */
  h1, h2, h3 {
    page-break-after: avoid;
  }

  .article-item {
    page-break-inside: avoid;
  }

  /* Byline */
  .article-byline-block,
  .lead-meta,
  .article-item-meta {
    font-size: 10pt;
    color: #333;
  }

  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  /* Registry footer — generated via @page @bottom-center in PDF renderers,
     but we also add a visible footer for standard print */
  body::after {
    content: "The United States Times \2014  Massachusetts Society of Journalism \2014  Pro Republica Aedificamus \2014  Curtis License";
    display: block;
    text-align: center;
    font-size: 8pt;
    color: #666;
    margin-top: 36pt;
    padding-top: 6pt;
    border-top: 0.5pt solid #000;
  }
}
