/* Chinese and Korean pages (2026-10-31). The web fonts (Inter, STIX Two Text) have no Chinese or Korean glyphs, so the browser picked whatever
   system font it found first (on Windows a thin SimSun/Batang for the serif headings). These stacks name a good sans and serif per platform. */
html[lang^="zh"]{--ui:'Inter','PingFang SC','Hiragino Sans GB','Microsoft YaHei UI','Microsoft YaHei','Noto Sans CJK SC','Noto Sans SC','Source Han Sans SC',system-ui,sans-serif;--read:'STIX Two Text','Songti SC','Noto Serif CJK SC','Noto Serif SC','Source Han Serif SC','Microsoft YaHei',Georgia,serif}
html[lang^="ko"]{--ui:'Inter','Apple SD Gothic Neo','Malgun Gothic','Noto Sans CJK KR','Noto Sans KR','Source Han Sans K',system-ui,sans-serif;--read:'STIX Two Text','Noto Serif CJK KR','Noto Serif KR','AppleMyungjo','Malgun Gothic',Georgia,serif}
html[lang^="zh"] body,html[lang^="zh"] button,html[lang^="zh"] input,html[lang^="zh"] select,html[lang^="zh"] textarea{font-family:var(--ui)}
html[lang^="ko"] body,html[lang^="ko"] button,html[lang^="ko"] input,html[lang^="ko"] select,html[lang^="ko"] textarea{font-family:var(--ui)}
html[lang^="zh"] h1,html[lang^="zh"] h2,html[lang^="zh"] h3,html[lang^="zh"] .serif,html[lang^="zh"] .km-lock b{font-family:var(--read)}
html[lang^="ko"] h1,html[lang^="ko"] h2,html[lang^="ko"] h3,html[lang^="ko"] .serif,html[lang^="ko"] .km-lock b{font-family:var(--read)}
/* CJK text has no spaces: let long runs wrap at any character, and keep punctuation from starting a line */
html[lang^="zh"] body,html[lang^="ko"] body{overflow-wrap:anywhere;line-break:strict}
html[lang^="ko"] body{word-break:keep-all}
