/* The printable layout: the page's own content, dark text on a light background, without menus,
   navigation, buttons, footer or third-party slots (REQ-IMP-001, REQ-IMP-002). Printing applies it
   (@media print); on screen, js/printable.js applies it by setting class `printable` on <html>, and shows
   a button to leave it that is never printed (REQ-IMP-003). Both blocks below hold the same rules. */

@media print {
  #footer-section,
  #menu-sidebar,
  #header,
  #main-header,
  #left-menu-placeholder,
  button,
  .w3-button,
  .home-button,
  .home-cta,
  .home-next,
  [data-video-consent],
  iframe,
  .print-toggle {
    display: none !important;
  }

  html, html body {
    background: #fff !important;
  }

  html body * {
    color: #111 !important;
    background: transparent !important;
  min-height: 0 !important;
    border-color: #999 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  html img {
    max-width: 100% !important;
  }

  #article-content {
    width: 100% !important;
    margin: 0 !important;
  }

  a.external::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

html.printable #footer-section,
html.printable #menu-sidebar,
html.printable #header,
html.printable #main-header,
html.printable #left-menu-placeholder,
html.printable button,
html.printable .w3-button,
html.printable .home-button,
html.printable .home-cta,
html.printable .home-next,
html.printable [data-video-consent],
html.printable iframe,
html.printable .print-toggle {
  display: none !important;
}

html.printable, html.printable body {
  background: #fff !important;
}

html.printable body * {
  color: #111 !important;
  background: transparent !important;
  min-height: 0 !important;
  border-color: #999 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  animation: none !important;
  transition: none !important;
}

html.printable img {
  max-width: 100% !important;
}

html.printable #article-content {
  width: 100% !important;
  margin: 0 !important;
}

html:not(.printable) .print-exit {
  display: none;
}

html.printable body .print-exit {
  display: block !important;
  position: fixed;
  top: 0.5em;
  right: 0.5em;
  z-index: 10;
  padding: 0.5em 1em;
  border: 2px solid #111;
  background: #fff !important;
  color: #111 !important;
  font: inherit;
  cursor: pointer;
}
