/* =============================================================================
 * Print
 * ============================================================================= */

@media print {
  .md-header,
  .md-tabs,
  .md-sidebar,
  .md-footer,
  .lupaxa-hero-actions,
  .lupaxa-tutorial-pager {
    display: none !important;
  }

  html,
  body,
  .md-container,
  .md-main,
  .md-content,
  .md-content__inner {
    max-width: none;
    margin: 0;
    background: #ffffff !important;
    color: #111a32;
  }

  .md-content__inner {
    padding: 0;
  }

  .lupaxa-hero,
  .lupaxa-error-hero {
    margin: 0 0 var(--lupaxa-spacing-lg);
    padding: var(--lupaxa-spacing-lg) 0 var(--lupaxa-spacing-md);
    background: none;
    border-bottom: 0;
  }

  .lupaxa-hero-logo,
  .lupaxa-hero > img {
    width: min(100%, 160px);
    margin-bottom: 0.6rem;
  }

  .md-typeset .grid.cards.sponsor-reasons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    margin-top: 0.45rem;
    margin-bottom: 0;
    break-inside: auto;
    page-break-inside: auto;
  }

  .about-introduction,
  .about-introduction:hover,
  .about-introduction.about-introduction-lead,
  .about-introduction.sponsor-close,
  .about-introduction.sponsor-print-card {
    margin-top: 0.45rem;
    margin-bottom: 0;
    background: #ffffff !important;
    color: #111a32 !important;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: none !important;
  }

  .md-typeset .grid.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.45rem;
    margin-top: 0.4rem;
    margin-bottom: 0;
    break-inside: auto;
    page-break-inside: auto;
  }

  .md-typeset .grid.cards > ul > li,
  .md-typeset .grid.cards > li,
  [data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li,
  [data-md-color-scheme="slate"] .md-typeset .grid.cards > li {
    break-inside: avoid;
    background: #ffffff !important;
    color: #111a32;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: none;
  }

  .md-typeset .lupaxa-page-card {
    padding: 0.55rem 0.7rem 0.35rem;
    background: #ffffff !important;
    color: #111a32;
    border-color: rgba(0, 0, 0, 0.35);
    box-shadow: none;
    break-inside: auto;
    page-break-inside: auto;
  }

  .md-typeset .md-code__nav,
  .md-typeset .md-code__button,
  .md-typeset .md-clipboard {
    display: none !important;
  }

  .md-typeset code,
  .md-typeset pre > code,
  .md-typeset pre,
  .md-typeset .highlight,
  .md-typeset .highlight > pre,
  .md-typeset .highlight:has(> .highlighttable),
  .md-typeset .highlighttable,
  .md-typeset .highlighttable .linenos,
  .md-typeset .highlighttable pre,
  .md-typeset .highlight span,
  .md-typeset .lupaxa-page-card code,
  .md-typeset .lupaxa-page-card pre > code,
  .md-typeset .lupaxa-page-card .highlight > pre {
    background: #ffffff !important;
    color: #111a32 !important;
    border-color: rgba(17, 26, 50, 0.35);
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .md-typeset .highlighttable .linenos {
    border-right: 1px solid rgba(17, 26, 50, 0.45);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .md-typeset .highlighttable .linenodiv {
    box-shadow: none !important;
  }

  .md-typeset .highlighttable td.code pre > code {
    padding-left: 12px;
  }

  .md-typeset kbd {
    background: #ffffff !important;
    color: #111a32 !important;
    border: 1px solid rgba(17, 26, 50, 0.35);
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .md-typeset table:not([class]),
  .md-typeset .md-typeset__table,
  .md-typeset .md-typeset__table table,
  .md-typeset table:not([class]) td,
  .md-typeset .md-typeset__table table td,
  .md-typeset table:not([class]) tbody tr:hover,
  .md-typeset .md-typeset__table table tbody tr:hover,
  .md-typeset table:not([class]) tbody tr:hover td,
  .md-typeset .md-typeset__table table tbody tr:hover td {
    background: #ffffff !important;
    color: #111a32 !important;
    border-color: rgba(17, 26, 50, 0.28);
    box-shadow: none !important;
  }

  .md-typeset table:not([class]) th,
  .md-typeset .md-typeset__table table th,
  .md-typeset table:not([class]) th a,
  .md-typeset .md-typeset__table table th a {
    background: #e4e7ee !important;
    color: #111a32 !important;
    border-color: rgba(17, 26, 50, 0.28);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .md-typeset .admonition,
  .md-typeset details,
  .md-typeset .admonition > :not(.admonition-title),
  .md-typeset details > :not(summary) {
    background: #ffffff !important;
    color: #111a32 !important;
    box-shadow: none !important;
  }

  .md-typeset .admonition-title,
  .md-typeset .admonition > .admonition-title,
  .md-typeset details > summary {
    background-color: #e4e7ee !important;
    color: #111a32 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* The icon is a mask filled by background-color. Keep it dark on the grey bar. */
  .md-typeset .admonition-title::before,
  .md-typeset details > summary::before {
    background-color: #111a32 !important;
  }

  .md-typeset a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }

  .md-typeset a[href^="#"]::after,
  .md-typeset a[href^="javascript:"]::after,
  .md-typeset .grid.cards a[href]::after,
  .md-typeset .linenos a[href]::after,
  .md-typeset .highlight a[href]::after,
  .md-typeset pre a[href]::after {
    content: none;
  }

  .sponsor-widget,
  .sponsor-widget-frame,
  .sponsor-widget iframe,
  #kofiframe,
  [data-analytics-choice] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .about-introduction.sponsor-print-card {
    display: block !important;
    width: 100%;
    padding: 0.45rem 0.55rem;
    text-align: center;
  }

  .md-typeset .about-introduction.sponsor-print-card p,
  .md-typeset .about-introduction.sponsor-close p {
    margin: 0;
    text-align: center !important;
  }

  .md-typeset .about-introduction.sponsor-print-card p:first-child {
    margin-bottom: 0.35rem;
  }

  .md-typeset .about-introduction strong,
  [data-md-color-scheme="slate"] .about-introduction strong,
  .md-typeset .sponsor-print-card .twemoji,
  .md-typeset .sponsor-print-card .twemoji svg {
    color: #111a32 !important;
    fill: currentcolor;
  }

  .md-typeset .sponsor-print-card a {
    color: #111a32 !important;
    font-weight: 400;
    text-decoration: none;
  }

  .md-typeset .sponsor-print-card a[href]::after {
    content: none;
  }

  .md-typeset .grid.cards > ul > li > p,
  .md-typeset .grid.cards > li > p,
  .md-typeset .lupaxa-page-card > p {
    text-align: left !important;
    hyphens: manual;
    -webkit-hyphens: manual;
  }

  .md-typeset .lupaxa-page-card,
  .md-typeset .grid.cards > ul > li,
  .md-typeset .grid.cards > li,
  .md-typeset .highlight > pre,
  .md-typeset pre {
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
  }
}
