/* Language switcher: 3 flag buttons pinned to the top-right of the header.
   See pages/templates/pages/index.html for the form itself -- one POST to
   Django's built-in set_language view per click, no JS needed. */
.banner {
  position: relative;
}
.lang-switch {
  position: absolute;
  top: 8px;
  right: 0;
  display: flex;
  gap: 6px;
  margin: 0;
}
.lang-flag {
  appearance: none;
  border: 1px solid var(--border);
  background: #1c1712;
  border-radius: 4px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: .6;
  filter: grayscale(.5);
  transition: opacity .15s ease, filter .15s ease, border-color .15s ease, transform .15s ease;
}
.lang-flag img {
  display: block;
  width: 20px;
  height: 15px;
  border-radius: 2px;
}
.lang-flag:hover {
  opacity: .9;
  filter: grayscale(0);
  transform: translateY(-1px);
}
.lang-flag.is-active {
  opacity: 1;
  filter: grayscale(0);
  border-color: #dbaa28;
  box-shadow: 0 0 0 1px rgba(219, 170, 40, .35);
}

@media (max-width: 640px) {
  .lang-switch {
    position: static;
    justify-content: center;
    margin-bottom: 4px;
  }
}
