/* Verax Notícias — Print Stylesheet v1 */

@media print {

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

  /* ── Hide non-content elements ───────────────────────────────────── */
  header,
  nav,
  footer,
  aside,
  [class*="sidebar"],
  [class*="Sidebar"],
  [class*="weather"],
  [class*="Weather"],
  [class*="breaking"],
  [class*="Breaking"],
  [class*="ad-"],
  [class*="Ad"],
  [class*="banner"],
  [class*="Banner"],
  [class*="verax-ad"],
  [class*="slot"],
  [class*="social"],
  [class*="share"],
  [class*="Share"],
  [class*="related"],
  [class*="Related"],
  [class*="newsletter"],
  [class*="Newsletter"],
  [class*="mostread"],
  [class*="most-read"],
  [class*="recommended"],
  [class*="comment"],
  [class*="Comment"],
  [class*="floating"],
  [id*="ad-"],
  [id*="banner"],
  [id*="sidebar"],
  button,
  .no-print {
    display: none !important;
  }

  /* ── Page layout ─────────────────────────────────────────────────── */
  html,
  body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  /* Full-width single column */
  #root > *,
  main,
  [class*="container"],
  [class*="Container"],
  [class*="wrapper"],
  [class*="content"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
  }

  /* ── Article typography ──────────────────────────────────────────── */
  article,
  [class*="article"],
  [class*="Article"],
  [class*="post-body"],
  [class*="PostBody"],
  [class*="content-body"] {
    font-size: 12pt !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
  }

  /* Keep article title large */
  h1 {
    font-size: 20pt !important;
    line-height: 1.3 !important;
    margin-bottom: 8pt !important;
    page-break-after: avoid;
  }

  h2 { font-size: 15pt !important; page-break-after: avoid; }
  h3 { font-size: 13pt !important; page-break-after: avoid; }

  p, blockquote {
    orphans: 3;
    widows: 3;
    page-break-inside: avoid;
  }

  blockquote {
    border-left: 3pt solid #333 !important;
    padding-left: 8pt !important;
    font-style: italic !important;
    margin: 10pt 0 !important;
  }

  /* ── Images ──────────────────────────────────────────────────────── */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
    display: block;
    margin: 8pt auto;
  }

  figure { page-break-inside: avoid; }

  figcaption {
    font-size: 9pt !important;
    color: #555 !important;
    text-align: center !important;
    margin-top: 4pt !important;
  }

  /* ── Links ───────────────────────────────────────────────────────── */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555 !important;
    word-break: break-all;
  }

  /* Skip internal and hash links */
  a[href^="#"]::after,
  a[href^="/"]::after {
    content: "";
  }

  /* ── Author / meta info ──────────────────────────────────────────── */
  [class*="author"],
  [class*="Author"],
  [class*="byline"],
  [class*="published"],
  [class*="date"] {
    font-size: 10pt !important;
    color: #444 !important;
    margin-bottom: 8pt !important;
  }

  /* ── Footer watermark ────────────────────────────────────────────── */
  body::after {
    content: "Verax Notícias — veraxnoticias.com.br";
    display: block;
    margin-top: 20pt;
    padding-top: 8pt;
    border-top: 1pt solid #ccc;
    font-size: 9pt;
    color: #666 !important;
    text-align: center;
  }

  /* ── Page breaks ─────────────────────────────────────────────────── */
  @page {
    margin: 15mm 20mm;
    size: A4 portrait;
  }
}
