/* انتخاب مؤثر — پلتفرم آزمون‌های آنلاین
 * همه قواعد در محدوده em-test-* قرار دارند و هیچ قانون عمومی برای body یا Elementor ندارند.
 */
.em-test-shell,
.em-test-shell *,
.em-test-app,
.em-test-app * {
	box-sizing: border-box;
}

.em-test-shell,
.em-test-app {
	--em-test-primary: #6d28d9;
	--em-test-primary-dark: #4c1d95;
	--em-test-primary-soft: #f7f3ff;
	--em-test-border: #e3d9ee;
	--em-test-text: #30293a;
	--em-test-muted: #5d5668;
	--em-test-white: #ffffff;
	--em-test-danger: #b42318;
	--em-test-radius: 18px;
	--em-test-font-stack: "Yekan Bakh", "YekanBakh", "B Yekan", "BYekan", Tahoma, Arial, sans-serif;
	font-family: var(--em-test-site-font, var(--em-test-font-stack)) !important;
	direction: rtl;
	text-align: right;
	color: var(--em-test-text);
}

.em-test-shell *,
.em-test-app * {
	font-family: inherit !important;
}

.em-test-shell {
	width: min(1120px, calc(100% - 28px));
	margin: 0 auto;
	padding: 28px 0 60px;
	line-height: 2;
}

.em-test-shell h1,
.em-test-shell h2,
.em-test-shell h3,
.em-test-app h2,
.em-test-app h3 {
	color: #2b1638;
	line-height: 1.6;
	font-weight: 900;
}

.em-test-shell p,
.em-test-shell li,
.em-test-app p,
.em-test-app small {
	color: var(--em-test-muted);
}

.em-test-shell a,
.em-test-app a {
	color: var(--em-test-primary);
}

.em-test-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 18px;
	font-size: 14px;
}

.em-test-breadcrumb a {
	font-weight: 800;
	text-decoration: none;
}

.em-test-hero,
.em-test-archive-hero,
.em-test-private-header {
	position: relative;
	overflow: hidden;
	padding: 34px 30px;
	border: 1px solid #d9caeb;
	border-radius: 26px;
	background: linear-gradient(135deg, #fbf8ff 0%, #ffffff 70%);
	box-shadow: 0 12px 34px rgba(76, 29, 149, 0.08);
}

.em-test-hero h1,
.em-test-archive-hero h1,
.em-test-private-header h1 {
	margin: 0 0 12px;
	font-size: clamp(28px, 4vw, 42px);
}

.em-test-kicker {
	margin: 0 0 8px !important;
	color: var(--em-test-primary) !important;
	font-size: 14px;
	font-weight: 900;
}

.em-test-lead,
.em-test-archive-hero > p:last-child,
.em-test-private-header > p:last-child {
	max-width: 880px;
	margin: 0;
	font-size: 17px;
}

.em-test-meta,
.em-test-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.em-test-meta span,
.em-test-card-meta span {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid #ded2eb;
	border-radius: 999px;
	background: #fff;
	color: #4c1d95;
	font-size: 14px;
	font-weight: 800;
}

.em-test-identity-note {
	margin: 18px 0 0 !important;
	padding: 12px 16px;
	border-right: 4px solid var(--em-test-primary);
	border-radius: 12px;
	background: var(--em-test-primary-soft);
	font-size: 14px;
}

.em-test-app {
	max-width: 980px;
	margin: 28px auto 0;
	line-height: 2;
}

.em-test-launch,
.em-test-form,
.em-test-results,
.em-test-notice,
.em-test-content,
.em-test-catalog-note,
.em-test-private-report > section,
.em-test-private-report > aside {
	padding: 28px;
	border: 1px solid var(--em-test-border);
	border-radius: 24px;
	background: var(--em-test-white);
	box-shadow: 0 12px 34px rgba(55, 29, 78, 0.08);
}

.em-test-launch {
	text-align: center;
}

.em-test-logo {
	display: block;
	width: auto;
	max-width: 220px;
	height: 72px;
	margin: 0 auto 18px;
	object-fit: contain;
}

.em-test-launch h2,
.em-test-results > header h2,
.em-test-identity h2 {
	margin: 0 0 10px;
	font-size: clamp(26px, 3vw, 34px);
}

.em-test-launch > p:not(.em-test-kicker) {
	max-width: 700px;
	margin: 0 auto;
}

.em-test-launch .em-test-meta {
	justify-content: center;
}

.em-test-primary-button,
.em-test-secondary-button,
.em-test-card-link,
.em-test-catalog-filter button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 20px;
	border: 2px solid var(--em-test-primary);
	border-radius: 14px;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.6;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.em-test-primary-button,
.em-test-card-link,
.em-test-catalog-filter button {
	color: #fff !important;
	background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}

.em-test-secondary-button {
	color: var(--em-test-primary) !important;
	background: #fff;
}

.em-test-primary-button:hover,
.em-test-secondary-button:hover,
.em-test-card-link:hover,
.em-test-catalog-filter button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(76, 29, 149, .16);
}

.em-test-primary-button:disabled,
.em-test-secondary-button:disabled {
	opacity: .45;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.em-test-launch > .em-test-primary-button {
	margin-top: 22px;
	min-width: 230px;
}

.em-test-launch > small {
	display: block;
	margin-top: 12px;
}

.em-test-progress-wrap {
	margin-bottom: 24px;
}

.em-test-progress-wrap > div {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 8px;
	font-size: 14px;
}

.em-test-progress-wrap progress {
	width: 100%;
	height: 12px;
	border: 0;
	border-radius: 999px;
	overflow: hidden;
	accent-color: var(--em-test-primary);
}

.em-test-question {
	min-height: 410px;
	padding: 0;
	border: 0;
}

.em-test-question > legend {
	display: block;
	width: 100%;
	margin-bottom: 22px;
	color: #2b1638;
	font-size: clamp(20px, 2.5vw, 26px);
	font-weight: 900;
	line-height: 1.8;
}

.em-test-question > legend span {
	display: block;
	margin-bottom: 6px;
	color: var(--em-test-primary);
	font-size: 14px;
}

.em-test-options {
	display: grid;
	gap: 12px;
}

.em-test-options label {
	display: grid;
	grid-template-columns: 28px 38px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-height: 62px;
	padding: 11px 14px;
	border: 1px solid #ddd2e8;
	border-radius: 15px;
	background: #fff;
	color: #3d3546;
	cursor: pointer;
}

.em-test-options label:hover,
.em-test-options label:has(input:checked) {
	border-color: var(--em-test-primary);
	background: var(--em-test-primary-soft);
}

.em-test-options input {
	width: 20px;
	height: 20px;
	accent-color: var(--em-test-primary);
}

.em-test-option-score {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #f1eafb;
	color: var(--em-test-primary-dark);
	font-weight: 900;
}

.em-test-navigation,
.em-test-result-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
}

