/* Print styles for the AI Defensibility Check report.
   Only #printable-report prints. Everything else is removed from layout with
   display:none (not visibility:hidden): hidden-but-present content still drives
   pagination, which printed the one-page report as four pages (found by an
   independent page.pdf() check, 2026-09-18). Greyscale-safe: every band chip
   carries its word, not just its color. Fits one US Letter page. */

@media print {
  @page {
    size: letter;
    margin: 0.6in;
  }

  html, body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Drop every top-level block except the report section. */
  body > *:not(#report-section) {
    display: none !important;
  }

  /* Inside the report section keep only the report itself. */
  #report-section {
    display: block !important;
    padding: 0 !important;
    background: #ffffff !important;
  }
  #report-section > div {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #report-section > div > *:not(#printable-report) {
    display: none !important;
  }

  #printable-report {
    margin: 0;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  #printable-report a {
    color: inherit !important;
    text-decoration: none !important;
  }

  #printable-report * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color-adjust: exact;
    break-inside: avoid;
  }
}
