@import url("./fonts/zh/fonts.css");

@media screen {
  html[lang="zh-CN"] {
    --zh-sans: "InvoiceTip Han Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    --zh-serif: "InvoiceTip Han Serif", "Songti SC", SimSun, serif;
    font-family: var(--zh-sans);
    line-height: 1.65;
    line-break: strict;
  }

  :lang(zh-CN):is(#site-nav, .menu-toggle, .header-controls, .button, .tool-page,
  .sample-page, .document-catalog, .calculator-layout, .contact-form, .reference-table table) {
    font-family: var(--zh-sans);
  }

  :lang(zh-CN):is(.hero h1, .page-title h1, .downloads-heading h1, .section-head h2) {
    font-family: var(--zh-serif);
    font-weight: 700;
  }

  :lang(zh-CN):is(h1, h2, h3, .nav-group-label, .eyebrow, .workspace-kicker, .hero-eyebrow) {
    letter-spacing: normal;
  }

  :lang(zh-CN).home .hero h1 { max-width: 14em; line-height: 1.23; text-wrap: wrap; }
  :lang(zh-CN) .page-title h1, :lang(zh-CN).section-head h2 { line-height: 1.26; }
  :lang(zh-CN).guide .prose { line-height: 1.9; }
  :lang(zh-CN).guide .prose :is(h2, h3, .guide-faq summary) { line-height: 1.5; }
  :lang(zh-CN) .guide-grid aside { line-height: 1.6; }
  :lang(zh-CN) .guide-grid .reference-table thead th { white-space: normal; }
  :lang(zh-CN) .reference-table :is(th, td) { word-break: normal; }

  :lang(zh-CN) .sample-paper[lang="en"] { font-family: var(--font-ui); }
  :lang(zh-CN) .hero-preview-top { letter-spacing: normal; }

  @media (max-width: 680px) {
    html[lang="zh-CN"] .document-paper { aspect-ratio: auto; }
  }
}
