/* Futures Balance v217 — on-screen assessment notice layout ONLY.
   Loaded from the shared layout with media="screen": cannot affect printed PDFs. */
@media screen {
  /* The two notices should not inherit borders and large margins from the
     section wrappers that normally divide the rest of the document. */
  html body .paper-page .paper-frame .paper-body > .paper-section:has(.reference-verification-guide),
  html body .paper-page .paper-frame .paper-body > .paper-section:has(.responsible-use-notice) {
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  /* There is a single rule at the top of the guide, a shared rule between
     both sections, and one rule below the Responsible Use Notice. */
  html body .paper-page .paper-frame .paper-body .reference-verification-guide,
  html body .paper-page .paper-frame .paper-body .responsible-use-notice {
    display: block !important;
    background: #fff !important;
    background-image: none !important;
    border: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid #cbd5e1 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* If the notices follow one another, do not stack two separators. */
  html body .paper-page .paper-frame .paper-body > .paper-section:has(.reference-verification-guide)
    + .paper-section:has(.responsible-use-notice) .responsible-use-notice {
    border-top: 0 !important;
  }

  html body .paper-page .paper-frame .paper-body .reference-verification-guide::before,
  html body .paper-page .paper-frame .paper-body .reference-verification-guide::after,
  html body .paper-page .paper-frame .paper-body .responsible-use-notice::before,
  html body .paper-page .paper-frame .paper-body .responsible-use-notice::after {
    content: none !important;
    display: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Neat editorial rhythm, without touching any of the assessment text. */
  html body .paper-page .paper-frame .paper-body .reference-verification-guide > :first-child,
  html body .paper-page .paper-frame .paper-body .responsible-use-notice > :first-child {
    margin-top: 0 !important;
  }
  html body .paper-page .paper-frame .paper-body .reference-verification-guide > :last-child,
  html body .paper-page .paper-frame .paper-body .responsible-use-notice > :last-child {
    margin-bottom: 0 !important;
  }

  /* Expanded reader: the logos follow the final rule without a large blank
     strip or a redundant extra divider. Normal paper and print remain intact. */
  html body.fb-paper-reader-active-v198 .paper-page.fb-paper-reading-v196
    .paper-frame:has(.responsible-use-notice) .paper-body {
    padding-bottom: 18px !important;
  }
  html body.fb-paper-reader-active-v198 .paper-page.fb-paper-reading-v196
    .paper-frame .fb-paper-reader-partners-v202 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  html body.fb-paper-reader-active-v198 .paper-page.fb-paper-reading-v196
    .paper-frame .fb-paper-reader-partners-inner-v202 {
    padding-top: 18px !important;
  }
}
