/*
 * The Business Strategy Test.
 *
 * Everything is scoped under .st-quiz-root. No bare element selectors —
 * on the old site unscoped rules leaked out and broke the surrounding
 * navigation, and that must not happen again.
 *
 * Colours read from the active theme's custom properties where they exist,
 * and fall back to the test's own navy and gold where they do not.
 */

.st-quiz-root {
	--st-ink: var(--pz-ink, #071d59);
	--st-accent: var(--pz-brass, #c79a2b);
	--st-paper: var(--pz-paper, #f6f6f4);
	--st-card: #ffffff;
	--st-body: var(--pz-sage, #5c5c5c);
	--st-border: color-mix(in srgb, var(--st-ink) 16%, transparent);
	--st-error: #b3261e;
	--st-display: var(--pz-display, ui-sans-serif, "Helvetica Neue", Arial, sans-serif);
	--st-text: var(--pz-body, ui-serif, Georgia, serif);

	display: flex;
	justify-content: center;
	background: var(--st-paper);
	color: var(--st-ink);
	font-family: var(--st-text);
}

.st-quiz-root *,
.st-quiz-root *::before,
.st-quiz-root *::after { box-sizing: border-box; }

.st-quiz-root .st-app {
	width: 100%;
	max-width: 560px;
	padding: 0 22px 60px;
	display: flex;
	flex-direction: column;
	min-height: 70vh;
}

.st-quiz-root .st-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 0 18px;
	font-family: var(--st-display);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.st-quiz-root .st-bar .st-brandname { opacity: 0.65; }
.st-quiz-root .st-bar .st-flag { font-weight: 700; color: var(--st-accent); }

.st-quiz-root .st-progress { margin-bottom: 28px; }
.st-quiz-root .st-progress-label {
	font-family: var(--st-display);
	font-size: 0.68rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.6;
	margin-bottom: 8px;
}
.st-quiz-root .st-track { width: 100%; height: 2px; background: var(--st-border); }
.st-quiz-root .st-fill { height: 100%; background: var(--st-ink); transition: width 0.25s ease; }

.st-quiz-root .st-screen { display: none; flex: 1; flex-direction: column; }
.st-quiz-root .st-screen.is-active { display: flex; }

.st-quiz-root .st-h1 {
	font-family: var(--st-display);
	font-weight: 650;
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
	color: var(--st-ink);
}

.st-quiz-root .st-h2 {
	font-family: var(--st-display);
	font-weight: 650;
	font-size: 1.45rem;
	line-height: 1.2;
	margin: 0 0 14px;
	color: var(--st-ink);
}

.st-quiz-root .st-lede { font-size: 1rem; line-height: 1.65; color: var(--st-body); margin: 0 0 20px; }
.st-quiz-root .st-rule { width: 48px; height: 3px; background: var(--st-accent); margin: 0 0 22px; }
.st-quiz-root .st-eyebrow {
	font-family: var(--st-display);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--st-accent);
	margin-bottom: 14px;
}

.st-quiz-root .st-steps { display: flex; gap: 18px; margin: 26px 0 30px; }
.st-quiz-root .st-step { flex: 1; text-align: center; }
.st-quiz-root .st-step-num { font-family: var(--st-display); font-weight: 700; font-size: 0.68rem; color: var(--st-accent); margin-bottom: 6px; }
.st-quiz-root .st-step-word { font-family: var(--st-text); font-style: italic; font-size: 0.95rem; }

.st-quiz-root .st-btn {
	width: 100%;
	background: var(--st-ink);
	color: var(--st-paper);
	border: 1px solid var(--st-ink);
	border-radius: 3px;
	padding: 16px 22px;
	font-family: var(--st-display);
	font-weight: 600;
	font-size: 0.92rem;
	letter-spacing: 0.02em;
	cursor: pointer;
	margin-top: auto;
	transition: opacity 0.15s ease;
}
.st-quiz-root .st-btn:hover { opacity: 0.88; }
.st-quiz-root .st-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.st-quiz-root .st-nav { display: flex; gap: 12px; margin-top: auto; padding-top: 22px; }
.st-quiz-root .st-nav .st-btn { margin-top: 0; }
.st-quiz-root .st-back {
	background: transparent;
	border: 1px solid var(--st-border);
	color: var(--st-ink);
	border-radius: 3px;
	padding: 16px 20px;
	font-family: var(--st-display);
	font-weight: 600;
	font-size: 0.88rem;
	cursor: pointer;
	opacity: 0.7;
}
.st-quiz-root .st-back:hover { opacity: 1; }

.st-quiz-root .st-options { display: flex; flex-direction: column; margin-bottom: 20px; }
.st-quiz-root .st-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 4px;
	border-bottom: 1px solid var(--st-border);
	cursor: pointer;
}

.st-quiz-root .st-question {
	font-family: var(--st-display);
	font-weight: 650;
	font-size: 1.3rem;
	line-height: 1.3;
	margin: 0 0 22px;
}

.st-quiz-root .st-statements { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.st-quiz-root .st-statement {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border: 1.5px solid var(--st-border);
	border-radius: 6px;
	background: var(--st-card);
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease;
}
.st-quiz-root .st-statement:hover { border-color: var(--st-ink); }
.st-quiz-root .st-statement.is-selected {
	border-color: var(--st-ink);
	background: color-mix(in srgb, var(--st-ink) 6%, var(--st-card));
}
.st-quiz-root .st-statement span { font-size: 0.95rem; line-height: 1.5; }

.st-quiz-root input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	border: 1.5px solid color-mix(in srgb, var(--st-ink) 40%, transparent);
	border-radius: 50%;
	flex: none;
	cursor: pointer;
	position: relative;
}
.st-quiz-root input[type="radio"]:checked { border-color: var(--st-ink); background: var(--st-ink); }
.st-quiz-root input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--st-card);
}
.st-quiz-root input[type="radio"]:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 2px; }

