/* =========================================================================
   Canthal tilt test (/canthal-tilt-test/). Loaded after eyecolor.css, whose
   .ec-result, .ec-eye and .privacy-line it reuses, on top of eyeshapes.css.
   ========================================================================= */

.ct-head {
	min-width: 0;
}

.ct-value {
	margin: 0.2rem 0 0;
	font-family: var(--mono);
	font-size: clamp(2.8rem, 2rem + 4vw, 4rem);
	line-height: 1;
	color: var(--iris);
	font-variant-numeric: tabular-nums;
}

.ct-value__unit {
	font-size: 0.6em;
	vertical-align: 0.55em;
	margin-inline-start: 0.05em;
}

/* The needle follows drags, so it moves by transition, not the one-shot seek. */
.ct-axis .axis__seek {
	animation: none;
	transition: transform 420ms var(--out-expo);
}

.ct-eye canvas {
	touch-action: none;
	cursor: grab;
}

.ct-eye canvas.is-dragging {
	cursor: grabbing;
}

.ct-eye__cap {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	min-width: 0;
}

.ct-eye__cap .readout {
	color: var(--catch);
	font-variant-numeric: tabular-nums;
}

.ct-hint {
	margin-top: -0.6rem;
	font-size: var(--step-small);
}

/* --- Bands --------------------------------------------------------------- */

.ct-bands {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.ct-band {
	min-width: 0;
	display: grid;
	align-content: start;
	gap: 0.45rem;
	padding: 1.1rem;
	border: 1px solid var(--edge);
	border-radius: var(--radius-lg);
	background: var(--stroma);
}

.ct-band h3,
.ct-band p {
	margin: 0;
}

.ct-band__mark {
	width: 7.5rem;
	height: 3rem;
	color: var(--iris);
}

@media (prefers-reduced-motion: reduce) {
	.ct-axis .axis__seek {
		transition: none;
	}
}
