/* -------------------------------------------------------------
  Styles for print
-------------------------------------------------------------- */
@media print {
  header#content-header {
    display: block;
  }
  /* Hide multimedia elements from print */
  #utility,
  button.toggle-expander,
  .flag-reading-list a.button,
  a.media-lightbox,
  figure a,
  #postcontent,
  div.rollup-more,
  div.premium-ribbon,
  .card-content a::after,
  .fluid-width-video-wrapper,
  audio,
  #block-wm-magazine-rollup-issue-by-article > div .button,
  a.button::after,
  .tag-pill a::after,
  #webshare {
    display: none;
  }
  #navigation-wrapper #navigation-inner {
    display: flex;
  }
  /* Remove masthead border */
  #masthead-wrapper #masthead {
    border-bottom: none;
  }
  /* Remove header bg */
  header#content-header:has(#block-homepage-hero, #block-wm-article-header) {
    background-color: transparent;
  }
  /* Header position and styling */
  #content-header #wm-logo svg.wm-logo polygon {
    fill: var(--k);
  }
  #content-header #wm-logo svg {
    max-height: 4rem;
  }
  #masthead-wrapper {
    position: relative;
  }
  body.scrolling #masthead-wrapper {
    translate: none;
  }
  #content-header #wm-logo,
  #top-ribbon,
  header#masthead {
    clear: both;
    height: 2rem;
    margin-top: 0;
    padding-top: 1rem;
  }
  #content-header #wm-logo,
  body.scrolling #content-header #wm-logo {
    height: 4rem;
    left: auto;
    opacity: 1;
    position: absolute;
    right: 1rem;
    text-align: end;
    top: 0;
    transform: none;
  }
  #site-branding a {
    margin-top: 0;
  }
  header#masthead {
    left: 1rem;
  }
  /* legibility of author names and title */
  #block-wm-article-header figure::before {
    background:
      linear-gradient(
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.2)
      );
  }
  #block-wm-article-header {
    color: #000;
  }
  #block-wm-article-header .taxonomy.author,
  #block-wm-article-header time {
    background-color: #fff;
  }
  #block-wm-article-header time {
    padding-left: 1.75rem;
  }
  /* Prevent images from printing as a whole page */
  img,
  figure {
    max-height: 28rem;
  }
  /* Front page rollup */
  .block-views-blockarticle-rollup-latest-promoted.block-rollup {
    display: flex;
    flex-direction: column;
    /* Keep images on front from being too large. */
    figure {
      max-height: 28rem;
    }
  }

  /* Display the media transcripts */
  .media-transcript {
    display: block;
  }

  @page {
    margin-bottom: 4rem;
    margin-left: 0;
    margin-right: 0;
    margin-top: 4rem;
    size: auto;
  }

  @page :first {
    margin-top: 0;
  }
}