.em-test-error {
	margin-bottom: 18px;
	padding: 12px 15px;
	border: 1px solid #f2b8b5;
	border-right: 5px solid #d92d20;
	border-radius: 12px;
	background: #fff4f3;
	color: #7a271a;
}

.em-test-status {
	min-height: 30px;
	margin: 10px 0 0 !important;
	text-align: center;
}

.em-test-identity > p {
	margin-top: 0;
}

.em-test-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.em-test-field-grid > label,
.em-test-birth {
	display: grid;
	gap: 7px;
	margin: 0;
}

.em-test-field-grid label > span,
.em-test-birth legend,
.em-test-clinic-file legend {
	color: #3c3047;
	font-size: 14px;
	font-weight: 900;
}

.em-test-field-grid input,
.em-test-catalog-filter input,
.em-test-catalog-filter select {
	width: 100%;
	min-height: 48px;
	padding: 9px 12px;
	border: 1px solid #d7cbe2;
	border-radius: 12px;
	background: #fff;
	color: #292231;
	font-size: 16px;
	outline: none;
}

.em-test-field-grid input:focus,
.em-test-catalog-filter input:focus,
.em-test-catalog-filter select:focus {
	border-color: var(--em-test-primary);
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}

.em-test-birth {
	grid-column: 1 / -1;
	padding: 14px;
	border: 1px solid #e1d6eb;
	border-radius: 14px;
}

.em-test-birth > div {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1.4fr;
	align-items: end;
	gap: 10px;
	direction: rtl;
}

.em-test-birth > div > label {
	display: grid;
	gap: 5px;
}

.em-test-clinic-file {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	margin: 20px 0;
	padding: 16px;
	border: 1px solid #e1d6eb;
	border-radius: 14px;
}

.em-test-clinic-file legend {
	width: 100%;
	margin-bottom: 8px;
}

.em-test-clinic-file input,
.em-test-consent input {
	width: 20px;
	height: 20px;
	accent-color: var(--em-test-primary);
}

.em-test-consent {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	margin: 12px 0;
	padding: 14px;
	border: 1px solid #d9cce8;
	border-radius: 13px;
	background: #faf7ff;
}

.em-test-consent-optional {
	background: #fff;
}

.em-test-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.em-test-results > header {
	text-align: center;
}

.em-test-profile {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0;
}

.em-test-profile p {
	margin: 0 !important;
	padding: 14px;
	border: 1px solid #e2d8eb;
	border-radius: 13px;
	background: #faf8fc;
}

.em-test-profile span,
.em-test-profile strong {
	display: block;
}

.em-test-profile span {
	font-size: 13px;
}

.em-test-result-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0;
}

.em-test-result-card {
	padding: 20px;
	border: 1px solid #dfd5e8;
	border-radius: 18px;
	background: #fff;
	text-align: center;
}

.em-test-result-card h2,
.em-test-result-card h3 {
	margin: 0 0 10px;
	font-size: 20px;
}

.em-test-result-score {
	display: block;
	color: var(--em-test-primary-dark);
	font-size: 42px;
	line-height: 1.2;
}

.em-test-result-card p {
	margin: 12px 0 8px !important;
}

.em-test-result-card[data-level="severe"],
.em-test-result-card[data-level="extremely-severe"] {
	border-color: #f3a7a1;
	background: #fff8f7;
}

.em-test-guidance,
.em-test-safety {
	margin-top: 18px;
	padding: 20px;
	border-radius: 16px;
}

.em-test-guidance {
	border: 1px solid #d9c7ee;
	border-right: 6px solid var(--em-test-primary);
	background: var(--em-test-primary-soft);
}

.em-test-guidance h2 {
	margin-top: 0;
}

.em-test-safety {
	border: 1px solid #fed7aa;
	border-right: 6px solid #f97316;
	background: #fff7ed;
}

.em-test-content,
.em-test-disclaimer,
.em-test-catalog-note {
	max-width: 980px;
	margin: 28px auto 0;
}

.em-test-content h2 {
	margin-top: 30px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e2d5ef;
	font-size: clamp(23px, 3vw, 30px);
}

.em-test-content details {
	margin: 10px 0;
	padding: 14px 16px;
	border: 1px solid #e2d8eb;
	border-radius: 14px;
}

.em-test-content summary {
	cursor: pointer;
	font-weight: 900;
}

.em-test-disclaimer {
	padding: 18px;
	border: 1px solid #e7e0ed;
	border-radius: 16px;
	background: #faf9fc;
	font-size: 13px;
}

.em-test-disclaimer p {
	margin: 5px 0;
}

.em-test-catalog-filter {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(180px, .7fr) auto auto;
	align-items: end;
	gap: 12px;
	margin: 24px 0;
	padding: 18px;
	border: 1px solid #e2d7eb;
	border-radius: 18px;
	background: #fff;
}

.em-test-catalog-filter label {
	display: grid;
	gap: 6px;
}

.em-test-catalog-filter label span {
	font-size: 14px;
	font-weight: 900;
}

.em-test-catalog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.em-test-card {
	overflow: hidden;
	border: 1px solid #e2d7eb;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(55, 29, 78, .07);
}

.em-test-card-image,
.em-test-card-image img {
	display: block;
	width: 100%;
}

.em-test-card-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.em-test-card-body {
	padding: 20px;
}

.em-test-card h2 {
	margin: 4px 0 10px;
	font-size: 20px;
}

