@media print {

  /* =========================================================
     1. Page setup
     ========================================================= */

  @page {
    margin: 2.2cm;
  }

  html,
  body {
    background: #ffffff !important;
    color: #111111 !important;
  }

  body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11.5pt;
    line-height: 1.55;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* =========================================================
     2. Remove site chrome and specifically excluded blocks
     ========================================================= */

  header,
  nav,
  .hero,
  .hero-media,
  .hero-overlay,
  .site-footer,
  .breadcrumbs {
    display: none !important;
  }

  .no-print {
    display: none !important;
  }

  @media print {
    .print-only,
    .print-title-block,
    .print-cover-page {
      display: block !important;
    }
  }

  .dataset-print-reference {
    margin-top: 0.28cm;
    font-size: 9.5pt;
    line-height: 1.35;
    color: #333333 !important;
  }

  .dataset-citation details,
  .dataset-citation summary,
  .dataset-bibtex,
  .copy-btn {
    display: none !important;
  }

  /* =========================================================
     3. Main layout reset
     ========================================================= */

  main,
  .site-container,
  .container,
  article.notebook-entry {
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #111111 !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  main > h1,
  main > h2,
  main > h3,
  main > h4,
  main > h5,
  main > h6,
  main > p,
  main > ul,
  main > ol,
  main > hr,
  main > blockquote {
    color: #111111 !important;
    background: transparent !important;
  }

  /* =========================================================
     4. Typography cleanup
     ========================================================= */

  h1, h2, h3, h4, h5, h6,
  p, li, blockquote, figcaption,
  .notebook-entry-header,
  .notebook-entry-body,
  .notebook-meta,
  .notebook-entry-summary,
  .notebook-taxonomy,
  .taxonomy-label,
  .taxonomy-link,
  .notebook-kicker,
  .print-imprint,
  .print-journal,
  .print-tagline,
  .print-title,
  .print-meta,
  .print-cover-mark,
  .print-cover-tagline,
  .print-cover-title,
  .print-cover-meta {
    color: #111111 !important;
    background: transparent !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }

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

  h1 + *,
  h2 + *,
  h3 + * {
    page-break-before: avoid;
    break-before: avoid-page;
  }

  .notebook-entry-header,
  .print-title-block {
    page-break-inside: avoid;
    break-inside: avoid-page;
  }

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

  /* =========================================================
     5. Hide normal on-screen post header
     ========================================================= */

  .notebook-entry-header {
    display: none !important;
  }

  /* =========================================================
     6. Print cover page
     ========================================================= */

  .print-cover-page {
    display: block !important;
    min-height: 23cm;
    page-break-after: always;
    break-after: page;
  }

  .print-cover-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 23cm;
  }

  .print-cover-mark {
    font-size: 12pt;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.2cm;
  }

  .print-cover-tagline {
    font-size: 10.5pt;
    font-style: italic;
    margin-bottom: 2.2cm;
    color: #444444 !important;
  }

  .print-cover-title {
    font-size: 28pt;
    line-height: 1.15;
    margin: 0 0 0.6cm 0;
    max-width: 85%;
    font-weight: 700;
  }

  .print-cover-meta {
    font-size: 11pt;
    color: #444444 !important;
  }

  /* =========================================================
     7. Print title block
     ========================================================= */

  .print-title-block {
    display: block;
    margin-bottom: 1.6cm;
    text-align: left;
  }

  .print-imprint {
    margin-bottom: 0.6cm;
  }

  .print-journal {
    display: block;
    font-size: 11pt;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .print-tagline {
    display: block;
    font-size: 10pt;
    font-style: italic;
    margin-top: 0.1cm;
    color: #444444 !important;
  }

  .print-title {
    font-size: 22pt;
    line-height: 1.2;
    margin: 0 0 0.4cm 0;
    font-weight: 700;
  }

  .print-meta {
    font-size: 10pt;
    color: #444444 !important;
    margin-bottom: 0.6cm;
  }

  .print-title-block::after {
    content: "";
    display: block;
    margin-top: 0.8cm;
    border-bottom: 1px solid #999999;
  }

  /* =========================================================
     8. Content area
     ========================================================= */

  .notebook-entry-body {
    margin: 0 !important;
    padding: 0 !important;
  }

  .notebook-entry-body p {
    margin: 0 0 0.45cm 0 !important;
  }

  .notebook-entry-body img,
  .notebook-entry-body figure,
  .notebook-entry-body table,
  .notebook-entry-body pre,
  .notebook-entry-body blockquote {
    page-break-inside: avoid;
    break-inside: avoid-page;
  }

  .notebook-entry-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0.5cm auto !important;
    border: 0 !important;
    background: transparent !important;
  }

  figure {
    margin: 0.6cm 0 !important;
  }

  figcaption {
    font-size: 9.5pt !important;
    line-height: 1.35;
    margin-top: 0.2cm !important;
  }

  blockquote {
    margin: 0.6cm 0 !important;
    padding: 0.2cm 0 0.2cm 0.45cm !important;
    border-left: 2px solid #999999 !important;
  }

  /* =========================================================
     9. Links
     ========================================================= */

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

  .taxonomy-link {
    border: 0 !important;
  }

  /* =========================================================
     10. Hide web-only extras included by the post layout
     ========================================================= */

  .related-entries,
  .related-summary,
  .related-entries-inner,
  .notebook-entry-footer,
  .series-nav,
  .entry-nav,
  .entry-nav-back {
    display: none !important;
  }

  /* =========================================================
     11. Default-layout content pages (methods / programme pages)
     ========================================================= */

  .page-tools {
    display: none !important;
  }

  main > h1:first-of-type {
    margin-top: 0 !important;
    margin-bottom: 0.75cm !important;
    font-size: 22pt !important;
    line-height: 1.2;
    font-weight: 700;
    padding-bottom: 0.45cm;
    border-bottom: 1px solid #999999;
  }

  main > h2 {
    margin-top: 0.9cm !important;
    margin-bottom: 0.28cm !important;
    font-size: 14pt !important;
    line-height: 1.25;
    font-weight: 700;
  }

  main > h3 {
    margin-top: 0.7cm !important;
    margin-bottom: 0.2cm !important;
    font-size: 12pt !important;
    line-height: 1.25;
    font-weight: 700;
  }

  main > p,
  main > ul,
  main > ol,
  main > hr,
  main > blockquote {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  main > p {
    margin-top: 0 !important;
    margin-bottom: 0.42cm !important;
  }

  main > ul,
  main > ol {
    margin-top: 0.18cm !important;
    margin-bottom: 0.5cm !important;
    padding-left: 1.1cm !important;
  }

  main > li,
  main ul > li,
  main ol > li {
    margin-bottom: 0.14cm !important;
  }

  main > hr {
    margin: 0.7cm 0 0.45cm 0 !important;
    border: 0 !important;
    border-top: 1px solid #999999 !important;
  }

  main > h2,
  main > h3,
  main > ul,
  main > ol {
    page-break-inside: avoid;
    break-inside: avoid-page;
  }

  /* =========================================================
     12. Safety note
     ========================================================= */

 .safety-note-lead {
    position: relative;
    margin-bottom: 0.35cm !important;
    padding-left: 0.85cm;
  }

  .safety-icon {
    position: absolute;
    left: 0;
    top: 0.08em;
    line-height: 1;
  }

  .safety-label {
    font-weight: 700;
  }

  .safety-note a {
    color: #000 !important;
    text-decoration: underline !important;
    border: none !important;
  }

  .safety-note a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }
}