/* Level test (nivåtest) — mirrors the question and result screens of src/routes/nivatest.tsx. */
.tv-lt {
	--tv-navy: var(--e-global-color-primary, #051644);
	--tv-steel: var(--e-global-color-secondary, #2d6ca9);
	--tv-bright: var(--e-global-color-b1a8e7f, #44a8e7);
	--tv-gold: var(--e-global-color-accent, #e2b42c);
	--tv-soft-gold: var(--e-global-color-722ed5d, #efd686);
	--tv-cream: var(--e-global-color-e33c8be, #fcfaf6);
	--tv-blue-tint: var(--e-global-color-a24cbff, #e8f5fd);
	--tv-warm-navy: var(--e-global-color-1924f1e, #1c2b54);
	--tv-shadow-soft: 0 12px 32px color-mix(in oklab, var(--tv-navy) 8%, transparent);
	width: 100%;
	color: var(--tv-navy);
	font-family: "Open Sans", sans-serif;
	font-size: 17px;
	line-height: 1.7;
	letter-spacing: 0;
}
.tv-lt [hidden] { display: none !important; }
.tv-lt *, .tv-lt *::before, .tv-lt *::after { box-sizing: border-box; }

/* Hello Elementor styles every heading, paragraph and button: reset what the design relies on. */
.tv-lt h1, .tv-lt p { margin: 0; letter-spacing: normal; text-transform: none; text-wrap: pretty; }
.tv-lt button {
	margin: 0;
	border: 0;
	border-radius: 0;
	padding: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
	font: inherit;
	letter-spacing: inherit;
	text-align: inherit;
	text-transform: none;
	white-space: normal;
	-webkit-user-select: auto;
	user-select: auto;
}
.tv-lt button:hover, .tv-lt button:focus { background-color: transparent; color: inherit; }
.tv-lt button:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.tv-lt a { color: inherit; text-decoration: none; }

/* ------------------------------------------------------------------ question view */
.tv-lt__questions {
	/* The compact header (64px + 1px border) is fixed on top of the page. */
	margin-top: calc(4rem + 1px);
	min-height: calc(100vh - 7rem);
	background: var(--tv-cream);
}
.tv-lt__grid {
	display: grid;
	width: 100%;
	max-width: 80rem;
	gap: 2.5rem;
	margin-inline: auto;
	padding: 2rem 1.25rem;
}
.tv-lt__scene {
	position: relative;
	display: none;
	overflow: hidden;
	min-height: 42rem;
	height: calc(100vh - 10rem);
	max-height: 52rem;
	border-radius: 20px;
	background: var(--tv-steel);
	box-shadow: var(--tv-shadow-soft);
	isolation: isolate;
}
.tv-lt__scene img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
	animation: tv-lt-fade .3s ease-out;
}
.tv-lt__main { min-width: 0; }
.tv-lt__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	color: color-mix(in oklab, var(--tv-navy) 55%, transparent);
	font-size: .875rem;
	line-height: 1.25rem;
}
.tv-lt__bar {
	height: .75rem;
	margin-top: .75rem;
	overflow: hidden;
	border-radius: 999px;
	background: var(--tv-soft-gold);
}
.tv-lt__fill {
	height: 100%;
	border-radius: 999px;
	background: var(--tv-steel);
	transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
.tv-lt__card {
	margin-top: 2rem;
	border: 1px solid color-mix(in oklab, var(--tv-navy) 7%, transparent);
	border-radius: 20px;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: color-mix(in oklab, var(--tv-cream) 92%, var(--tv-blue-tint));
	box-shadow: var(--tv-shadow-soft);
}
.tv-lt__card.is-fading { animation: tv-lt-fade .28s ease-out; }
.tv-lt .tv-lt__prompt {
	color: var(--tv-navy);
	font-family: "Outfit", sans-serif;
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 1.25;
}
.tv-lt__options { display: grid; gap: .75rem; margin-top: 2rem; }
.tv-lt .tv-lt__option,
.tv-lt .tv-lt__option:focus {
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	align-items: center;
	gap: 1rem;
	width: 100%;
	min-height: 5rem;
	border: 1px solid color-mix(in oklab, var(--tv-navy) 13%, transparent);
	border-radius: 14px;
	padding: 1rem 1.15rem;
	background: var(--tv-cream);
	color: var(--tv-navy);
	text-align: left;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.tv-lt .tv-lt__option:hover { border-color: var(--tv-steel); background: var(--tv-cream); color: var(--tv-navy); transform: translateY(-1px); }
.tv-lt .tv-lt__option:focus-visible { outline: 2px solid var(--tv-bright); outline-offset: 3px; box-shadow: none; }
.tv-lt .tv-lt__option:disabled { cursor: default; }
.tv-lt .tv-lt__option.is-selected { border-color: var(--tv-steel); background: var(--tv-steel); color: var(--tv-cream); }
.tv-lt__letter {
	display: grid;
	width: 2.5rem;
	height: 2.5rem;
	place-items: center;
	border-radius: 8px;
	background: var(--tv-blue-tint);
	color: var(--tv-steel);
	font-family: "Outfit", sans-serif;
	font-weight: 600;
	transition: inherit;
}
.tv-lt__option.is-selected .tv-lt__letter { background: color-mix(in oklab, var(--tv-cream) 18%, transparent); color: var(--tv-cream); }
.tv-lt .tv-lt__skip,
.tv-lt .tv-lt__skip:focus {
	margin-top: 1.5rem;
	color: color-mix(in oklab, var(--tv-navy) 55%, transparent);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.25rem;
	text-decoration: underline;
	text-decoration-color: var(--tv-bright);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	cursor: pointer;
	transition: color .15s cubic-bezier(.4, 0, .2, 1);
}
.tv-lt .tv-lt__skip:hover { color: var(--tv-steel); }
.tv-lt__back-row {
	min-height: 2rem;
	margin-top: 2rem;
	border-top: 1px solid color-mix(in oklab, var(--tv-navy) 10%, transparent);
	padding-top: 1.25rem;
}
.tv-lt .tv-lt__back,
.tv-lt .tv-lt__back:focus {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--tv-steel);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.25rem;
	cursor: pointer;
}
.tv-lt .tv-lt__back:hover { color: var(--tv-navy); }
.tv-lt .tv-lt__skip:disabled, .tv-lt .tv-lt__back:disabled { cursor: default; }

/* After the last answer: the server scores the test. A line shows only if that takes long or fails. */
.tv-lt.is-waiting .tv-lt__card, .tv-lt.is-waiting .tv-lt__option:disabled { cursor: progress; }
.tv-lt__status {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .25rem .75rem;
	margin-top: 1.5rem;
	color: color-mix(in oklab, var(--tv-navy) 70%, transparent);
	font-size: .9375rem;
	line-height: 1.5rem;
	animation: tv-lt-fade .28s ease-out;
}
.tv-lt__status.is-error {
	border-left: 3px solid var(--tv-gold);
	padding-left: .875rem;
	color: var(--tv-navy);
}
.tv-lt .tv-lt__retry,
.tv-lt .tv-lt__retry:focus {
	color: var(--tv-steel);
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.25rem;
	text-decoration: underline;
	text-decoration-color: var(--tv-bright);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	cursor: pointer;
}
.tv-lt .tv-lt__retry:hover { color: var(--tv-navy); }
.tv-lt .tv-lt__retry:focus-visible { outline: 2px solid var(--tv-bright); outline-offset: 3px; box-shadow: none; }
.tv-lt .tv-lt__skip:focus-visible, .tv-lt .tv-lt__back:focus-visible { outline: 2px solid var(--tv-bright); outline-offset: 3px; box-shadow: none; }

/* Short legal line that replaces the site footer while the questions are shown. */
.tv-lt__legal {
	padding: 1.5rem 1.25rem;
	background: var(--tv-cream);
	color: color-mix(in oklab, var(--tv-navy) 45%, transparent);
	font-size: .75rem;
	line-height: 1rem;
	text-align: center;
}
.tv-lt .tv-lt__legal a { color: inherit; }
.tv-lt .tv-lt__legal a:hover { color: var(--tv-steel); }

/* ------------------------------------------------------------------ result view */
.tv-lt__result { padding: 8rem 1.25rem 4rem; background: var(--tv-cream); }
.tv-lt__result-inner { max-width: 72rem; margin-inline: auto; text-align: center; }
.tv-lt .tv-lt__kicker {
	color: var(--tv-steel);
	font-family: "Outfit", sans-serif;
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.25rem;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.tv-lt__title-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.25rem;
}
.tv-lt .tv-lt__title {
	color: var(--tv-navy);
	font-family: "Outfit", sans-serif;
	font-size: 3rem;
	font-weight: 600;
	line-height: 1.25;
}
.tv-lt__chip {
	display: inline-grid;
	min-width: 5.25rem;
	height: 3.5rem;
	place-items: center;
	border-radius: 999px;
	font-family: "Bebas Neue", sans-serif;
	font-size: 2rem;
}
.tv-lt__chip--soft-gold { background: var(--tv-soft-gold); color: var(--tv-navy); }
.tv-lt__chip--bright { background: var(--tv-bright); color: var(--tv-navy); }
.tv-lt__chip--steel { background: var(--tv-steel); color: var(--tv-cream); }
.tv-lt__chip--warm-navy { background: var(--tv-warm-navy); color: var(--tv-cream); }
.tv-lt__chip--gold { background: var(--tv-gold); color: var(--tv-navy); }
.tv-lt .tv-lt__text {
	max-width: 42rem;
	margin: 1.5rem auto 0;
	color: color-mix(in oklab, var(--tv-navy) 70%, transparent);
	font-size: 1.125rem;
	line-height: 1.625;
}
.tv-lt__steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-top: 3.5rem;
}
.tv-lt__steps::before {
	content: "";
	position: absolute;
	top: 2rem;
	left: 10%;
	right: 10%;
	height: 4px;
	border-radius: 999px;
	background: color-mix(in oklab, var(--tv-navy) 12%, transparent);
}
.tv-lt__step {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: color-mix(in oklab, var(--tv-navy) 40%, transparent);
}
.tv-lt__dot {
	display: grid;
	width: 4rem;
	height: 4rem;
	place-items: center;
	border: 3px solid color-mix(in oklab, var(--tv-navy) 14%, transparent);
	border-radius: 999px;
	background: var(--tv-cream);
	font-family: "Bebas Neue", sans-serif;
	font-size: 1.5rem;
}
.tv-lt__step-name { margin-top: 1rem; font-size: .75rem; font-weight: 600; line-height: 1rem; }
.tv-lt__step.is-passed { color: var(--tv-steel); }
.tv-lt__step.is-passed .tv-lt__dot { border-color: var(--tv-steel); background: var(--tv-steel); color: var(--tv-cream); }
.tv-lt__step.is-current { color: var(--tv-navy); }
.tv-lt__step.is-current .tv-lt__dot { color: var(--tv-navy); box-shadow: 0 0 0 7px color-mix(in oklab, var(--tv-gold) 18%, transparent); }

/* Editor only: content problems the owner should fix (e.g. the answer key points at an empty answer). */
.tv-lt__notice {
	margin: 0 auto;
	max-width: 80rem;
	border: 2px solid #b42318;
	border-radius: 10px;
	padding: 1rem 1.25rem;
	background: #fef3f2;
	color: #7a271a;
	font-size: .875rem;
	line-height: 1.5;
}
.tv-lt__notice ul { margin: .5rem 0 0 1.25rem; padding: 0; }

@keyframes tv-lt-fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 640px) {
	.tv-lt .tv-lt__prompt { font-size: 3rem; }
	.tv-lt__result { padding: 9rem 1.25rem 5rem; }
	.tv-lt__title-row { flex-direction: row; }
	.tv-lt .tv-lt__title { font-size: 4.5rem; }
	.tv-lt__step-name { font-size: 1rem; line-height: 1.5rem; }
}
@media (min-width: 1024px) {
	.tv-lt__grid { grid-template-columns: minmax(220px, .58fr) minmax(0, 1.42fr); padding: 3rem 2.5rem; }
	.tv-lt__scene { display: block; }
	.tv-lt__result { padding-inline: 2.5rem; }
}
@media (max-width: 640px) {
	.tv-lt__steps { padding: .5rem 0 1rem; }
	.tv-lt__steps::before { top: 1.6rem; left: 2.75rem; right: 2.75rem; height: 3px; }
	.tv-lt__step { min-width: 0; font-size: .65rem; line-height: 1.25; }
	.tv-lt__dot { width: 3.2rem; height: 3.2rem; font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
	.tv-lt *, .tv-lt *::before, .tv-lt *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
