/* TEA-Ch-style subtests. The task sheets (sky, path, tunnel) are fixed
   light "paper" colours, so the stimuli look the same in both themes; the
   chrome around them follows the theme. */

.teach-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.teach-error { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--border); background: var(--surface-2); }

.teach-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.teach-pick {
	display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left;
	padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px;
	background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
.teach-pick strong { font-size: 15px; }
.teach-pick span { font-size: 13px; color: var(--text-soft); line-height: 1.4; }
.teach-pick:hover:not(:disabled) { border-color: var(--accent); }
.teach-pick[aria-pressed="true"] { border-color: var(--accent-strong); background: var(--accent-soft); }
.teach-pick:disabled { cursor: not-allowed; opacity: 0.6; }
.teach-pick:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.teach-howto { margin: 4px 0 8px; }
.teach-howto-title { font-size: 19px; margin: 0 0 8px; }
.teach-howto p { margin: 0 0 8px; }
.teach-example { display: flex; flex-wrap: wrap; gap: 16px; margin: 4px 0 10px; }
.teach-example-pair { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--text-soft); }

.teach-stage { cursor: default; }
.teach-board { width: 100%; display: flex; justify-content: center; }
.teach-board:empty { display: none; }

/* Sky Search */
.teach-sky {
	display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px;
	width: 100%; max-width: 760px; padding: 8px; border-radius: 10px; background: #eaf2fb;
}
.teach-pair {
	display: flex; align-items: center; justify-content: center; gap: 2px;
	min-height: 40px; padding: 3px 5px; border: 2.5px solid transparent; border-radius: 999px;
	background: none; cursor: pointer;
}
.teach-pair.is-empty { cursor: default; }
.teach-pair.is-sample { background: #eaf2fb; cursor: default; padding: 4px 8px; }
.teach-pair.is-sample .teach-ship { width: 34px; }
.teach-pair:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.teach-pair[aria-pressed="true"] { border-color: #c2410c; background: rgb(194 65 12 / 0.12); }
.teach-ship { width: 46%; max-width: 34px; height: auto; display: block; }
.c-blue { color: #2f6fd6; }
.c-orange { color: #e8890c; }
.c-dark { color: #2b2b2b; }

/* Score! */
.teach-listen { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.teach-listen-icon {
	display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
	background: var(--surface); border: 1.5px solid var(--border); font-size: 34px; color: var(--text-soft);
}
.teach-listen p { margin: 0; max-width: 28em; color: var(--text-soft); }

/* Walk, Don't Walk */
.teach-walk, .teach-creature { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.teach-walk-label { margin: 0; color: var(--text-soft); font-size: 14px; }
.teach-path {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
	max-width: 560px; padding: 14px; border-radius: 12px; background: #efe7d6;
}
.teach-foot { position: relative; width: 26px; color: #b5a78c; }
.teach-foot svg { display: block; width: 100%; height: auto; }
.teach-foot.is-left { transform: translateY(6px); }
.teach-foot.is-right { transform: translateY(-6px) scaleX(-1); }
.teach-foot.is-dotted::after {
	content: ""; position: absolute; left: 50%; top: 62%; width: 11px; height: 11px;
	margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #1d2b36;
}

/* Creature Counting */
.teach-tunnel {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	max-width: 640px; padding: 12px 16px; border-radius: 24px; background: #e3d3b4;
	box-shadow: inset 0 0 0 3px #c9b38b;
}
.teach-entry { font-size: 13px; font-weight: 700; color: #6b5532; margin-right: 4px; }
.teach-token { width: 38px; height: 38px; }
.teach-token svg { display: block; width: 100%; height: 100%; }
.teach-token[data-dir="down"] svg { transform: rotate(180deg); }

/* Answer form (Score!, Creature Counting) */
.teach-answer { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.teach-answer[hidden] { display: none; }
.teach-answer label { font-weight: 700; font-size: 17px; }
.teach-answer-row { display: flex; gap: 10px; align-items: center; }
.teach-answer input {
	width: 5.5em; font: inherit; font-size: 22px; text-align: center; padding: 6px 8px;
	border: 1.5px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text);
}

@media (max-width: 700px) {
	.teach-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.teach-sky { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.teach-pair { min-height: 44px; }
}
@media (max-width: 520px) {
	.teach-stage { padding: 12px 8px; }
	.teach-token { width: 32px; height: 32px; }
}

/* The shared Pause button sits in the stage's top-right corner; keep the
   sheet below it so it never covers a pair. */
.teach-stage, .teach-stage[data-odak-state] { padding-top: 54px; }
