/* binly.org, the twenty languages of 2026-10-24 (ru zh-cn zh-tw ko pl nl tr vi th sv da nb fi cs pt-pt id hi ms ar he).
   Loaded after the site stylesheets on every page of those languages: script fonts, line breaking, tracking, text direction. */

/* tracking and negative letter-spacing break joined scripts (Arabic) and look wrong on unspaced or syllabic ones */
html:is([lang="ar"],[lang="he"],[lang="hi"],[lang="th"],[lang="ko"],[lang^="zh"]) *{letter-spacing:0!important}
html:is([lang="ar"],[lang="he"],[lang="hi"],[lang="th"],[lang="ko"],[lang^="zh"]) .kicker,
html:is([lang="ar"],[lang="he"],[lang="hi"],[lang="th"],[lang="ko"],[lang^="zh"]) .eyebrow{text-transform:none}

/* system and Noto fonts behind the site fonts, per script */
html[lang="zh-CN"]{--display:'Plus Jakarta Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei UI','Microsoft YaHei','Noto Sans SC','Noto Sans CJK SC',sans-serif;--body:Manrope,'PingFang SC','Hiragino Sans GB','Microsoft YaHei UI','Microsoft YaHei','Noto Sans SC','Noto Sans CJK SC',sans-serif}
html[lang="zh-TW"]{--display:'Plus Jakarta Sans','PingFang TC','Microsoft JhengHei UI','Microsoft JhengHei','Noto Sans TC','Noto Sans CJK TC',sans-serif;--body:Manrope,'PingFang TC','Microsoft JhengHei UI','Microsoft JhengHei','Noto Sans TC','Noto Sans CJK TC',sans-serif}
html[lang="ko"]{--display:'Plus Jakarta Sans','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR','Noto Sans CJK KR',sans-serif;--body:Manrope,'Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR','Noto Sans CJK KR',sans-serif}
html[lang="th"]{--display:'Noto Sans Thai','Leelawadee UI','Thonburi','Tahoma',sans-serif;--body:'Noto Sans Thai','Leelawadee UI','Thonburi','Tahoma',sans-serif}
html[lang="hi"]{--display:'Noto Sans Devanagari','Nirmala UI','Kohinoor Devanagari','Mangal',sans-serif;--body:'Noto Sans Devanagari','Nirmala UI','Kohinoor Devanagari','Mangal',sans-serif}
html[lang="ar"]{--display:'Noto Sans Arabic','Segoe UI','Geeza Pro','Tahoma',sans-serif;--body:'Noto Sans Arabic','Segoe UI','Geeza Pro','Tahoma',sans-serif}
html[lang="he"]{--display:'Noto Sans Hebrew','Segoe UI','Arial Hebrew','Arial',sans-serif;--body:'Noto Sans Hebrew','Segoe UI','Arial Hebrew','Arial',sans-serif}
html:is([lang="zh-CN"],[lang="zh-TW"],[lang="ko"],[lang="th"],[lang="hi"],[lang="ar"],[lang="he"]) body,
html:is([lang="zh-CN"],[lang="zh-TW"],[lang="ko"],[lang="th"],[lang="hi"],[lang="ar"],[lang="he"]) button,
html:is([lang="zh-CN"],[lang="zh-TW"],[lang="ko"],[lang="th"],[lang="hi"],[lang="ar"],[lang="he"]) .lang-menu a,
html:is([lang="zh-CN"],[lang="zh-TW"],[lang="ko"],[lang="th"],[lang="hi"],[lang="ar"],[lang="he"]) .bn-footer{font-family:var(--body)}

/* line breaking */
html:is([lang="zh-CN"],[lang="zh-TW"]) body{line-break:strict;overflow-wrap:break-word}
html[lang="ko"] body{word-break:keep-all;overflow-wrap:break-word}
html[lang="th"] body{word-break:normal;overflow-wrap:break-word}
html:is([lang="th"],[lang="hi"]) body{line-height:1.7}
html:is([lang="th"],[lang="hi"]) h1,html:is([lang="th"],[lang="hi"]) h2,html:is([lang="th"],[lang="hi"]) h3{line-height:1.3}
html:is([lang="ar"],[lang="he"]) h1,html:is([lang="ar"],[lang="he"]) h2,html:is([lang="ar"],[lang="he"]) h3{line-height:1.3}

/* prices and numbers read left to right inside right-to-left text */
[dir="rtl"] [data-price],[dir="rtl"] .plan-price,[dir="rtl"] .price,[dir="rtl"] .price-amount,[dir="rtl"] .pricing-amount{direction:ltr;unicode-bidi:isolate}
[dir="rtl"] .plan-price{justify-content:flex-end}

/* automatic hyphenation of headings stays on for the Germanic and Finnic languages with long compounds, off elsewhere */
html:is([lang="ru"],[lang="vi"],[lang="id"],[lang="ms"],[lang="zh-CN"],[lang="zh-TW"],[lang="ko"],[lang="th"],[lang="hi"],[lang="ar"],[lang="he"]) :is(h1,h2,h3,summary){hyphens:manual!important;-webkit-hyphens:manual!important}
[dir="rtl"] .variance-value,[dir="rtl"] .mock-now,[dir="rtl"] .mock-qty{direction:ltr;unicode-bidi:isolate}
