/* Language switching for the public documentation pages. */

html[data-lang="en"] [data-lang="ko"],
html[data-lang="ko"] [data-lang="en"] {
  display: none !important;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 999px;
  background: var(--card, #fafafa);
}

.lang-switch button {
  appearance: none;
  margin: 0;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #6b7280);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
}

.lang-switch button:hover {
  color: var(--fg, #16181d);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--line, #e5e7eb);
  color: var(--fg, #16181d);
}

.lang-switch button[aria-pressed="true"]:hover {
  color: var(--fg, #16181d);
}

.lang-switch button:focus-visible {
  outline: 2px solid var(--muted, #6b7280);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .lang-switch button {
    padding: 4px 9px;
    font-size: 12px;
  }
}
