@media print {
  html[data-theme] body {
    background: #fff !important;
    color: #111 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  h1,
  h2,
  h3,
  h4 {
    break-after: avoid-page;
    color: #111 !important;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  pre,
  table,
  blockquote {
    break-inside: avoid-page;
  }

  pre > code {
    font-size: 8pt !important;
    line-height: 1.15 !important;
  }

  a {
    color: inherit !important;
  }
}
