/* Print stylesheet: keep the logo and page contents, hide header, footer, and non-essential UI */

@media print {
  /* Hide site chrome */
  header,
  footer,
  nav,
  .no-print,
  [class*="adslot" i],
  [class*="AdSlot" i],
  .ql-toolbar,
  .rich-editor .ql-toolbar {
    display: none !important;
  }

  /* Reset page background and text for paper */
  html,
  body,
  #root,
  .min-h-screen,
  main {
    background: white !important;
    color: black !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Show a print-only logo at the top of every page */
  body::before {
    content: url("/__l5e/assets-v1/14108cfd-c3c3-471f-b548-b43bc63bcab0/web-of-screams-logo.png");
    display: block;
    text-align: center;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
    position: relative;
    z-index: 9999;
  }

  /* Neutralize negative top margin on hero sections so the logo isn't covered */
  [class*="-mt-16"],
  [class*="-mt-20"] {
    margin-top: 0 !important;
  }

  /* Ensure main content fills the page and is readable */
  main,
  .container-narrow,
  .container-wide,
  .container-full {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 1rem !important;
  }

  /* Remove shadows, animations, and decorative overlays */
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  /* Make links readable but still show their href */
  a {
    color: black !important;
    text-decoration: underline !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  /* Avoid breaking key content blocks across pages */
  img,
  figure,
  table,
  blockquote,
  .article-content,
  .aspect-editorial,
  .aspect-cinema,
  .aspect-portrait {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Ensure headings don't get orphaned */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  /* Hide interactive or non-content elements that might leak through */
  button,
  [role="button"],
  .btn-premium,
  iframe,
  .grecaptcha-badge,
  .adsbygoogle,
  [data-adsbygoogle-status] {
    display: none !important;
  }
}
