.nd-language-switch {
  position: fixed;
  right: auto;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  left: calc(env(safe-area-inset-left) + 18px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(216, 162, 74, 0.28);
  border-radius: 999px;
  background: rgba(10, 8, 11, 0.84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  font-family: "Outfit", system-ui, sans-serif;
}

.nd-language-switch button {
  min-width: 38px;
  min-height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(201, 189, 161, 0.64);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nd-language-switch button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(216, 162, 74, 0.3), rgba(216, 162, 74, 0.14));
  color: #f6ecd2;
  box-shadow: inset 0 0 0 1px rgba(216, 162, 74, 0.26);
}

.nd-language-switch button:focus-visible {
  outline: 2px solid rgba(216, 162, 74, 0.75);
  outline-offset: 2px;
}

/* Inner pages own a normal flex header. Put the selector in that row so translated CTA text can
   claim space through layout rather than collide with a separately positioned control. */
.nd-head .nd-language-switch {
  position: static;
  transform: none;
  flex: none;
  box-shadow: none;
}

@media (max-width: 480px) {
  .nd-language-switch button {
    min-width: 32px;
    padding-inline: 5px;
  }
}