.st-quiz-root .st-field { margin-bottom: 20px; }
.st-quiz-root .st-field label {
	display: block;
	font-family: var(--st-display);
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 7px;
}
.st-quiz-root .st-field input[type="text"],
.st-quiz-root .st-field input[type="email"],
.st-quiz-root .st-field textarea,
.st-quiz-root .st-field select {
	width: 100%;
	background: var(--st-card);
	border: 1px solid var(--st-border);
	border-radius: 3px;
	padding: 13px 12px;
	font-family: var(--st-text);
	font-size: 1rem;
	color: var(--st-ink);
}
.st-quiz-root .st-field input:focus-visible,
.st-quiz-root .st-field textarea:focus-visible,
.st-quiz-root .st-field select:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 1px; }

.st-quiz-root .st-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.st-quiz-root .st-optional { font-weight: 400; opacity: 0.5; font-size: 0.75rem; }

.st-quiz-root .st-score {
	text-align: center;
	padding: 30px 0 26px;
	border-bottom: 1px solid var(--st-border);
}
.st-quiz-root .st-score-eyebrow {
	font-family: var(--st-display);
	font-size: 0.68rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.55;
	margin-bottom: 10px;
}
.st-quiz-root .st-score-num { font-family: var(--st-display); font-weight: 700; font-size: 3.6rem; line-height: 1; }
.st-quiz-root .st-score-total { font-family: var(--st-display); font-size: 0.9rem; opacity: 0.5; }
.st-quiz-root .st-band {
	display: inline-block;
	margin-top: 14px;
	padding: 6px 16px;
	border: 1px solid var(--st-accent);
	border-radius: 20px;
	font-family: var(--st-display);
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.st-quiz-root .st-block { margin: 28px 0; }
.st-quiz-root .st-block h3 {
	display: inline-block;
	font-family: var(--st-display);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 14px;
	padding-bottom: 7px;
	border-bottom: 2px solid var(--st-accent);
}
.st-quiz-root .st-block p { font-size: 0.98rem; line-height: 1.7; color: var(--st-body); margin: 0; }

.st-quiz-root .st-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--st-border);
	font-size: 0.92rem;
}
.st-quiz-root .st-list .st-row:first-child { border-top: 1px solid var(--st-border); }
.st-quiz-root .st-row-score { font-family: var(--st-display); opacity: 0.6; }

