/*
 * Personality test (1.46.0) — the JEEVI MBTI plugin's question card on top of
 * the signature test skin (this sheet depends on jiq-signature-test-css).
 *
 * Sections 2-3 are the MBTI plugin's own "qv3" title and "qv4" spectrum rules
 * (assets/css/style.css, lines 7171-7240 and 7762-8240 of plugin 3.9.11),
 * re-scoped from #questions-section.qv3-mode to .jpx-app and renamed qv4- to
 * jpx-. Section 1 and 4+ are this plugin's glue.
 *
 * Page rule: no site navbar and no site footer on the test page; nothing here
 * adds either.
 */

/* ------------------------------------------------------------------ 1. glue */

/* Test-page rule: no site navbar, no site footer. The signature skin already
   hides the theme header and footer#colophon; theme widget areas that some
   themes print below the content go too. */
body.jiq-test-active.jpx-active .widget-area,
body.jiq-test-active.jpx-active #colophon,
body.jiq-test-active.jpx-active .site-footer { display: none !important; }

/* Untimed: the engine still keeps a deadline, the visitor never sees it. */
.jpx-app .jiq-timer { display: none !important; }

/* Progress header: the MBTI plugin's "qv3-head" (style.css 6980-7100),
   centred over the card. It stays sticky like the IQ test's counter bar. */
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-test-header.jpx-head {
	border-bottom: 0 !important;
	padding: 10px 0 8px !important;
	/* Not sticky (the IQ counter bar is): on the MBTI page this header scrolls
	   away, and stuck at the top of a phone it covered the statement and orb. */
	position: relative !important;
	top: auto !important;
}
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jpx-head .jiq-test-header-inner.jpx-head-inner {
	max-width: 560px;
	margin: 0 auto;
	padding: 0 22px;
	text-align: center;
}
.jpx-app .jpx-head-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 10.5px;
	font-weight: 700;
	color: #C2410C;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	background: #FFF3EA;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid rgba(194, 65, 12, 0.10);
	line-height: 1;
}
.jpx-app .jpx-head-eyebrow-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #F97316;
	box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
	animation: jpxPulseOrange 1.8s ease-in-out infinite;
	flex-shrink: 0;
}
@keyframes jpxPulseOrange {
	0%, 100% { box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18); }
	50%      { box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.04); }
}
.jpx-app .jpx-head-title {
	margin-top: 8px;
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.5px;
	line-height: 1.05;
	font-variant-numeric: tabular-nums;
}
.jpx-app .jpx-head-title em {
	font-family: Georgia, 'Times New Roman', serif !important;
	font-style: italic;
	font-weight: 500;
	background: linear-gradient(135deg, #F97316, #EA580C);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 0 4px;
}
.jpx-app .jpx-head-q-of { color: #9CA3AF; font-weight: 500; }
.jpx-app .jpx-head-tagline {
	margin-top: 4px;
	font-size: 12px;
	color: #9CA3AF;
	font-weight: 500;
}
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jpx-head .jiq-progress.jpx-progress-track {
	position: relative !important;
	left: auto;
	right: auto;
	bottom: auto;
	height: 5px;
	margin-top: 8px;
	background: #ECEEF1;
	border-radius: 999px;
	overflow: hidden;
}
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jpx-head .jpx-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #F97316 0%, #FB923C 55%, #FDBA74 100%);
	border-radius: 999px;
	transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
	box-shadow: 0 0 6px rgba(249, 115, 22, 0.3);
}
.jpx-app .jpx-head-foot {
	margin-top: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11.5px;
	color: #6B7280;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}
.jpx-app .jpx-head-foot #jiqs-pct { color: #111827; font-weight: 700; }
.jpx-app .jpx-head-foot-rem { display: inline-flex; align-items: center; gap: 6px; }
.jpx-app .jpx-head-foot-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22C55E;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
	flex-shrink: 0;
}
@media (max-width: 640px) {
	.jpx-app .jpx-head-eyebrow { font-size: 9.5px; letter-spacing: 1.2px; padding: 4px 10px; }
	.jpx-app .jpx-head-title { margin-top: 10px; font-size: 22px; }
	.jpx-app .jpx-head-foot { font-size: 11px; }
	body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jpx-head .jiq-test-header-inner.jpx-head-inner { padding: 0 16px; }
}

/* The MBTI card is narrower than the IQ test's picture card. */
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-question.jpx-qsection .jiq-q-card.jiqs-qcard {
	width: 100%;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Intro: the four letter pairs under the subhead. */
.jpx-app .jpx-dimchips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	position: relative;
	z-index: 1;
}
.jpx-app .jpx-dimchip {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(249, 115, 22, 0.18);
	font-size: 13px;
	color: #111827;
	line-height: 1;
}
.jpx-app .jpx-dimchip b { font-weight: 800; }
.jpx-app .jpx-dimchip i { font-style: normal; color: #FDBA74; }
.jpx-app .jpx-dimchip small {
	margin-left: 5px;
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9A3412;
	font-weight: 700;
}

/* The question card hosts the MBTI card: undo the tile grid the signature
   skin gives .jiq-options (six 96px tiles on desktop) and the tile look it
   gives .jiq-option. The signature rules are written as
   "body.jiq-test-active .jiq-app.jiqs-app ...", so these repeat that prefix
   plus .jpx-app to win without touching the IQ test's sheet. */
.jpx-app .jpx-card { text-align: center; }
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-q-card.jiqs-qcard > .jpx-preview,
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-q-card.jiqs-qcard > .jiq-options.jpx-segpill,
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-q-card.jiqs-qcard > .jpx-segpill-labels,
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-q-card.jiqs-qcard > .jpx-q-sub,
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-q-card.jiqs-qcard > div.jiq-q-text.jpx-q-text {
	align-self: stretch;
	width: 100%;
	flex: 0 0 auto;
}
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-q-card .jiq-options.jpx-segpill {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-template-rows: none;
	justify-content: stretch;
	gap: 0;
	max-width: 480px;
	height: 56px;
	padding: 6px;
	margin: 8px auto 0;
}
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-q-card > div.jiq-q-text.jpx-q-text {
	font-family: Georgia, 'Times New Roman', serif !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1.28 !important;
	letter-spacing: -0.3px !important;
	color: #111827 !important;
	max-width: 540px;
	margin: 0 auto 6px !important;
	padding: 0 6px !important;
}
@media (max-width: 640px) {
	body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-q-card > div.jiq-q-text.jpx-q-text { line-height: 1.3 !important; padding: 0 4px !important; }
}
@media (max-width: 360px) {
	body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-q-card > div.jiq-q-text.jpx-q-text { font-size: 19px !important; }
}
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-options.jpx-segpill .jiq-option.jpx-seg,
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-options.jpx-segpill .jiq-option.jpx-seg:hover,
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-options.jpx-segpill .jiq-option.jpx-seg.is-selected {
	min-height: 0;
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 999px;
	background: transparent !important;
	box-shadow: none !important;
	transform: none;
	outline: none;
	aspect-ratio: auto;
}
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-options.jpx-segpill .jiq-option.jpx-seg:focus-visible {
	box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.55) !important;
}
.jpx-app .jpx-seg .jpx-seg-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* The IQ skin squeezes every question into exactly one viewport height
   (--jiq-fit) and centres the card. The MBTI card is taller (orb + pill), so
   here the card takes its natural height, as on the MBTI page; on short
   screens section 3b below tightens the spacing so it still fits. */
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-question.jpx-qsection.is-active {
	height: auto;
	max-height: none;
	min-height: 0;
}
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-question.jpx-qsection .jiq-q-card.jiqs-qcard {
	flex: 0 0 auto;
	justify-content: flex-start;
	padding: 26px 28px 18px;
	overflow: visible;
}
@media (max-width: 640px) {
	body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-question.jpx-qsection .jiq-q-card.jiqs-qcard { padding: 22px 16px 14px !important; }
	/* Keep the card's top edge clear of the sticky progress header. */
	body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-question.jpx-qsection { padding-top: 14px !important; }
}

/* "Edit previous answer" sits inside the card (MBTI .qv4-navrow); no Skip. */
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jpx-card .jpx-navrow .jiq-prev.jpx-back-btn {
	background: transparent !important;
	border: 1px solid #E5E7EB !important;
	color: #6B7280 !important;
	box-shadow: none !important;
	min-height: 0;
	width: auto;
}
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jpx-card .jpx-navrow .jiq-prev.jpx-back-btn:hover {
	color: #C2410C !important;
	border-color: #FDBA74 !important;
	background: #FFF7ED !important;
}

/* ------------------------------------------- 2. MBTI qv3 title block (copied) */
.jpx-app .jpx-badge-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 8px;
}
.jpx-app .jpx-dash {
	width: 28px;
	height: 1px;
	background: linear-gradient(90deg, transparent, #FDBA74, transparent);
}
.jpx-app .jpx-bullet {
	color: #FDBA74;
	font-size: 14px;
	line-height: 1;
}
.jpx-app .jpx-badge-text {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #F97316;
	text-transform: uppercase;
}
.jpx-app .jpx-spark {
	position: relative;
	width: 44px;
	height: 44px;
	margin: 0 auto 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.jpx-app .jpx-spark-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(253, 186, 116, 0.35), rgba(253, 186, 116, 0.05) 65%, transparent 75%);
}
.jpx-app .jpx-spark-svg {
	position: relative;
	width: 28px;
	height: 28px;
	z-index: 1;
}
.jpx-app .jiq-question.is-active .jpx-spark-svg {
	animation: jpxSparkPulse 2.4s ease-in-out infinite;
}
@keyframes jpxSparkPulse {
	0%, 100% { transform: scale(1) rotate(0deg); }
	50%      { transform: scale(1.08) rotate(8deg); }
}
.jpx-app .jiq-q-card .jiq-q-text.jpx-q-text {
	font-family: Georgia, 'Times New Roman', serif !important;
	font-size: 22px;
	line-height: 1.28;
	color: #111827;
	text-align: center;
	font-weight: 700;
	letter-spacing: -0.3px;
	margin: 0 auto 6px;
	max-width: 540px;
	padding: 0 6px;
}
.jpx-app .jpx-q-sub {
	font-size: 13px;
	color: #9CA3AF;
	text-align: center;
	margin: 0 0 14px;
	font-weight: 500;
}
@media (max-width: 640px) {
	.jpx-app .jpx-badge-row { gap: 6px; margin-bottom: 10px; }
	.jpx-app .jpx-dash { width: 22px; }
	.jpx-app .jpx-badge-text { font-size: 10px; letter-spacing: 1.6px; }
	.jpx-app .jpx-spark { width: 42px; height: 42px; margin: 2px auto 14px; }
	.jpx-app .jpx-spark-svg { width: 22px; height: 22px; }
	.jpx-app .jiq-q-card .jiq-q-text.jpx-q-text { font-size: 22px; line-height: 1.3; max-width: none; padding: 0 4px; }
	.jpx-app .jpx-q-sub { font-size: 12.5px; margin-bottom: 22px; }
}
@media (max-width: 360px) {
	.jpx-app .jiq-q-card .jiq-q-text.jpx-q-text { font-size: 19px; }
}

