@media print {
  body {
    font: 12pt Georgia, 'Times New Roman', Times, serif;
    line-height: 1.3;
  }

  header,
  #tracking-log-journal,
  #site-header,
  nav,
  footer,
  button,
  .back-to-links,
  .page-banner {
    display: none !important;
  }

  #sidebar {
    display: none;
  }

  img {
    max-width: 200px !important;
  }

  @page {
    margin: 0.5cm;
  }

  p a[href^="https://"]:after
  {
    content: ' (' attr(href) ')';
    font-size: 90%;
  }

  p a:after {
    content: ' ' attr(href) ')';
  }

  p a[href^='#']:after {
    display: none;
  }

  p a[href^="https://"]:after, a[href^="https://"]:after
  {
    content: ' (' attr(href) ')';
  }

  p a {
    word-wrap: break-word;
  }

  a {
    color: #000;
  }

  q:after {
    content: ' (Source: ' attr(cite) ')';
  }

  .demo .red {
    color: black;
    font-weight: bold;
  }

  #content a {
    font-weight: bold;
    color: #000066;
    text-decoration: underline;
  }

  #content {
    margin-left: 0;
    float: none;
    width: auto;
  }

  #footer,
  .ad {
    display: none;
  }

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

  h3 {
    margin-left: 10px;
    margin-bottom: 0px;
    padding-bottom: 0px;
  }

  blockquote,
  table,
  pre {
    page-break-inside: avoid;
  }

  ul,
  ol,
  dl {
    page-break-before: avoid;
  }

  img.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  img.right {
    padding: 4px;
    margin: 0 0 2px 7px;
    display: inline;
  }

  img.left {
    padding: 4px;
    margin: 0 7px 2px 0;
    display: inline;
  }

  .right {
    float: right;
  }

  .left {
    float: left;
  }

  img {
    page-break-inside: avoid;
    page-break-after: avoid;
  }
}
