/*
 * Card motion, every front-end page and portal (12 Nov 2026).
 *
 * tvx-motion.js marks each card or tile with .tv-mo. Hover: the card lifts
 * 4px, its shadow deepens and an amber ring shows. Scroll: cards start 16px
 * low and transparent (.tv-mo--pre) and fade up as they enter the screen,
 * 60ms apart within a row. Uses the `translate` property, not `transform`,
 * so a card's own transform (flip cards, rotations) is kept.
 *
 * Off when the visitor's system asks for reduced motion, and in print.
 */

.tv-mo {
	transition:
		translate .45s cubic-bezier(.22, .61, .36, 1),
		opacity .45s cubic-bezier(.22, .61, .36, 1),
		box-shadow .2s ease;
}

.tv-mo.tv-mo--pre {
	opacity: 0;
	translate: 0 16px;
}

.tv-mo.tv-mo--in {
	transition:
		translate .2s ease,
		opacity .2s ease,
		box-shadow .2s ease;
}

html body .tv-mo.tv-mo--in:hover,
html body .tv-mo.tv-mo--in:focus-visible {
	translate: 0 -4px;
	box-shadow:
		0 14px 32px rgba(7, 26, 60, .16),
		0 4px 10px rgba(7, 26, 60, .08),
		0 0 0 2px rgba(246, 160, 42, .85);
}

@media (prefers-reduced-motion: reduce) {
	.tv-mo,
	.tv-mo.tv-mo--in {
		transition: none;
	}
	.tv-mo.tv-mo--pre {
		opacity: 1;
		translate: none;
	}
	html body .tv-mo.tv-mo--in:hover,
	html body .tv-mo.tv-mo--in:focus-visible {
		translate: none;
	}
}

@media print {
	.tv-mo,
	.tv-mo.tv-mo--pre {
		opacity: 1 !important;
		translate: none !important;
		transition: none !important;
	}
}
