/* Liebling — PRINT: show only post title + body */
@media print {
  /* Page setup */
  @page { size: A4; margin: 2cm; }

  html, body { background: #fff !important; color: #000 !important; }

  /* Hide EVERYTHING by default… */
  body * { visibility: hidden !important; }

  /* …then show ONLY the article (title + content) */
  article, article * { visibility: visible !important; }

  /* Inside the article, hide non-content blocks so only the title + body remain */
  .print-pill,
  .m-share,
  .m-tags,
  .m-subscribe-section,
  .m-author,
  .m-comments,
  .js-native-comments,
  .js-third-party-comments,
  .m-recommended,
  .m-heading__meta,
  .in-caption,
  .l-wrapper.in-caption,
  .js-sticky,
  .swiper,
  .swiper-wrapper,
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
    visibility: hidden !important;
  }

  /* Hide site chrome above the article (nav/header/footer, etc.) */
  .c-header, .c-footer, nav, .gh-head, .gh-foot { display: none !important; }

  /* Explicitly hide theme/dark-mode toggles (seen in your PDF) */
  .js-toggle-dark-mode,
  .js-toggle-theme,
  .m-toggle,
  .theme-toggle,
  [data-action="toggle-theme"] { display: none !important; }

  /* Hide the hero/feature cover (to avoid duplicate titles above the H1) */
  .m-hero { display: none !important; }

  /* Make the printed content full width and clean */
  .main-wrap, article, .l-content.in-post, .l-wrapper.in-post, .js-post-content {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Typography for paper */
  .m-heading__title.in-post {
    font-size: 22pt !important;
    line-height: 1.2 !important;
    margin: 0 0 12pt !important;
  }
  .js-post-content { font-size: 12pt !important; line-height: 1.5 !important; }

  /* Avoid awkward page breaks + remove URL tails */
  img, pre, blockquote, table, h1, h2, h3 { break-inside: avoid; page-break-inside: avoid; }
  a[href]::after { content: "" !important; }
}
