/*
 * CJK typography adjustment for program display pages.
 *
 * CJK characters are visually denser than Latin — at the same font-size
 * they look smaller and are harder to scan.  A 1.2× scale is a widely
 * accepted practice (Apple HIG, Google Material Design, most professional
 * Chinese/Japanese web sites).
 *
 * We use `zoom` instead of `font-size: 120%` because the program templates
 * set font sizes in absolute px values.  `font-size` percentage only
 * affects inherited sizes and has no effect on explicit `px` rules.
 * `zoom` scales the entire rendering — text, spacing, borders — uniformly.
 *
 * Selector: [data-language] on <body>, set by Jinja in every program
 * display template.
 */
body[data-language="zh_CN"],
body[data-language="zh_TW"],
body[data-language="ja_JP"],
body[data-language="ja"],
body[data-language="ko"] {
  zoom: 1.15;
}

/*
 * Italic / oblique doesn't exist in most CJK typefaces — the browser
 * synthesises a slanted version that looks awkward and harder to read.
 * Reset to normal for CJK locales; the surrounding context (color,
 * weight, size) already provides enough visual distinction.
 */
body[data-language="zh_CN"] *,
body[data-language="zh_TW"] *,
body[data-language="ja_JP"] *,
body[data-language="ja"] * {
  font-style: normal !important;
}
