/* Shared article language navigation and script-specific typography. */
.article-language-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.article-languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-end: 28px;
  direction: ltr;
}
.article-languages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}
.article-languages a[aria-current="page"] {
  background: var(--surface-dark);
  color: white;
  border-color: var(--surface-dark);
}
.article-languages a:hover { box-shadow: 0 0 0 2px rgba(33, 196, 194, 0.25); }
.article-languages a:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }
.article-languages a:lang(th) { font-family: "Noto Sans Thai", Tahoma, sans-serif; }
.article-languages a:lang(ar) { font-family: "Noto Sans Arabic", Tahoma, sans-serif; }
html:lang(th) body { font-family: "Noto Sans Thai", Tahoma, sans-serif; line-height: 1.85; }
html:lang(ar) body { font-family: "Noto Sans Arabic", Tahoma, sans-serif; line-height: 1.9; }
html:lang(th) .article-shell > h1,
html:lang(ar) .article-shell > h1,
html:lang(id) .article-shell > h1 {
  font-size: clamp(2.1rem, 4.5vw, 4.15rem);
  line-height: 1.45;
}
html:lang(th) h2, html:lang(th) h3,
html:lang(ar) h2, html:lang(ar) h3 { line-height: 1.5; }
html:lang(th) .eyebrow, html:lang(ar) .eyebrow { letter-spacing: 0; }
html:lang(th) .envoy-launcher__copy strong,
html:lang(ar) .envoy-launcher__copy strong { line-height: 1.65; }
html:lang(th) .hero__actions, html:lang(ar) .hero__actions, html:lang(id) .hero__actions { flex-wrap: wrap; }
html:lang(th) .site-footer nav, html:lang(ar) .site-footer nav, html:lang(id) .site-footer nav { flex-wrap: wrap; }
html[dir="rtl"] .article-content ul { padding-left: 0; padding-inline-start: 1.5em; }
html[dir="rtl"] .brand { direction: ltr; }
html[dir="rtl"] .envoy-launcher { right: auto; left: max(18px, env(safe-area-inset-left)); }
html[dir="rtl"] .envoy-widget__close { right: auto; left: 14px; }
html[dir="rtl"] .video-embed { direction: ltr; }
.translation-note { font-size: 0.9rem; color: var(--muted); }
@media (min-width: 761px) and (max-width: 1100px) {
  html:lang(th) .site-header, html:lang(ar) .site-header, html:lang(id) .site-header { flex-wrap: wrap; border-radius: 24px; }
  html:lang(th) .nav-links, html:lang(ar) .nav-links, html:lang(id) .nav-links {
    order: 3; width: 100%; justify-content: center; flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  html:lang(th) body, html:lang(ar) body, html:lang(id) body { padding-bottom: 210px; }
  html:lang(th) .site-header, html:lang(ar) .site-header, html:lang(id) .site-header { gap: 10px; }
  html:lang(th) .brand, html:lang(ar) .brand, html:lang(id) .brand { font-size: 0.9rem; }
  html:lang(th) .header-cta, html:lang(ar) .header-cta, html:lang(id) .header-cta { min-width: auto; padding-inline: 12px; }
  html[dir="rtl"] .envoy-launcher { left: 14px; right: 14px; }
  .article-languages { gap: 6px; }
  .article-languages a { padding-inline: 12px; }
}
