/* Simplified Chinese overrides. Loaded only when the session locale is "zh". */
:root {
    --default-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --heading-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --nav-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* Every text element uses the Chinese font. Icon fonts (<i>) are left alone. */
html[lang="zh"] body,
html[lang="zh"] :is(h1, h2, h3, h4, h5, h6, p, a, li, span, div, small, strong, em, label, button, input, textarea, select, td, th, blockquote) {
    font-family: var(--default-font);
}

html[lang="zh"] body {
    line-height: 1.85;
    line-break: strict;
}

html[lang="zh"] :is(h1, h2, h3, h4, h5, h6) {
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* Chinese has no letter case or italics */
html[lang="zh"] body * {
    text-transform: none !important;
    font-style: normal !important;
}
