/**
 * @file
 * Site header — design system (docs/design).
 */
/**
 * @file
 * Shared LESS variables — imported by general.less and component files.
 *
 * Breakpoint variables used in @media queries across the theme.
 */
/**
 * @file
 * Shared button styles for header CTAs (design system).
 */
.site-header .al-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  text-decoration: none;
}
.site-header .al-btn:active {
  transform: translateY(1px);
}
.site-header .al-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 144, 48, 0.45);
}
.site-header .al-btn--primary {
  background: var(--al-orange);
  color: #fff;
}
.site-header .al-btn--primary:hover {
  background: var(--al-orange-700);
  color: #fff;
  text-decoration: none;
}
.site-header .al-btn--ghost {
  background: transparent;
  color: var(--al-navy);
  border-color: var(--al-navy);
}
.site-header .al-btn--ghost:hover {
  background: var(--al-navy);
  color: #fff;
  text-decoration: none;
}
.site-header .al-btn--sm {
  padding: 8px 14px;
  font-size: 13px;
}
/* =========================================================================
   Bootstrap / Drupal reset — neutralise .row region & block wrappers
   Using !important to guarantee we beat Bootstrap's .row { display:flex }
   ========================================================================= */
.site-header {
  background: var(--al-navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-sans);
  overflow: visible;
}
.site-header section.row.region {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  position: static !important;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}
.site-header .block {
  display: block !important;
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.site-header h2 {
  display: none !important;
}
.site-header .clearfix::after {
  display: none !important;
}
/* Branding region — direct flex child, must not grow */
.site-header .region-header-branding {
  flex: 0 0 auto !important;
}
/* Regions inside flex containers — act as transparent wrappers */
.util-nav__right > section.row.region,
.util-nav__right > section.row.region > .block {
  display: contents !important;
}
/* Primary nav wrappers: transparent on desktop so flex layout works.
   Scoped to ≥861px to avoid a Chrome layout-engine quirk: on mobile,
   display:contents!important causes sibling flex items to be computed
   as display:none during megamenu reflow.  Desktop is safe because the
   megamenu is a position:fixed overlay — no inline reflow. */
@media (min-width: 861px) {
  .site-header .nav > section.row.region,
  .site-header .nav > section.row.region > .block {
    display: contents !important;
  }
}
/* Util-left: keep region boxes so vertical separators (::before) render */
.util-nav__left > section.row.region {
  display: flex !important;
  align-items: center;
  position: relative !important;
  width: auto !important;
}
.util-nav__left > section.row.region > .block {
  display: block !important;
  width: auto !important;
}
/* Search form resets */
.site-header form.search-form,
.site-header form.search-block-form {
  display: contents !important;
}
.site-header .js-form-item,
.site-header .form-item,
.site-header .form-actions,
.site-header .mb-3 {
  margin: 0 !important;
  padding: 0 !important;
}
.site-header .form-control:not(.search-box__input):not(.form-search) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto !important;
}
.site-header .btn,
.site-header .button,
.site-header .form-submit {
  display: none !important;
}
.site-header .form-row {
  display: contents !important;
}
/* === Sticky shell === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.toolbar-fixed .site-header {
  top: var(--toolbar-h, 39px);
}
/* === Main flex container: [logo] [right-column] === */
.site-header__inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  overflow: visible;
}
.wordmark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  vertical-align: bottom;
  text-decoration: none;
  line-height: 0;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.wordmark__img {
  display: block;
  width: 137px;
  height: auto;
}
/* === Right column: two rows stacked === */
.site-header__right {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
/* Shared row base */
.site-header__row {
  display: flex;
  align-items: center;
  min-width: 0;
}
/* --- Row 1: utility nav --- */
.site-header__row--top {
  justify-content: flex-end;
  overflow: visible;
}
.util-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  justify-content: space-between;
  overflow: visible;
}
.util-nav__left {
  order: 2;
  display: flex;
  align-items: center;
  gap: inherit;
  flex: 0 0 auto;
  margin-left: auto;
}
.util-nav__right {
  order: 1;
  display: flex;
  align-items: center;
  gap: inherit;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 680px;
  justify-content: flex-start;
}
.util-nav__left > * + *:not(.theme-toggle) {
  position: relative;
}
.util-nav__left > * + *:not(.theme-toggle)::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.22);
}
/* --- Row 2: primary nav + CTAs --- */
.site-header__row--bottom {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
/* === Desktop column alignment ===
   Make the utility-row (search | utils) and the primary-row (nav | cta)
   share the SAME two columns via subgrid on .site-header__right.  The search
   field then tracks .nav width automatically — no fixed widths.  The shared
   column-gap is defined once on the parent so both rows stay in lockstep. */
@media (min-width: 861px) {
  .site-header__right {
    display: grid;
    grid-template-columns: 1fr auto;
    -moz-column-gap: 20px;
         column-gap: 20px;
    row-gap: 8px;
    align-content: center;
  }
  .site-header__row--top,
  .site-header__row--bottom {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    /* no gap here: both rows inherit column-gap from the parent grid */
  }
  /* util-nav is a transparent wrapper so its children join the row grid */
  .util-nav {
    display: contents;
  }
  .util-nav__right {
    grid-column: 1;
    max-width: none;
  }
  /* search → nav column */
  .util-nav__left {
    grid-column: 2;
  }
  /* utils  → cta column */
}
/* Utility-nav shared link styles */
.util-nav a,
.util-nav button.util-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.util-nav a:hover,
.util-nav button.util-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
#companyTrigger,
#resourcesTrigger,
#portalsTrigger {
  font-weight: 400;
}
.util-nav .util-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.util-nav .util-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 6px;
}
.util-nav .search-box__btn {
  width: 44px;
  height: 44px;
}
.util-nav .search-box__btn svg {
  width: 26px;
  height: 26px;
}
/* === Dropdown menus (language, company, resources, portals) === */
.lang-switch {
  position: relative;
  display: inline-flex;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), visibility 0s linear var(--dur-1);
  z-index: 1200;
}
.lang-switch.is-open .lang-menu,
.portals-switch.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), visibility 0s;
}
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-1);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.lang-menu a::after {
  content: attr(data-lang);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-muted);
}
.lang-menu a:hover,
.lang-menu a:focus-visible {
  background: var(--al-navy-50);
  color: var(--al-navy);
}
.lang-menu a:hover::after,
.lang-menu a:focus-visible::after {
  color: var(--al-orange);
}
.lang-menu li[aria-current="true"] a {
  color: var(--al-navy);
}
.lang-menu li[aria-current="true"] a::after {
  color: var(--al-orange);
}
#resourcesSwitch .lang-menu a:hover,
#resourcesSwitch .lang-menu a:focus-visible,
#portalsSwitch .lang-menu a:hover,
#portalsSwitch .lang-menu a:focus-visible,
#companySwitch .lang-menu a:hover,
#companySwitch .lang-menu a:focus-visible,
#langSwitch .lang-menu a:hover,
#langSwitch .lang-menu a:focus-visible {
  background: var(--al-navy-dark);
  color: #fff;
}
#langSwitch .lang-menu a:hover::after,
#langSwitch .lang-menu a:focus-visible::after {
  color: #fff;
}
#resourcesSwitch .lang-menu a,
#portalsSwitch .lang-menu a,
#companySwitch .lang-menu a {
  justify-content: flex-start;
  gap: 10px;
}
#resourcesSwitch .lang-menu a::after,
#portalsSwitch .lang-menu a::after,
#companySwitch .lang-menu a::after {
  content: none;
}
.menu-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--al-navy-dark);
}
#resourcesSwitch .lang-menu a:hover .menu-ico,
#resourcesSwitch .lang-menu a:focus-visible .menu-ico,
#portalsSwitch .lang-menu a:hover .menu-ico,
#portalsSwitch .lang-menu a:focus-visible .menu-ico,
#companySwitch .lang-menu a:hover .menu-ico,
#companySwitch .lang-menu a:focus-visible .menu-ico {
  color: var(--al-orange);
}
.menu-label {
  white-space: nowrap;
}
.portals-switch {
  position: relative;
  display: inline-flex;
}
.portals-menu {
  right: 0;
  left: auto;
  width: -moz-max-content;
  width: max-content;
  min-width: 150px;
  white-space: nowrap;
}
/* === Expanding search box === */
.search-box {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: 44px;
  align-items: center;
  width: 100%;
  min-height: 44px;
}
.site-header .search-box form.search-block-form,
.site-header .search-box form.search-form,
.site-header .search-box form.form-row {
  display: block !important;
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 44px;
  position: relative;
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
}
.site-header .search-box .search-box__field,
.site-header .search-box .js-form-item,
.site-header .search-box .form-item {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  height: 100%;
}
.site-header .search-box label {
  display: none !important;
}
.search-box__btn {
  grid-column: 1;
  grid-row: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  justify-self: start;
}
.site-header .search-box .search-box__input,
.site-header .search-box input[type="search"],
.site-header .search-box input.form-search {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-pill);
  background: var(--al-navy-700) !important;
  color: #fff !important;
  font-family: var(--font-sans);
  font-size: 14px;
  height: 38px !important;
  outline: none;
  box-shadow: none !important;
  white-space: nowrap;
  z-index: 1;
  transition: width var(--dur-2) var(--ease-out), opacity var(--dur-1) var(--ease-out), padding var(--dur-2) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.site-header .search-box .search-box__input::-moz-placeholder, .site-header .search-box input[type="search"]::-moz-placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.site-header .search-box .search-box__input::placeholder,
