.lang-option { display: block; width: 100%; font: inherit; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 10px; padding: 8px 14px; text-align: start; cursor: pointer; transition: .2s; }
.lang-option:hover { color: var(--ink); background: var(--bg-alt); }
.lang-option[aria-pressed="true"] { color: var(--brand); background: var(--bg-alt); }
.lang-switch button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

html[lang="ja"] body { font-family: "Yu Gothic UI", "Hiragino Sans", "Meiryo", "Segoe UI", system-ui, sans-serif; line-break: strict; word-break: normal; overflow-wrap: anywhere; }
html[lang="ja"] .lead, html[lang="ja"] p { line-height: 1.9; }
html[lang="ar"] body { font-family: "Segoe UI", "Tahoma", "Noto Naskh Arabic", system-ui, sans-serif; }
html[lang="ar"] .lead, html[lang="ar"] p { line-height: 1.95; }

html[dir="rtl"] .dropdown { right: auto; left: 0; }
html[dir="rtl"] .tl-tab, html[dir="rtl"] .dtable th, html[dir="rtl"] .dtable td { text-align: right; }
html[dir="rtl"] .calc-out dd { text-align: left; }
html[dir="rtl"] .impact { border-left: 0; border-right: 4px solid var(--brand); border-radius: 10px 0 0 10px; }
html[dir="rtl"] .plain li { padding-left: 0; padding-right: 24px; }
html[dir="rtl"] .plain li::before { content: "‹"; left: auto; right: 6px; }
html[dir="rtl"], html[dir="rtl"] body { overflow-x: clip; }
html[dir="rtl"] .hero-art, html[dir="rtl"] .globe { direction: ltr; }
html[dir="rtl"] .brand { direction: ltr; }
html[dir="rtl"] .fine, html[dir="rtl"] .impact b { unicode-bidi: plaintext; }

@media (max-width: 760px) {
  html[dir="rtl"] .dropdown { left: auto; }
}
