.manual-pdf-cover { display: none; }

@media print {
  @page {
    size: A4;
  }

  html,
  body,
  .page,
  .main,
  .content,
  .article-container,
  article[role="main"] {
    background: #fff !important;
    box-sizing: border-box;
    color: #111;
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .sidebar-drawer,
  .toc-drawer,
  .mobile-header,
  .skip-to-content,
  .related-pages,
  .moth-header,
  .moth-header-rule,
  .moth-footer,
  article[role="main"] > h1:first-child {
    display: none !important;
  }

  .manual-pdf-cover {
    align-items: center;
    break-after: page;
    color: #111a3d;
    display: flex;
    flex-direction: column;
    height: 245mm;
    justify-content: center;
    page-break-after: always;
    text-align: center;
  }

  .manual-pdf-cover h1 {
    color: #111a3d;
    font-size: 34pt;
    margin: 10mm 0 4mm;
  }

  .manual-pdf-product {
    color: #67a34b;
    font-family: "Bree Serif", Georgia, serif;
    font-size: 20pt;
    margin: 0;
  }

  .manual-pdf-version {
    color: #59606f;
    font-size: 13pt;
    margin: 0;
  }

  article[role="main"] > section {
    break-before: page;
    page-break-before: always;
  }

  article[role="main"] > .manual-pdf-cover + section {
    break-before: auto;
    page-break-before: auto;
  }

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

  a,
  a:visited {
    color: #111a3d !important;
    text-decoration: none;
  }

  img {
    break-inside: avoid;
    max-height: 235mm;
    object-fit: contain;
    page-break-inside: avoid;
  }
}