.site-header .search-box input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.site-header .search-box.is-open .search-box__input,
.site-header .search-box.is-open input[type="search"],
.site-header .search-box.is-open input.form-search {
  width: 100% !important;
  opacity: 1 !important;
  pointer-events: auto;
  padding: 0 18px 0 46px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}
.site-header .search-box.is-open .search-box__input:focus,
.site-header .search-box.is-open input[type="search"]:focus {
  border-color: var(--al-orange-300) !important;
}
.search-box .form-actions,
.search-box .search-form__submit {
  display: none !important;
}
/* === Bottom-row: primary nav pill-bar === */
.site-header .nav {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.site-header .nav .nav__item {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
}
.site-header .nav .nav__item + .nav__item {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.site-header .nav .nav__trigger,
.site-header .nav .nav__link {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding: 9px 0;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.site-header .nav .nav__trigger:hover,
.site-header .nav .nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  color: #fff;
}
.site-header .nav .nav__trigger[aria-current="page"],
.site-header .nav .nav__link[aria-current="page"] {
  color: var(--al-orange-300);
  border-color: var(--al-orange-300);
}
.site-header .nav .nav__item.is-open > .nav__trigger {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  color: #fff;
}
.site-header .nav .nav__item.is-open > .nav__trigger .caret {
  transform: rotate(180deg);
}
.site-header .nav .caret {
  opacity: 0.7;
  display: inline-block;
  transition: transform var(--dur-1) var(--ease-out);
}
.site-header .nav .menu,
.site-header .nav ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header .nav li {
  display: contents;
}
/* === Bottom-row: CTA buttons === */
.header__cta {
  display: inline-flex;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
  justify-content: space-between;
  flex: 0 1 auto;
}
.header__cta .al-btn {
  justify-content: center;
  white-space: nowrap;
  height: auto;
  align-self: stretch;
}
.header__cta .al-btn--primary {
  flex: 1 1 auto;
  /* margin-left: 10px; */
  min-width: 240px;
}
.header__cta .ghost-btn {
  flex: 0 0 auto;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.header__cta .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.site-header__row--bottom .header__cta .al-btn--primary,
.site-header__row--bottom .header__cta .ghost-btn {
  align-self: flex-start;
  height: 52px;
}
/* === Theme toggle === */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--al-orange-300);
}
.theme-toggle:active {
  transform: translateY(1px);
}
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 144, 48, 0.45);
}
.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle__icon--moon {
  display: inline-flex;
}
.theme-toggle__icon--sun {
  display: none;
}
/* Dark mode active → show the sun, hide the moon. */
body.dark .theme-toggle__icon--moon {
  display: none;
}
body.dark .theme-toggle__icon--sun {
  display: inline-flex;
}
/* === Hamburger toggle (hidden on desktop) === */
.header-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--dur-1) var(--ease-out);
}
.header-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}
.header-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform var(--dur-1) var(--ease-out), opacity var(--dur-1) var(--ease-out);
}
.header-toggle.is-open .header-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-toggle.is-open .header-toggle__bar:nth-child(2) {
  opacity: 0;
}
.header-toggle.is-open .header-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Mobile CTA next to hamburger (hidden on desktop) */
.header-mobile-cta {
  display: none !important;
}
/* =========================================================================
   Responsive — graceful degradation
   ========================================================================= */
