/* Language switcher — click open, fixed menu, no clip (Safari/Brave) */

.bar,
.bar nav {
  overflow: visible !important;
}

.lang-switcher {
  position: relative;
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  z-index: 3000;
  overflow: visible;
  min-width: 9.5rem;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.lang-switcher .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--taler-secondary-deep, #586a88);
  background: #eef3fb;
  border: 1px solid rgba(0, 66, 179, 0.18);
  border-radius: 999px;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lang-switcher .dropdown-trigger:hover,
.lang-switcher .dropdown-trigger:focus-visible,
.lang-switcher.is-open .dropdown-trigger {
  color: var(--taler-primary, #0042b3);
  background: #e0ebfa;
  border-color: rgba(0, 66, 179, 0.32);
  outline: none;
}
.lang-switcher .dropdown-trigger .chev {
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.1rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.65;
  pointer-events: none;
}
.lang-switcher.is-open .dropdown-trigger .chev {
  transform: rotate(225deg) translateY(-1px);
}
.lang-switcher .lang-code {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.08);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #5b6475;
  text-transform: uppercase;
  pointer-events: none;
}
/* position:fixed; top/left set by JS */
.lang-switcher .dropdown-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  z-index: 10050;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.45rem 0.4rem 0.4rem;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(12, 22, 40, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(12, 22, 40, 0.18);
  pointer-events: auto;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.lang-switcher.is-open .dropdown-menu {
  display: flex;
}
.lang-switcher .dropdown-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-switcher .dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--taler-secondary-deep, #586a88);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lang-switcher .dropdown-menu a:hover,
.lang-switcher .dropdown-menu a:focus-visible {
  color: var(--taler-primary, #0042b3);
  background: rgba(0, 66, 179, 0.1);
  outline: none;
}
.lang-switcher .dropdown-menu a[aria-current="true"] {
  color: var(--taler-primary, #0042b3);
  background: rgba(0, 66, 179, 0.1);
  cursor: default;
}
.lang-switcher .dropdown-menu .lang-code {
  color: #6b7280;
  background: rgba(12, 12, 14, 0.06);
  pointer-events: none;
}