.em-test-card h2 a {
	color: #2b1638;
	text-decoration: none;
}

.em-test-card-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fff7ed;
	color: #9a3412;
	font-size: 12px;
	font-weight: 900;
}

.em-test-card-link {
	width: 100%;
	margin-top: 16px;
}

.em-test-pagination {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin: 28px 0;
}

.em-test-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	border: 1px solid #ded2e8;
	border-radius: 10px;
	text-decoration: none;
}

.em-test-pagination .current {
	background: var(--em-test-primary);
	color: #fff;
}

.em-test-private-report > .em-test-profile,
.em-test-private-report > .em-test-result-grid {
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
}

.em-test-private-report .em-test-result-actions {
	justify-content: center;
}

.em-test-primary-button:focus-visible,
.em-test-secondary-button:focus-visible,
.em-test-options input:focus-visible,
.em-test-field-grid input:focus-visible,
.em-test-shell a:focus-visible {
	outline: 3px solid #a855f7;
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.em-test-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.em-test-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.em-test-catalog-filter { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	.em-test-shell { width: min(100% - 20px, 1120px); padding-top: 16px; }
	.em-test-hero, .em-test-archive-hero, .em-test-private-header { padding: 24px 18px; border-radius: 20px; }
	.em-test-launch, .em-test-form, .em-test-results, .em-test-notice, .em-test-content, .em-test-catalog-note { padding: 20px 15px; border-radius: 18px; }
	.em-test-logo { max-width: 185px; height: 62px; }
	.em-test-question { min-height: 480px; }
	.em-test-options label { grid-template-columns: 24px 34px minmax(0, 1fr); padding: 10px; }
	.em-test-field-grid, .em-test-result-grid, .em-test-profile, .em-test-catalog-grid, .em-test-catalog-filter { grid-template-columns: 1fr; }
	.em-test-birth > div { grid-template-columns: 1fr auto 1fr auto 1.4fr; gap: 6px; }
	.em-test-navigation, .em-test-result-actions { flex-direction: column; }
	.em-test-primary-button, .em-test-secondary-button { width: 100%; }
	.em-test-meta span { font-size: 12px; }
}

@media print {
	body * { visibility: hidden !important; }
	.em-test-results,
	.em-test-results *,
	.em-test-private-report,
	.em-test-private-report * { visibility: visible !important; }
	.em-test-results,
	.em-test-private-report { position: absolute; inset: 0; width: 100%; margin: 0; padding: 12mm; border: 0; box-shadow: none; }
	.em-test-print-hide,
	.em-test-result-actions { display: none !important; }
	.em-test-result-grid { grid-template-columns: repeat(3, 1fr); }
	.em-test-result-card { break-inside: avoid; }
}


/* =========================================================
   1.0.0-alpha2 — ARCHIVE TYPOGRAPHY & UI OVERRIDES
   از کلاس‌های واقعی قالب افزونه استفاده می‌کند.
========================================================= */

body.post-type-archive-em_test .em-test-shell,
body.single-em_test .em-test-shell,
body.post-type-archive-em_test .em-test-app,
body.single-em_test .em-test-app {
	font-family: var(--em-test-site-font, var(--em-test-font-stack)) !important;
}

body.post-type-archive-em_test .em-test-shell *,
body.single-em_test .em-test-shell *,
body.post-type-archive-em_test .em-test-app *,
body.single-em_test .em-test-app * {
	font-family: inherit !important;
}

body.post-type-archive-em_test .em-test-shell,
body.single-em_test .em-test-shell {
	width: min(1180px, calc(100% - 28px));
	padding-top: 30px;
}

body.post-type-archive-em_test .em-test-archive-hero {
	isolation: isolate;
	min-height: 270px;
	padding: 48px 44px;
	border: 1px solid #dfd0f1;
	border-radius: 30px;
	background:
		radial-gradient(circle at 10% 20%, rgba(168, 85, 247, .15), transparent 24%),
		radial-gradient(circle at 92% 84%, rgba(109, 40, 217, .09), transparent 25%),
		linear-gradient(135deg, #fbf8ff 0%, #ffffff 58%, #f7f3ff 100%);
	box-shadow: 0 18px 45px rgba(76, 29, 149, .09);
}

body.post-type-archive-em_test .em-test-archive-hero::before,
body.post-type-archive-em_test .em-test-archive-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 999px;
	pointer-events: none;
}

body.post-type-archive-em_test .em-test-archive-hero::before {
	width: 210px;
	height: 210px;
	left: -65px;
	top: -80px;
	border: 30px solid rgba(124, 58, 237, .055);
}

body.post-type-archive-em_test .em-test-archive-hero::after {
	width: 115px;
	height: 115px;
	left: 125px;
	bottom: -55px;
	background: rgba(168, 85, 247, .07);
}

body.post-type-archive-em_test .em-test-kicker {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 6px 14px;
	margin: 0 0 14px !important;
	border: 1px solid #dfd1f2;
	border-radius: 999px;
	background: rgba(255, 255, 255, .86);
	color: #6d28d9 !important;
	font-size: 14px;
	font-weight: 900;
	box-shadow: 0 5px 15px rgba(76, 29, 149, .05);
}

body.post-type-archive-em_test .em-test-archive-hero h1 {
	max-width: 820px;
	margin: 0 0 14px;
	color: #281237;
	font-size: clamp(38px, 4.7vw, 58px);
	font-weight: 900;
	line-height: 1.45;
	letter-spacing: -.025em;
}

body.post-type-archive-em_test .em-test-archive-hero > p:last-child {
	max-width: 900px;
	margin: 0;
	color: #554d60;
	font-size: clamp(17px, 1.7vw, 19px);
	font-weight: 500;
	line-height: 2.15;
}

body.post-type-archive-em_test .em-test-catalog-filter {
	grid-template-columns: minmax(0, 1.55fr) minmax(230px, .75fr) auto auto;
	gap: 14px;
	margin: 26px 0 32px;
	padding: 20px;
	border: 1px solid #e5d9ef;
	border-radius: 22px;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 14px 34px rgba(76, 29, 149, .06);
}

body.post-type-archive-em_test .em-test-catalog-filter label {
	gap: 8px;
}

body.post-type-archive-em_test .em-test-catalog-filter label span {
	color: #31213f;
	font-size: 15px;
	font-weight: 900;
}

body.post-type-archive-em_test .em-test-catalog-filter input,
body.post-type-archive-em_test .em-test-catalog-filter select {
	min-height: 54px;
	padding: 10px 16px;
	border: 1.5px solid #d9cbea;
	border-radius: 15px;
	background: #fff;
	color: #302938;
	font-size: 16px;
	line-height: 1.7;
}

body.post-type-archive-em_test .em-test-catalog-filter input::placeholder {
	color: #81778a;
	opacity: 1;
}

body.post-type-archive-em_test .em-test-catalog-filter input:focus,
body.post-type-archive-em_test .em-test-catalog-filter select:focus {
	border-color: #7c3aed;
	box-shadow: 0 0 0 4px rgba(124, 58, 237, .12);
}

body.post-type-archive-em_test .em-test-catalog-filter button {
	min-height: 54px;
	padding-inline: 25px;
	border-radius: 15px;
	box-shadow: 0 10px 24px rgba(109, 40, 217, .20);
}

body.post-type-archive-em_test .em-test-catalog-filter > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 10px 16px;
	border: 1px solid #dacdeb;
	border-radius: 15px;
	background: #fff;
	color: #6d28d9;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
}