/* === Compact desktop: ≤1200px — reduce sizes for comfortable fit === */
@media (max-width: 1200px) {
  .site-header__inner {
    gap: 24px;
    padding: 14px 20px;
  }
  .site-header .nav {
    padding: 2px 6px;
  }
  .site-header .nav .nav__trigger,
  .site-header .nav .nav__link {
    padding: 7px 10px;
    font-size: 14px;
    gap: 4px;
  }
  .util-nav a,
  .util-nav button.util-link {
    font-size: 14px;
    padding: 5px 8px;
  }
  .site-header__row--bottom .header__cta .al-btn--primary,
  .site-header__row--bottom .header__cta .ghost-btn {
    height: 44px;
  }
}
/* === Tight desktop: ≤1000px — further reduction === */
@media (max-width: 1000px) {
  .site-header__inner {
    gap: 16px;
  }
  .wordmark__img {
    width: auto;
    height: 72px;
  }
  .site-header .nav {
    padding: 2px 4px;
  }
  .site-header .nav .nav__trigger,
  .site-header .nav .nav__link {
    padding: 6px 6px;
    font-size: 13px;
    gap: 3px;
  }
  /* tablet: shrink the shared column-gap on the parent so search↔nav stay aligned */
  .site-header__right {
    -moz-column-gap: 6px;
         column-gap: 6px;
  }
  .header__cta .al-btn--primary {
    margin-left: 6px;
  }
  .header__cta .al-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .site-header__row--bottom .header__cta .al-btn--primary,
  .site-header__row--bottom .header__cta .ghost-btn {
    height: 40px;
  }
}
/* =======================================================================
   Mobile: ≤860px — hamburger + accordion panel (rebuilt from zero).
   No display:contents on nav wrappers → avoids Chrome layout reflow bug.
   No sticky bars → natural scroll through the whole panel.
   ======================================================================= */
