@media print {
  :root {
    --bg: #ffffff;
    --text: #000000;
    --text-soft: #222222;
    --muted: #444444;
    --border: #999999;
    --border-soft: #cccccc;
    --code-bg: #f6f6f6;
  }

  .topbar,
  .panel,
  .to-top,
  .skip-link,
  .notice,
  .code-copy {
    display: none !important;
  }

  .page {
    padding: 0;
  }

  .doc {
    width: auto;
    padding: 0;
  }

  .doc-section + .doc-section {
    border-top: 0;
  }

  body {
    font-size: 11pt;
  }

  a {
    color: #000000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #444444;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  h1 {
    page-break-before: always;
  }

  .content__hero h1,
  h1:first-of-type {
    page-break-before: avoid;
  }

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