@media print {

  @page {
    margin: 1.5cm;
  }

  /* The dark theme is routed through these variables almost everywhere,
     so redefining them here fixes most background/text contrast issues
     site-wide without having to override individual selectors. */
  :root {
    --color-primary:          #000000;
    --color-background:       #FFFFFF;
    --color-background-blue:  #FFFFFF;
    --color-body:              #FFFFFF;
    --color-footer-primary:   #FFFFFF;
    --color-footer-secondary: #FFFFFF;
    --color-text:              #000000;
    --color-text-hover:       #444444;
    --color-text-cta:          #000000;
    --color-text-cta-hover:   #000000;
  }

  * {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  body {
    background: #FFFFFF;
  }

  /* Fixed positioning isn't reliable in print, and none of the nav/menu
     controls are usable on paper. */
  header {
    position: static;
  }

  main {
    padding-top: 0;
  }

  .section-blue {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .menu-toggle,
  .hamburger-button,
  .header-buttons-wrapper,
  .cta-button {
    display: none !important;
  }

  /* An interactive embed can't render on paper. */
  .map-frame {
    display: none;
  }

  /* Site navigation is meaningless once printed. */
  .footer-list-sections section:first-child {
    display: none;
  }

  footer,
  section {
    background: none;
    border-color: #CCCCCC;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

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

  img {
    max-width: 100% !important;
  }

}
