/* Wave 4 of the localized pages in vi, tr, id (18/11/2026), written by wave4-vi-id-tr-build.mjs.
   The first screen is hero B of the English hub as it ships (its own hero-b.css); the page under it uses
   /best-res-dc-i18n/best-res-dc.css (fresh look: white cards, violet accents, 20px radius, soft shadows).
   This file adds what those two do not have: code blocks, the Vietnamese letters of Inter, and the rotation view
   (rot.js). Nothing here changes size after the first paint. */

/* ---------- code blocks (curl, Python) */
html.qd-bx main .w2-code{margin:20px 0 0;border:1px solid var(--bx-line,rgba(14,18,32,.09));border-radius:var(--bx-r,20px);background:#0E1220;box-shadow:var(--bx-shadow,0 1px 2px rgba(14,18,32,.04),0 14px 38px -22px rgba(14,18,32,.16));overflow:hidden}
html.qd-bx main .w2-code pre{margin:0;padding:18px 20px;overflow-x:auto;-webkit-overflow-scrolling:touch}
html.qd-bx main .w2-code code{display:block;font:500 14.5px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#E6E9F2;background:none;padding:0;white-space:pre}
html.qd-bx main .w2-code figcaption{margin:0;padding:10px 20px 12px;border-top:1px solid rgba(255,255,255,.08);font-size:14px;line-height:1.45;color:#B2BDD1;background:#141a2b}
html.qd-bx main .bx-sec code:not(pre code){font:500 .92em/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;padding:1px 6px;border-radius:6px;background:var(--bx-violet-soft,#EEEBFF);color:var(--bx-ink,#0E1220);overflow-wrap:anywhere}
@media (max-width:600px){
  html.qd-bx main .w2-code pre{padding:14px 14px}
  html.qd-bx main .w2-code code{font-size:13.5px}
}

/* ---------- Vietnamese: inter-var.woff2 is the Latin subset of Inter 4.001 and Sora has no Vietnamese at all, so the
   Vietnamese subset of the same Inter build (vi/fonts/, SIL OFL 1.1) joins the family by unicode-range, and inside
   <main> the headings use Inter (as on the other /vi/ pages). The nav and footer keep Sora. */
@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}
html.qd-bx[lang="vi"] main{--font-head:'InterVar','Inter Fallback',-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
html.qd-bx[lang="vi"] main :is(h1,h2,h3),
html.qd-bx[lang="vi"] main :is(.dhb-eyebrow,.dhb-count b,.dhb-tt,.mhb-tt,.rhb-n){font-family:var(--font-head)}

/* ---------- spacing: a paragraph after a list, a table, a code block or a figure */
html.qd-bx main .bx-wrap > :is(ul,ol,figure,div) + p{margin-top:18px}

/* ---------- the rotation view: a request log of fixed height (5 rows), one exit IP per row */
html.qd-bx main .w4-rot{margin:22px 0 0;border:1px solid var(--bx-line,rgba(14,18,32,.09));border-radius:var(--bx-r,20px);background:#fff;box-shadow:var(--bx-shadow,0 1px 2px rgba(14,18,32,.04),0 14px 38px -22px rgba(14,18,32,.16));overflow:hidden}
html.qd-bx main .w4-rot-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:14px 16px 12px;border-bottom:1px solid var(--bx-line,rgba(14,18,32,.09))}
html.qd-bx main .w4-rot-tabs{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:var(--bx-violet-soft,#EEEBFF)}
html.qd-bx main .w4-rot-tabs button{min-height:40px;padding:0 16px;border:0;border-radius:999px;background:transparent;font:600 14.5px/1 var(--font-head,inherit);color:var(--bx-ink,#0E1220);cursor:pointer;transition:background .2s,color .2s}
html.qd-bx main .w4-rot-tabs button[aria-pressed="true"]{background:#4B3FD6;color:#fff}
html.qd-bx main .w4-rot-tabs button:focus-visible{outline:2px solid #4B3FD6;outline-offset:2px}
html.qd-bx main .w4-rot-note{margin:0;font-size:14px;line-height:1.4;color:var(--bx-muted,#4A5168)}
html.qd-bx main .w4-rot-cmd{margin:0;padding:12px 16px;background:#0E1220;overflow-x:auto;-webkit-overflow-scrolling:touch}
html.qd-bx main .w4-rot-cmd .w4-rot-line{display:block;font:500 13.5px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#E6E9F2;background:none;padding:0;white-space:pre}
html.qd-bx main .w4-rot-meter{height:4px;background:var(--bx-violet-soft,#EEEBFF)}
html.qd-bx main .w4-rot-meter i{display:block;height:100%;background:#4B3FD6;transform-origin:0 50%;transform:scaleX(1);transition:transform 1.2s linear}
html.qd-bx main .w4-rot-log{list-style:none;margin:0;padding:6px 0;counter-reset:none}
html.qd-bx main .w4-rot-log li{display:grid;grid-template-columns:34px minmax(0,1.3fr) minmax(0,1fr) auto;gap:10px;align-items:center;height:48px;padding:0 16px;border-top:1px solid rgba(14,18,32,.05);font-size:14.5px;line-height:1.3}
html.qd-bx main .w4-rot-log li:first-child{border-top:0}
html.qd-bx main .w4-rot-log .w4-n{font:600 13px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--bx-muted,#4A5168)}
html.qd-bx main .w4-rot-log .w4-n::before{content:'#'}
html.qd-bx main .w4-rot-log .w4-ip{font:600 14px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--bx-ink,#0E1220);background:none;padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.qd-bx main .w4-rot-log .w4-net{color:var(--bx-muted,#4A5168);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.qd-bx main .w4-rot-log .w4-tag{justify-self:end;padding:4px 10px;border-radius:999px;background:#E3F8EF;color:#0B5B3B;font-size:12.5px;font-weight:600;white-space:nowrap}
html.qd-bx main .w4-rot-log .w4-tag.is-same{background:var(--bx-violet-soft,#EEEBFF);color:#3A30B0}
html.qd-bx main .w4-rot-log li.is-new{animation:w4-in .5s ease-out both}
html.qd-bx main .w4-rot-log li.is-new .w4-ip{animation:w4-hl 1.2s ease-out both}
@keyframes w4-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes w4-hl{from{color:#4B3FD6}to{color:var(--bx-ink,#0E1220)}}
html.qd-bx main .w4-rot figcaption{margin:0;padding:12px 16px 14px;border-top:1px solid var(--bx-line,rgba(14,18,32,.09));font-size:14px;line-height:1.5;color:var(--bx-muted,#4A5168)}
@media (max-width:600px){
  html.qd-bx main .w4-rot-log li{grid-template-columns:28px minmax(0,1fr) auto;grid-template-rows:auto auto;height:60px;row-gap:2px;padding:0 12px}
  html.qd-bx main .w4-rot-log .w4-ip{grid-column:2;grid-row:1}
  html.qd-bx main .w4-rot-log .w4-net{grid-column:2;grid-row:2;font-size:13px}
  html.qd-bx main .w4-rot-log .w4-tag{grid-column:3;grid-row:1 / span 2}
  html.qd-bx main .w4-rot-log .w4-n{grid-row:1 / span 2}
  html.qd-bx main .w4-rot-tabs button{padding:0 12px;font-size:14px}
  html.qd-bx main .w4-rot-cmd .w4-rot-line{font-size:12.5px}
}
@media (prefers-reduced-motion:reduce){
  html.qd-bx main .w4-rot-log li.is-new,html.qd-bx main .w4-rot-log li.is-new .w4-ip{animation:none}
  html.qd-bx main .w4-rot-meter i{transition:none}
}
