/* Header v4 — scoped to body.apca-header-v4 (Home v4, or site-wide when enabled in Settings → Site guard). */
/* Compact lockup at every scroll position (no scale-up at the top). */
.apca-header-v4 #masthead .site-branding a.brand img,
.apca-header-v4 #masthead .site-branding a.brand img.svg-logo-image,
.apca-header-v4 #masthead .item-is-stuck .site-branding a.brand img { width: 108px !important; max-width: 108px !important; height: auto; transition: none !important; }
@media (max-width: 1024px) {
  .apca-header-v4 #masthead .site-branding a.brand img,
  .apca-header-v4 #masthead .item-is-stuck .site-branding a.brand img { width: 92px !important; max-width: 92px !important; }
}

/* Header CTA = the hero's primary button (white, APCA Blue text, orange arrow), one size smaller. */
.apca-header-v4 #masthead .header-button,
.apca-header-v4 .mobile-header-button-wrap .mobile-header-button {
  background: #fff !important; color: var(--apca-blue) !important; border: 1px solid #fff !important; border-radius: var(--apca-radius) !important;
  font-family: inherit; font-weight: 700 !important; font-size: .875rem !important; letter-spacing: .02em !important; line-height: 1.2;
  padding: .72em 1.25em !important; box-shadow: 0 8px 22px -14px rgba(3, 10, 60, .6) !important; text-transform: none;
}
.apca-header-v4 #masthead .header-button::after,
.apca-header-v4 .mobile-header-button-wrap .mobile-header-button::after { content: '→'; color: var(--apca-orange); margin-left: .4em; display: inline-block; transition: transform .35s var(--apca-ease); }
.apca-header-v4 #masthead .header-button:hover::after { transform: translateX(3px); }
.apca-header-v4 #masthead .header-button:hover { background: var(--apca-tint-10) !important; }
/* On the white (scrolled / non-transparent) header: inverted, same component. */
.apca-header-v4 #masthead .item-is-stuck .header-button,
.apca-header-v4:not(.transparent-header) #masthead .header-button,
.apca-header-v4 .popup-drawer .mobile-header-button-wrap .mobile-header-button {
  background: var(--apca-blue) !important; color: #fff !important; border-color: var(--apca-blue) !important;
}
.apca-header-v4 #masthead .item-is-stuck .header-button:hover,
.apca-header-v4:not(.transparent-header) #masthead .header-button:hover { background: var(--apca-blue-deep) !important; }
/* One hairline weight everywhere: 1px, white at 15% (same as the nav partitions). */
.apca-header-v4 #masthead .site-main-header-wrap .site-header-row-container-inner { border-bottom: 1px solid rgba(255, 255, 255, .15) !important; box-shadow: none !important; }
.apca-header-v4 #masthead .site-header-main-section-center::before,
.apca-header-v4 #masthead .site-header-main-section-center::after { width: 1px; background: rgba(255, 255, 255, .15); }
.apca-header-v4:not(.transparent-header) #masthead .site-main-header-wrap .site-header-row-container-inner,
.apca-header-v4 #masthead .item-is-stuck .site-header-row-container-inner { border-bottom-color: var(--apca-line) !important; }
.apca-header-v4 #masthead .item-is-stuck .site-header-main-section-center::before,
.apca-header-v4 #masthead .item-is-stuck .site-header-main-section-center::after,
.apca-header-v4:not(.transparent-header) #masthead .site-header-main-section-center::before,
.apca-header-v4:not(.transparent-header) #masthead .site-header-main-section-center::after { background: var(--apca-line); }
/* Mobile header lockup (~15% smaller). */
.apca-header-v4 #masthead .site-mobile-header-wrap .mobile-site-branding a.brand img,
.apca-header-v4 #masthead .site-mobile-header-wrap .item-is-stuck .mobile-site-branding a.brand img { width: 78px !important; max-width: 78px !important; height: auto; }

/* v4.4: keep the header CTA on one line now that the menu has Careers */
.apca-header-v4 #masthead .header-button { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1300px) { .apca-header-v4 #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a { padding-left: .8em; padding-right: .8em; } }
