/* ── Locale switcher ──────────────────────────────────────────────────────── */

.i18n-switcher {
  position: relative;
  display: inline-block;
}

.i18n-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.i18n-switcher-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.i18n-switcher-chevron {
  font-size: 10px;
  opacity: 0.7;
}

.i18n-switcher-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 4px;
  min-width: 180px;
  z-index: 200;
  margin: 0;
}

.i18n-switcher-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  transition: background 0.12s;
  list-style: none;
}

.i18n-switcher-item:hover {
  background: #f3f4f6;
}

.i18n-switcher-item.active {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
}

/* DRAFT badge — orange pill for locales awaiting native review */
.i18n-draft-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #fed7aa;
  color: #c2410c;
  margin-left: auto;
}

/* ── Thai line-height bump ────────────────────────────────────────────────── */
:lang(th) body,
:lang(th-TH) body {
  line-height: 1.8;
}

/* ── Vietnamese line-height bump ─────────────────────────────────────────── */
:lang(vi) body,
:lang(vi-VN) body {
  line-height: 1.7;
}

/* ── RTL prep ────────────────────────────────────────────────────────────── */
[dir="rtl"] .i18n-switcher-menu {
  right: auto;
  left: 0;
}

[dir="rtl"] .header-links {
  flex-direction: row-reverse;
}
