/* Lot lang12 — typography of the additional languages written in non-Latin scripts (Chinese, Japanese, Hindi).
   Loaded only for those languages (app/languages.php langFontStylesheet), after the other stylesheets: English, French and
   the Latin-script languages keep Inter, Arabic keeps Cairo (arabic.css). No web font is downloaded (CSP font-src 'self',
   no external CDN): Inter stays first for Latin letters and digits, then the system fonts of each platform for the script
   (Noto when installed locally, otherwise system-ui). */
html[lang=zh-CN]{--ls-stack:Inter,'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC','Noto Sans SC','Source Han Sans SC',system-ui,sans-serif}
html[lang=ja]{--ls-stack:Inter,'Hiragino Sans','Hiragino Kaku Gothic ProN','Yu Gothic UI','Yu Gothic','Meiryo','Noto Sans CJK JP','Noto Sans JP',system-ui,sans-serif}
html[lang=hi]{--ls-stack:Inter,'Kohinoor Devanagari','Noto Sans Devanagari','Nirmala UI','Mangal','Devanagari Sangam MN',system-ui,sans-serif}
html:is([lang=zh-CN],[lang=ja],[lang=hi]){--font-sans:var(--ls-stack)}
html:is([lang=zh-CN],[lang=ja],[lang=hi]) :is(body,body *):not(code,kbd,pre,samp,.icon,svg,svg *){font-family:var(--ls-stack)!important}
html:is([lang=zh-CN],[lang=ja],[lang=hi]) :is(input,textarea,select,button)::placeholder{font-family:var(--ls-stack)}
/* Wide tracking and capitals are Latin conventions: CJK ideographs and Devanagari conjuncts are set without letter-spacing. */
html:is([lang=zh-CN],[lang=ja],[lang=hi]) body :not(.hero-overline){letter-spacing:0!important}
/* Devanagari vowel signs sit above and below the line: a slightly taller line box avoids clipped matras. */
html[lang=hi] body{line-height:1.6}
html[lang=hi] :is(h1,h2,h3,h4,h5,h6){line-height:1.4}
/* CJK: break long runs anywhere but keep punctuation rules (no word spaces between ideographs). */
html:is([lang=zh-CN],[lang=ja]) body{line-break:strict;word-break:normal;overflow-wrap:anywhere}
