/* Typography for translated pages. Loaded in <head> so it applies before any script runs. */
html[lang="fa"], html[lang="ar"] { --serif: "Geeza Pro", "Noto Naskh Arabic", "Iowan Old Style", serif; --sans: "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif; }
html[lang="ja"] { --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif; --sans: "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", sans-serif; }
html[lang="zh-CN"] { --serif: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif; }
html[lang="ru"] { --serif: "Times New Roman", "Noto Serif", Georgia, serif; }
:lang(ar) *, :lang(fa) * { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ja"] *, html[lang="zh-CN"] * { letter-spacing: 0 !important; }
html[lang="ja"] *, html[lang="zh-CN"] *, html[lang="fa"] *, html[lang="ar"] * { font-style: normal !important; }
html[lang="ja"] em, html[lang="zh-CN"] em, html[lang="fa"] em, html[lang="ar"] em { font-weight: 600; }
html[lang="ja"] body .pxe-essay .e-first::first-letter, html[lang="zh-CN"] body .pxe-essay .e-first::first-letter,
html[lang="fa"] body .pxe-essay .e-first::first-letter, html[lang="ar"] body .pxe-essay .e-first::first-letter { all: unset; }
.mark, .f-mark, .nf-mark, .sheet-mark { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .arr { display: inline-block; transform: scaleX(-1); }
html[dir="rtl"] .arr--up { transform: none; }
h1.deboss { direction: ltr; unicode-bidi: isolate; }
