/* Print-only corrections for mkdocs-with-pdf.
 *
 * The plugin's print stylesheet sets
 *
 *     article, section + section { page-break-before: always; min-height: 100vh; }
 *
 * and the min-height is what silently truncates the manual. An element whose
 * minimum height is a whole page cannot fit inside a page box once its own
 * margins are added, so WeasyPrint fails to place it — and everything from that
 * point to the end of the document is dropped. Where it bites depends on where
 * the page boundary happens to fall, which is why the manual lost a different
 * set of chapters every time its contents changed, and why the ones it lost
 * rendered perfectly well on their own.
 *
 * page-break-before already starts each article on a fresh page. The min-height
 * only forced it to fill one.
 */
@media print {
  article,
  section + section {
    min-height: 0 !important;
  }
}
