/* Language-specific typography and bidirectional layout; preserve the theme. */
.language-switch { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.language-switch a { white-space:nowrap; unicode-bidi:isolate; }
html:lang(hi) body, html:lang(hi) h1, html:lang(hi) h2, html:lang(hi) h3 { font-family:Karla,"Noto Sans Devanagari","Kohinoor Devanagari",Mangal,sans-serif; line-height:1.65; }
html:lang(ja) body, html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { font-family:Karla,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; line-height:1.8; }
html:lang(ko) body, html:lang(ko) h1, html:lang(ko) h2, html:lang(ko) h3 { font-family:Karla,"Apple SD Gothic Neo","Malgun Gothic",sans-serif; line-height:1.8; word-break:keep-all; overflow-wrap:anywhere; }
html:lang(ar) body, html:lang(ar) h1, html:lang(ar) h2, html:lang(ar) h3 { font-family:"Noto Sans Arabic","Geeza Pro",Tahoma,Arial,sans-serif; line-height:1.85; letter-spacing:normal; }
html[dir=rtl] .prose, html[dir=rtl] .footer-grid, html[dir=rtl] .dropdown, html[dir=rtl] .faq-item { text-align:start; }
html[dir=rtl] .prose ul, html[dir=rtl] .prose ol { padding-left:0; padding-right:26px; }
html[dir=rtl] .dropdown { left:auto; right:0; }
html[dir=rtl] pre, html[dir=rtl] code, html[dir=rtl] input[type=email], html[dir=rtl] input[type=url], html[dir=rtl] input[type=tel] { direction:ltr; unicode-bidi:isolate; text-align:left; }
html[dir=rtl] .brand, html[dir=rtl] .language-switch a { unicode-bidi:isolate; }
@media(max-width:600px){.language-switch{width:100%;gap:8px 16px;}.language-switch a{padding:6px 0;}}
