/* print-utils.css — reusable print-scoping for SILDIL calculators.
   Usage: add class="print-include" to any <section> you want printed.
   Add class="no-print" to anything inside it that should stay hidden. */

.print-only { display: none; }

@media print {
  nav, footer, header, #modal-root, .share-toast,
  .calc-result-share-btn, .bl-advanced-toggle-btn,
  .tool-calc-chip-group, .no-print {
    display: none !important;
  }

  main > section { display: none !important; }
  main > section.print-include {
    display: block !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    border-radius: 0 !important;
    /* page-break-inside: avoid;  ← REMOVED: was forcing whole tall
       sections onto the next page, leaving the previous page blank */
  }

  /* Apply "avoid" only to small, genuinely atomic blocks so a single
     row/card doesn't get split mid-way across a page break */
  main > section.print-include .bkgrnd-color-f8f8f8,
  main > section.print-include table tr {
    page-break-inside: avoid;
  }

  main { max-width: 100% !important; }
  .print-only { display: block !important; }
}