/* Language switch: small flag + language code. Reuses the site button styles. */
.lang-switch {
  gap: 8px;
}

.lang-switch .lang-flag {
  display: inline-flex;
  width: 20px;
  height: 14px;
  flex: none;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18);
}

.lang-switch .lang-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lang-switch .lang-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-switch-mobile {
  width: 100%;
  margin-top: 1rem;
}

/* The language switch competes with the header CTA on narrow screens.
   The mobile menu already provides a full-width CTA, so hide the header one. */
@media (max-width: 1023px) {
  .site-header [data-track="book-demo-header"] {
    display: none;
  }
}
