:root {
  --almissum-language-bar-height: 32px;
}

.site-language-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  min-height: var(--almissum-language-bar-height);
  border-bottom: 1px solid rgba(201, 166, 90, 0.2);
  background: #050808;
  color: #fff;
}

.site-language-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(1440px, calc(100% - 48px));
  min-height: var(--almissum-language-bar-height);
  margin-inline: auto;
}

.site-language-bar__label {
  margin-right: 11px;
  color: rgba(255, 255, 255, 0.42);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-language-bar__nav {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.site-language-bar__nav a {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: var(--almissum-language-bar-height);
  color: rgba(255, 255, 255, 0.52);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.site-language-bar__nav a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.site-language-bar__nav a:hover,
.site-language-bar__nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.site-language-bar__nav a[aria-current="page"] {
  color: #dfc17c;
}

/* The language bar remains visible independently from the mobile menu. */
.site-header,
.home-2026 .site-header {
  top: var(--almissum-language-bar-height) !important;
}

html {
  scroll-padding-top: calc(105px + var(--almissum-language-bar-height));
}

/* Replaces the older homepage-only language switcher. */
.home-2026 .site-nav > .language-switcher {
  display: none !important;
}

@media (max-width: 1240px) {
  .home-2026 .site-nav {
    top: calc(76px + var(--almissum-language-bar-height)) !important;
    max-height: calc(100dvh - 76px - var(--almissum-language-bar-height)) !important;
  }
}

@media (max-width: 980px) {
  .site-language-bar__inner {
    justify-content: center;
    width: 100%;
  }

  .site-language-bar__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .site-language-bar__nav a {
    min-width: 42px;
    font-size: 10px;
  }

  .site-nav {
    top: calc(76px + var(--almissum-language-bar-height)) !important;
    max-height: calc(100dvh - 76px - var(--almissum-language-bar-height)) !important;
  }

  html {
    scroll-padding-top: calc(86px + var(--almissum-language-bar-height));
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-language-bar__nav a {
    transition: none;
  }
}
