/* Script rules for the translated home pages. The Noto Sans faces themselves are already
   self-hosted in /assets/fonts.css (per-script unicode-range subsets), so a page only downloads the script it uses. */
/* scripts that join or stack must not be letter-spaced or upper-cased */
html:is([lang=gu],[lang=hi],[lang=th],[lang=ar],[lang=ja],[lang=zh]) *{letter-spacing:0!important}
html:is([lang=gu],[lang=hi],[lang=th]) body{line-height:1.75}
html:is([lang=gu],[lang=hi],[lang=th],[lang=ar]) :is(h1,h2,h3){line-height:1.35}
html[lang=ja]{--i18n:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo","Noto Sans JP","Noto Sans CJK JP",sans-serif}
html[lang=zh]{--i18n:"PingFang SC","Microsoft YaHei","Noto Sans SC","Noto Sans CJK SC","Source Han Sans SC",sans-serif}
html:is([lang=ja],[lang=zh]) body{line-height:1.8;word-break:normal;line-break:strict}
html[dir=rtl] .flow li + li::before{content:"‹";margin:0 -2px 0 12px;left:auto;right:-10px}
/* RTL: keep off-screen helpers on the clipped side so the page does not gain a blank horizontal scroll area */
html[dir=rtl]{overflow-x:clip}
html[dir=rtl] .hp{left:auto;right:-9999px}
html[dir=rtl] .mnav nav{right:auto;left:0}
html[dir=rtl] .legend i{margin-right:0;margin-left:7px}
html[dir=rtl] .tick span::before{margin-right:0;margin-left:9px}