/* ------------------------------- 3. MBTI qv4 orb + segmented pill (copied) */
.jpx-app .jpx-preview {
	position: relative;
	margin: 6px auto 26px;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	color: #9CA3AF; /* default neutral */
	transition: color 0.4s ease;
}
.jpx-app .jpx-preview[data-state="-2"] { color: #DC2626; }
.jpx-app .jpx-preview[data-state="-1"] { color: #F59E0B; }
.jpx-app .jpx-preview[data-state="0"]  { color: #9CA3AF; }
.jpx-app .jpx-preview[data-state="1"]  { color: #16A34A; }
.jpx-app .jpx-preview[data-state="2"]  { color: #15803D; }
.jpx-app .jpx-preview[data-state="idle"] { color: #FB923C; }

.jpx-app .jpx-preview-orb {
	position: relative;
	width: 108px; height: 108px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 45%),
		radial-gradient(circle at 50% 55%, currentColor 0%, currentColor 70%, currentColor 100%);
	display: flex; align-items: center; justify-content: center;
	box-shadow:
		0 22px 48px -16px currentColor,
		0 6px 18px -6px rgba(31, 41, 55, 0.18),
		inset 0 -8px 18px -6px rgba(0,0,0,0.18),
		inset 0 0 0 1.5px rgba(255,255,255,0.35);
	transition: box-shadow 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.jpx-app .jpx-preview[data-state="idle"] .jpx-preview-orb {
	background:
		radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 45%),
		linear-gradient(135deg, #FB923C 0%, #F97316 60%, #EA580C 100%);
	box-shadow:
		0 22px 44px -14px rgba(249, 115, 22, 0.55),
		0 6px 18px -6px rgba(31, 41, 55, 0.18),
		inset 0 -8px 18px -6px rgba(0,0,0,0.18),
		inset 0 0 0 1.5px rgba(255,255,255,0.35);
}
/* Subtle breathing animation while idle to draw the eye */
.jpx-app .jpx-preview[data-state="idle"] .jpx-preview-orb {
	animation: jpxOrbBreath 2.6s ease-in-out infinite;
}
@keyframes jpxOrbBreath {
	0%, 100% { transform: scale(1); }
	50%	  { transform: scale(1.04); }
}

.jpx-app .jpx-preview-face {
	position: absolute;
	inset: 0;
	display: flex; align-items: center; justify-content: center;
	opacity: 0;
	transform: scale(0.55) rotate(-6deg);
	transition: opacity 0.32s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
	pointer-events: none;
}
.jpx-app .jpx-preview-face svg {
	width: 78px; height: 78px;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}
.jpx-app .jpx-preview[data-state="-2"] .jpx-preview-face[data-face="-2"],
.jpx-app .jpx-preview[data-state="-1"] .jpx-preview-face[data-face="-1"],
.jpx-app .jpx-preview[data-state="0"]  .jpx-preview-face[data-face="0"],
.jpx-app .jpx-preview[data-state="1"]  .jpx-preview-face[data-face="1"],
.jpx-app .jpx-preview[data-state="2"]  .jpx-preview-face[data-face="2"] {
	opacity: 1;
	transform: scale(1) rotate(0deg);
}
/* Glossy sheen overlay on top of the orb for premium depth */
.jpx-app .jpx-preview-gloss {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background:
		radial-gradient(ellipse 60% 38% at 38% 22%, rgba(255,255,255,0.55), rgba(255,255,255,0) 70%),
		radial-gradient(ellipse 80% 60% at 50% 110%, rgba(0,0,0,0.18), rgba(0,0,0,0) 60%);
	pointer-events: none;
	z-index: 2;
	opacity: 0.95;
}
.jpx-app .jpx-preview[data-state="idle"] .jpx-preview-gloss {
	opacity: 0.85;
}
.jpx-app .jpx-preview-face {
	z-index: 3;
}
.jpx-app .jpx-preview-prompt {
	z-index: 3;
}

/* Idle prompt arrow */
.jpx-app .jpx-preview-prompt {
	position: absolute;
	inset: 0;
	display: flex; align-items: center; justify-content: center;
	opacity: 0;
	transform: scale(0.7);
	transition: opacity 0.32s ease, transform 0.4s ease;
	pointer-events: none;
	color: #fff;
}
.jpx-app .jpx-preview-prompt svg { width: 40px; height: 40px; }
.jpx-app .jpx-preview[data-state="idle"] .jpx-preview-prompt {
	opacity: 1;
	transform: scale(1);
	animation: jpxPromptNudge 1.8s ease-in-out infinite;
}
@keyframes jpxPromptNudge {
	0%, 100% { transform: translateX(0) scale(1); }
	50%	  { transform: translateX(4px) scale(1.05); }
}

/* Morphing preview label */
.jpx-app .jpx-preview-label {
	position: relative;
	height: 22px;
	font-size: 15px;
	font-weight: 600;
	color: #1F2937;
	letter-spacing: -0.1px;
	text-align: center;
	width: 100%;
}
.jpx-app .jpx-preview-label span {
	position: absolute;
	inset: 0;
	display: flex; align-items: center; justify-content: center;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.jpx-app .jpx-preview[data-state="idle"] .jpx-preview-label span[data-state="idle"],
.jpx-app .jpx-preview[data-state="-2"]  .jpx-preview-label span[data-state="-2"],
.jpx-app .jpx-preview[data-state="-1"]  .jpx-preview-label span[data-state="-1"],
.jpx-app .jpx-preview[data-state="0"]   .jpx-preview-label span[data-state="0"],
.jpx-app .jpx-preview[data-state="1"]   .jpx-preview-label span[data-state="1"],
.jpx-app .jpx-preview[data-state="2"]   .jpx-preview-label span[data-state="2"] {
	opacity: 1;
	transform: translateY(0);
}
.jpx-app .jpx-preview[data-state="idle"] .jpx-preview-label span[data-state="idle"] {
	color: #6B7280;
	font-weight: 500;
}

/* ── Quick-tap pill row (replaces slider) ───────────────────────── */
/* ════════ Apple-style liquid-glass segmented pill (Option C) ════ */
.jpx-app .jpx-segpill {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	/* Frosted-glass track */
	background:
		linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(243,244,246,0.55) 100%);
	-webkit-backdrop-filter: blur(24px) saturate(200%);
	backdrop-filter: blur(24px) saturate(200%);
	border: 1px solid rgba(255,255,255,0.65);
	border-radius: 999px;
	padding: 6px;
	max-width: 480px;
	margin: 8px auto 0;
	height: 56px;
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.85),
		inset 0 -1px 0 rgba(31,41,55,0.05),
		0 1px 3px rgba(31,41,55,0.05),
		0 10px 28px -18px rgba(31,41,55,0.10);
	-webkit-tap-highlight-color: transparent;
}
.jpx-app .jpx-segpill-indicator {
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 6px;
	width: calc((100% - 12px) / 5);
	border-radius: 999px;
	/* Default fallback (orange glass) */
	background:
		linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0) 55%),
		linear-gradient(135deg, #FB923C, #F97316);
	border: 0.5px solid rgba(255,255,255,0.35);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.55),
		inset 0 -2px 4px rgba(0,0,0,0.12),
		0 4px 14px -4px rgba(249,115,22,0.55),
		0 1px 3px rgba(31,41,55,0.10);
	transition:
		left 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
		background 0.4s ease,
		box-shadow 0.4s ease,
		opacity 0.2s ease;
	z-index: 1;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
}
/* Glossy top sheen overlay — like Apple Liquid Glass highlight */
.jpx-app .jpx-segpill-indicator::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 55%;
	background: radial-gradient(ellipse 80% 100% at 50% 0%,
		rgba(255,255,255,0.38) 0%,
		rgba(255,255,255,0.14) 45%,
		rgba(255,255,255,0) 100%);
	border-radius: 999px 999px 50% 50% / 999px 999px 100% 100%;
	pointer-events: none;
}
/* Indicator position + color per state (driven by data-state on .jpx-segpill) */
.jpx-app .jpx-segpill[data-state] .jpx-segpill-indicator { opacity: 1; }
.jpx-app .jpx-segpill[data-state="-2"] .jpx-segpill-indicator {
	left: 6px;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0) 55%),
		linear-gradient(135deg, #EF4444, #DC2626);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.55),
		inset 0 -2px 4px rgba(0,0,0,0.14),
		0 4px 14px -4px rgba(220,38,38,0.6),
		0 1px 3px rgba(31,41,55,0.10);
}
.jpx-app .jpx-segpill[data-state="-1"] .jpx-segpill-indicator {
	left: calc(6px + (100% - 12px) * 0.2);
	background:
		linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0) 55%),
		linear-gradient(135deg, #FBBF24, #F59E0B);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.55),
		inset 0 -2px 4px rgba(0,0,0,0.12),
		0 4px 14px -4px rgba(245,158,11,0.6),
		0 1px 3px rgba(31,41,55,0.10);
}
.jpx-app .jpx-segpill[data-state="0"] .jpx-segpill-indicator {
	left: calc(6px + (100% - 12px) * 0.4);
	background:
		linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 55%),
		linear-gradient(135deg, #E5E7EB, #9CA3AF);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.6),
		inset 0 -2px 4px rgba(0,0,0,0.10),
		0 4px 14px -4px rgba(156,163,175,0.5),
		0 1px 3px rgba(31,41,55,0.08);
}
.jpx-app .jpx-segpill[data-state="1"] .jpx-segpill-indicator {
	left: calc(6px + (100% - 12px) * 0.6);
	background:
		linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0) 55%),
		linear-gradient(135deg, #4ADE80, #16A34A);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.55),
		inset 0 -2px 4px rgba(0,0,0,0.12),
		0 4px 14px -4px rgba(22,163,74,0.6),
		0 1px 3px rgba(31,41,55,0.10);
}
.jpx-app .jpx-segpill[data-state="2"] .jpx-segpill-indicator {
	left: calc(6px + (100% - 12px) * 0.8);
	background:
		linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(255,255,255,0) 55%),
		linear-gradient(135deg, #22C55E, #15803D);
	box-shadow:
		inset 0 1px 0 rgba(255,255,255,0.55),
		inset 0 -2px 4px rgba(0,0,0,0.14),
		0 4px 14px -4px rgba(21,128,61,0.6),
		0 1px 3px rgba(31,41,55,0.10);
}

