@media print {
  .gdoc-nav,
  .gdoc-footer .container span:not(:first-child),
  .editpage {
    display: none;
  }

  .gdoc-footer {
    border-top: 1px solid $gray-300;
  }

  .gdoc-markdown pre {
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }

  .chroma code {
    border: 1px solid $gray-300;
    padding: $padding-8 !important;
    font-weight: normal !important;
  }

  .gdoc-markdown code {
    font-weight: bold;
  }

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

  main {
    flex-direction: column-reverse;
  }

  .gdoc-toc {
    flex: none;

    nav {
      position: relative;
      width: auto;
    }
  }
}
