/*
 * Seletor de idioma: pílula com bandeiras redondas.
 * Cores derivadas de currentColor/cinza translúcido: funciona em header claro e escuro.
 */
.arkos-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(128, 128, 128, 0.28);
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.06);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.arkos-lang-switcher__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 4px;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  opacity: 0.72;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.arkos-lang-switcher__link:hover,
.arkos-lang-switcher__link:focus-visible {
  opacity: 1;
  text-decoration: none;
  color: inherit;
  background: rgba(128, 128, 128, 0.12);
}

.arkos-lang-switcher__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.arkos-lang-switcher__link.is-current {
  opacity: 1;
  font-weight: 700;
  background: rgba(128, 128, 128, 0.18);
}

.arkos-lang-switcher__link.is-fallback {
  opacity: 0.6;
}

.arkos-lang-switcher__flag {
  display: inline-flex;
  flex: none;
  width: 18px;
  height: 18px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.18);
  filter: saturate(0.55);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.arkos-lang-switcher__flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.arkos-lang-switcher__link:hover .arkos-lang-switcher__flag,
.arkos-lang-switcher__link:focus-visible .arkos-lang-switcher__flag,
.arkos-lang-switcher__link.is-current .arkos-lang-switcher__flag {
  filter: none;
}

.arkos-lang-switcher__link:hover .arkos-lang-switcher__flag {
  transform: scale(1.08);
}

/*
 * Header e menu mobile do tema Arkos (fundo escuro translúcido):
 * texto branco e idioma atual em pílula branca, como os botões redondos do header.
 */
.arkos-lang-item .arkos-lang-switcher,
.arkos-lang-switcher--mobile .arkos-lang-switcher {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.arkos-lang-item .arkos-lang-switcher__link:hover,
.arkos-lang-item .arkos-lang-switcher__link:focus-visible,
.arkos-lang-switcher--mobile .arkos-lang-switcher__link:hover,
.arkos-lang-switcher--mobile .arkos-lang-switcher__link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.arkos-lang-item .arkos-lang-switcher__link.is-current,
.arkos-lang-switcher--mobile .arkos-lang-switcher__link.is-current {
  color: #1d1d1b;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* O header.css do tema zera o fundo dos links do header com !important. */
html body #idt-header #idt-header-1 .idt-menu-buttons .arkos-lang-item .arkos-lang-switcher .arkos-lang-switcher__link:hover,
html body #idt-header #idt-header-1 .idt-menu-buttons .arkos-lang-item .arkos-lang-switcher .arkos-lang-switcher__link:focus-visible {
  background: rgba(255, 255, 255, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
}

html body #idt-header #idt-header-1 .idt-menu-buttons .arkos-lang-item .arkos-lang-switcher .arkos-lang-switcher__link.is-current .arkos-lang-switcher__code {
  color: #1d1d1b !important;
}

html body #idt-header #idt-header-1 .idt-menu-buttons .arkos-lang-item .arkos-lang-switcher .arkos-lang-switcher__link.is-current {
  color: #1d1d1b !important;
  background: rgba(255, 255, 255, 0.96) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
}

.arkos-lang-switcher--mobile {
  padding: 16px 0 0;
  font-size: 13px;
}

.arkos-lang-switcher--mobile .arkos-lang-switcher {
  font-size: 12px;
}

.arkos-lang-switcher--mobile .arkos-lang-switcher__flag {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .arkos-lang-switcher__link,
  .arkos-lang-switcher__flag {
    transition: none;
  }

  .arkos-lang-switcher__link:hover .arkos-lang-switcher__flag {
    transform: none;
  }
}