/* Segments — flat, transparent buttons */
.jpx-app .jpx-seg {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	z-index: 2;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1px;
	color: #6B7280;
	transition: color 0.3s ease;
	-webkit-tap-highlight-color: transparent;
	min-width: 0;
}
.jpx-app .jpx-seg .jpx-seg-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.55;
	transition: opacity 0.3s ease, transform 0.2s ease;
	flex-shrink: 0;
}
.jpx-app .jpx-seg .jpx-seg-text {
	/* Visually hidden — orb above shows the full label; pill stays clean */
	position: absolute;
	width: 1px; height: 1px; padding: 0; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Per-segment color tints (idle dot color) */
.jpx-app .jpx-seg[data-value="-2"] { color: #DC2626; }
.jpx-app .jpx-seg[data-value="-1"] { color: #F59E0B; }
.jpx-app .jpx-seg[data-value="0"]  { color: #9CA3AF; }
.jpx-app .jpx-seg[data-value="1"]  { color: #16A34A; }
.jpx-app .jpx-seg[data-value="2"]  { color: #15803D; }

@media (hover: hover) and (pointer: fine) {
	.jpx-app .jpx-seg:hover .jpx-seg-dot {
		opacity: 1;
		transform: scale(1.15);
	}
}
.jpx-app .jpx-seg:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(249,115,22,0.22);
}

/* Once a state is selected, hide the colored idle dots — indicator carries the meaning */
.jpx-app .jpx-segpill[data-state] .jpx-seg .jpx-seg-dot { opacity: 0; }
/* Show a subtle white check inside the active indicator for explicit feedback */
.jpx-app .jpx-seg::after {
	content: "";
	position: absolute;
	top: 50%; left: 50%;
	width: 14px; height: 14px;
	transform: translate(-50%, -50%) scale(0.4);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	pointer-events: none;
}
.jpx-app .jpx-segpill[data-state="-2"] .jpx-seg[data-value="-2"]::after,
.jpx-app .jpx-segpill[data-state="-1"] .jpx-seg[data-value="-1"]::after,
.jpx-app .jpx-segpill[data-state="0"]  .jpx-seg[data-value="0"]::after,
.jpx-app .jpx-segpill[data-state="1"]  .jpx-seg[data-value="1"]::after,
.jpx-app .jpx-segpill[data-state="2"]  .jpx-seg[data-value="2"]::after {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* 5 segment labels under the pill — perfectly aligned with each segment */
.jpx-app .jpx-segpill-labels {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	max-width: 480px;
	margin: 10px auto 0;
	padding: 0 6px;
	font-size: 10.5px;
	font-weight: 600;
	color: #6B7280;
	letter-spacing: 0.2px;
	line-height: 1.25;
}
.jpx-app .jpx-segpill-labels span {
	text-align: center;
	padding: 0 2px;
}

/* ════════ Edit/back navigation row ══════════════════════════════ */
.jpx-app .jpx-navrow {
	display: flex;
	justify-content: center;
	margin: 18px auto 0;
	min-height: 28px;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}
/* Always visible on every question except the very first */
.jpx-app .jpx-qsection:not([data-step="0"]) .jpx-navrow {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.jpx-app .jpx-back-btn {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 1px solid #E5E7EB;
	color: #6B7280;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2px;
	padding: 7px 14px 7px 11px;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.jpx-app .jpx-back-btn svg { transition: transform 0.2s ease; }
.jpx-app .jpx-back-btn:hover {
	color: #F97316;
	border-color: #FED7AA;
	background: #FFF7ED;
}
.jpx-app .jpx-back-btn:hover svg { transform: translateX(-2px); }
.jpx-app .jpx-back-btn:active { transform: scale(0.96); }
.jpx-app .jpx-back-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(249,115,22,0.22);
}

/* ════════ Mobile breakpoint (≤ 640px) ══════════════════════════ */
@media (max-width: 640px) {
	.jpx-app .jpx-preview {
		margin: 4px auto 18px;
		gap: 10px;
	}
	.jpx-app .jpx-preview-orb {
		width: 92px; height: 92px;
	}
	.jpx-app .jpx-preview-face svg { width: 60px; height: 60px; }
	.jpx-app .jpx-preview-prompt svg { width: 30px; height: 30px; }
	.jpx-app .jpx-preview-label {
		font-size: 13.5px;
		height: 20px;
	}
	.jpx-app .jpx-segpill {
		height: 50px;
		max-width: 100%;
		padding: 5px;
	}
	.jpx-app .jpx-segpill-indicator {
		top: 5px; bottom: 5px; left: 5px;
		width: calc((100% - 10px) / 5);
	}
	.jpx-app .jpx-segpill[data-state="-2"] .jpx-segpill-indicator { left: 5px; }
	.jpx-app .jpx-segpill[data-state="-1"] .jpx-segpill-indicator { left: calc(5px + (100% - 10px) * 0.2); }
	.jpx-app .jpx-segpill[data-state="0"]  .jpx-segpill-indicator { left: calc(5px + (100% - 10px) * 0.4); }
	.jpx-app .jpx-segpill[data-state="1"]  .jpx-segpill-indicator { left: calc(5px + (100% - 10px) * 0.6); }
	.jpx-app .jpx-segpill[data-state="2"]  .jpx-segpill-indicator { left: calc(5px + (100% - 10px) * 0.8); }
	.jpx-app .jpx-seg .jpx-seg-dot { width: 10px; height: 10px; }
	.jpx-app .jpx-seg::after { width: 12px; height: 12px; }
	.jpx-app .jpx-segpill-labels {
		max-width: 100%;
		padding: 0 5px;
		font-size: 9px;
		letter-spacing: 0.1px;
	}
	.jpx-app .jpx-segpill-labels span { padding: 0 1px; }
	.jpx-app .jpx-navrow { margin-top: 14px; }
	.jpx-app .jpx-back-btn { font-size: 11.5px; padding: 6px 12px 6px 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.jpx-app .jpx-preview-orb,
	.jpx-app .jpx-preview-prompt {
		animation: none !important;
	}
	.jpx-app .jpx-segpill-indicator {
		transition: opacity 0.15s linear, background 0.15s linear !important;
	}
	.jpx-app .jpx-seg,
	.jpx-app .jpx-seg .jpx-seg-dot,
	.jpx-app .jpx-back-btn {
		transition: color 0.15s linear, background 0.15s linear, border-color 0.15s linear !important;
		transform: none !important;
	}
}


/* =================================================================== */
/* CHECKOUT / PAYWALL OVERRIDES (rebuilt 2026-04-30)					*/

/* ------------- 3a. mouse hover, as on insightmetrics.org (theme effects) */
/* The hovered answer grows a little, and a soft dark circle follows the
   pointer over the pill (drawn by assets/personality/jpx-test.js). */
@media (hover: hover) and (pointer: fine) {
	body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-options.jpx-segpill .jiq-option.jpx-seg {
		transition: color 0.3s ease, transform 0.25s ease;
	}
	body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-options.jpx-segpill .jiq-option.jpx-seg:hover {
		transform: scale(1.08);
	}
}
.jpx-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99999;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: rgba(11, 40, 46, 0.25);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	will-change: transform;
}
.jpx-cursor.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.jpx-cursor { display: none; }
}

/* --------------------------- 3b. short laptop screens: keep one screen */
@media (min-width: 641px) and (max-height: 880px) {
	.jpx-app .jpx-badge-row { margin-bottom: 4px; }
	.jpx-app .jpx-spark { width: 34px; height: 34px; margin: 0 auto 6px; }
	.jpx-app .jpx-spark-svg { width: 22px; height: 22px; }
	.jpx-app .jpx-q-sub { margin-bottom: 8px; }
	.jpx-app .jpx-preview { margin: 2px auto 12px; gap: 8px; }
	.jpx-app .jpx-preview-orb { width: 84px; height: 84px; }
	.jpx-app .jpx-preview-face svg { width: 56px; height: 56px; }
	.jpx-app .jpx-preview-prompt svg { width: 30px; height: 30px; }
	.jpx-app .jpx-navrow { margin-top: 10px; }
	body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-question.jpx-qsection .jiq-q-card.jiqs-qcard { padding: 18px 26px 12px; }
	body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-test-header.jpx-head { padding: 6px 0 4px !important; }
	.jpx-app .jpx-head-title { margin-top: 5px; }
	.jpx-app .jpx-head-foot { margin-top: 5px; }
}

/* ------------------- 4. the MBTI plugin's own screens (jpx-mbti.css) */
/* Intro, calibrating and "Evaluating Your Type" are the MBTI markup word for
   word (templates/personality/mbti-*.php), styled by jpx-mbti.css. The engine
   shows and hides them; these rules keep its hidden state and give the
   loader its full-screen place after the form is sent. */
.jpx-app #jiq-prep[hidden],
.jpx-app #jiq-confidence[hidden] { display: none !important; }
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jpx-intro.jiq-step { padding: 0; background: none; }
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jpx-intro #intro-section { padding-top: 28px; }
.jpx-app .jpx-calc { display: none; }
.jpx-app .jpx-calc.is-open {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 100000;
	overflow-y: auto;
	background: #FFF8F1;
	padding: 24px 16px 40px;
}
.jpx-app .jpx-calc.is-open #loading-section { max-width: 560px; margin: 0 auto; }
/* The confidentiality card sits under the question card, as on the MBTI page. */
.jpx-app .jpx-conf { max-width: 600px; margin: 18px auto 0; padding: 0 16px; }
/* The MBTI page has one "Select an option to continue" line, under the
   confidentiality card (mbti-confidence.php); the card's own copy is hidden. */
.jpx-app .jpx-card .jiqs-foot-hint { display: none !important; }

/* Answer colours (MBTI qv4: red, amber, grey, green, dark green). The dots
   paint in currentColor, and themes colour every <button> at high
   specificity (Twenty Twenty-One: #d1e4dd), so these must win outright. */
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-options.jpx-segpill .jiq-option.jpx-seg[data-value="-2"] { color: #DC2626 !important; }
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-options.jpx-segpill .jiq-option.jpx-seg[data-value="-1"] { color: #F59E0B !important; }
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-options.jpx-segpill .jiq-option.jpx-seg[data-value="0"] { color: #9CA3AF !important; }
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-options.jpx-segpill .jiq-option.jpx-seg[data-value="1"] { color: #16A34A !important; }
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-options.jpx-segpill .jiq-option.jpx-seg[data-value="2"] { color: #15803D !important; }

/* Question header and card in the MBTI fonts (the statement keeps Georgia),
   with the same specificity trick as jpx-mbti.css to beat the IQ skin's
   font seal. */
body.jiq-test-active .jiq-app.jpx-app .jpx-head,
body.jiq-test-active .jiq-app.jpx-app .jpx-qsection { font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; }
body.jiq-test-active .jiq-app.jpx-app .jpx-head :is(div, p, span, button, small, b),
body.jiq-test-active .jiq-app.jpx-app .jpx-qsection :is(div, p, span, button, small, b) { font-family: inherit !important; }
body.jiq-test-active .jiq-app.jpx-app .jpx-head .jpx-head-title em { font-family: Georgia, 'Times New Roman', serif !important; }
/* insightmetrics.org shows every statement in Title Case. */
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jiq-q-card > div.jiq-q-text.jpx-q-text { text-transform: capitalize !important; }

/* Letter flip used by the locked letters on the details form (section 5). */
@keyframes jpxJuggle {
	0%   { opacity: 1; }
	50%  { opacity: 0; }
	100% { opacity: 1; }
}

/* --------------------------------------- 5. details form: locked letters */
.jpx-app .jpx-seal-stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 150px;
}
.jpx-app .jpx-seal-letters { display: flex; gap: 10px; }
/* The signature skin centres the LOCKED badge over its seal art; here it sits under the letters. */
body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jpx-seal-stage .jiqs-lock-badge {
	position: static !important;
	transform: none !important;
	margin: 0 auto !important;
}
.jpx-app .jpx-seal-l {
	position: relative;
	width: 46px;
	height: 58px;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(251, 146, 60, 0.28), rgba(124, 45, 18, 0.25));
	border: 1px solid rgba(253, 186, 116, 0.45);
	overflow: hidden;
}
.jpx-app .jpx-seal-l b {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 800;
	color: #FDBA74;
	animation: jpxJuggle calc(var(--jpx-d, 300ms) * 2) steps(1, end) infinite;
}
.jpx-app .jpx-seal-l b + b { animation-delay: var(--jpx-d, 300ms); opacity: 0; }
.jpx-app .jpx-contact .jiqs-lock-title { letter-spacing: 0.3em; }
/* Phone: the signature skin turns this panel into one short row whose
   picture cell is a fixed 64-78px square, so the letters sit 2 x 2 there. */
@media (max-width: 640px) {
	.jpx-app .jpx-seal-stage { min-height: 0; gap: 0; }
	.jpx-app .jpx-seal-letters { display: grid; grid-template-columns: repeat(2, 28px); gap: 4px; }
	.jpx-app .jpx-seal-l { width: 28px; height: 30px; border-radius: 8px; }
	.jpx-app .jpx-seal-l b { font-size: 16px; }
	body.jiq-test-active .jiq-app.jiqs-app.jpx-app .jpx-seal-stage .jiqs-lock-badge { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
	.jpx-app .jpx-seal-l b { animation: none; }
	.jpx-app .jpx-seal-l b + b { display: none; }
}
