/* Language switch: flag dropdown. Without JS it shows as a row of flag links. */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-switch img {
  display: block;
  width: 20px;
  height: 14px;
  flex: none;
  box-shadow: 0 0 0 1px rgba(200, 208, 216, 0.25);
}
.lang-list {
  display: flex;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-list a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--chrome, #c8d0d8);
  letter-spacing: 0.2em;
}
.lang-switch:not(.is-ready) .lang-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.lang-switch:not(.is-ready) .lang-list a[aria-current="true"] img {
  box-shadow: 0 0 0 1px var(--gold, #c9a45c);
}
.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1px solid rgba(201, 164, 92, 0.55);
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23c9a45c' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 0.62rem 0.38rem;
  color: var(--chrome, #c8d0d8);
  font: 500 0.68rem/1.2 var(--sans, sans-serif);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lang-button[hidden] { display: none; }
.lang-button:hover,
.lang-button:focus-visible,
.lang-switch.is-open .lang-button {
  border-color: var(--gold, #c9a45c);
  color: #fff;
  outline: none;
}
.lang-button:focus-visible { box-shadow: 0 0 0 2px rgba(201, 164, 92, 0.35); }
.lang-switch.is-open .lang-button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 5l4-4 4 4' fill='none' stroke='%23c9a45c' stroke-width='1.3'/%3E%3C/svg%3E");
}
.lang-switch.is-ready .lang-list {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 20;
  min-width: 100%;
  width: max-content;
  flex-direction: column;
  gap: 0;
  padding: 0.35rem 0;
  background: #0b1520;
  border: 1px solid rgba(201, 164, 92, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.lang-switch.is-ready.is-open .lang-list { display: flex; }
.lang-switch.is-ready .lang-list a {
  padding: 0.6rem 1.1rem 0.6rem 0.8rem;
  font-size: 0.68rem;
  text-transform: uppercase;
}
.lang-switch.is-ready .lang-list a:hover,
.lang-switch.is-ready .lang-list a:focus-visible {
  background: rgba(201, 164, 92, 0.12);
  color: #fff;
  outline: none;
}
.lang-switch.is-ready .lang-list a[aria-current="true"] { color: var(--gold, #c9a45c); }
@media (max-width: 720px) {
  .lang-button {
    font-size: 0.78rem;
    min-height: 2.6rem;
    padding: 0.55rem 2.1rem 0.55rem 0.85rem;
  }
  .lang-switch.is-ready .lang-list {
    left: 0;
    right: auto;
  }
  .lang-switch.is-ready .lang-list a {
    font-size: 0.8rem;
    min-height: 2.75rem;
  }
}
.mast {
  z-index: 30;
}
