/* Typography for pages in Simplified Chinese; loaded by base.html when the site language is zh. */
:lang(zh-Hans) body,
:lang(zh-Hans) .v-application {
  font-family: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

/* Chinese has no spaces between words: break lines by the strict rules and let long
   Latin strings (URLs, identifiers) wrap instead of overflowing. */
:lang(zh-Hans) body {
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}

:lang(zh-Hans) .content,
:lang(zh-Hans) .post__summary {
  line-height: 1.85;
}

/* Synthesized (slanted) italics are hard to read in Chinese. */
:lang(zh-Hans) em {
  font-style: normal;
}

:lang(zh-Hans) code,
:lang(zh-Hans) pre {
  line-break: auto;
  overflow-wrap: normal;
}
