/* English overrides (ADA ledger row 3). Loaded always; scoped to html[lang="en"],
   so the Chinese render is untouched. i18n.js sets the lang attribute.
   !important is required: 23 text nodes carry an inline font-family. */

html[lang="en"] [data-fig-text] {
  font-family: var(--font-en) !important;
}

/* --- per-node size steps --------------------------------------------------
   English headlines that cannot fit their Figma box at the Chinese size. The
   box, the line-height and the gradient are unchanged; only the type steps
   down, so the baseline stays where the Figma puts it. */

/* s3 section head. white-space:nowrap in a 712px box; "What can Aimeee do for
   you?" is 896px at 66px/Figtree. 52px is the largest step that fits. */
html[lang="en"] [data-fig="1:65160"] {
  font-size: 52px !important;
}

/* --- emphasis runs -------------------------------------------------------
   **text** in the dictionaries becomes <b>. Default is 700, which matches the
   four advisor labels in 1:64836 (inline font-weight:700 in the Chinese).
   1:65185 emphasises at 600, not 700: its Chinese runs use .r-fig600 against a
   500 body, so the English <b> steps to the same 600. */
html[lang="en"] [data-fig="1:65185"] b {
  font-weight: 600;
}
