/* QC7: Public photographic heroes remain flush with the live collapsing header.
   Active only when the script has successfully created a matching visual layer.
   No effect on text-only pages, homepage QC3, or reduced-motion visitors. */
@supports (position: sticky) and (overflow: clip) {
  main#main.eds-site-hero-ready {
    position: relative;
    isolation: isolate;
    overflow: clip; /* footer boundary: pin cannot paint outside main */
  }
  main#main.eds-site-hero-ready > .eds-site-hero-pin {
    position: sticky;
    top: var(--eds-site-hero-entry-top, 0px);
    height: 0;
    z-index: 0;
    pointer-events: none;
  }
  main#main.eds-site-hero-ready .eds-site-hero-pin__base,
  main#main.eds-site-hero-ready .eds-site-hero-pin__image,
  main#main.eds-site-hero-ready .eds-site-hero-pin__shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--eds-site-hero-height, 580px);
    pointer-events: none;
  }
  main#main.eds-site-hero-ready .eds-site-hero-pin__base {
    background: #050d18;
  }
  main#main.eds-site-hero-ready .eds-site-hero-pin__image,
  main#main.eds-site-hero-ready .eds-site-hero-pin__shade {
    background-repeat: no-repeat;
  }
  main#main.eds-site-hero-ready > section:first-of-type {
    position: relative;
    z-index: 1;
    background: transparent;
  }
  main#main.eds-site-hero-ready > section:not(:first-of-type) {
    position: relative;
    z-index: 2;
  }
  /* Direct photographic section backgrounds are mirrored onto the pinned layer. */
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="element"] > section:first-of-type {
    background: transparent !important;
  }
  /* Hide only the original *photo layer*, not the scrolling copy, captions, cards or links. */
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="pseudo"] > section:first-of-type::before,
  main#main.eds-site-hero-ready[data-eds-site-hero-shade="true"] > section:first-of-type::after {
    opacity: 0 !important;
  }
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="visual"] > section:first-of-type .insight-hero__visual {
    opacity: 0 !important;
  }
  /* Biographies retain the exact approved headshots/crops. The portrait clone
     is the pinned image plane; transparent native containers let it show through
     while the figure caption, gradients and scrolling text stay on top. */
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > section.profile-authority,
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > section.profile-authority .profile-authority__portrait {
    background: transparent !important;
  }
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > section.profile-authority .profile-authority__portrait.reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > section:first-of-type figure[data-eds-source-figure] img,
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > section:first-of-type figure[data-eds-source-figure] svg {
    visibility: hidden !important;
  }
  main#main.eds-site-hero-ready .eds-site-hero-pin__figure-image {
    position: absolute;
    object-fit: cover;
    max-width: none;
    max-height: none;
  }
  main#main.eds-site-hero-ready .eds-site-hero-pin__figure-svg {
    position: absolute;
    display: block;
    overflow: hidden;
    max-width: none;
    max-height: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  /* Progressive enhancement is intentionally disabled at initialization. */
  main#main.eds-site-hero-ready > .eds-site-hero-pin { display: none !important; }
}
/* Split-pane photographs become stacked content on small screens. Keeping the
   image in its native flow there avoids an offscreen fixed panel and preserves
   the original mobile crop, text order, captions, and touch scrolling. */
@media (max-width: 900px) {
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > .eds-site-hero-pin {
    display: none !important;
  }
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > section:first-of-type {
    background: #050d18;
  }
  /* Biographies retain the exact approved headshots/crops. The portrait clone
     is the pinned image plane; transparent native containers let it show through
     while the figure caption, gradients and scrolling text stay on top. */
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > section.profile-authority,
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > section.profile-authority .profile-authority__portrait {
    background: transparent !important;
  }
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > section.profile-authority .profile-authority__portrait.reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > section:first-of-type figure[data-eds-source-figure] img,
  main#main.eds-site-hero-ready[data-eds-site-hero-kind="figure"] > section:first-of-type figure[data-eds-source-figure] svg {
    visibility: visible !important;
  }
}
