/* Wave 6 ISP country pages in Japanese, Korean and Simplified Chinese (18 Nov 2026). Markup: isp-cjk-w6-build.mjs.
   Loaded after best-l10n/best-l10n.css (bands, tables, picker, reveal), 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 with Latin subsets, so
      each script gets its own system faces through the two variables the hero sheet reads (same faces as the existing
      zh/ja/ko pages); CJK/Hangul titles without negative tracking, broken between phrases (.nw); Korean keep-all.
   2. The "same IP on day 1, 15 and 30" strip (.w6-same): three stamps reveal one after the other, the address stays.
   3. Code block, city CTA, carrier column. */
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:lang(ko) #ihb{--font-head:'Sora',"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;--font-body:'InterVar',"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif}
html:is(:lang(zh),:lang(ja),:lang(ko)) #ihb h1{font-size:clamp(28px,3vw,40px);line-height:1.26;letter-spacing:0;max-width:100%}
html:is(:lang(zh),:lang(ja),:lang(ko)) #ihb .ihb-lead{line-height:1.8}
html:is(:lang(zh),:lang(ja)) #ihb,html:is(:lang(zh),:lang(ja)) main.w6{line-break:strict}
html:lang(ko) #ihb,html:lang(ko) main.w6{word-break:keep-all;overflow-wrap:break-word}
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),:lang(ko)) #ihb h1{font-size:clamp(25px,7vw,34px);line-height:1.32;max-width:none}}
html:is(:lang(zh),:lang(ja),:lang(ko)) #ihb .tool-byline{line-height:1.6}
/* the answer in the first screen: on these pages the lead (definition, country, cities, per IP, term, price, delivery) sits
   under the h1, before the buttons, instead of under the tiles as on the hub */
main.w6 #ihb .ihb-head .ihb-lead{margin:16px 0 0;max-width:none;font-size:16px;line-height:1.75}
/* the left column starts at the top instead of being centred against the map: the map's height settles after its script
   runs, and a centred column would move with it (layout shift) */
@media (min-width:960px){main.w6 #ihb .ihb-in{grid-template-rows:auto auto auto minmax(0,1fr) auto auto auto}main.w6 #ihb .ihb-head{padding-top:28px}}
@media (max-width:959px){main.w6 #ihb .ihb-head .ihb-lead{margin-top:14px;font-size:15.5px}}
/* the lead mixes CJK with many Latin words and figures: set in the system CJK face only, so the late swap of the Latin web
   font cannot rewrap it (measured: +1 line, CLS 0.20 on the Japanese page at 1280 px) */
html:lang(ja) main.w6 #ihb .ihb-lead{font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic",Meiryo,"Noto Sans JP",sans-serif}
html:lang(ko) main.w6 #ihb .ihb-lead{font-family:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif}
html:lang(zh) main.w6 #ihb .ihb-lead{font-family:"PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif}
main.w6 .w6-updated{margin-bottom:10px;font-size:14px;line-height:1.6;color:var(--ig-muted)}

/* 2. same IP strip */
main.w6 .w6-same{margin:28px 0 0;padding:20px 22px 18px;background:#fff;border:1px solid var(--ig-line);border-radius:20px;box-shadow:var(--bl-card-shadow)}
html.qd-fresh main.w6 .w6-same-t{margin:0 0 14px;font-size:15px;line-height:1.45;font-weight:600;color:var(--ig-ink)}
main.w6 .w6-same-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
main.w6 .w6-same-days li{display:flex;flex-direction:column;gap:6px;min-height:92px;padding:14px 14px 12px;border-radius:14px;background:rgba(75,63,214,.06);border:1px solid rgba(75,63,214,.14)}
html.qd-fresh main.w6 .w6-same-d{font-size:13px;line-height:1.3;font-weight:600;color:var(--bl-violet,#4B3FD6)}
main.w6 .w6-same-days code{font:600 15px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--ig-ink);background:none;padding:0;white-space:nowrap}
html.qd-fresh main.w6 .w6-same-k{font-size:13px;line-height:1.35;color:var(--ig-muted)}
html.qd-fresh main.w6 .w6-same-cap{margin:12px 0 0;font-size:13.5px;line-height:1.55;color:var(--ig-muted)}
@media (scripting:enabled) and (prefers-reduced-motion:no-preference){
  main.w6 .w6-same[data-bl-reveal] .w6-same-days li{opacity:.25;transform:translateY(6px);transition:opacity .5s ease,transform .5s ease;transition-delay:calc(var(--i,0)*.55s + .2s)}
  main.w6 .w6-same[data-bl-reveal].is-in .w6-same-days li{opacity:1;transform:none}
  main.w6 .w6-same[data-bl-reveal].is-in .w6-same-days code{animation:w6-hold 1.2s ease calc(var(--i,0)*.55s + .5s) 1 both}
}
@keyframes w6-hold{0%{color:var(--ig-ink)}40%{color:#059669}100%{color:var(--ig-ink)}}
@media (max-width:560px){
  main.w6 .w6-same{padding:16px 14px}
  main.w6 .w6-same-days{grid-template-columns:1fr;gap:8px}
  main.w6 .w6-same-days li{min-height:0;flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:12px;padding:10px 12px}
}

/* 3. code, CTA, carriers */
main.w6 .w6-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.w6 .w6-code code{font:inherit;color:inherit;background:none;padding:0}
main.w6 .w6-cta-row{margin:20px 0 0}
main.w6 .ig-table td.w6-asn{font-size:13.5px;line-height:1.5;min-width:16em}
@media (max-width:720px){main.w6 .ig-table td{min-width:6.5em}main.w6 .ig-table td.w6-asn{min-width:14em}}
/* the two-column tables (facts, comparison) fit the phone instead of scrolling: the answer is read without swiping */
main.w6 .ig-table :is(#w6-facts,#w6-compare,#w6-tiers){min-width:0}
@media (max-width:720px){
  main.w6 .ig-table :is(#w6-facts,#w6-compare,#w6-tiers) :is(th,td){min-width:0;padding:12px 10px}
  main.w6 .ig-table #w6-facts tbody th{width:6.2em}
  main.w6 .ig-table #w6-compare{font-size:14px}
}
main.w6 .ig-table #w6-tiers :is(tbody th,td){white-space:nowrap}
main.w6 .ig-table #w6-tiers thead th{word-break:keep-all}

/* 18/11/2026 release check: the Japanese H1 goes from 2 to 3 lines when Sora arrives (CLS 0.21 at 1280 px); reserve the three lines */
html[lang="ja"] #ihb-h1{min-height:3lh}
