/**
 * /psa-hub/ WordPress landing: PSA topic bar under main masthead.
 */
body.psa-hub-landing-wp #main-content.psa-hub-landing-root {
  margin-top: revert;
  overflow-x: visible;
  overflow-y: visible;
}

body.psa-hub-landing-wp #header-stack.header-stack {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 400;
}

@media (max-width: 900px) {
  body.psa-hub-landing-wp #header-stack.header-stack {
    z-index: 1100;
  }
}

@media (max-width: 767px) {
  body.psa-hub-landing-wp header.style-1.sticky ~ #header-stack.header-stack {
    top: clamp(52px, 18vw, 88px);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.psa-hub-landing-wp header.style-1.sticky ~ #header-stack.header-stack {
    top: clamp(72px, 11vw, 110px);
  }
}

@media (min-width: 1200px) {
  body.psa-hub-landing-wp header.style-1.sticky ~ #header-stack.header-stack {
    top: clamp(88px, 9vw, 132px);
  }
}

body.psa-hub-landing-wp header.style-1 {
  background-color: white;
}

/* Hub supplies its own chrome on small screens. */
@media (max-width: 991px) {
  body.psa-hub-landing-wp header.header-area.style-1 {
    display: none !important;
  }

  body.psa-hub-landing-wp #header-stack.header-stack,
  body.psa-hub-landing-wp header.style-1.sticky ~ #header-stack.header-stack {
    top: 0 !important;
  }
}

/* Magenta hero sits under transparent PSA topic bar. */
body.psa-hub-landing-wp #header-stack .site-header {
  background: transparent;
}

body.psa-hub-landing-wp #header-stack a.logo,
body.psa-hub-landing-wp #header-stack a.logo:link,
body.psa-hub-landing-wp #header-stack a.logo:visited,
body.psa-hub-landing-wp #header-stack a.logo:hover,
body.psa-hub-landing-wp #header-stack a.logo:focus,
body.psa-hub-landing-wp #header-stack a.logo:focus-visible,
body.psa-hub-landing-wp #header-stack a.logo:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

body.psa-hub-landing-wp #header-stack .nav-toggle,
body.psa-hub-landing-wp #header-stack .nav-toggle-icon {
  color: #ffffff !important;
}

body.psa-hub-landing-wp #header-stack .nav-toggle-icon {
  background: #ffffff !important;
  box-shadow: 0 7px 0 #ffffff, 0 -7px 0 #ffffff !important;
}

body.psa-hub-landing-wp #header-stack .is-nav-open .nav-toggle-icon,
body.psa-hub-landing-wp #header-stack .site-header.is-nav-open .nav-toggle-icon {
  background: transparent !important;
  box-shadow: none !important;
}

body.psa-hub-landing-wp #header-stack .is-nav-open .nav-toggle-icon::before,
body.psa-hub-landing-wp #header-stack .is-nav-open .nav-toggle-icon::after,
body.psa-hub-landing-wp #header-stack .site-header.is-nav-open .nav-toggle-icon::before,
body.psa-hub-landing-wp #header-stack .site-header.is-nav-open .nav-toggle-icon::after {
  background: #ffffff !important;
}

/* Same shortened WP landing hero height as ESG Hub. */
body.psa-hub-landing-wp .hero {
  height: 76vh;
  max-height: 76vh;
  min-height: 76vh;
  z-index: 2;
  overflow: visible;
  margin-top: calc(-1 * var(--header-overlap, 72px));
}

@supports (height: 100svh) {
  body.psa-hub-landing-wp .hero {
    height: 76svh;
    max-height: 66svh;
    min-height: 66svh;
  }
}

body.psa-hub-landing-wp .hero-main:has(.hero-visual) {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 64px);
}

body.psa-hub-landing-wp .hero-visual {
  flex: 0 1 46%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

body.psa-hub-landing-wp .hero-visual img {
  display: block;
  width: min(100%, 460px);
  height: auto;
  max-height: min(42vh, 380px);
  object-fit: contain;
}

@media (max-width: 900px) {
  body.psa-hub-landing-wp .hero {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: hidden;
  }

  body.psa-hub-landing-wp .hero-main:has(.hero-visual) {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  body.psa-hub-landing-wp .hero-copy {
    order: 0;
  }

  body.psa-hub-landing-wp .hero-visual {
    justify-content: center;
    order: 1;
    margin-top: 0.75rem;
  }

  body.psa-hub-landing-wp .hero-visual img,
  body.psa-hub-landing-wp .hero-visual .hero-visual__img {
    width: min(200px, 48vw);
    max-height: 150px;
  }
}

body.psa-hub-landing-wp .topics {
  position: relative;
  z-index: 1;
}

body.psa-hub-landing-wp .search-wrap--live {
  z-index: 450;
}

body.psa-hub-landing-wp #hub-search-results.search-results-popover {
  z-index: 451;
}

body.psa-hub-landing-wp #hub-search-results a.search-result-link:hover,
body.psa-hub-landing-wp #hub-search-results a.search-result-link:focus-visible,
body.psa-hub-landing-wp #hub-search-results a.search-result-link:visited:hover,
body.psa-hub-landing-wp #hub-search-results a.search-result-link:visited:focus-visible {
  color: #000;
  text-decoration: none;
}

body.psa-hub-landing-wp .topic-cell--whats-new,
body.psa-hub-landing-wp .topic-cell--whats-new h3,
body.psa-hub-landing-wp .topic-cell--whats-new li,
body.psa-hub-landing-wp .topic-cell--whats-new a,
body.psa-hub-landing-wp .topic-cell--whats-new a:link,
body.psa-hub-landing-wp .topic-cell--whats-new a:visited,
body.psa-hub-landing-wp .topic-cell--whats-new a:hover,
body.psa-hub-landing-wp .topic-cell--whats-new a:focus,
body.psa-hub-landing-wp .topic-cell--whats-new a:focus-visible,
body.psa-hub-landing-wp .topic-cell--whats-new a:active,
body.psa-hub-landing-wp .topic-cell--whats-new .topic-chevron {
  color: #fff !important;
}

body.psa-hub-landing-wp .topic-cell--whats-new a.topic-link-button,
body.psa-hub-landing-wp .topic-cell--whats-new a.topic-link-button:link,
body.psa-hub-landing-wp .topic-cell--whats-new a.topic-link-button:visited,
body.psa-hub-landing-wp .topic-cell--whats-new a.topic-link-button:hover,
body.psa-hub-landing-wp .topic-cell--whats-new a.topic-link-button:focus,
body.psa-hub-landing-wp .topic-cell--whats-new a.topic-link-button:focus-visible,
body.psa-hub-landing-wp .topic-cell--whats-new a.topic-link-button:active,
body.psa-hub-landing-wp .topic-cell--whats-new a.topic-link-button .topic-chevron {
  background: #fff !important;
  color: #5a0d41 !important;
}

/* Hide theme client strip + main footer; PSA uses hub .site-footer. */
body.psa-hub-landing-wp .our-client-area,
body.psa-hub-landing-wp > footer,
body.psa-hub-landing-wp .footer-content {
  display: none !important;
}

/* footer-new.php outputs a bare <footer> after our-client-area */
body.psa-hub-landing-wp .our-client-area + footer,
body.psa-hub-landing-wp footer:not(.site-footer) {
  display: none !important;
}
