/* Datacenter test pages (18/11/2026): /datacenter-proxies/vs-residential-test/, /datacenter-proxies/concurrency-test/
   and the use pages under /datacenter-proxies/for/. Built by dc-tested-build.mjs; script dc-tested.js.
   Loaded after /best/datacenter-proxies/best-dc.css (section, prose, table, FAQ and card styles of html.qd-bdc), so this
   file only adds the measured blocks: the request strips (one dot per real request), the category bars and the
   concurrency chart. Every block is complete without the script; motion is opacity and transform only, and nothing
   changes size after the first paint. */

html.qd-dct{--t-ok:#1F9D63;--t-ok-soft:#DDF3E8;--t-cap:#D97706;--t-blk:#C2410C;--t-inc:#8A93A6;--t-err:#5A6377;--t-line:rgba(14,18,32,.09)}

/* ---------- the answer box under the hero */
html.qd-dct main .dct-answer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
html.qd-dct main .dct-kpi{padding:18px 18px 16px;background:#fff;border:1px solid var(--t-line);border-radius:16px;box-shadow:0 1px 2px rgba(14,18,32,.04),0 14px 38px -22px rgba(14,18,32,.16)}
html.qd-dct main .dct-kpi b{display:block;font:600 clamp(26px,2.6vw,34px)/1.05 var(--font-head,'Sora',system-ui,sans-serif);letter-spacing:-.02em;color:#0E1220;font-variant-numeric:tabular-nums}
html.qd-dct main .dct-kpi span{display:block;margin-top:6px;font-size:14.5px;line-height:1.45;color:#5A6377}
html.qd-dct main .dct-answer.bdc-after{margin-top:22px}
@media (max-width:899px){html.qd-dct main .dct-answer{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:559px){html.qd-dct main .dct-kpi{padding:14px 14px 12px}html.qd-dct main .dct-kpi b{font-size:22px}html.qd-dct main .dct-kpi span{font-size:13.5px}}

/* ---------- source line under a table or a chart */
html.qd-dct main .dct-src{margin:12px 2px 0;font-size:14px;line-height:1.5;color:#5A6377}
html.qd-dct main .dct-src a{color:#3B2FCF}

/* ---------- category bars (datacenter vs residential, success rate) */
html.qd-dct main .dct-bars{margin:0;padding:20px 20px 8px}
html.qd-dct main .dct-bars-legend{display:flex;flex-wrap:wrap;gap:16px;margin:0 0 14px;font-size:14px;color:#5A6377}
html.qd-dct main .dct-bars-legend i{display:inline-block;width:12px;height:12px;margin-right:6px;border-radius:3px;vertical-align:-1px}
html.qd-dct main .dct-row{display:grid;grid-template-columns:minmax(150px,240px) 1fr;gap:6px 16px;align-items:center;padding:10px 0;border-top:1px solid var(--t-line)}
html.qd-dct main .dct-row:first-of-type{border-top:0}
html.qd-dct main .dct-row-name{font-size:15.5px;font-weight:600;color:#0E1220}
html.qd-dct main .dct-row-name small{display:block;font-weight:400;font-size:13.5px;color:#5A6377}
html.qd-dct main .dct-pair{display:grid;gap:6px}
html.qd-dct main .dct-bar{position:relative;display:grid;grid-template-columns:1fr 64px;align-items:center;gap:10px;font-size:14px;color:#3A4256}
html.qd-dct main .dct-bar .trk{position:relative;height:12px;border-radius:6px;background:#EEF0F5;overflow:hidden}
html.qd-dct main .dct-bar .fil{position:absolute;inset:0 auto 0 0;width:100%;border-radius:6px;transform-origin:0 50%;transform:scaleX(var(--v,0))}
html.qd-dct main .dct-bar.is-dc .fil{background:#4B3FD6}
html.qd-dct main .dct-bar.is-res .fil{background:#1F9D63}
html.qd-dct main .dct-bar b{font-variant-numeric:tabular-nums;font-weight:600;color:#0E1220;text-align:right}
html.qd-dct.dct-js main .dct-bars:not(.is-in) .fil{transform:scaleX(0)}
html.qd-dct.dct-js main .dct-bars.is-in .fil{transition:transform .9s cubic-bezier(.16,1,.3,1) var(--d,0s)}

/* ---------- request strips: one dot per request, in the order it was sent */
html.qd-dct main .dct-strip{display:grid;grid-template-columns:repeat(20,8px);gap:3px;align-items:center;min-height:8px}
html.qd-dct main .dct-strip i{display:block;width:8px;height:8px;border-radius:2px;background:var(--t-err)}
html.qd-dct main .dct-strip i.s{background:var(--t-ok)}
html.qd-dct main .dct-strip i.c{background:var(--t-cap)}
html.qd-dct main .dct-strip i.b{background:var(--t-blk)}
html.qd-dct main .dct-strip i.n{background:var(--t-inc)}
html.qd-dct main .dct-strip i.e{background:#fff;box-shadow:inset 0 0 0 1.5px var(--t-err)}
html.qd-dct.dct-js main .dct-matrix tr:not(.is-in) .dct-strip i{opacity:.18}
html.qd-dct.dct-js main .dct-matrix tr.is-in .dct-strip i{transition:opacity .25s ease calc(var(--k,0) * 45ms)}
html.qd-dct main .dct-key{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0;padding:16px 20px 4px;font-size:14px;color:#5A6377;list-style:none}
html.qd-dct main .dct-key li{display:flex;align-items:center;gap:6px}
html.qd-dct main .dct-key i{display:inline-block;width:10px;height:10px;border-radius:2px}
html.qd-dct main table.dct-mx td.bdc-num{text-align:right}
html.qd-dct main table.dct-mx .dct-pc{font-weight:600;color:#0E1220}
html.qd-dct main table.dct-mx .dct-verdict{font-weight:600}
html.qd-dct main table.dct-mx .is-dcok{color:#14532D}
html.qd-dct main table.dct-mx .is-resok{color:#3B2FCF}
html.qd-dct main table.dct-mx .is-neither{color:#5A6377}

/* ---------- concurrency chart: one column per level */
html.qd-dct main .dct-cc{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:14px;margin:0;padding:20px}
html.qd-dct main .dct-cc-col{display:grid;grid-template-rows:auto 168px auto;gap:10px;text-align:center}
html.qd-dct main .dct-cc-col h3{margin:0;font:600 16px/1.3 var(--font-head,'Sora',system-ui,sans-serif);color:#0E1220}
html.qd-dct main .dct-cc-plot{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:10px;border-bottom:1px solid var(--t-line)}
html.qd-dct main .dct-cc-plot span{display:block;width:30%;max-width:44px;height:100%;border-radius:8px 8px 0 0;transform-origin:50% 100%;transform:scaleY(var(--v,0))}
html.qd-dct main .dct-cc-plot .ok{background:#1F9D63}
html.qd-dct main .dct-cc-plot .p50{background:#4B3FD6}
html.qd-dct main .dct-cc-plot .p95{background:#A9A2F0}
html.qd-dct.dct-js main .dct-cc:not(.is-in) .dct-cc-plot span{transform:scaleY(0)}
html.qd-dct.dct-js main .dct-cc.is-in .dct-cc-plot span{transition:transform .8s cubic-bezier(.16,1,.3,1) var(--d,0s)}
html.qd-dct main .dct-cc-col p{margin:0;font-size:14px;line-height:1.5;color:#3A4256;font-variant-numeric:tabular-nums}
html.qd-dct main .dct-cc-col p b{color:#0E1220}
@media (max-width:699px){html.qd-dct main .dct-cc{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- live session counter in the concurrency hero card (counts up to the measured level, once) */
html.qd-dct main .dct-sessions{font-variant-numeric:tabular-nums}

@media (max-width:767px){
  html.qd-dct main .dct-row{grid-template-columns:1fr}
}
/* phone: one compact card per site, "network · squares · count" on one line each */
@media (max-width:760px){
  html.qd-dct.qd-bdc main table.bdc-table.bdc-cards.dct-mx tr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:center;padding:14px 14px 10px}
  html.qd-dct.qd-bdc main table.bdc-table.bdc-cards.dct-mx tbody th{grid-column:1/-1;padding:0 0 8px}
  html.qd-dct.qd-bdc main table.bdc-table.bdc-cards.dct-mx td{padding:8px 0;border-top:1px solid var(--t-line)}
  html.qd-dct.qd-bdc main table.bdc-table.bdc-cards.dct-mx td.dct-pc{text-align:right;font-size:15px}
  html.qd-dct.qd-bdc main table.bdc-table.bdc-cards.dct-mx td.dct-pc::before{display:none}
  html.qd-dct.qd-bdc main table.bdc-table.bdc-cards.dct-mx td::before{font-size:13px;margin:0 0 4px}
  html.qd-dct.qd-bdc main table.bdc-table.bdc-cards.dct-mx td.dct-verdict{grid-column:1/-1;padding-bottom:2px}
  html.qd-dct.qd-bdc main table.bdc-table.bdc-cards.dct-mx td.dct-verdict::before{display:none}
}
@media (prefers-reduced-motion:reduce){
  html.qd-dct main .dct-bars .fil,html.qd-dct main .dct-strip i,html.qd-dct main .dct-cc-plot span{transition:none!important}
  html.qd-dct.dct-js main .dct-bars:not(.is-in) .fil{transform:scaleX(var(--v,0))}
  html.qd-dct.dct-js main .dct-matrix tr:not(.is-in) .dct-strip i{opacity:1}
  html.qd-dct.dct-js main .dct-cc:not(.is-in) .dct-cc-plot span{transform:scaleY(var(--v,0))}
}
