/*
 * oral-check.css - oral-check page only.
 *
 * Native controls, large touch targets, visible focus, and a layout that reflows at 200%
 * zoom. Without scripting the three results stay visible and the ask-for-result control
 * is hidden, so nothing on the page is inert.
 */

.tta-check {
	max-width: var(--tta-measure);
}

.tta-check fieldset {
	margin: 0 0 1.75rem;
	padding: 1rem;
	border: 1px solid var(--tta-mint);
	border-radius: 0.25rem;
	background: var(--tta-warm);
	min-width: 0;
}

.tta-check legend {
	padding: 0 0.4rem;
	font-family: var(--tta-serif);
	font-size: 1.0625rem;
	color: var(--tta-ink);
}

.tta-check-note {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	color: var(--tta-tea);
}

.tta-check-options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.35rem;
}

.tta-check-options li {
	margin: 0;
}

.tta-check-options label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.6rem 0.5rem;
	background: var(--tta-ivory);
	border: 1px solid var(--tta-mint);
	border-radius: 0.25rem;
	cursor: pointer;
	line-height: 1.6;
}

.tta-check-options input {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0.25rem 0 0;
	flex: none;
	accent-color: var(--tta-ink);
}

.tta-check-options input:focus-visible {
	outline: 3px solid var(--tta-gold);
	outline-offset: 2px;
}

.tta-check-options label:hover {
	border-color: var(--tta-gold);
}

/* The ask-for-result control only appears when it can do something. */

.tta-check-actions {
	display: none;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
}

.tta-check-live .tta-check-actions {
	display: flex;
}

.tta-check-actions button {
	font: inherit;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 0.25rem;
	background: var(--tta-ink);
	color: var(--tta-ivory);
	font-weight: 700;
	cursor: pointer;
}

.tta-check-actions button:hover,
.tta-check-actions button:focus-visible {
	background: var(--tta-tea);
}

.tta-check-reset {
	display: none;
}

.tta-check-answered .tta-check-reset {
	display: inline-block;
}

.tta-check-hint {
	display: none;
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
	background: var(--tta-mint);
	border-left: 4px solid var(--tta-ink);
}

.tta-check-hint.tta-hint-shown {
	display: block;
}

.tta-check-hint p {
	margin: 0;
}

/* Results */

.tta-outcome {
	margin: 0 0 1.5rem;
	padding: 1.15rem 1.15rem 0.5rem;
	border: 2px solid var(--tta-mint);
	border-radius: 0.25rem;
	background: var(--tta-ivory);
}

.tta-outcome h2 {
	margin-top: 0;
	font-size: 1.2rem;
}

.tta-outcome:focus-visible {
	outline: 3px solid var(--tta-gold);
	outline-offset: 3px;
}

.tta-outcome-3 {
	border-color: var(--tta-gold);
	background: var(--tta-warm);
}

.tta-check-live .tta-outcome {
	display: none;
}

.tta-check-live .tta-outcome.tta-outcome-shown {
	display: block;
}

@media (min-width: 768px) {
	.tta-check-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.tta-outcome {
		transition: none;
	}
}
