/**
 * CSS for customizing print output for the site
 *
 * Enqueue function: wp_enqueue_style
 * Enqueue file: /inc/WP_AUX/Services/HeadService.php
 *
 * @since 1.0.0
 */

@media print {
  body {
    --gray-5: #555;
    background-color: #fff;
  }

  *,
  *::before,
  *::after {
    color: #000 !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }

  a:not(.btn) {
    text-decoration: underline;
  }

  abbr[title]::after {
    content: " ("attr(title) ")";
  }

  p a[href]::after {
    content: " ("attr(href) ")";
    font-weight: normal;
    font-size: 12pt;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "" !important;
  }

  p,
  li {
    font-size: 12pt;
    line-height: 1.5;
    max-width: 580px;
  }

  p,
  h1,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

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

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

  tr,
  td,
  th,
  img {
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  pre {
    white-space: pre-wrap;
  }

  pre,
  blockquote {
    border: 1px solid var(--gray-5);
    page-break-inside: avoid;
  }

  @page {
    margin: 1in;
  }

  .aux-container--fluid-mw {
    .row>.col-9 {
      width: auto;
      /* Allows content to fill extra space from hidden elements*/
    }

    .aux-body-content .captioned-media:first-child {
      page-break-inside: auto;
      display: flex;
      flex-direction: column;

      img {
        height: 100%;
        flex: 1;
      }
    }
  }

  #navbar .utility-nav {
    background-color: transparent;
  }

  /* Hide elements that aren't needed on print */
  #navbar .site-header__back a,
  #navbar .search,
  .site-header__nav,
  #mobile-navbar,
  .aux-footer,
  .footer--slim,
  .mobile-toggle>.mobile-toggle__menu.mobile-nav__menu,
  .page-header__image>img,
  .social-collection,
  .sidebar-item,
  .btn.btn--cta,
  .filters.filters--sidebar.show-for-medium {
    display: none;
  }

  .page-header__image {
    background-image: none;
    /* Hides background images on page headers */
  }

  .section-wrap {
    margin-top: 0 !important;
    padding: 1.5rem 0 !important;
    /* Removes margin & padding to save on paper & remove excess space */
  }

  .captioned-media--slab,
  .media-feature {
    margin-bottom: 0 !important;
  }


  .breadcrumbs {
    padding-top: 1rem !important;

    svg {
      display: none;
    }
  }

  .page-header.page-header--primary-brand.page-header--topic .page-header__container {
    display: flex;
    justify-content: center;
    padding: 0 !important;

    .page-header__content {
      width: auto;
    }

    .page-header__topic-image {
      position: inherit;
      padding: 0;

      img {
        aspect-ratio: auto;
        max-height: 350px;
      }
    }
  }

  .card-group.card-group--default>.card-container>.card {
    width: 33.3%;
    padding-bottom: 0;
  }

  .card-group .section-intro__content {
    font-size: 1rem;
  }

  .page-header__container {
    padding: 2rem 0 0 0 !important;

    .page-header__content .heading-group.heading-group--display.heading-group--bold-display h1 {
      text-align: center;
      font-size: 2rem !important;
    }
  }

}
