/* Chinese interface type. The stylesheet is linked for screen media only. */
:root {
  --dhj-zh-design: 1;
  --dhj-ui: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --dhj-title: clamp(1.75rem, 1.26rem + 1.65vw, 2.5rem);
  --dhj-section: clamp(1.1875rem, 1.08rem + .48vw, 1.5rem);
  --dhj-card: 1.125rem;
  --dhj-body: 1rem;
  --dhj-control: max(14px, .875rem);
  --dhj-meta: max(13px, .8125rem);
}
/* Apply to interface elements, leaving passages, code editors, game canvases
   and handwriting previews under the control of their own renderers. */
html:lang(zh) :where(nav, .site-header, .topbar, .control-label, .filter-title, .eyebrow,
  .search-box, .library-card, .tool-card, .intro, .download-panel, .results-heading,
  .destination__label, .account-form, .form-links, .page-footer, .learning-hub-footer) {
  font-family: var(--dhj-ui);
}
html:lang(zh) :is(.intro h1, .hero h1, .page-heading h1, .library-hero h1, .library-intro h1,
  .subject-heading h1, .section-heading h2, .group-heading h2, .tool-card h3,
  .destination__title, .library-card h2, .library-card h3, .results-heading h2) {
  font-family: var(--dhj-ui);
  letter-spacing: normal;
  line-height: 1.4;
  font-weight: 650;
  line-break: strict;
}
html:lang(zh) :is(.eyebrow,.control-label,.filter-title,.card-label,.q-source,.group-note) {
  font-family: var(--dhj-ui);
  font-size: var(--dhj-meta);
  line-height: 1.55;
  letter-spacing: normal;
  text-transform: none;
}
html:lang(zh) :is(.intro > p,.hero > p,.tool-card p,.library-card p,.destination__description,.subtitle) {
  line-height: 1.75;
  letter-spacing: normal;
  line-break: strict;
}
html:lang(zh) :is(.count, .results-summary, .paper-meta, .bank-facts, .success, .score-summary, time) {
  font-variant-numeric: tabular-nums;
}
html:lang(zh) :is(.filter, .size-button, .page-button, .reset, .module-link, .mock-link,
  .library-action, .header-tool, .offer-link, .filter-bar select, .controls select, .search-box input) {
  font-family: var(--dhj-ui);
  font-size: var(--dhj-control);
  line-height: 1.5;
  letter-spacing: normal;
}
html:lang(zh) :is(.offer-caption,.access-note,.access-legend,.search-note,.search-hint,.results-summary,.bank-total,.group-note) {
  font-size: var(--dhj-meta);
  line-height: 1.65;
}
html:lang(zh) :is(.site-header nav a, .jump-nav a, .footer-links a, .learning-hub-footer nav a) {
  font: 500 var(--dhj-control)/1.55 var(--dhj-ui);
  letter-spacing: normal;
}
@media (max-width: 640px) {
  html:lang(zh) :is(.size-button,.page-button,.filter,.module-link,.mock-link,.library-action) {min-block-size: 36px;}
  html:lang(zh) :is(input[type=search], .account-form input:not([type=checkbox]):not([type=radio])) {font-size: 1rem;}
}

html:lang(zh) .site-header .brand {font:650 21px/1.5 var(--dhj-ui);letter-spacing:0;}
html:lang(zh) main.account-form {box-sizing:border-box;max-width:32rem;padding:clamp(22px,3vw,36px);}
html:lang(zh) main.account-form h1 {font:650 28px/1.4 var(--dhj-ui);letter-spacing:0;}
html:lang(zh) .account-form .subtitle {font:400 var(--dhj-body)/1.75 var(--dhj-ui);}
html:lang(zh) .account-form :is(label,button,.form-links) {font:500 var(--dhj-control)/1.65 var(--dhj-ui);}
html:lang(zh) .account-form :is(.helptext,.helptext li,.fine) {font:400 var(--dhj-meta)/1.7 var(--dhj-ui);}
html:lang(zh) .account-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]) {min-height:44px;max-width:100%;font:400 16px/1.5 var(--dhj-ui);}
html:lang(zh) .account-form form button {min-height:44px;}
html:lang(zh) main:not(.account-form) :is(h1,h2,h3,label,th) {font-family:var(--dhj-ui);line-height:1.5;letter-spacing:0;}
html:lang(zh) main:not(.account-form) th {font-size:var(--dhj-control);}
@media(max-width:640px) {html:lang(zh) main.account-form {padding:20px;}}
