@media print {
  @page {
    margin: 0.5cm;
  }

  * {
    background: transparent !important;
    color: black !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  h1, h2, h3 {
    color: black !important;
  }

  a {
    text-decoration: underline !important;
    color: blue !important;
    word-wrap: break-word;
  }

  a:after {
    content: ' (' attr(href) ')' !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: inline !important;
  }

  ul, ol {
    padding: 0 0 0 2em !important;
  }

  ul {
    list-style: square !important;
  }

  ul > li:before {
    display: none !important;
  }

  th {
    font-weight: bold !important;
  }

  /*
   * remove unwanted elements
   */

  .page-footer, .page-banner, .page-breadcrumb,
  .header-meta, .header-nav,
  .actions, .share, .comments {
    display: none !important;
  }

  .header-logo {
    display: inline;
  }

  .separator {
    padding-top: 0;
    border-top: 0;
  }

  /*
   * reset grid styles
   */

  [class*="grid-column"] {
    display: none;
    float: none;
    width: 100%;
    margin: 0;
  }

  [class*="grid-column"].do-print {
    display: block;
  }
}