html[lang^="ru"] .aflab .aflab__hero h1{max-width:12ch;font-size:clamp(38px,6.3vw,96px)!important}

/* Locale typography: readable Cyrillic and Simplified Chinese without extra network fonts. */
html[lang^="ru"] .aflab{--serif:Georgia,"Times New Roman",serif;--sans:system-ui,"Segoe UI",Arial,sans-serif;--mono:ui-monospace,Consolas,monospace}
html[lang^="zh"] .aflab{--serif:"Noto Serif CJK SC","Noto Serif SC","Songti SC",SimSun,serif;--sans:system-ui,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;--mono:ui-monospace,"Microsoft YaHei","PingFang SC",monospace}
html[lang^="zh"] .aflab :is(h1,h2,h3,p,small,button,.aflab__eyebrow,.aflab__kicker){letter-spacing:normal!important}
html[lang^="zh"] .aflab :is(h1,h2,h3){line-height:1.3!important;word-break:normal;overflow-wrap:break-word}
html[lang^="zh"] .aflab :is(p,li){line-height:1.85;word-break:normal;overflow-wrap:break-word}
html[lang^="zh"] :is(.af-site-header,.af-language-switcher,.af-privacy-dialog,.af-search-dialog){font-family:system-ui,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
html:is([lang^="ru"],[lang^="zh"]) .aflab :is(.aflab__hint,.aflab__panelhead){white-space:normal;line-height:1.5}
.af-language-switcher nav{max-height:calc(100svh - 100px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:700px){html[lang^="ru"] .aflab :is(.aflab__hero h1,.aflab__sectionhero h1,.aflab__articlehero h1){overflow-wrap:anywhere}}
