/* i18n.css — language switch (DE / EN …) */
.gfm-langswitch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-full);
  background: var(--bg-1);
}

.gfm-langswitch-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--fg-2);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-caps);
  line-height: 1;
  padding: 6px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-default),
              background-color var(--duration-fast) var(--ease-default);
}

.gfm-langswitch-btn:hover { color: var(--fg-1); }
.gfm-langswitch-btn.is-active { background: var(--color-brand-primary); color: var(--color-white); }
.gfm-langswitch-btn.is-active:hover { color: var(--color-white); }

/* Desktop: sits just left of the donate button */
.gfm-nav-cta .gfm-langswitch-desktop { margin-right: var(--space-2); }

/* Inside the mobile burger menus — keep the solid light pill so it stays legible
   on dark / maroon / light panels alike. */
.gfm-langswitch-burger { margin-top: var(--space-4); }

/* The inline desktop nav (and its switch) hide below 881px; the burger menu
   carries its own switch. */
@media (max-width: 880px) {
  .gfm-langswitch-desktop { display: none; }
}
