/* Contract: print only the headings and full body inside .print-content. */
@media print {
  @page { margin: var(--print-page-margin); }
  html, body { background: var(--color-surface); color: var(--color-text); font-size: var(--print-size); }
  body { line-height: var(--leading-body); }
  body * { visibility: hidden; }
  .print-content, .print-content * { visibility: visible; }
  /* Remove whole non-reading regions, rather than leaving invisible blank pages. */
  .skip-link, .preview-bar, .site-header, .breadcrumbs, .hero, .process-section,
  .closing, .trust-strip, .site-footer, .system-intro, .component-caption,
  .paper-specimen, .no-print, .system-section:not(.sample-section) { display: none !important; }
  .sample-section, .sample-layout, .reading-list, main, .shell {
    display: block; width: auto; max-width: none;
    padding: var(--space-0); margin: var(--space-0); background: transparent;
    border: 0;
  }
  .sample-section > .section-heading, .sample-layout > .section-heading { display: none; }
  .print-content { border: 0; border-radius: var(--radius-none); background: transparent;
    padding: var(--space-0); margin: var(--space-0) var(--space-0) var(--space-8);
    break-inside: auto;
  }
  .print-content > :not(h2):not(h3):not(.sample-text) { display: none !important; }
  .print-content h2, .print-content h3 { color: var(--color-text); font-size: var(--print-size);
    line-height: var(--leading-small); margin-block: var(--space-0) var(--space-4);
    break-after: avoid;
  }
  .print-content .sample-text { color: var(--color-text); font-size: var(--print-size);
    line-height: var(--leading-body); max-width: none; widows: 3; orphans: 3;
  }
}

/* Numbered short-message library: the number is already present in the HTML. */
@media print {
  .content-page .wish-list { list-style: none; padding: var(--space-0); }
  .content-page .wish-item { margin-block-end: var(--space-6); }
}
