/* Language toggle — segmented pill */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--sd-gray-200);
  border-radius: 999px;
  background: #F5F7FA;
  margin-left: 12px;
  margin-right: 0;
  font-family: var(--f-body);
}
/* Apply to button (legacy prototype) and anchor (Rails URL-based switcher). */
.lang-toggle button,
.lang-toggle a {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-70);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  min-width: 32px;
  text-align: center;
  text-decoration: none;
}
.lang-toggle button:hover,
.lang-toggle a:hover { color: var(--sd-blue); }
.lang-toggle button.is-active,
.lang-toggle a.is-active {
  background: #fff;
  color: var(--sd-blue);
  box-shadow: 0 1px 2px rgba(15,30,60,.08), 0 0 0 1px rgba(22,119,201,.1);
}
.lang-toggle .sep { display: none; }

/* Thai body tweaks: Thai glyphs are taller — let headings breathe */
:lang(th) .h-display,
:lang(th) .h-1,
:lang(th) .h-2,
:lang(th) .h-3 { letter-spacing: 0; line-height: 1.2; }
:lang(th) .lede { line-height: 1.7; }
:lang(th) .eyebrow { letter-spacing: 0.12em; }
/* Italic accent word doesn't exist in Thai — render upright in Soft Blue */
:lang(th) em.accent,
:lang(th) .accent {
  font-style: normal;
  color: var(--sd-blue);
  font-weight: 800;
}
