/*
 * print.css
 * What happens when "Create PDF" opens the browser's print window:
 * only the selected transcripts are printed, one per A4 page, with no margins
 * (the design already has its own margins and its sidebar runs to the page edge).
 * Nothing from the tool's own house style reaches the PDF.
 */

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html, body { background: #fff; height: auto; }

  /* Hide the tool */
  .panel,
  .desk-heading,
  .page-wrap figcaption,
  .empty { display: none !important; }

  .app   { display: block; min-height: 0; }
  .desk  { padding: 0; background: none; outline: none; }
  #pages { display: block; }

  /* One transcript per page */
  .page-wrap {
    display: block;
    margin: 0;
    break-after: page;
    page-break-after: always;
  }
  /* app.js marks the last selected page, so unticked pages at the end never leave a blank page */
  .page-wrap.last-included { break-after: auto; page-break-after: auto; }
  .page-wrap.excluded { display: none; }

  .sheet { zoom: 1; opacity: 1; }
}
