/* Inline EN / ΕΛ language switcher — replaces Webflow's locale dropdown.
   Deliberately colour-scheme agnostic: everything derives from currentColor,
   so it works on light and dark navbars without knowing the background. */

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 1;
  margin-left: 0.75rem;
  gap: 0.5rem;
}

.lang-switch_link {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: inherit;
  opacity: 0.45;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

/* Thin separator between the two options. */
.lang-switch_link + .lang-switch_link::before {
  content: "";
  position: absolute;
  left: -0.25rem; /* half the flex gap, so it sits centred between the two */
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.75em;
  background: currentColor;
  opacity: 0.5;
}

.lang-switch_link:hover,
.lang-switch_link:focus-visible {
  opacity: 0.8;
}

.lang-switch_link.is-active {
  opacity: 1;
  font-weight: 600;
  cursor: default;
}

/* Underline marks the active language. */
.lang-switch_link.is-active::after {
  content: "";
  position: absolute;
  left: 0.125rem;
  right: 0.125rem;
  bottom: -0.125rem;
  height: 1.5px;
  background: currentColor;
}

@media screen and (max-width: 991px) {
  /* Inside the collapsed mobile menu the switcher sits on its own row,
     centred to match the stacked nav links above it. */
  .lang-switch {
    display: flex;
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    align-self: center;
    justify-content: center;
    gap: 0.75rem;
  }
  .lang-switch_link {
    font-size: 1rem;
    padding: 0.35rem 0.125rem;
  }
  .lang-switch_link + .lang-switch_link::before {
    left: -0.375rem; /* half the mobile gap */
  }
}