@media (max-width: 860px) {
  /* --- Header bar: logo + hamburger --- */
  .site-header__inner {
    flex-wrap: wrap;
    padding: 12px 20px;
    gap: 12px;
  }
  .site-header .region-header-branding {
    order: 1;
  }
  .header-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }
  .wordmark__img {
    width: auto;
    height: 64px;
  }
  /* Logo bar: fixed to the top while the menu is open (the body is
     scroll-locked via position:fixed, so the header can't stay sticky). */
  body.header-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  body.header-open.toolbar-fixed .site-header {
    top: var(--toolbar-h, 39px);
  }
  /* --- Panel: hidden by default --- */
  .site-header__right {
    display: none !important;
  }
  /* Open panel = one fixed, full-height scrolling overlay sitting directly
     below the logo bar. --header-bar-h is set from JS to the bar's height.
     Everything (search, utilities, the section accordion, CTA) scrolls as a
     single column — no sticky sub-bars, no nested scroll areas. */
  .site-header__right.is-open {
    display: flex !important;
    flex-direction: column;
    /* Override the desktop `justify-content: center`: with centered flex content
       taller than the panel, the overflow above the start becomes unreachable
       (content renders at a negative offset and scrollTop can't reach it). */
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    top: var(--header-bar-h, 88px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: var(--al-navy-dark);
    padding: 16px 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  /* --- Row top: util nav + search stacked --- */
  .site-header__row--top {
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
  }
  .util-nav {
    flex-direction: column;
    gap: 12px;
  }
  .util-nav__right {
    order: 1;
    max-width: none;
    width: 100%;
  }
  .util-nav__left {
    order: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    margin-left: 0;
    width: 100%;
  }
  .util-nav__left > section.row.region:last-child {
    margin-left: auto;
  }
  .util-nav__left > section.row.region + section.row.region::before {
    display: none;
  }
  .util-nav a,
  .util-nav button.util-link {
    font-size: 13px;
    padding: 8px 10px;
  }
  /* --- Search: always expanded in mobile panel --- */
  .search-box {
    display: flex !important;
    width: 100%;
    min-height: 44px;
  }
  .search-box__btn {
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .site-header .search-box .search-box__input,
  .site-header .search-box input[type="search"],
  .site-header .search-box input.form-search {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 10px 18px 10px 46px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    height: 44px !important;
    border-radius: var(--radius-md) !important;
  }
  .site-header .search-box .search-box__input:focus,
  .site-header .search-box input[type="search"]:focus {
    border-color: var(--al-orange-300) !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }
  .site-header .search-box form.search-block-form,
  .site-header .search-box form.search-form {
    display: block !important;
    width: 100%;
    height: auto !important;
    position: relative;
  }
  .site-header .search-box .search-box__field,
  .site-header .search-box .js-form-item {
    width: 100% !important;
    height: auto !important;
  }
  /* --- Row bottom: nav + CTA stacked vertically --- */
  .site-header__row--bottom {
    flex-direction: column;
    gap: 0;
  }
  /* --- Nav: vertical list, full width --- */
  .site-header .nav {
    flex-direction: column;
    align-items: stretch;
    border: none;
    border-radius: 0;
    padding: 6px 0;
    gap: 0;
    min-width: 0;
  }
  .site-header .nav .nav__item {
    flex: none;
    display: flex;
    flex-direction: column;
    /* trigger + megamenu stack vertically */
    border-left: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-header .nav .nav__item:last-child {
    border-bottom: 0;
  }
  .site-header .nav .nav__trigger,
  .site-header .nav .nav__link {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    padding: 16px 10px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    flex: none;
  }
  .site-header .nav .caret {
    opacity: 0.4;
    font-size: 13px;
    margin-left: auto;
  }
  /* --- CTA: full width at bottom --- */
  .header__cta {
    width: 100%;
    max-width: none;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
  }
  .header__cta .al-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 14px !important;
    font-size: 13px !important;
    border-radius: var(--radius-md);
    margin-left: 0 !important;
  }
  .header__cta .al-btn svg {
    display: none;
  }
  .site-header__row--bottom .header__cta .al-btn--primary,
  .site-header__row--bottom .header__cta .ghost-btn {
    align-self: stretch;
    height: auto;
  }
  .site-header .header__cta .al-btn--ghost.ghost-btn {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
  }
  .site-header .header__cta .al-btn--ghost.ghost-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
  }
}
/* === Small mobile: ≤640px === */
@media (max-width: 640px) {
  .site-header__inner {
    padding: 10px 16px;
    gap: 8px;
  }
  .wordmark__img {
    width: auto;
    height: 48px;
  }
  .header-toggle {
    width: 36px;
    height: 36px;
    gap: 4px;
  }
  .header-toggle__bar {
    width: 18px;
  }
  .site-header .nav .nav__trigger,
  .site-header .nav .nav__link {
    padding: 14px 8px;
    font-size: 15px;
  }
  .util-nav a,
  .util-nav button.util-link {
    font-size: 14px;
    padding: 6px 8px;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
  }
}
/* =========================================================================
   Dark mode — dropdowns, megamenu icons, hover states.

   The header chrome (.site-header) is always navy-dark — it does NOT need
   a background change.  Only the overlay elements (dropdown menus, icons)
   that assume a light page in light mode.
   ========================================================================= */
body.dark .lang-menu {
  background: var(--al-navy-800);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
/* Dropdown link + icon defaults — white on dark surface. */
body.dark .lang-menu a {
  color: #fff;
}
body.dark .lang-menu a::after {
  color: rgba(255, 255, 255, 0.55);
}
body.dark .menu-ico {
  color: #fff;
}
/* Hover — slightly lighter background, keep text white. */
body.dark .lang-menu a:hover,
body.dark .lang-menu a:focus-visible {
  background: var(--al-navy-700);
  color: #fff;
}
body.dark .lang-menu li[aria-current="true"] a {
  color: #fff;
}
/* Hover reveals orange accent. */
body.dark #resourcesSwitch .lang-menu a:hover .menu-ico,
body.dark #resourcesSwitch .lang-menu a:focus-visible .menu-ico,
body.dark #portalsSwitch .lang-menu a:hover .menu-ico,
body.dark #portalsSwitch .lang-menu a:focus-visible .menu-ico,
body.dark #companySwitch .lang-menu a:hover .menu-ico,
body.dark #companySwitch .lang-menu a:focus-visible .menu-ico {
  color: var(--al-orange-300);
}
