/* Print-only styling for the single-page render that mkdocs-print-site generates.
   Everything here is scoped to #print-site-page so it cannot affect the web site.

   print-site has no harmonic theme support and warns as much on every build, so the
   theme's own print behaviour is unverified — these rules cover the parts that
   demonstrably differ between screen and paper. */

/* The site's left-border treatment on nested lists reads as an artifact once the
   whole table of contents is one long printed list. */
#print-site-page ul.toc-section-line-border {
  border-left: none;
}

/* Box shadows render as grey smears in PDF; a hairline border carries the same
   table boundary that the shadow does on screen. */
#print-site-page table {
  border: 1px solid hsla(200, 18%, 26%, 1);
  box-shadow: none !important;
}

@media print {
  /* Printed tables cannot scroll, so long unbroken cell content (paths, register
     names) has to wrap rather than overflow the page width. */
  #print-site-page td {
    word-wrap: break-word;
  }
}

/* Applies when a reader prints the page from a browser. The action's PDF geometry
   comes from Puppeteer's own page.pdf() format and margins, which take precedence
   over this rule. */
@page {
  size: A4 portrait;
  margin: 4em 1.5em;
}
