/* Quality guide, mean and tail: loaded only on the guide's page, after style.css. */
.qa-t-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.qa-t-name { border-color: var(--purple); color: var(--purple); }
.qa-t-name.b { border-style: dashed; }
.qa-t-sub { font-size: 13px; color: var(--soft); }
.qa-t-chart { position: relative; height: 150px; border-bottom: 1px solid var(--border-strong); }
.qa-t-bar { position: absolute; bottom: 0; width: calc(100% / 200 * .72); height: 0; border-radius: 1px 1px 0 0; background: var(--soft); transition: height .5s cubic-bezier(.2, .8, .2, 1), left .9s cubic-bezier(.5, 0, .2, 1); }
.qa-t-bar.far { background: var(--red); }
.qa-t-limit { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed var(--fg); opacity: .7; pointer-events: none; }
.qa-t-limtag { position: absolute; left: 0; bottom: 3px; padding: 0 5px; border-radius: 4px; background: var(--bg); font: 600 11px var(--mono); color: var(--fg); white-space: nowrap; }
.qa-t-p99 { position: absolute; bottom: 0; height: 0; width: 0; border-left: 2px solid var(--purple); opacity: 0; transition: opacity .4s, height .5s ease; pointer-events: none; }
.qa-t-p99.on { opacity: 1; }
.qa-t-p99tag { position: absolute; right: -1px; bottom: calc(100% + 4px); padding: 1px 6px; border: 1px solid var(--purple); border-radius: 5px; background: var(--bg); font: 600 11.5px var(--mono); color: var(--purple); white-space: nowrap; }
.qa-t-axis { display: flex; justify-content: space-between; margin-top: 5px; font: 11px var(--mono); color: var(--quiet); }
.qa-t-gauges { display: grid; gap: 10px; }
.qa-t-gauge { display: grid; grid-template-columns: 52px minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.qa-t-glabel { font: 600 12px var(--mono); color: var(--soft); }
.qa-t-track { position: relative; height: 12px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-2); }
.qa-t-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: var(--quiet); transition: width .7s cubic-bezier(.2, .8, .2, 1), background .4s; }
.qa-t-fill.over { background: var(--red); }
.qa-t-tick { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 0; border-left: 2px solid var(--fg); }
.qa-t-val { font: 600 12.5px var(--mono); color: var(--fg); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qa-t-vrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; min-height: 28px; }
.qa-t-note { font-size: 12px; color: var(--quiet); }
.qa-t-verdict { opacity: 0; transition: opacity .4s; }
.qa-t-verdict.on { opacity: 1; }
.qa-t-verdict.pass { border-color: var(--fg); }
.qa-t-verdict.fail { border-color: var(--red); color: var(--red); }

@media (max-width: 600px) {
  .qa-t-chart { height: 130px; }
  .qa-t-bar { width: calc(100% / 200); }
  .qa-t-gauge { grid-template-columns: 38px minmax(0, 1fr) 84px; gap: 8px; }
  .qa-t-val { font-size: 11.5px; }
  .qa-t-sub { font-size: 12.5px; }
  .qa-t-vrow { display: grid; justify-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .qa-t-bar, .qa-t-fill, .qa-t-p99, .qa-t-verdict { transition: none; }
}
