/* 2 Dec 2026: fonts + direction for ja / ko / zh-Hant / ru / ar / tr (system fonts for CJK, Arabic, Cyrillic sans) */
:lang(ja) body,:lang(ja) h1,:lang(ja) h2,:lang(ja) h3,:lang(ja) .btn{font-family:Inter,"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic",Meiryo,"Noto Sans JP",sans-serif}
:lang(ko) body,:lang(ko) h1,:lang(ko) h2,:lang(ko) h3,:lang(ko) .btn{font-family:Inter,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif}
:lang(zh) body,:lang(zh) h1,:lang(zh) h2,:lang(zh) h3,:lang(zh) .btn{font-family:Inter,"PingFang TC","Microsoft JhengHei","Noto Sans TC",sans-serif}
:lang(ar) body,:lang(ar) h1,:lang(ar) h2,:lang(ar) h3,:lang(ar) .btn{font-family:Inter,"Geeza Pro","Segoe UI","Noto Sans Arabic",Tahoma,sans-serif}
:lang(ru) h1,:lang(ru) h2,:lang(ru) h3{font-family:Manrope,Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
/* typewriter documents */
:lang(ja) .sheet,:lang(ja) .doc{font-family:"Courier Prime","Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",monospace}
:lang(ko) .sheet,:lang(ko) .doc{font-family:"Courier Prime","AppleMyungjo","Batang","Noto Serif KR",monospace}
:lang(zh) .sheet,:lang(zh) .doc{font-family:"Courier Prime","PingFang TC","Songti TC","PMingLiU","Noto Serif TC",monospace}
:lang(ar) .sheet,:lang(ar) .doc{font-family:"Courier Prime","Geeza Pro","Courier New","Noto Naskh Arabic",monospace}
:lang(ru) .sheet,:lang(ru) .doc{font-family:"Courier Prime","Courier New","PT Mono",monospace}
/* CJK: no letter-spacing / uppercase tricks, a bit more line height */
:lang(ja) body,:lang(ko) body,:lang(zh) body{line-height:1.75;word-break:normal;line-break:strict}
:lang(ko) body{word-break:keep-all}
:lang(ja) h1,:lang(ko) h1,:lang(zh) h1,:lang(ar) h1,:lang(ja) h2,:lang(ko) h2,:lang(zh) h2,:lang(ar) h2{letter-spacing:0}
:lang(ar) body{line-height:1.8}
/* Arabic: SVG sketches/maps keep LTR geometry; numbers/addresses isolated */
:lang(ar) svg{direction:ltr}
/* Greek: Inter/Courier Prime subsets here are Latin only → system Greek fonts */
:lang(el) h1,:lang(el) h2,:lang(el) h3{font-family:Manrope,Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
:lang(el) .sheet,:lang(el) .doc{font-family:"Courier Prime","Courier New",monospace}
/* 3rd wave (2 Dec 2026): Hebrew (RTL), Thai, Vietnamese, Ukrainian, Bulgarian */
:lang(he) body,:lang(he) h1,:lang(he) h2,:lang(he) h3,:lang(he) .btn{font-family:Inter,"Arial Hebrew","Segoe UI","Noto Sans Hebrew",Arial,sans-serif}
:lang(he) .sheet,:lang(he) .doc{font-family:"Courier Prime","Courier New","Noto Sans Hebrew",monospace}
:lang(he) svg{direction:ltr}
:lang(th) body,:lang(th) h1,:lang(th) h2,:lang(th) h3,:lang(th) .btn{font-family:Inter,Thonburi,"Leelawadee UI","Noto Sans Thai",Tahoma,sans-serif;line-height:1.8}
:lang(th) .sheet,:lang(th) .doc{font-family:"Courier Prime",Thonburi,"Leelawadee UI","Noto Sans Thai",monospace}
:lang(th) h1,:lang(th) h2{letter-spacing:0}
:lang(vi) body,:lang(vi) h1,:lang(vi) h2,:lang(vi) h3,:lang(vi) .btn{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
:lang(vi) .sheet,:lang(vi) .doc{font-family:"Courier New",monospace}
:lang(uk) h1,:lang(uk) h2,:lang(uk) h3,:lang(bg) h1,:lang(bg) h2,:lang(bg) h3{font-family:Manrope,Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
:lang(uk) .sheet,:lang(uk) .doc,:lang(bg) .sheet,:lang(bg) .doc{font-family:"Courier Prime","Courier New","PT Mono",monospace}
