/*
 * Semantic CJK line breaking.
 * Preserve editorial line breaks while preventing orphaned Chinese glyphs.
 */
:where(html[lang^="zh"]) :where(h1, h2, h3, h4, h5, h6, blockquote) {
  line-break: strict;
  word-break: normal;
  text-wrap: balance;
  hyphens: none;
}

:where(html[lang^="zh"]) :where(h1, h2, h3, h4, h5, h6, blockquote) > :where(span, strong, em) {
  line-break: inherit;
  word-break: inherit;
  text-wrap: balance;
}

:where(html[lang^="zh"]) :where(p, li, dd, figcaption) {
  line-break: strict;
  word-break: normal;
  text-wrap: pretty;
  orphans: 2;
  widows: 2;
}

@supports (word-break: auto-phrase) {
  :where(html[lang^="zh"]) :where(h1, h2, h3, h4, h5, h6, blockquote, p, li, dd, figcaption) {
    word-break: auto-phrase;
  }
}

