/* Localized use pages (uses-l10n-build.mjs, 02/12/2026). Loaded after zh-precise/zh-precise-v3.css, which gives the
   whole look (black hero, white buy card, light body). This file covers every script the use pages are written in, so
   a new language adds only its strings and pages, never CSS. Rules copied from what the live pages of each language do:
   - Latin (de es fr pt nl pl tr id it): site fonts as they are (Sora headings, InterVar text), as the live /pl/ and /tr/
     pages; measure 38em (65-75 characters, CONVERSION_DESIGN.md §2).
   - Vietnamese: the Vietnamese subset of the same Inter build joins InterVar by unicode-range and headings use Inter
     (Sora has no Vietnamese), as i18n-vi-hero-b.mjs does on the live /vi/ pages.
   - Cyrillic (ru uk): the Cyrillic subset joins InterVar, headings in Inter (hero-b-cyr.mjs on the live /ru/ /uk/ pages).
   - Chinese, Japanese, Korean: system CJK fonts after Sora/InterVar, strict line breaking for zh and ja, keep-all for
     Korean, phrase breaks for Japanese headings, no negative tracking, measure 40em (about 40 characters), as
     isp-cjk-w6/isp-cjk-w6.css and zh-precise-v3.css on the live /zh/ /ja/ /ko/ pages. */

/* ── fonts ── */
@font-face{font-family:'InterVar';src:url('/ru/fonts/inter-cyrillic.woff2?v=4001') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'InterVar';src:url('/vi/fonts/inter-vietnamese.woff2?v=4001') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}

/* headings in Inter where Sora lacks the letters */
html.qd-ul:is(:lang(ru),:lang(uk),:lang(vi)) main{--b-display:'InterVar',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--font-head:'InterVar',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html.qd-ul:is(:lang(ru),:lang(uk),:lang(vi)).qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main :is(h1,h2,h3){font-family:'InterVar',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}

/* CJK font stacks: Latin glyphs from the site fonts, the rest from the system CJK font of each language */
html.qd-ul:lang(zh) main{--b-display:'Sora',"PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif;--b-sans:'InterVar',"PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif}
html.qd-ul:lang(ja) main{--b-display:'Sora',"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic",Meiryo,"Noto Sans JP",sans-serif;--b-sans:'InterVar',"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic",Meiryo,"Noto Sans JP",sans-serif}
html.qd-ul:lang(ko) main{--b-display:'Sora',"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;--b-sans:'InterVar',"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif}
html.qd-ul:is(:lang(zh),:lang(ja),:lang(ko)) main :is(p,li,td,th,h1,h2,h3,figcaption){font-family:var(--b-sans)}
html.qd-ul:is(:lang(zh),:lang(ja),:lang(ko)) main :is(h1,h2,h3){font-family:var(--b-display)}

/* ── line breaking ── */
html.qd-ul:is(:lang(zh),:lang(ja)) main{line-break:strict;word-break:normal}
html.qd-ul:lang(ko) main{word-break:keep-all;overflow-wrap:break-word}
html.qd-ul:lang(ja) main :is(h1,h2){word-break:auto-phrase}
html.qd-ul:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)) main :is(.zp-uses li,.zp-card li,.zp-table td){hyphens:auto}
html.qd-ul main :is(h1,h2,h3){hyphens:manual}

/* ── measure and heading size ── */
html.qd-ul:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)).qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main :is(.zp-sec p,.zp-sec li){max-width:38em}
html.qd-ul:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)).qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-hero h1{max-width:18em;font-size:clamp(1.875rem,1rem + 2.3vw,3rem)!important;line-height:1.16!important;letter-spacing:-.01em!important}
html.qd-ul:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)).qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-hero .qd3-lead{max-width:34em}
html.qd-ul:is(:lang(zh),:lang(ja),:lang(ko)).qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-hero h1{letter-spacing:0!important;line-height:1.26!important}
html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-sec h2{text-wrap:balance}
html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-steps>li{line-height:1.75}
@media (max-width:640px){
  html.qd-ul:not(:lang(zh)):not(:lang(ja)):not(:lang(ko)).qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-hero h1{font-size:clamp(1.75rem,1.2rem + 3vw,2.25rem)!important}
  html.qd-ul:is(:lang(zh),:lang(ja),:lang(ko)).qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-hero h1{font-size:clamp(1.5625rem,7vw,2.125rem)!important;line-height:1.32!important}
}

/* bold words inside the hero lead stay white on the black hero */
html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-hero .qd3-lead strong{color:#fff;font-weight:600}

/* ── fixes of 02/12/2026 from the language branches ── */
/* Korean: keep-all must beat zh-precise-v3.css "html.qd-zp main :is(p,li,…){word-break:normal}" */
html.qd-ul.qd-zp:lang(ko) main :is(p,li,td,th,h1,h2,h3,summary,figcaption,b,span,a,strong){word-break:keep-all;overflow-wrap:break-word}
/* zh, ja, ko: inline code inside a sentence stays whole (it breaks only as a block if it is wider than the line) */
html.qd-ul.qd-zp.qd-geo3.qd-v3:is(:lang(zh),:lang(ja),:lang(ko)) body[data-qd-geo3] main :is(p,li,td) code{white-space:nowrap;word-break:keep-all;overflow-wrap:normal;display:inline-block;max-width:100%;overflow-x:auto;vertical-align:bottom}
/* tables of 4+ columns: under 480 px every row becomes a card, each cell with its column name (data-label) */
@media (max-width:480px){
  html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-table:not(.zp-t3){overflow-x:visible}
  html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-table:not(.zp-t3) table{min-width:0}
  html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-table:not(.zp-t3) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-table:not(.zp-t3) :is(tbody,tr,th,td){display:block}
  html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-table:not(.zp-t3) tr{padding:12px 16px;border-top:1px solid var(--b-line)}
  html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-table:not(.zp-t3) tbody tr:first-child{border-top:0}
  html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-table:not(.zp-t3) tbody th{padding:0 0 6px;border:0;min-width:0}
  html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-table:not(.zp-t3) td{display:flex;justify-content:space-between;gap:12px;padding:4px 0;border:0;text-align:right;white-space:normal}
  html.qd-ul.qd-zp.qd-geo3.qd-v3 body[data-qd-geo3] main .zp-table:not(.zp-t3) td::before{content:attr(data-label);flex:0 0 auto;max-width:45%;text-align:left;font-weight:600;color:var(--b-ink)}
}