body.post-type-archive-em_test .em-test-catalog-grid {
	gap: 22px;
}

body.post-type-archive-em_test .em-test-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #e4d8ee;
	border-radius: 24px;
	box-shadow: 0 14px 36px rgba(55, 29, 78, .07);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.post-type-archive-em_test .em-test-card:hover {
	transform: translateY(-4px);
	border-color: #d6c2eb;
	box-shadow: 0 20px 46px rgba(55, 29, 78, .12);
}

body.post-type-archive-em_test .em-test-card-image {
	overflow: hidden;
	background: linear-gradient(135deg, #faf5ff 0%, #f4effd 55%, #edf7f5 100%);
}

body.post-type-archive-em_test .em-test-card-image img {
	aspect-ratio: 16 / 10;
	transition: transform .35s ease;
}

body.post-type-archive-em_test .em-test-card:hover .em-test-card-image img {
	transform: scale(1.025);
}

body.post-type-archive-em_test .em-test-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 22px;
}

body.post-type-archive-em_test .em-test-card h2 {
	margin: 5px 0 10px;
	font-size: 23px;
	line-height: 1.7;
}

body.post-type-archive-em_test .em-test-card h2 a {
	color: #281237;
	font-weight: 900;
}

body.post-type-archive-em_test .em-test-card-body > p {
	margin: 0;
	color: #5a5264;
	font-size: 15.5px;
	line-height: 2;
}

body.post-type-archive-em_test .em-test-card-meta {
	margin: 16px 0 0;
}

body.post-type-archive-em_test .em-test-card-meta span {
	min-height: 34px;
	padding: 5px 11px;
	background: #faf7ff;
	font-size: 13px;
}

body.post-type-archive-em_test .em-test-card-link {
	margin-top: auto;
	padding-top: 12px;
}

body.post-type-archive-em_test .em-test-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 38px 22px;
	border: 1px dashed #d7c5ec;
	border-radius: 22px;
	background: linear-gradient(135deg, #fbf8ff 0%, #fff 100%);
	color: #564d61;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	box-shadow: 0 12px 30px rgba(76, 29, 149, .04);
}

