/* ─────────────────────────────────────────────────────────────────────────────────────
   drivetime[-<lang>].html (site decision S108): how the DriveTime surface test tells a failing disk from its slot,
   a recorded quick test in a 120x40 window, the commands and the downloads. The page loads assets/entware.css (its
   sections, bands, steps and buttons) and assets/memhound.css (the three numbers, the bars, the result cards, the
   terminal window), and assets/memhound.js plays the recording. This file adds DriveTime's own blocks. The words and
   the markup come from docs/site/drivetime-page/ through tools/site-product-pages.py and tools/site_drivetime.py.
   ───────────────────────────────────────────────────────────────────────────────────── */
.dt{--p-v:#3987e5;--p-r:#ffb020;--dim-r:#8a969c}
.dt-sub{margin-top:clamp(40px,5vw,72px)}
.dt .dt-lead{margin:0 0 14px;font-weight:600;color:var(--ink)}
.mh-r-dim{border-left-color:var(--dim-r)}
.mh-r-dim .mh-word{color:var(--dim-r)}
.dt .mh-word{font-size:26px}

/* one quick test, measured: the self-test bar stands out */
.dt-time .mh-b{grid-template-columns:minmax(10em,19em) minmax(0,1fr) 5em}
.dt-t-self .mh-bt i{background:var(--p-r)}
.dt-t-map .mh-bt i{background:var(--p-v)}

/* inside the drive or over the link */
.dt-paths{margin:0;padding:clamp(16px,2vw,24px);border:1px solid var(--rule-hi);border-radius:14px;background:var(--term,#0B0F12);color:var(--ink)}
.dt-paths svg{display:block;width:100%;height:auto;font-family:var(--sans);font-size:15px}
.dt-box{fill:color-mix(in srgb,var(--panel,#151C21) 90%,transparent);stroke:var(--rule-hi);stroke-width:1.5}
.dt-path{stroke-dasharray:6 5}
.dt-bt{fill:var(--ink);font-weight:600;font-size:14px}
.dt-plat{fill:none;stroke:var(--dim);stroke-width:2}
.dt-hub{fill:var(--dim)}
.dt-v{color:var(--p-v);fill:var(--p-v)}
.dt-v path{fill:none;stroke:currentColor;stroke-width:3}
.dt-v .dt-thin{stroke-width:1.5;stroke-dasharray:4 4}
.dt-v .dt-s{font-size:13px;fill:var(--dim)}
.dt-r{color:var(--p-r);fill:var(--p-r)}
.dt-r path{fill:none;stroke:currentColor}
.dt-r .dt-fat{stroke-width:14}
.dt-r .dt-head{fill:currentColor;stroke:none}
.dt-paths figcaption,.dt-map figcaption,.dt-drives figcaption,.dt-time figcaption{margin-top:14px;font-size:14.5px;line-height:1.5;color:var(--dim)}

/* the surface map and its codes */
.dt-map{margin:0;padding:clamp(16px,2vw,24px);border:1px solid var(--rule-hi);border-radius:14px;background:var(--term,#0B0F12)}
.dt-map svg{display:block;width:100%;max-width:560px;height:auto;margin:0 auto;background:#000}
.dt-codes{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px 18px;margin:18px 0 0;padding:0;list-style:none}
.dt .dt-codes li{display:flex;gap:10px;align-items:center;font-size:14.5px;line-height:1.35;color:var(--dim)}
.dt-sw{display:grid;place-items:center;width:18px;height:18px;flex:none;border-radius:3px;font:700 12px/1 var(--mono);font-style:normal;color:#fff}

/* four drives */
.dt-drives .mh-b{grid-template-columns:minmax(8em,11em) minmax(0,1fr) 4em}
.dt-dr .mh-bt i{background:var(--p-v)}
.dt-tw{margin-top:18px;overflow-x:auto}
.dt-tw td small{color:var(--dim)}
.dt table{border-collapse:collapse;width:100%;font-size:14.5px}
.dt th,.dt td{padding:8px 10px;border-bottom:1px solid var(--rule-hi);text-align:left;vertical-align:top}

/* the 120x40 window: 120 columns of 0.5em are 60em. The browser rounds each character of the VGA font to whole
   pixels, so the font size is an even number of pixels (a column a whole pixel wide), rounded down so the 120
   columns always fit; at full width a column is 9 px (1080 px of text in a window of 1104 px) */
.dt-term{max-width:1104px}
.dt .mh-tx{width:max-content;max-width:100%;margin-inline:auto;font-size:calc(100cqw / 62);font-size:round(down,calc(100cqw / 60),2px)}

/* commands and keys */
.dt-keys{display:grid;gap:8px;margin:0}
.dt-keys div{display:grid;grid-template-columns:5.5em minmax(0,1fr);gap:12px;align-items:baseline}
.dt-keys dt{display:flex;gap:6px}
.dt .dt-keys dd{margin:0;font-size:15.5px;line-height:1.5;color:var(--ink)}
.dt .dt-app{margin:0;max-width:72ch;color:var(--ink)}
.dt-track li{min-width:0}
@media (max-width:640px){.dt-time .mh-b,.dt-drives .mh-b{grid-template-columns:minmax(0,1fr) 5.4em}}
