/* MALWAREZERO — PRINT STYLESHEET */
/* Clean, black-on-white printing for all pages */

@media print {
  /* Reset */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Hide non-essential elements */
  .header,
  .footer,
  .mobile-menu-toggle,
  .inline-cta,
  .footer-cta,
  .share-buttons,
  .prev-next-nav,
  .related-content,
  .toc-sidebar,
  .cookie-banner,
  .feedback-widget,
  nav,
  .skip-link,
  .hero-actions,
  .btn,
  .attack-card-footer,
  .threat-badge {
    display: none !important;
  }

  /* Show print header */
  .print-header {
    display: block !important;
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid black;
  }

  /* Layout */
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    font-family: Georgia, serif;
  }

  /* Typography */
  h1 { font-size: 24pt; margin-bottom: 12pt; }
  h2 { font-size: 18pt; margin-bottom: 8pt; page-break-after: avoid; }
  h3 { font-size: 14pt; margin-bottom: 6pt; }
  p { margin-bottom: 12pt; }

  /* Links */
  a {
    text-decoration: underline;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  /* Code blocks */
  pre, code {
    border: 1px solid #ccc !important;
    background: #f5f5f5 !important;
    color: #333 !important;
    font-size: 10pt;
    white-space: pre-wrap;
    word-break: break-word;
  }

  /* Tables */
  table {
    border-collapse: collapse !important;
    width: 100%;
  }
  th, td {
    border: 1px solid #ccc !important;
    padding: 8px !important;
    text-align: left;
  }
  th {
    background: #f0f0f0 !important;
  }

  /* Images */
  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }

  /* Sections */
  section {
    page-break-inside: avoid;
  }

  /* FAQ items */
  details {
    page-break-inside: avoid;
  }

  /* Glossary terms */
  .glossary-term {
    font-weight: bold;
    border-bottom: 1px solid #ccc;
  }

  /* Show URLs for nav links */
  .header-nav-link::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
}
