/**
 * Print Stylesheet
 * Loaded only when printing — keeps article content clean on paper.
 *
 * @package FootballTimes
 */

@media print {

  /* ── Reset & Base ───────────────────────── */
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12pt;
    line-height: 1.6;
    color: #000;
    background: #fff;
    margin: 0;
    padding: 0;
  }

  /* ── Hide non-content elements ──────────── */
  .site-header,
  .site-footer,
  .sticky-share,
  .reading-progress,
  .category-strip,
  .hero-featured,
  .newsletter-section,
  .related-articles,
  .article-tags,
  .author-bio,
  .ft-adjacent-nav,
  .ft-share-row,
  .back-to-top,
  .mobile-menu,
  .search-overlay,
  .comments-area .comment-respond,
  nav,
  aside,
  #stickyShare,
  #backToTop,
  #ftLightbox,
  .skip-link {
    display: none !important;
  }

  /* ── Page setup ─────────────────────────── */
  @page {
    margin: 2cm 2.5cm;
    size: A4;
  }

  @page :first {
    margin-top: 3cm;
  }

  /* ── Links ──────────────────────────────── */
  a,
  a:visited {
    color: #000 !important;
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #555 !important;
    font-style: italic;
  }

  /* Don't print hash / javascript links */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: '';
  }

  /* ── Typography ─────────────────────────── */
  h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    color: #000 !important;
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  h1 { font-size: 24pt; margin-bottom: 12pt; }
  h2 { font-size: 18pt; margin-top: 18pt; margin-bottom: 8pt; }
  h3 { font-size: 14pt; margin-top: 14pt; margin-bottom: 6pt; }

  p {
    orphans: 4;
    widows: 4;
    margin-bottom: 10pt;
  }

  /* ── Article layout ─────────────────────── */
  .article-hero img {
    max-height: 280pt;
    width: 100% !important;
    object-fit: cover;
    margin-bottom: 16pt;
    page-break-after: avoid;
  }

  .article-hero__caption {
    font-size: 9pt;
    color: #666 !important;
    font-style: italic;
    text-align: right;
    margin-bottom: 20pt;
  }

  .article-header {
    padding: 0 0 16pt;
    border-bottom: 2pt solid #000;
    margin-bottom: 20pt;
  }

  .article-title {
    font-size: 26pt;
    line-height: 1.15;
    margin-bottom: 10pt;
  }

  .article-subtitle {
    font-size: 13pt;
    color: #333 !important;
    margin-bottom: 12pt;
  }

  .article-byline {
    font-size: 10pt;
    color: #444 !important;
    border-top: 1pt solid #ccc;
    padding-top: 8pt;
  }

  .byline-author img {
    display: none;
  }

  .byline-author-name {
    font-weight: bold;
  }

  .byline-divider {
    display: none;
  }

  /* ── Article body ───────────────────────── */
  .article-body,
  .story-body {
    font-size: 11pt;
    line-height: 1.7;
    max-width: 100% !important;
    padding: 0;
  }

  /* Drop cap — preserve on print */
  .article-body > p:first-of-type::first-letter,
  .drop-cap::first-letter {
    font-size: 48pt;
    line-height: 0.82;
    float: left;
    margin-right: 4pt;
    margin-top: 2pt;
    font-weight: bold;
  }

  /* ── Blockquotes ────────────────────────── */
  blockquote {
    border-left: 3pt solid #000;
    padding: 8pt 16pt;
    margin: 16pt 0;
    background: none;
  }

  blockquote p {
    font-size: 13pt;
    font-style: italic;
  }

  .pull-quote {
    border-top: 2pt solid #000;
    border-bottom: 2pt solid #000;
    padding: 12pt 0;
    margin: 20pt 0;
    text-align: center;
    background: none !important;
  }

  .pull-quote::before {
    display: none;
  }

  .pull-quote p {
    font-size: 16pt !important;
    color: #000 !important;
  }

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

  figure {
    page-break-inside: avoid;
    margin: 16pt 0;
  }

  figcaption {
    font-size: 9pt;
    color: #666 !important;
    font-style: italic;
    text-align: center;
    margin-top: 6pt;
  }

  /* ── Tables ─────────────────────────────── */
  table {
    border-collapse: collapse;
    width: 100%;
    font-size: 10pt;
  }

  th, td {
    border: 1pt solid #ccc;
    padding: 6pt 8pt;
    text-align: left;
  }

  th {
    font-weight: bold;
    background: #f0f0f0 !important;
    color: #000 !important;
  }

  /* ── Code ───────────────────────────────── */
  pre, code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 9pt;
    border: 1pt solid #ccc;
    padding: 2pt 4pt;
    background: #f8f8f8 !important;
    color: #000 !important;
  }

  pre {
    padding: 8pt;
    overflow: visible;
    white-space: pre-wrap;
    word-break: break-word;
  }

  /* ── Footer print watermark ─────────────── */
  .container--narrow::after {
    display: block;
    content: 'Printed from ' attr(data-site-url);
    font-size: 8pt;
    color: #999 !important;
    border-top: 1pt solid #ddd;
    padding-top: 8pt;
    margin-top: 24pt;
  }
}
