/* Educational v4 — template picker (page 2, under the mode cards). Emil Kowalski rules: transform/opacity only,
   strong ease-out, ≤ 200 ms, press = scale(0.97), hover only on real pointers, reduced motion respected.
   Picker chrome uses the site accent #877FC7; the four previews show the templates themselves. No glass. */
.edu-tpl {
	--edu-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	margin: 20px 0 0;
	padding: 0;
	border: 0;
	min-width: 0;
}
.edu-tpl:not([hidden]) { animation: edu-tpl-in 200ms var(--edu-ease-out); }
@keyframes edu-tpl-in { from { opacity: 0; transform: translateY(8px); } }

.edu-tpl-title {
	padding: 0;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #AFADBE !important;
}
.edu-tpl-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}
@media (max-width: 520px) {
	.edu-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.edu-tpl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 6px 6px 10px;
	border-radius: 16px;
	border: 1px solid rgba(208, 205, 210, 0.35);
	background: rgba(23, 25, 35, 0.55);
	cursor: pointer;
	transition: transform 160ms var(--edu-ease-out), border-color 160ms ease;
	-webkit-tap-highlight-color: transparent;
}
.edu-tpl-card input { position: absolute; opacity: 0; pointer-events: none; }
.edu-tpl-card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 11px;
}
.edu-tpl-name {
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	color: #FEFDFD !important;
}
.edu-tpl-card:active { transform: scale(0.97); }
.edu-tpl-card:has(input:checked) {
	border-color: #877FC7;
	box-shadow: 0 0 0 1px #877FC7;
}
.edu-tpl-card:has(input:focus-visible) { outline: 2px solid #877FC7; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
	.edu-tpl-card:hover { border-color: rgba(208, 205, 210, 0.7); }
}

[data-theme="light"] .edu-tpl-title { color: #6E6C7C !important; }
[data-theme="light"] .edu-tpl-card { background: #FEFDFD; border-color: #D0CDD2; }
[data-theme="light"] .edu-tpl-name { color: #1B1C26 !important; }
[data-theme="light"] .edu-tpl-card:has(input:checked) { border-color: #877FC7; }

@media (prefers-reduced-motion: reduce) {
	.edu-tpl:not([hidden]) { animation: edu-tpl-fade 150ms ease; }
	@keyframes edu-tpl-fade { from { opacity: 0; } }
	.edu-tpl-card, .edu-tpl-card:active { transition: border-color 160ms ease; transform: none; }
}
