/* Journal-inspired type: serif reading text, sans-serif controls and figures.
   Existing panel sizes, colours and layout grids are defined in the original CSS. */
:root {
  --font-text: "Times New Roman", "Noto Serif SC", "Source Han Serif SC", "SimSun", "Songti SC", serif;
  --font-ui: Arial, Helvetica, "DengXian", "Microsoft YaHei", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-figure: Arial, Helvetica, "DengXian", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-family: var(--font-text);
  font-kerning: normal;
}

h1,
h2,
.mode-guide,
.mode-guide-description,
.mode-guide-copy {
  font-family: var(--font-text);
}

h1,
h2 {
  font-weight: 700;
}

button,
input,
output,
h3,
dt,
.eyebrow,
.mode-kicker,
.panel-label,
.controls,
.chart-heading > span,
.scan-status,
.scan-image-toolbar,
.scan-image-footer,
.scan-3d-footer,
.mode-guide-kicker,
.mode-guide-hint,
.mode-guide-block h4 {
  font-family: var(--font-ui);
}

.eyebrow,
.mode-tab,
.panel-label,
.mode-kicker,
dt,
.controls label,
.scan-image-label,
.mode-guide-kicker,
.mode-guide-hint,
.mode-guide-label,
.mode-guide-number,
.mode-guide-block h4 {
  font-weight: 700;
}

.bilingual-text {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

.bilingual-text > .lang-zh,
.bilingual-text > .lang-en {
  display: block;
}

.bilingual-text > .lang-en {
  margin-top: 0.2em;
  font-size: 0.85em;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

h1 .bilingual-text > .lang-en {
  font-size: 0.45em;
  line-height: 1.3;
}

h2 .bilingual-text > .lang-en {
  font-size: 0.65em;
}

#modeDescription .lang-en,
.facts dd .lang-en,
.scan-imaging-description .lang-en,
.mode-guide-description .lang-en,
.mode-guide-copy p .lang-en,
.mode-guide-copy li .lang-en {
  margin-top: 0.4em;
  font-size: 1em;
  line-height: 1.65;
}

.mode-tab > .bilingual-text {
  flex: 1;
}

.chart-heading > h3 {
  flex: 1 1 55%;
  min-width: 0;
}

.chart-heading > span {
  flex: 1 1 45%;
  min-width: 0;
  text-align: right;
  white-space: normal;
}

.scan-image-toolbar > div,
.scan-image-toolbar > span,
.scan-3d-footer > span {
  min-width: 0;
}

.mode-guide-copy--precautions li > .bilingual-text {
  min-width: 0;
}

.mode-guide-copy--comparison h4::before {
  flex-shrink: 0;
}
