/**
 * Print stylesheet for usahello.org
 * @version         1.1
 * @lastmodified    11.05.2024
 */

@media print {
  
  @page { margin: 3cm 1.5cm } /* set printed page margins */

  /* General full-width rules for important elements */
  #content, #page, #masthead, #hello-colophon, #header-logo { width: 100%; margin: 0; float: none; }

  /* things to hide */
  #header-widgets, nav, aside.mashsb-container, 
  .sidebar, .mashshare-top, .mashshare-bottom, 
  .content-ads, .make-comment, .author-bio, 
  .heading, .related-posts, #decomments-form-add-comment, 
  #breadcrumbs, #footer, .post-byline, .meta-single, 
  .site-title img, .post-tags, .readability, #feedback-drawer-toggle, #feedback-drawer, #mobile-menu-toggle,
  #header-language-switcher, #header-language-selector-toggle, #header-mobile-language-selector-toggle,
  #mobile-translation-trigger-header, #mobile-search-trigger-header, .secondary-header,
  .wp-block-hello-tools-custom-cta, .hello-related-content-carousel, #hello-footer-action-wrap, #hello-footer-branding,
  .hello-intro-text-block__wrapper .post-thumbnail, .pdf-generate-form,
  .article-share-btns, #header-search-form, #header__supporters,
  .entry-share.mobile {
    display: none !important;
  }

  /* Body */
  body, #content { font: 13pt serif; line-height: 1.3; background-color: var(--color-white) !important; color: var(--color-black); }
  /* Header */
  #masthead { box-shadow: none; }
  #masthead__inner-container { background-color: transparent !important; }
  #header__branding { display: block; }
  #header-logo img { display: block !important; }
  /* Headlines */
  h1 { font-size: 24pt; }
  h2 { font-size: 18pt; margin-top: 25px; }
  h3, h4 { font-size: 14pt; margin-top: 25px; }    
  /* Page breaks */
  h1, h2, h3, h4, h5, h6, h4 strong { page-break-after: avoid; page-break-inside: avoid }
  img { page-break-inside: avoid; page-break-after: avoid; }
  a, blockquote, table, figure, pre, .Accordion { page-break-inside: avoid }
  table { break-inside: avoid-page; }
  ul, ol, dl { page-break-before: avoid }

  p, address, li, dt, dd, blockquote { font-size: 100%; }
  code, pre { font-family: "Courier New", Courier, mono}
  /* Lists  */
  ul, ol { list-style: square; margin-left: 18pt; margin-bottom: 20pt; }
  .entry-content ol li::before,
  .entry-content ul li::before {
    top: -3px;
  }
  li { line-height: 1.6em; }
  /* Links  */
  a:link, a:visited, a {
    background: transparent;
    color: var(--color-blue);
    font-weight: bold;
    text-decoration: underline;
    text-align: left;
  }
  a:after > img { content: ""; }
  article a[href^="#"]:after { content: ""; }
  /* external links - show target URL in parentheses  */
  .entry-content a[rel~="external"]:after {
    content: " (" attr(href) ")";
    word-wrap: break-word;
    color: var(--color-other-gray) !important;
    font-size: 12pt !important;
    font-style: italic;
    font-weight: normal;
  }
  /* Helpful Links block */
  .hello-helpful-links__section { margin: 0 !important; display: block !important; }
  .entry-content .hello-helpful-links__link { display: block; border: none; }
  .entry-content .hello-helpful-links__link + .hello-helpful-links__link { margin-top: 20px; }
  .entry-content .hello-helpful-links__link a { border: none; padding: 0; }
  .entry-content .hello-helpful-links__link a h4 { color: var(--color-blue); }
  .entry-content .hello-helpful-links__link > a:after { margin-top: -2px; display: block; color: var(--color-other-gray) !important; }
  /* Hide iframes and video */
  .entry-content iframe {
    display: none;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    line-height: 0pt !important;
    white-space: nowrap;
  }
  .embed-youtube, .embed-responsive { position: absolute; height: 0; overflow: hidden; }
  /* show the hidden video URL that was added to the core/embed block via render_block hook */
  .entry-content .print-vidlink {
    display: block !important;
    word-wrap: break-word;
    color: var(--color-other-gray) !important;
    font-size: 12pt !important;
    font-style: italic;
    font-weight: normal;
  }
  /* Introductory block */
  .hello-intro-text-block__wrapper a {
    text-decoration: none;
    color: var(--color-black);
    font-weight: 400;
    font-family: serif !important;
  }
  .hello-intro-text-block__wrapper a:after {
    content: "" !important;
  }
  .hello-intro-text-block__wrapper hr.wp-block-separator.intro-block-separator { margin: 35px auto; }
  /* Space between headlines and paragraphs */
  .entry-content h2+p { margin-top: -10px; }
  /* FAQ blocks */
  .Accordion-panel[hidden] { display: block; }
  .Accordion + .Accordion { margin-top: 30px }
  /* Open-source license in footer */
  #open-source-license-text { margin-right: 5px }
  #open-source-license-text a[rel="license"]:before {
    display: block;
    content: "";
    clear: both;
    margin-top: 10px;
  }

  /* RTL adjustments */
  body.rtl .entry-content ul li::before,
  body.rtl .entry-content ol li::before {
    left: auto !important;
    right: -1.5rem !important;
  }
  body.rtl .entry-content a[rel~="external"]:after {
    content: "";
  }

    
}