body.post-type-archive-em_test .em-test-catalog-note {
	max-width: 980px;
	padding: 34px 30px;
	border: 1px solid #e5d9ef;
	border-radius: 27px;
	background:
		radial-gradient(circle at 8% 15%, rgba(168, 85, 247, .08), transparent 23%),
		linear-gradient(135deg, #fff 0%, #fbf8ff 100%);
	box-shadow: 0 14px 34px rgba(76, 29, 149, .06);
}

body.post-type-archive-em_test .em-test-catalog-note h2 {
	margin: 0 0 12px;
	color: #281237;
	font-size: clamp(27px, 3vw, 36px);
	font-weight: 900;
	line-height: 1.55;
}

body.post-type-archive-em_test .em-test-catalog-note p {
	margin: 0;
	color: #5a5264;
	font-size: 16px;
	line-height: 2.1;
}

@media (max-width: 900px) {
	body.post-type-archive-em_test .em-test-catalog-filter {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	body.post-type-archive-em_test .em-test-shell {
		width: min(100% - 20px, 1180px);
		padding-top: 16px;
	}

	body.post-type-archive-em_test .em-test-archive-hero {
		min-height: 0;
		padding: 30px 20px;
		border-radius: 22px;
	}

	body.post-type-archive-em_test .em-test-archive-hero h1 {
		font-size: 35px;
	}

	body.post-type-archive-em_test .em-test-catalog-filter {
		grid-template-columns: 1fr;
		padding: 16px;
		border-radius: 19px;
	}

	body.post-type-archive-em_test .em-test-catalog-filter button,
	body.post-type-archive-em_test .em-test-catalog-filter > a {
		width: 100%;
	}

	body.post-type-archive-em_test .em-test-card-body {
		padding: 19px 17px;
	}

	body.post-type-archive-em_test .em-test-catalog-note {
		padding: 25px 19px;
		border-radius: 22px;
	}
}


/* =========================================================
   1.0.0-alpha3 — FONT SOURCE FIX
   فونت از هدر سایت تشخیص داده می‌شود یا از تنظیمات افزونه می‌آید.
========================================================= */
.em-test-shell,
.em-test-app {
	font-family: var(--em-test-site-font, var(--em-test-font-stack)) !important;
	font-synthesis: weight style;
}

.em-test-shell *,
.em-test-app * {
	font-family: inherit !important;
}

.em-test-shell h1,
.em-test-shell h2,
.em-test-shell h3,
.em-test-app h1,
.em-test-app h2,
.em-test-app h3 {
	font-family: inherit !important;
	font-weight: 800;
	letter-spacing: 0;
}

/* =========================================================
 * Focus mode — هنگام اجرای آزمون، فقط موتور آزمون دیده می‌شود.
 * محتوای عمومی صفحه در DOM باقی می‌ماند و فقط پس از اقدام کاربر پنهان می‌شود.
 * ======================================================= */
.em-test-focus-header {
	display: none;
}

html.em-test-focus-mode,
body.em-test-focus-mode {
	scroll-behavior: smooth;
}

body.em-test-focus-mode {
	background: #fbf9ff !important;
}

body.em-test-focus-mode .site-header,
body.em-test-focus-mode #masthead,
body.em-test-focus-mode header#masthead,
body.em-test-focus-mode .elementor-location-header,
body.em-test-focus-mode .jet-theme-core-header,
body.em-test-focus-mode .site-footer,
body.em-test-focus-mode #colophon,
body.em-test-focus-mode footer#colophon,
body.em-test-focus-mode .elementor-location-footer,
body.em-test-focus-mode .jet-theme-core-footer,
body.em-test-focus-mode .em-test-breadcrumb,
body.em-test-focus-mode .em-test-hero,
body.em-test-focus-mode .em-test-content,
body.em-test-focus-mode .em-test-disclaimer,
body.em-test-focus-mode .scroll-to-top,
body.em-test-focus-mode .back-to-top,
body.em-test-focus-mode #scroll-to-top,
body.em-test-focus-mode .joinchat,
body.em-test-focus-mode .joinchat__button,
body.em-test-focus-mode .crisp-client,
body.em-test-focus-mode .tawk-min-container,
body.em-test-focus-mode iframe[title*="chat" i] {
	display: none !important;
}

body.em-test-focus-mode .em-test-shell {
	width: min(1040px, calc(100% - 24px));
	min-height: 100vh;
	margin: 0 auto;
	padding: 18px 0 42px;
}

body.em-test-focus-mode.admin-bar .em-test-shell {
	min-height: calc(100vh - 32px);
}

body.em-test-focus-mode .em-test-app {
	max-width: 980px;
	margin-top: 0;
}

body.em-test-focus-mode .em-test-focus-header {
	position: sticky;
	top: 12px;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px solid var(--em-test-border);
	border-radius: 18px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 10px 30px rgba(55, 29, 78, .10);
	backdrop-filter: blur(12px);
}

body.admin-bar.em-test-focus-mode .em-test-focus-header {
	top: 44px;
}

.em-test-focus-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.em-test-focus-brand img {
	display: block;
	width: auto;
	max-width: 130px;
	height: 42px;
	object-fit: contain;
}

.em-test-focus-brand div {
	display: grid;
	line-height: 1.5;
}

.em-test-focus-brand span {
	color: var(--em-test-muted);
	font-size: 12px;
	font-weight: 700;
}

.em-test-focus-brand strong {
	overflow: hidden;
	color: #2b1638;
	font-size: 15px;
	font-weight: 900;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.em-test-focus-exit {
	flex: 0 0 auto;
	min-height: 42px;
	padding: 8px 14px;
	border: 1px solid #d8c9e8;
	border-radius: 12px;
	background: #fff;
	color: var(--em-test-primary-dark);
	font-size: 14px;
	font-weight: 900;
	cursor: pointer;
}

.em-test-focus-exit:hover,
.em-test-focus-exit:focus-visible {
	border-color: var(--em-test-primary);
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
	outline: none;
}

body.em-test-focus-mode .em-test-form,
body.em-test-focus-mode .em-test-results {
	margin: 0;
	box-shadow: 0 18px 48px rgba(55, 29, 78, .10);
}

@media (max-width: 782px) {
	body.admin-bar.em-test-focus-mode .em-test-focus-header {
		top: 58px;
	}
}

@media (max-width: 640px) {
	body.em-test-focus-mode .em-test-shell {
		width: min(100% - 16px, 1040px);
		padding-top: 8px;
	}

	body.em-test-focus-mode .em-test-focus-header {
		top: 6px;
		gap: 8px;
		padding: 8px 10px;
		border-radius: 14px;
	}

	body.admin-bar.em-test-focus-mode .em-test-focus-header {
		top: 52px;
	}

	.em-test-focus-brand img {
		max-width: 92px;
		height: 34px;
	}

	.em-test-focus-brand span {
		display: none;
	}

	.em-test-focus-brand strong {
		max-width: 135px;
		font-size: 13px;
	}

	.em-test-focus-exit {
		min-height: 38px;
		padding: 7px 10px;
		font-size: 12px;
	}

	body.em-test-focus-mode .em-test-form,
	body.em-test-focus-mode .em-test-results {
		padding: 18px 14px;
		border-radius: 18px;
	}
}

@media print {
	.em-test-focus-header {
		display: none !important;
	}
}

/* =========================================================
   1.0.0-alpha6 — MMPI-2 professional score report
========================================================= */
.em-test-mmpi-report {
	max-width: 1080px;
}

.em-test-mmpi-profile {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.em-test-mmpi-table-section,
.em-test-mmpi-chart-section,
.em-test-mmpi-analysis {
	margin-top: 24px;
	padding: 26px;
	border: 1px solid var(--em-test-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(55, 29, 78, .06);
}

.em-test-mmpi-table-section h2,
.em-test-mmpi-chart-section h2,
.em-test-mmpi-analysis h2 {
	margin: 0 0 16px;
	font-size: 24px;
}

.em-test-mmpi-table-wrap {
	overflow-x: auto;
	border: 1px solid #dbe3ee;
	border-radius: 14px;
}

.em-test-mmpi-table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
}

.em-test-mmpi-table th,
.em-test-mmpi-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #e6eaf0;
	text-align: right;
	vertical-align: middle;
}

.em-test-mmpi-table th {
	background: #0f5fae;
	color: #fff;
	font-weight: 900;
}

.em-test-mmpi-table tbody tr:nth-child(even) {
	background: #f7f9fc;
}

.em-test-mmpi-chart {
	overflow-x: auto;
	padding: 10px;
	border: 1px solid #e0e6ef;
	border-radius: 16px;
	background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.em-test-mmpi-chart svg {
	display: block;
	width: 100%;
	min-width: 760px;
	height: auto;
}

.em-mmpi-grid-line {
	stroke: #d8dde6;
	stroke-width: 1;
}

.em-mmpi-grid-vertical {
	stroke-opacity: .65;
}

.em-mmpi-threshold-line {
	stroke: #dc4c64;
	stroke-width: 2.5;
	stroke-dasharray: 9 8;
}

.em-mmpi-profile-line {
	fill: none;
	stroke: #0f5fae;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.em-mmpi-point {
	fill: #0f5fae;
	stroke: #fff;
	stroke-width: 3;
}

.em-mmpi-axis-label,
.em-mmpi-scale-label,
.em-mmpi-score-label {
	fill: #3b4656;
	font-family: inherit;
}

.em-mmpi-axis-label,
.em-mmpi-scale-label {
	font-size: 15px;
	font-weight: 700;
}

.em-mmpi-score-label {
	font-size: 14px;
	font-weight: 900;
	fill: #0f5fae;
}

.em-test-mmpi-chart-note,
.em-test-mmpi-source {
	margin-top: 14px;
	padding: 12px 15px;
	border-radius: 12px;
	background: #f3f7fc;
	color: #465162;
	font-size: 14px;
}

.em-test-mmpi-analysis {
	border-right: 6px solid #0f5fae;
}

.em-test-mmpi-limitations {
	border-right-color: #d97706;
	background: #fffdf8;
}

.em-test-mmpi-analysis p,
.em-test-mmpi-analysis li {
	color: #3f4856;
}

@media (max-width: 760px) {
	.em-test-mmpi-profile { grid-template-columns: 1fr 1fr; }
	.em-test-mmpi-table-section,
	.em-test-mmpi-chart-section,
	.em-test-mmpi-analysis { padding: 18px 14px; border-radius: 18px; }
}

@media (max-width: 520px) {
	.em-test-mmpi-profile { grid-template-columns: 1fr; }
}

@media print {
	.em-test-mmpi-report {
		position: absolute;
		inset: 0;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 8mm;
	}
	.em-test-mmpi-table-section,
	.em-test-mmpi-chart-section,
	.em-test-mmpi-analysis {
		box-shadow: none;
		break-inside: avoid;
	}
	.em-test-mmpi-chart svg {
		min-width: 0;
	}
}

/* =========================================================
   1.0.0-alpha7 — MMPI-2 validity workflow and data-ready UI
========================================================= */
.em-test-mmpi-validity-summary {
	margin-top: 24px;
	padding: 26px;
	border: 1px solid var(--em-ui-border, var(--em-test-border));
	border-right: 6px solid var(--em-ui-primary, #6d28d9);
	border-radius: var(--em-ui-radius-lg, 22px);
	background: var(--em-ui-surface, #fff);
	box-shadow: var(--em-ui-shadow-sm, 0 10px 28px rgba(55, 29, 78, .06));
}

.em-test-mmpi-validity-summary[data-validity-status="caution"] {
	border-right-color: #d97706;
	background: #fffdf8;
}

.em-test-mmpi-validity-summary[data-validity-status="invalid"] {
	border-right-color: #b42318;
	background: #fff8f7;
}

.em-test-mmpi-validity-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.em-test-mmpi-validity-heading h2 {
	margin: 2px 0 0;
	font-size: clamp(22px, 3vw, 30px);
}

.em-test-mmpi-validity-badge,
.em-test-mmpi-level {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border: 1px solid var(--em-ui-primary-border, #d8c7f0);
	border-radius: 999px;
	background: var(--em-ui-primary-soft, #f7f3ff);
	color: var(--em-ui-primary-dark, #4c1d95);
	font-size: 13px;
	font-weight: 800;
}

.em-test-mmpi-validity-summary[data-validity-status="caution"] .em-test-mmpi-validity-badge,
.em-test-mmpi-level[data-level="caution"],
.em-test-mmpi-level[data-level="elevated"] {
	border-color: #fed7aa;
	background: #fff7ed;
	color: #9a3412;
}

.em-test-mmpi-validity-summary[data-validity-status="invalid"] .em-test-mmpi-validity-badge,
.em-test-mmpi-level[data-level="invalid"],
.em-test-mmpi-level[data-level="marked"] {
	border-color: #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.em-test-mmpi-interpretability {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.em-test-mmpi-interpretability p {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 15px;
	border: 1px solid var(--em-ui-border, #e7e0ed);
	border-radius: var(--em-ui-radius-md, 14px);
	background: var(--em-ui-surface-subtle, #fbfafd);
}

.em-test-mmpi-interpretability span {
	color: var(--em-ui-muted, #514b5e);
	font-size: 13px;
}

.em-test-mmpi-alert {
	margin-top: 16px;
	padding: 15px 18px;
	border: 1px solid #fed7aa;
	border-radius: var(--em-ui-radius-md, 14px);
	background: #fff7ed;
	color: #7c2d12;
}

.em-test-mmpi-alert-danger {
	border-color: #fecaca;
	background: #fef2f2;
	color: #7f1d1d;
}

.em-test-mmpi-alert ul {
	margin: 8px 0 0;
	padding-right: 22px;
}

.em-test-mmpi-table th {
	background: var(--em-ui-primary-dark, #4c1d95);
}

.em-mmpi-profile-line {
	stroke: var(--em-ui-primary, #6d28d9);
}

.em-mmpi-point {
	fill: var(--em-ui-primary, #6d28d9);
}

.em-mmpi-score-label {
	fill: var(--em-ui-primary-dark, #4c1d95);
}

@media (max-width: 760px) {
	.em-test-mmpi-validity-summary {
		padding: 18px 14px;
		border-radius: 18px;
	}
	.em-test-mmpi-validity-heading {
		align-items: flex-start;
		flex-direction: column;
	}
	.em-test-mmpi-interpretability {
		grid-template-columns: 1fr;
	}
}

@media print {
	.em-test-mmpi-validity-summary {
		box-shadow: none;
		break-inside: avoid;
	}
}

/* =========================================================
   1.0.0-alpha9 — Private MMPI-2 administration
========================================================= */
.em-test-mmpi-access-gate {
	max-width: 880px;
	margin-inline: auto;
	border-right: 6px solid var(--em-ui-primary, #6d28d9);
}

.em-test-mmpi-launch .em-warning {
	margin: 20px 0;
}

.em-test-mmpi-form {
	max-width: 920px;
}

.em-test-mmpi-counts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 10px;
	color: var(--em-ui-muted, #625a6b);
	font-size: 14px;
}

.em-test-mmpi-question-stage,
.em-test-mmpi-review,
.em-test-mmpi-identity {
	margin-top: 22px;
	padding: clamp(22px, 4vw, 42px);
	border: 1px solid var(--em-ui-border, #e5d9f2);
	border-radius: var(--em-ui-radius-lg, 24px);
	background: var(--em-ui-surface, #fff);
	box-shadow: var(--em-ui-shadow-sm, 0 12px 34px rgba(56, 27, 78, .07));
}

.em-test-mmpi-question-stage h2 {
	min-height: 4.2em;
	margin: 10px 0 28px;
	font-size: clamp(22px, 3vw, 32px);
	line-height: 2;
}

.em-test-mmpi-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	padding: 0;
	border: 0;
}

.em-test-mmpi-options label {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 12px 16px;
	border: 1px solid var(--em-ui-border, #e5d9f2);
	border-radius: var(--em-ui-radius-md, 16px);
	background: var(--em-ui-surface, #fff);
	color: var(--em-ui-text, #2f2438);
	font-weight: 800;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.em-test-mmpi-options label:hover {
	border-color: var(--em-ui-primary, #6d28d9);
	transform: translateY(-1px);
}

.em-test-mmpi-options input {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	opacity: 0;
}

.em-test-mmpi-options label:has(input:checked) {
	border-color: var(--em-ui-primary, #6d28d9);
	background: var(--em-ui-primary-soft, #f7f3ff);
	color: var(--em-ui-primary-dark, #4c1d95);
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .11);
}

.em-test-mmpi-options label:focus-within {
	outline: 3px solid rgba(15, 140, 135, .25);
	outline-offset: 3px;
}

.em-test-mmpi-options .em-test-mmpi-skip {
	font-weight: 650;
	color: var(--em-ui-muted, #625a6b);
}

.em-test-mmpi-review-note {
	margin-top: 18px;
	padding: 14px 16px;
	border-right: 4px solid #d97706;
	border-radius: 12px;
	background: #fff7ed;
	color: #7c2d12;
}

.em-test-mmpi-identity select {
	width: 100%;
	min-height: 48px;
	padding: 8px 12px;
	border: 1px solid var(--em-ui-border, #e5d9f2);
	border-radius: var(--em-ui-radius-md, 14px);
	background: #fff;
	font: inherit;
}

.em-test-mmpi-complete {
	max-width: 920px;
	margin-inline: auto;
}

.em-test-mmpi-pending .em-test-profile {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
	.em-test-mmpi-options {
		grid-template-columns: 1fr;
	}
	.em-test-mmpi-question-stage h2 {
		min-height: 0;
		font-size: 22px;
	}
	.em-test-mmpi-pending .em-test-profile {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 520px) {
	.em-test-mmpi-question-stage,
	.em-test-mmpi-review,
	.em-test-mmpi-identity {
		padding: 18px 14px;
		border-radius: 18px;
	}
	.em-test-mmpi-pending .em-test-profile {
		grid-template-columns: 1fr;
	}
}

/* Alpha 10: explicit field validation and resilient MMPI progress */
.em-test-identity .is-invalid input,
.em-test-identity .is-invalid select,
.em-test-identity input[aria-invalid="true"],
.em-test-identity select[aria-invalid="true"] {
	border-color: #b42318 !important;
	box-shadow: 0 0 0 3px rgba(180, 35, 24, .12) !important;
}

.em-test-identity .is-invalid > span,
.em-test-identity fieldset.is-invalid > legend {
	color: #b42318;
}

.em-test-mmpi-counts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 8px;
	color: var(--em-ui-muted, #625a6b);
}

.em-test-mmpi-counts strong {
	color: var(--em-ui-text, #2f2438);
}

/* Alpha 10: extended MMPI report profiles */
.em-test-mmpi-score-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.em-test-mmpi-score-chips span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid var(--em-ui-border, #e5d9f2);
	border-radius: 999px;
	background: var(--em-ui-surface, #fff);
}

.em-test-mmpi-extended-chart .em-test-mmpi-chart {
	overflow-x: auto;
}

.em-test-mmpi-extended-chart svg {
	min-width: 900px;
}


/* =========================================================
   1.0.0-alpha12 — mandatory MMPI-71 + automatic PDF-ready report
========================================================= */
.em-test-mmpi-app[data-mode="mini71"] .em-test-mmpi-options {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.em-test-mmpi-app[data-mode="mini71"] [data-mmpi-next] { display: none !important; }
.em-test-mmpi-app[data-mode="mini71"] .em-test-mmpi-options label { min-height: 66px; font-size: 18px; }

.em-test-mmpi71-report { max-width: 1120px; }
.em-mmpi71-report-hero { text-align: right; }
.em-mmpi71-report-meta { margin: 22px 0; }
.em-mmpi71-validity,
.em-mmpi71-report-section {
	margin: 22px 0;
	padding: clamp(20px, 4vw, 34px);
	border: 1px solid var(--em-ui-border, #e5d9f2);
	border-radius: var(--em-ui-radius-lg, 24px);
	background: var(--em-ui-surface, #fff);
	box-shadow: var(--em-ui-shadow-sm, 0 12px 34px rgba(56, 27, 78, .07));
}
.em-mmpi71-validity { display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; border-right: 6px solid #0f8c87; }
.em-mmpi71-validity.is-caution { border-right-color: #d97706; background: #fffdf7; }
.em-mmpi71-validity h2 { margin: 4px 0; }
.em-mmpi71-validity ul { margin: 0; }
.em-mmpi71-bars { display: grid; gap: 14px; margin-top: 22px; }
.em-mmpi71-bar-row { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(260px, 2fr) 80px; align-items: center; gap: 14px; break-inside: avoid; }
.em-mmpi71-bar-label { display: flex; gap: 10px; align-items: baseline; }
.em-mmpi71-bar-label strong { min-width: 28px; color: var(--em-ui-primary-dark, #4c1d95); }
.em-mmpi71-bar-label span { color: var(--em-ui-muted, #625a6b); }
.em-mmpi71-bar-track { height: 14px; overflow: hidden; border-radius: 999px; background: #eee8f5; }
.em-mmpi71-bar-track span { display: block; width: var(--em-score-width); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6d28d9, #0f8c87); }
.em-mmpi71-bar-row.is-high .em-mmpi71-bar-track span { background: linear-gradient(90deg, #b42318, #d97706); }
.em-mmpi71-bar-row.is-notable .em-mmpi71-bar-track span { background: linear-gradient(90deg, #7c3aed, #d97706); }
.em-mmpi71-bar-value { text-align: left; white-space: nowrap; }
.em-mmpi71-bar-value strong, .em-mmpi71-bar-value small { display: block; }
.em-mmpi71-narrative-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.em-mmpi71-score-table td, .em-mmpi71-score-table th { vertical-align: middle; }
.em-mmpi71-limitations { break-inside: avoid; }

@media (max-width: 800px) {
	.em-mmpi71-validity { grid-template-columns: 1fr; }
	.em-mmpi71-narrative-grid { grid-template-columns: 1fr; }
	.em-mmpi71-bar-row { grid-template-columns: 1fr; gap: 7px; }
	.em-mmpi71-bar-value { text-align: right; display: flex; gap: 8px; }
}

@media print {
	@page { size: A4; margin: 12mm; }
	html, body { background: #fff !important; }
	body > header, body > footer, .site-header, .site-footer, #wpadminbar, .em-no-print, .em-test-focus-header, .scroll-to-top, .joinchat, .chaty-widget { display: none !important; }
	.em-test-mmpi71-report { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
	.em-test-mmpi71-report *, .em-test-mmpi71-report *::before, .em-test-mmpi71-report *::after { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
	.em-test-private-header, .em-mmpi71-validity, .em-mmpi71-report-section, .em-card, .em-warning, .em-note, .em-test-profile { box-shadow: none !important; break-inside: avoid; }
	.em-mmpi71-narrative-grid { grid-template-columns: 1fr; }
	.em-mmpi71-bar-row { grid-template-columns: 150px 1fr 60px; }
	a { color: inherit !important; text-decoration: none !important; }
}

/* =========================================================
   1.0.0-alpha13 — required MMPI responses + gated profile report
========================================================= */
.em-test-mmpi-app[data-require-complete="1"] .em-test-mmpi-options {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.em-test-mmpi-app[data-auto-advance="1"] [data-mmpi-next] {
	display: none !important;
}
.em-test-mmpi-app[data-require-complete="1"] .em-test-mmpi-options label {
	min-height: 66px;
	font-size: 18px;
}

.em-test-mmpi-release-banner {
	margin: 22px 0;
	padding: 18px 20px;
	border: 1px solid var(--em-ui-border, #e5d9f2);
	border-right: 6px solid #d97706;
	border-radius: var(--em-ui-radius-md, 16px);
	background: #fffaf0;
}
.em-test-mmpi-release-banner.is-reviewed {
	border-right-color: #0f8c87;
	background: #f2fbf9;
}
.em-test-mmpi-release-banner strong {
	display: block;
	margin-bottom: 6px;
	font-size: 18px;
	color: var(--em-ui-text, #2f2438);
}
.em-test-mmpi-release-banner p { margin: 0; }

.em-test-mmpi-auto-draft {
	border-right-color: var(--em-ui-primary, #6d28d9);
	background: linear-gradient(135deg, #fff 0%, #fbf8ff 100%);
}
.em-test-mmpi-insight {
	margin: 16px 0;
	padding: 16px 18px;
	border: 1px solid #d8c4f2;
	border-radius: 14px;
	background: #f8f3ff;
}
.em-test-mmpi-insight p { margin-bottom: 0; }
.em-test-mmpi-pattern-grid,
.em-test-mmpi-scale-interpretations {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 14px;
}
.em-test-mmpi-pattern-grid article,
.em-test-mmpi-scale-card {
	padding: 17px;
	border: 1px solid var(--em-ui-border, #e5d9f2);
	border-radius: 15px;
	background: #fff;
	break-inside: avoid;
}
.em-test-mmpi-pattern-grid article p,
.em-test-mmpi-scale-card p { margin: 8px 0 0; }
.em-test-mmpi-scale-card header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee7f5;
}
.em-test-mmpi-scale-card header span {
	white-space: nowrap;
	font-size: 13px;
	font-weight: 800;
	color: var(--em-ui-muted, #625a6b);
}
.em-test-mmpi-scale-card[data-level="elevated"],
.em-test-mmpi-scale-card[data-level="marked"] {
	border-right: 5px solid #d97706;
}
.em-test-mmpi-scale-card[data-level="marked"] {
	border-right-color: #b42318;
	background: #fffafa;
}
.em-test-mmpi-scale-card[data-level="low"] {
	border-right: 5px solid #0f8c87;
}

@media (max-width: 760px) {
	.em-test-mmpi-pattern-grid,
	.em-test-mmpi-scale-interpretations { grid-template-columns: 1fr; }
	.em-test-mmpi-scale-card header { display: block; }
	.em-test-mmpi-scale-card header span { display: block; margin-top: 6px; }
}

@media print {
	@page { size: A4; margin: 12mm; }
	html, body { background: #fff !important; }
	.em-test-mmpi-report,
	.em-test-mmpi-report *,
	.em-test-mmpi-report *::before,
	.em-test-mmpi-report *::after {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}
	.em-test-mmpi-release-banner,
	.em-test-mmpi-pattern-grid article,
	.em-test-mmpi-scale-card,
	.em-test-mmpi-insight { box-shadow: none !important; break-inside: avoid; }
	.em-test-mmpi-pattern-grid,
	.em-test-mmpi-scale-interpretations { grid-template-columns: 1fr; }
	.em-test-print-hide { display: none !important; }
}
