/* =====================================================================
   Print stylesheet — loaded with media="print", so it never affects the
   screen. The goal is a clean, ink-friendly reading copy of an article:
   adverts, navigation, sidebars, forms and other interactive furniture
   are dropped, link targets are expanded, and everything is forced to
   black on white so dark mode cannot waste toner.
   ===================================================================== */

@page { margin: 1.6cm; }

*,
*::before,
*::after {
  background: transparent !important;
  color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: none !important;
  animation: none !important;
}

html, body { margin: 0; font-size: 12pt; line-height: 1.5; }

/* ---------------------------------------------------------------
   Furniture that makes no sense on paper.
   --------------------------------------------------------------- */
.top-ad,
.topbar,
.masthead,
.site-nav,
nav,
.site-footer,
#newsletter,
.newsletter-strip,
.sidebar,
aside,
.ad-slot,
.share-bar,
.article-share,
.related,
.comment-form,
.comment-reply,
.pagination,
.to-top,
.skip-link,
.btn,
button,
input,
textarea,
select,
[data-theme-toggle],
[data-nav-toggle],
[data-nav-backdrop] {
  display: none !important;
}

/* ---------------------------------------------------------------
   One column, no chrome.
   --------------------------------------------------------------- */
.wrap,
.main-content,
.layout-main {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ---------------------------------------------------------------
   Expand link targets so a printed page is still useful.
   --------------------------------------------------------------- */
a { color: #000 !important; text-decoration: none; }
.article-body a[href]::after,
.comment-body a[href]::after {
  content: " (" attr(href) ")";
  font-size: 90%;
  color: #444 !important;
  word-break: break-all;
}

/* ---------------------------------------------------------------
   Typography, images and page breaks.
   --------------------------------------------------------------- */
h1, h2, h3, h4 { color: #000 !important; page-break-after: avoid; }
img { max-width: 100% !important; height: auto !important; page-break-inside: avoid; }
figure, table, pre, blockquote { page-break-inside: avoid; }
p, blockquote, figure { orphans: 3; widows: 3; }
.comment { border: 1px solid #999 !important; page-break-inside: avoid; }
