/* Build 31: authoritative global header component. */
.build31-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1200 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 78px !important;
  overflow: visible !important;
  background: rgba(4, 24, 39, .97) !important;
  border-bottom: 1px solid rgba(103, 207, 235, .18) !important;
  backdrop-filter: blur(16px) !important;
}

.build31-header .nav-wrap {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 78px !important;
  height: auto !important;
}

.build31-header .brand {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  width: 220px !important;
  overflow: visible !important;
}

.build31-header .brand .master-brand {
  display: block !important;
  width: 220px !important;
  max-width: 100% !important;
  height: 56px !important;
  object-fit: contain !important;
  object-position: left center !important;
  border-radius: 0 !important;
}

.build31-header .mega-nav {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 3px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.build31-header .mega-nav > details,
.build31-header .nav-actions > details {
  position: relative !important;
}

.build31-header summary {
  list-style: none !important;
}

.build31-header summary::marker,
.build31-header summary::-webkit-details-marker,
.build31-header .mega-nav summary::after,
.build31-header .account-menu > summary::before,
.build31-header .language-menu > summary::before {
  display: none !important;
  content: none !important;
}

.build31-header .mega-nav > details > summary,
.build31-header .nav-actions > details > summary {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 44px !important;
  padding: 10px 9px !important;
  border-radius: 9px !important;
  color: #e8f4fa !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.build31-header .mega-nav > details.is-current > summary,
.build31-header .mega-nav > details[open] > summary,
.build31-header .mega-nav > details > summary:hover,
.build31-header .mega-nav > details > summary:focus-visible,
.build31-header .nav-actions > details[open] > summary,
.build31-header .nav-actions > details > summary:hover,
.build31-header .nav-actions > details > summary:focus-visible {
  color: #fff !important;
  background: #0b3d5c !important;
}

.build31-header .mega-nav > details.is-current > summary {
  color: #72d9ff !important;
}

.build31-header .header-icon {
  display: block !important;
  flex: 0 0 auto !important;
  width: 18px !important;
  height: 18px !important;
}

.build31-header .header-chevron {
  display: block !important;
  flex: 0 0 auto !important;
  width: 10px !important;
  height: 10px !important;
  transition: transform .18s ease !important;
}

.build31-header details[open] > summary > .header-chevron {
  transform: rotate(180deg) !important;
}

.build31-header .nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.build31-header .account-menu > summary {
  border: 1px solid rgba(57, 201, 232, .5) !important;
  background: rgba(8, 125, 169, .18) !important;
}

.build31-header .language-menu > summary {
  min-width: 84px !important;
  border: 1px solid rgba(89, 209, 237, .35) !important;
}

.build31-header .nav-panel {
  z-index: 1250 !important;
}

.build31-header .mega-nav .nav-panel {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: min(980px, calc(100vw - 40px)) !important;
  min-width: 0 !important;
}

.build31-header .nav-actions .nav-panel {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
}

.build31-header .account-panel {
  box-sizing: border-box !important;
  width: min(390px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: 390px !important;
  padding: 18px !important;
  overflow: hidden !important;
}

.build31-header .language-menu .nav-panel {
  width: 150px !important;
  min-width: 150px !important;
}

.build31-header .language-menu .nav-panel a {
  text-align: center !important;
  white-space: nowrap !important;
}

.build31-header .nav-toggle {
  display: none !important;
}

@media (max-width: 1180px) {
  .build31-header .nav-wrap {
    grid-template-columns: minmax(0, 1fr) auto 44px !important;
    grid-template-areas: "brand actions toggle" !important;
    column-gap: 6px !important;
    min-height: 72px !important;
  }

  .build31-header .brand {
    grid-area: brand !important;
    width: min(180px, 100%) !important;
  }

  .build31-header .brand .master-brand {
    width: 100% !important;
    height: 52px !important;
  }

  .build31-header .nav-actions {
    grid-area: actions !important;
  }

  .build31-header .nav-toggle {
    grid-area: toggle !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px !important;
    justify-self: end !important;
  }

  .build31-header .nav-toggle .header-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .build31-header .mega-nav {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: 0 !important;
    display: none !important;
    width: 100% !important;
    max-height: calc(100vh - 72px) !important;
    overflow: auto !important;
    padding: 12px !important;
    background: #031b2d !important;
  }

  .build31-header .mega-nav.open {
    display: block !important;
  }

  .build31-header .mega-nav > details {
    display: block !important;
    width: 100% !important;
  }

  .build31-header .mega-nav > details > summary {
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px !important;
    font-size: 15px !important;
  }

  .build31-header .mega-nav .nav-panel {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: 1fr !important;
    margin: 4px 0 10px !important;
    box-shadow: none !important;
  }

  .build31-header .mega-nav details:not([open]) > .nav-panel {
    display: none !important;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: clip !important;
  }
}

@media (max-width: 560px) {
  .build31-header,
  .build31-header .nav-wrap {
    min-height: 66px !important;
  }

  .build31-header .nav-wrap {
    grid-template-columns: minmax(118px, 1fr) auto 44px !important;
    column-gap: 3px !important;
  }

  .build31-header .brand {
    width: min(150px, 100%) !important;
  }

  .build31-header .brand .master-brand {
    height: 46px !important;
  }

  .build31-header .nav-actions {
    gap: 4px !important;
  }

  .build31-header .account-menu {
    display: block !important;
  }

  .build31-header .account-menu > summary,
  .build31-header .language-menu > summary {
    min-height: 44px !important;
    padding: 8px !important;
  }

  .build31-header .account-menu > summary {
    width: 44px !important;
    min-width: 44px !important;
  }

  .build31-header .account-menu > summary > span {
    display: none !important;
  }

  .build31-header .language-menu > summary {
    width: 54px !important;
    min-width: 54px !important;
    gap: 4px !important;
    padding-inline: 6px !important;
  }

  .build31-header .language-menu > summary > span {
    width: 18px !important;
    overflow: hidden !important;
    font-size: 0 !important;
  }

  html[lang="de"] .build31-header .language-menu > summary > span::after {
    content: "DE";
  }

  html[lang="en"] .build31-header .language-menu > summary > span::after {
    content: "EN";
  }

  .build31-header .language-menu > summary > span::after {
    font-size: 11px !important;
    font-weight: 800 !important;
  }

  .build31-header .mega-nav {
    max-height: calc(100vh - 66px) !important;
  }

  .build31-header .account-panel {
    position: fixed !important;
    top: 66px !important;
    right: 14px !important;
    left: 14px !important;
    width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 340px) {
  .build31-header .shell {
    width: calc(100% - 20px) !important;
  }

  .build31-header .nav-wrap {
    grid-template-columns: minmax(108px, 1fr) auto 42px !important;
    column-gap: 2px !important;
  }

  .build31-header .brand {
    width: min(138px, 100%) !important;
  }

  .build31-header .nav-toggle,
  .build31-header .account-menu > summary {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
  }

  .build31-header .language-menu > summary {
    width: 50px !important;
    min-width: 50px !important;
    height: 42px !important;
    min-height: 42px !important;
  }
}
