/* Oktaus language switcher (static HTML version) */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 42px;
  border: 1px solid #C2BBA8;
  border-radius: 8px;
  background: transparent;
  color: #1F3330;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.lang-toggle:hover { border-color: #1F3330; }
.lang-toggle:focus { outline: none; border-color: #1F3330; box-shadow: 0 0 0 3px rgba(31,51,48,.12); }
.lang-toggle[aria-expanded="true"] { border-color: #1F3330; }

.lang-globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4A5753;
  flex-shrink: 0;
}

.lang-current {
  font-weight: 500;
  color: #1F3330;
}

.lang-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4A5753;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #D9D3C4;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(31,51,48,.14);
  z-index: 100;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 14px;
  color: #1B2D2A;
  text-decoration: none;
  transition: background .1s ease, color .1s ease;
  white-space: nowrap;
}
.lang-option:hover,
.lang-option:focus {
  background: #F3F0E8;
  color: #1F3330;
  outline: none;
}
.lang-option[aria-current="true"] {
  color: #B5523C;
  font-weight: 500;
}

.lang-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #8A8270;
  text-transform: uppercase;
}
.lang-option[aria-current="true"] .lang-code { color: #B5523C; }

.lang-name { font-weight: 500; }

/* Mobile: hide long label, show as icon-sized */
@media (max-width: 560px) {
  .lang-current { display: none; }
  .lang-toggle {
    width: 42px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }
  .lang-chevron { display: none; }
  .lang-dropdown { min-width: 160px; }
}

/* 404 page fixed-position version: ensure z-index and positioning work */
body > .lang-switcher { z-index: 100; }

/* lang-code spans removed */
.lang-code { display: none !important; }
.lang-option { gap: 0; padding-left: 14px; }
.lang-option[aria-current="true"] { padding-left: 14px; }
