/*
 * Stable multilingual header.
 * A new filename intentionally bypasses cached V3 styles.
 */
.site-header {
  grid-template-columns:
    minmax(180px, 225px)
    max-content
    minmax(24px, 1fr)
    max-content !important;
  column-gap: clamp(14px, 2vw, 32px) !important;
  min-width: 0;
}

.brand-lockup {
  grid-column: 1;
  min-width: 0;
  max-width: 225px;
}

.language-switcher {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 3px;
  background: rgb(3 28 44 / 72%);
  white-space: nowrap;
}

.language-switcher a {
  min-width: 30px;
  padding: 6px 7px;
  color: rgb(255 255 255 / 78%);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-align: center;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
  color: #fff;
  outline: 1px solid var(--teal-bright);
  outline-offset: -1px;
}

.language-switcher a[aria-current="page"] {
  color: var(--ink);
  background: var(--teal-bright);
}

/* Long translated navigation labels live inside the Menu panel. */
.desktop-nav {
  display: none !important;
}

.header-action {
  grid-column: 3;
  justify-self: end;
  min-width: 0;
  white-space: nowrap;
}

.mobile-nav {
  grid-column: 4;
  justify-self: end;
  display: block !important;
  position: relative;
  z-index: 30;
}

.mobile-nav summary {
  cursor: pointer;
  color: var(--teal-bright);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  list-style: none;
  white-space: nowrap;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav > div {
  position: absolute;
  top: 34px;
  right: 0;
  display: grid;
  width: min(260px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid var(--line-light);
  background: var(--navy-deep);
  box-shadow: 0 20px 50px rgb(0 0 0 / 28%);
}

.mobile-nav a {
  padding: 12px;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Remove the long contact action before it can collide in any language. */
@media (width <= 1180px) {
  .header-action {
    display: none !important;
  }
}

@media (width <= 820px) {
  .site-header {
    grid-template-columns: minmax(150px, 1fr) max-content max-content !important;
    gap: 10px !important;
  }

  .brand-lockup {
    grid-column: 1;
  }

  .language-switcher {
    grid-column: 2;
  }

  .mobile-nav {
    grid-column: 3;
  }
}

@media (width <= 560px) {
  .site-header {
    gap: 6px !important;
  }

  .brand-lockup {
    width: min(172px, 43vw);
  }

  .language-switcher {
    gap: 2px;
  }

  .language-switcher a {
    min-width: 25px;
    padding: 6px 4px;
    font-size: 9px;
  }

  .mobile-nav summary {
    font-size: 9px;
    letter-spacing: .09em;
  }
}
