/* Static language switcher — replaces the Angular sidebar that cannot hydrate offline. */
.static-locale-menu[hidden] { display: none !important; }

.static-locale-menu {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  justify-content: flex-end;
}

.static-locale-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.static-locale-menu__panel {
  position: relative;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--color-background-surface, #1b1b1f);
  box-shadow: -8px 0 32px rgba(0, 0, 0, .45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: static-locale-slide .22s ease-out;
}

@keyframes static-locale-slide {
  from { transform: translateX(24px); opacity: .6; }
  to   { transform: translateX(0); opacity: 1; }
}

.static-locale-menu__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 64px;
  flex: 0 0 auto;
  padding: 0 16px;
}

.static-locale-menu__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa0a6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.static-locale-menu__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.static-locale-menu__list {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 24px;
}

.static-locale-menu__item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 24px;
  color: #fff;
  font: 400 16px/24px "NunitoSans Regular", Nunito, -apple-system, sans-serif;
  text-decoration: none;
}

.static-locale-menu__item:hover,
.static-locale-menu__item:focus-visible {
  background: rgba(255, 255, 255, .07);
  text-decoration: none;
}

.static-locale-menu__item img {
  width: 27px;
  height: 20px;
  border-radius: 2px;
  object-fit: cover;
  flex: 0 0 auto;
}

.static-locale-menu__item.is-active {
  background: rgba(12, 141, 248, .14);
}

/* the flag button in the header needs a pointer cursor, it is a <button> */
.js-switch-locale-btn { cursor: pointer; }

@media (max-width: 560px) {
  .static-locale-menu__panel { width: 320px; }
  .static-locale-menu__item { padding: 0 20px; }
}
