/* Wave 2 of the Chinese and Japanese intent pages (18 Nov 2026). Markup: zjk-wave2-build.mjs. Loaded after
   best-l10n/best-l10n.css (bands, tables, meters, picker), which it does not change.
   1. Hero B of /isp-proxies/ (#ihb, hero-b.css of the hub, not edited): the hub names Sora and Inter, Latin subsets, so
      each script gets its own faces through the two variables the hero sheet reads, as best-l10n.css does for
      #rhb/#mhb/#dhb; CJK titles without negative tracking, broken between phrases (.nw); the hub's colours are kept.
   2. Two bars that grow side by side (.zw-duel): a measured pair or a price ladder, final width in the markup.
   3. A code block for the SOCKS5 examples (.zw-code). */
html:lang(zh) #ihb{--font-head:'Sora',"PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif;--font-body:'InterVar',"PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif}
html:lang(ja) #ihb{--font-head:'Sora',"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic",Meiryo,"Noto Sans JP",sans-serif;--font-body:'InterVar',"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic",Meiryo,"Noto Sans JP",sans-serif}
html:is(:lang(zh),:lang(ja)) #ihb h1{font-size:clamp(28px,3vw,40px);line-height:1.24;letter-spacing:0;max-width:100%}
html:is(:lang(zh),:lang(ja)) #ihb .ihb-lead{line-height:1.8}
html:is(:lang(zh),:lang(ja)) #ihb{line-break:strict}
html:lang(ja) #ihb h1{word-break:auto-phrase}
@media (min-width:380px){#ihb h1 .nw{display:inline-block}}
@media (max-width:959px){html:is(:lang(zh),:lang(ja)) #ihb h1{font-size:clamp(26px,7.2vw,34px);line-height:1.3;max-width:none}}
html:is(:lang(zh),:lang(ja)) #ihb .tool-byline{line-height:1.6}

/* 2. two bars side by side */
main.ig.zw .zw-duel{margin:32px 0 0;padding:22px 24px 20px;background:#fff;border:1px solid var(--ig-line);border-radius:20px;box-shadow:var(--bl-card-shadow)}
html.qd-fresh main.ig.zw .zw-duel-t{margin:0 0 14px;font-size:15px;line-height:1.45;font-weight:600;color:var(--ig-ink)}
main.ig.zw .zw-duel-row{display:grid;grid-template-columns:minmax(7em,15em) minmax(60px,1fr) auto;gap:14px;align-items:center;padding:9px 0;border-top:1px solid var(--ig-line)}
main.ig.zw .zw-duel-row:first-of-type{border-top:0}
html.qd-fresh main.ig.zw .zw-duel-l{font-size:15px;line-height:1.45;color:var(--ig-text)}
main.ig.zw .zw-duel-bar{display:block;height:10px;border-radius:99px;background:rgba(75,63,214,.10);overflow:hidden}
main.ig.zw .zw-duel-bar i{display:block;height:100%;width:var(--w,50%);border-radius:99px;background:var(--bl-violet);transform-origin:0 50%}
main.ig.zw .zw-duel-row:first-of-type .zw-duel-bar i{background:#10B981}
html.qd-fresh main.ig.zw .zw-duel-v{min-width:6.5em;text-align:right;font-size:15px;font-weight:600;color:var(--ig-ink);font-variant-numeric:tabular-nums;white-space:nowrap}
html.qd-fresh main.ig.zw .zw-duel-cap{margin:12px 0 0;font-size:14px;line-height:1.55;color:var(--ig-muted)}
@media (scripting:enabled) and (prefers-reduced-motion:no-preference){
  main.ig.zw .zw-duel[data-bl-reveal] .zw-duel-bar i{transform:scaleX(0);transition:transform .9s cubic-bezier(.2,.8,.2,1);transition-delay:calc(var(--r,0)*.08s + .2s)}
  main.ig.zw .zw-duel[data-bl-reveal].is-in .zw-duel-bar i{transform:none}
}
@media (max-width:720px){
  main.ig.zw .zw-duel{padding:18px 16px}
  main.ig.zw .zw-duel-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
  main.ig.zw .zw-duel-bar{grid-column:1/-1;grid-row:2}
}

/* the QuanticData column of a comparison keeps a readable width on a phone (the table scrolls inside its region) */
@media (max-width:720px){main.ig.zw .ig-table :is(td,th).bl-us{min-width:10em}main.ig.zw .ig-table td{min-width:7.5em}}

/* 3. code */
main.ig.zw .zw-code{margin:16px 0 0;padding:16px 18px;border-radius:14px;background:#0B1020;color:#C9D3E8;font:13.5px/1.65 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-x:auto;white-space:pre;max-width:100%}
main.ig.zw .zw-code code{font:inherit;color:inherit;background:none;padding:0}
