/* Keep article typography aligned with the projoint website. */
main h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

main h2 {
  font-size: 1.75rem;
  line-height: 1.2;
}

main h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

main details > summary {
  cursor: pointer;
  margin-bottom: 0.5rem;
}

@media print {
  @page {
    size: letter;
    margin: 0.55in 0.65in;
  }

  html,
  body {
    font-size: 10.5pt;
  }

  body {
    padding-top: 0 !important;
  }

  .navbar,
  aside,
  footer,
  .anchor,
  .visually-hidden-focusable {
    display: none !important;
  }

  .container.template-article {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  main#main {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .container.template-article > .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

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

  .page-header .logo {
    width: 90px;
  }

  pre,
  .sourceCode,
  .figure,
  table {
    break-inside: avoid-page;
  }

  table {
    width: 100% !important;
    table-layout: fixed;
    font-size: 8pt;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}