.st-quiz-root .st-cluster { margin-bottom: 18px; }
.st-quiz-root .st-cluster-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.st-quiz-root .st-cluster-name { font-family: var(--st-display); font-weight: 600; font-size: 0.9rem; }
.st-quiz-root .st-cluster-score { font-family: var(--st-display); font-size: 0.85rem; opacity: 0.6; }
.st-quiz-root .st-cluster-track { width: 100%; height: 4px; background: var(--st-border); border-radius: 2px; overflow: hidden; }
.st-quiz-root .st-cluster-fill { height: 100%; background: var(--st-ink); border-radius: 2px; }
.st-quiz-root .st-tag {
	display: inline-block;
	font-family: var(--st-display);
	font-weight: 600;
	font-size: 0.65rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: color-mix(in srgb, var(--st-accent) 24%, transparent);
	padding: 3px 9px;
	border-radius: 10px;
	margin-top: 7px;
}

.st-quiz-root .st-constraint {
	background: var(--st-card);
	border: 1px solid var(--st-border);
	border-radius: 5px;
	padding: 22px 20px;
}
.st-quiz-root .st-constraint-name { font-family: var(--st-display); font-weight: 650; font-size: 1.15rem; margin-bottom: 10px; }

.st-quiz-root .st-pullquote {
	font-family: var(--st-text);
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1.5;
	border-left: 3px solid var(--st-accent);
	padding-left: 16px;
	margin: 30px 0;
}

.st-quiz-root .st-rec {
	background: var(--st-ink);
	color: var(--st-paper);
	border-radius: 5px;
	padding: 30px 26px;
	margin: 30px 0 20px;
}
.st-quiz-root .st-rec-label {
	font-family: var(--st-display);
	font-weight: 700;
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--st-accent);
	margin-bottom: 10px;
}
.st-quiz-root .st-rec h3 {
	font-family: var(--st-display);
	font-weight: 650;
	font-size: 1.6rem;
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	text-transform: none;
	letter-spacing: -0.01em;
	display: block;
}
.st-quiz-root .st-rec-price { font-family: var(--st-display); font-size: 1rem; color: var(--st-accent); margin-bottom: 18px; }
.st-quiz-root .st-rec-block { margin-bottom: 18px; }
.st-quiz-root .st-rec-block h4 {
	font-family: var(--st-display);
	font-weight: 700;
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--st-accent);
	margin: 0 0 8px;
}
.st-quiz-root .st-rec-block p { font-size: 0.95rem; line-height: 1.7; margin: 0; opacity: 0.92; }
.st-quiz-root .st-rec-caution { border-left: 3px solid var(--st-accent); padding-left: 14px; }
.st-quiz-root .st-rec .st-btn {
	background: var(--st-accent);
	border-color: var(--st-accent);
	color: var(--st-ink);
	margin-top: 6px;
}

.st-quiz-root .st-secondary { text-align: center; margin: 18px 0 10px; font-size: 0.85rem; color: var(--st-body); }
.st-quiz-root .st-secondary a { color: var(--st-ink); font-weight: 600; }

.st-quiz-root .st-error { color: var(--st-error); font-size: 0.82rem; margin-top: 6px; display: none; }
.st-quiz-root .st-error.is-shown { display: block; }
.st-quiz-root .st-status { font-size: 0.82rem; color: var(--st-error); margin-top: 14px; display: none; }
.st-quiz-root .st-status.is-shown { display: block; }
.st-quiz-root .st-disclaimer { font-size: 0.75rem; color: var(--st-body); opacity: 0.8; line-height: 1.6; margin-top: 30px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.st-quiz-root * { transition-duration: 0.001ms !important; }
}
