/* ==========================================================================
   Latency Test — page-specific bits only. The test card shell, stat tiles,
   numbered steps, bulleted lists and comparison table all come from
   tool-shared.css (loaded alongside this file); nothing here duplicates it.
   ========================================================================== */

/* Several shared components set their own `display`, which — being author
   CSS — outranks the UA stylesheet's `[hidden]{display:none}` regardless of
   selector specificity. Re-assert it, scoped to this widget only, so JS can
   toggle state with plain `el.hidden`. */
#pv-latency-test [hidden] { display: none !important; }

/* ---------- Headline latency readout ---------- */

.pv-lt-label {
	margin: 0 0 4px;
	color: var(--pv-muted);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pv-lt-headline {
	margin: 0 0 14px;
	font-size: clamp(48px, 10vw, 68px);
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.pv-lt-headline small {
	margin-left: 6px;
	color: var(--pv-muted);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0;
}

/* ---------- Rating badge ---------- */

.pv-lt-badge {
	margin: 0 0 20px;
}
.pv-lt-badge--excellent { background: rgba(18, 183, 106, .12); color: #0b6b3d; }
.pv-lt-badge--good { background: rgba(14, 165, 196, .12); color: var(--pv-cyan); }
.pv-lt-badge--fair { background: rgba(255, 194, 61, .2); color: #92620a; }
.pv-lt-badge--high { background: rgba(255, 138, 31, .14); color: #9a4a06; }
.pv-lt-badge--very-high { background: rgba(214, 60, 60, .12); color: #b02a2a; }

/* ---------- Average / minimum / maximum / count breakdown ---------- */

.pv-lt__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 20px;
}

/* ---------- Interpretation callout ---------- */

.pv-lt-interp {
	max-width: 460px;
	margin: 0 auto 14px;
	padding: 14px 18px;
	border: 1px solid var(--pv-line-2);
	border-radius: 14px;
	background: var(--pv-soft-2);
	color: var(--pv-ink-2);
	font-size: 13.5px;
	line-height: 1.6;
	text-align: left;
}

/* ---------- Live success-rate line ---------- */

.pv-lt-rate {
	margin: 0 0 6px;
	color: var(--pv-muted);
	font-size: 12.5px;
	font-weight: 600;
}

@media (max-width: 560px) {
	.pv-lt__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
