/* ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   cpuhound[-<lang>].html (site decision S107): how CPUhound measures a CPU and judges its own numbers, the measured
   subtests, the two recorded runs in a 120x32 window, the commands and the downloads. The page also loads
   assets/entware.css (sections, bands, steps, buttons) and assets/memhound.css (the facts, the bars and their tooltips,
   the result cards, the terminal window, the options and downloads); this file adds CPUhound's own blocks and the
   window's size. The words and the markup come from docs/site/cpuhound-page/ through tools/site-product-pages.py and
   tools/site_cpuhound.py; assets/memhound.js plays the recordings.
   ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── */
.ch{--c-base:#199e70;--c-accel:#3987e5;--info:#8fb8de}

/* the probe and the full run */
.ch-modes{overflow-x:auto}
.ch-modes table{border-collapse:collapse;width:100%;font-size:15px}
.ch-modes th,.ch-modes td{padding:10px 12px;border-bottom:1px solid var(--rule);text-align:left;vertical-align:top;color:var(--ink);line-height:1.45}
.ch-modes thead th{color:var(--led);font-weight:600}
.ch-modes tbody th{color:var(--dim);font-weight:600;white-space:nowrap}
.ch-modes td code{font-size:14px}
.ch-modes+div h3{margin-top:0}
@media (max-width:640px){
  .ch-modes thead{display:none}
  .ch-modes tr{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;padding:10px 0;border-bottom:1px solid var(--rule)}
  .ch-modes tbody th{grid-column:1/-1;padding:0 0 6px;border:0;white-space:normal}
  .ch-modes td{padding:0;border:0}
  .ch-modes td::before{content:attr(data-l);display:block;color:var(--led);font-size:13px;font-weight:600;margin-bottom:2px}
}

/* the five values of the verdict */
.ch-sigs{display:grid;gap:14px;margin:0;padding:0;list-style:none}
@media (min-width:760px){.ch-sigs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1180px){.ch-sigs{grid-template-columns:repeat(3,minmax(0,1fr))}}
.ch-sigs li{padding:18px 20px;border:1px solid var(--rule-hi);border-radius:12px;background:var(--term,#0B0F12)}
.ch .ch-sigs h3{margin:0 0 8px;font-size:18px}
.ch .ch-sigs p{margin:0 0 8px;font-size:15.5px;line-height:1.5}
.ch .ch-sigs .ch-lim{margin:0;color:var(--led)}
.ch-lim span{color:var(--dim)}
.ch .ch-after{max-width:72ch;margin:20px 0 0}

/* the five verdicts: INDICATIVE in its own colour */
.ch-results .mh-r-info{border-left-color:var(--info)}
.ch-results .mh-r-info .mh-word{color:var(--info)}
.ch-results .mh-word{font-size:26px}

/* the CPH index: two numbers */
.ch-idx{margin:0;align-self:center}
.ch-idx ul{display:grid;gap:14px;margin:0;padding:0;list-style:none}
.ch-idx li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center;padding:22px 24px;border:1px solid var(--rule-hi);border-radius:14px;background:var(--term,#0B0F12)}
.ch-idx b{font-family:var(--cond);font-weight:700;font-size:clamp(40px,4.6vw,64px);line-height:1;color:var(--led);font-variant-numeric:tabular-nums;min-width:3.4ch;text-align:right}
.ch .ch-idx span{color:var(--ink);font-size:17px}
.ch-idx figcaption{margin-top:14px;font-size:14.5px;line-height:1.5;color:var(--dim)}

/* the bars: base code and special instructions; the track's full width is the number of threads */
.ch-bars .mh-b{grid-template-columns:minmax(9em,13em) minmax(0,1fr) 5em}
.ch-bars .mh-bt{background:color-mix(in srgb,var(--ink) 6%,transparent);border-radius:0 4px 4px 0}
.ch-bars .mh-bn small{color:var(--dim);font-family:var(--mono);font-size:13px}
.ch-base .mh-bt i,.ch-k-base{background:var(--c-base)}
.ch-accel .mh-bt i,.ch-k-accel{background:var(--c-accel)}
.ch-bars .mh-tip{left:calc(min(13em,40%) + 18px)}
.ch-k-track{display:block;width:28px;height:14px;border-radius:0 4px 4px 0;flex:none;background:color-mix(in srgb,var(--ink) 12%,transparent)}
.ch-rates{display:flex;flex-wrap:wrap;gap:6px 22px;margin:14px 0 0;padding:0;list-style:none;font-family:var(--mono);font-size:13.5px;color:var(--dim)}
@media (max-width:640px){.ch-bars .mh-b{grid-template-columns:minmax(0,1fr) 4.6em}.ch-bars .mh-tip{left:6px}}

/* the rounds of a full run */
.ch-conv{margin:0}
.ch-svgw{overflow-x:auto;max-width:900px}
.ch-svg{display:block;width:100%;min-width:560px;height:auto;overflow:visible}
.ch-grid{stroke:var(--rule);stroke-width:1}
.ch-ax{fill:var(--dim);font:13px var(--mono)}
.ch-win{fill:color-mix(in srgb,var(--c-base) 14%,transparent)}
.ch-score{stroke:var(--c-base);stroke-width:2;stroke-dasharray:6 5}
.ch-lab{fill:var(--ink);font:13.5px var(--sans)}
.ch-line{fill:none;stroke:var(--led);stroke-width:2;stroke-linejoin:round}
.ch-pt circle{fill:var(--led);stroke:var(--term,#0B0F12);stroke-width:2}
.ch-pt .ch-hit{fill:transparent;stroke:none}
.ch-pt:hover circle:not(.ch-hit),.ch-pt:focus-visible circle:not(.ch-hit){r:7px}
.ch-pt:focus-visible{outline:none}
.ch-conv figcaption{margin-top:14px;max-width:80ch;font-size:14.5px;line-height:1.5;color:var(--dim)}

/* the 120x32 window: one cell = 0.5em, so 120 columns are 60em */
.ch-term{max-width:1240px}
.ch .ch-term .mh-tx{font-size:calc(100cqw / 60)}

.ch-dl{margin-bottom:0}
