/* ═══════════════════════════════════════
   PRINT STYLES — ericks.org
   ═══════════════════════════════════════ */

@media print {
  /* Hide all non-content elements */
  nav, footer, .paywall, .audio-player-wrap,
  .n-search, .n-join, .hero-search, .hero-tags,
  .memb, .nums, .sec-all, .bm-amz, .print-hide,
  .reader-sidebar, .reader-toc-toggle, .reader-nav,
  .reader-continue, .book-header, .reviews-section,
  .fav-btn, .book-actions, .cookie-banner,
  #reviewsSection, #reader-paywall {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
    margin: 0;
    padding: 0;
  }

  .wrap {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Chapter reader content fills the page */
  .reader-layout {
    display: block !important;
  }

  .reader-content-area {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .reader-chapter-header {
    margin-bottom: 0.5cm;
  }

  .reader-chapter-title {
    font-size: 16pt;
    color: black;
  }

  .reader-chapter-num {
    font-size: 10pt;
    color: #666;
  }

  /* Worksheet images: full width, avoid breaking across pages */
  .reader-chapter-body img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    margin: 0.5cm 0;
  }

  /* General image handling */
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  /* Remove decorative styles */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a {
    color: black;
    text-decoration: none;
  }

  /* Blockquotes (source links) - subtle in print */
  blockquote {
    border-left: 2px solid #ccc;
    padding-left: 0.5cm;
    color: #666;
    font-size: 9pt;
  }
}
