/* R38 opt-in A4 paper-layout candidate for learning-diagnosis and checklist.
   The existing R35 remains unchanged. This is not a native-Chrome-PDF QA claim.
   Structural print adjustments only: no export script, network or data changes. */
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  html, body { background:#fff !important; color:#111 !important;
               -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .ribbon, .related, .sub-end, .side-column, .tool-copy-fallback,
  .tool-print-action, .tool-save-action, #checklist-print,
  .tool-warning, .study-tool-promo-actions { display:none !important; }
  .study-tool-layout,.checklist-section,#study-results {
    width:100%!important; max-width:none!important; padding:0!important;
    overflow:visible!important; box-shadow:none!important;
  }
  #study-results .result-heading,#study-results h2,#study-results h3 {
    break-after:avoid-page!important; page-break-after:avoid!important;
  }
  /* Chrome fragmented two-column grids may split/clip day cards.
     Prefer a slightly longer but reliably readable one-column document. */
  #study-results .daily-plan {
    display:block!important; width:100%!important; columns:auto!important;
  }
  #study-results .daily-plan > li {
    display:block!important; margin:0 0 2.5mm!important;
    break-inside:avoid-page!important; page-break-inside:avoid!important;
    overflow:visible!important; min-height:0!important;
    border:1px solid #aab5b3!important; padding:2.5mm 3mm!important;
  }
  #study-results .daily-plan > li strong,
  #study-results .daily-plan > li span {
    display:block!important; overflow-wrap:anywhere!important;
    font-size:9.5pt!important; line-height:1.5!important;
  }
  #study-results .daily-plan > li span {font-size:9pt!important;}
  .priority-pills, .result-heading, .checklist-progress {
    break-inside:avoid-page!important;
  }
  .exam-checklist {
    display:block!important; columns:auto!important; gap:0!important;
  }
  .exam-checklist label {
    display:flex!important; align-items:flex-start!important;
    width:100%!important; min-height:0!important; padding:2.5mm!important;
    margin:0 0 3mm!important; break-inside:avoid-page!important;
    page-break-inside:avoid!important; overflow:visible!important;
  }
  .exam-checklist label b,.exam-checklist label small {
    overflow-wrap:anywhere!important; line-height:1.55!important;
  }
  .exam-checklist input[type=checkbox] {
    appearance:auto!important; -webkit-appearance:checkbox!important;
    width:4mm!important; height:4mm!important; flex-shrink:0!important;
    accent-color:#222!important;
  }
}
