/* Probiotic Match Quiz. Root `.ruscio-probiotic-quiz`, children `pq-`.
   px throughout: the theme sets `html { font-size: 62.5% }`, so `rem`
   here would mean 10px. */

/* ---- Tokens (scoped to the root, so nothing leaks) -------- */
.ruscio-probiotic-quiz {
	--pq-navy: #0e2c47;
	--pq-navy-90: #274c71;
	--pq-navy-80: #3a5a78;
	--pq-tangerine: #fe6c3b;
	--pq-dark-orange: #c65104;
	--pq-press-orange: #d45e00;
	--pq-light-blue: #b3e5fc;
	--pq-mint-60: rgba(233, 244, 241, 0.6);
	--pq-white: #fff;
	--pq-light-gray: #f4f6f9;
	--pq-gray-200: #e2e6eb;
	--pq-track-gray: #dfe4ea;
	--pq-hairline-gray: #aeb5bc;
	--pq-medium-gray: #6e757c;

	--pq-gradient-panel: linear-gradient(180deg, var(--pq-light-blue) -13.28%, var(--pq-mint-60) 62.4%);

	--pq-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--pq-font-serif: "Merriweather", Georgia, "Times New Roman", serif;

	--pq-radius-button: 6px;
	--pq-radius-card: 10px;
	--pq-transition-hover: 160ms ease;
}

/* ---- Host-page neutraliser --------------------------------
   Every rule in this file is `.ruscio-probiotic-quiz .pq-x` (0,2,0)
   because the Wayfx overlay reaches post content at (0,1,1). The resets
   below repeat the root class to reach (0,2,0) too; :where() keeps the
   element list at zero, so a reset sits LEVEL with the class rules and
   loses on source order — every class rule must stay below this block.
   Lists are the exception no count wins (0,3,3), hence !important. */
.ruscio-probiotic-quiz,
.ruscio-probiotic-quiz :where(*, *::before, *::after) {
	box-sizing: border-box;
}

/* Inherited properties reach in regardless of scoping — `.article p
   { letter-spacing: .09px }` and `p { hyphens: auto }`, which would
   re-break the design's lines. */
.ruscio-probiotic-quiz.ruscio-probiotic-quiz :where(*) {
	font-family: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: inherit;
	hyphens: manual;
	overflow-wrap: normal;
	word-break: normal;
}
.ruscio-probiotic-quiz.ruscio-probiotic-quiz :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, form) {
	margin: 0;
	padding: 0;
}
.ruscio-probiotic-quiz.ruscio-probiotic-quiz :where(h1, h2, h3, h4, h5, h6) {
	font-weight: 700;
}
.ruscio-probiotic-quiz.ruscio-probiotic-quiz :where(ul, ol, li) {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	position: static !important;
	font-size: inherit;
	line-height: inherit;
	counter-reset: none;
}
.ruscio-probiotic-quiz.ruscio-probiotic-quiz :where(li)::before,
.ruscio-probiotic-quiz.ruscio-probiotic-quiz :where(li)::after {
	content: none !important;
}
.ruscio-probiotic-quiz.ruscio-probiotic-quiz a,
.ruscio-probiotic-quiz.ruscio-probiotic-quiz a:hover,
.ruscio-probiotic-quiz.ruscio-probiotic-quiz a:focus {
	text-decoration: none;
}
.ruscio-probiotic-quiz.ruscio-probiotic-quiz :where(button) {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
	cursor: pointer;
	text-transform: none;
	-webkit-appearance: none;
	appearance: none;
}
.ruscio-probiotic-quiz.ruscio-probiotic-quiz :where(input) {
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
}
.ruscio-probiotic-quiz.ruscio-probiotic-quiz :where(img, svg) {
	display: block;
	max-width: 100%;
	/* `.single-content article img { margin-bottom: 4rem }` is (0,2,2) and
	   would push the header bar 40px taller. */
	margin: 0 !important;
	vertical-align: baseline;
}
.ruscio-probiotic-quiz [hidden] {
	display: none !important;
}

/* ---- Shell ------------------------------------------------- */
.ruscio-probiotic-quiz {
	width: 100%;
	max-width: 720px;
	margin-inline: auto;
	font-family: var(--pq-font-sans);
	font-size: 16px;
	font-weight: 400;
	text-transform: none;
	/* The Article Post template drops the bundle that sets this on <body>. */
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	/* `normal`, not a number: the design leaves line-height unset here, and
	   the bundle's `p { line-height: 2.6rem }` must be cancelled with the
	   value the design actually renders at. */
	line-height: normal;
	letter-spacing: normal;
	color: var(--pq-navy);
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.ruscio-probiotic-quiz .pq-card {
	/* Column flex is load-bearing: block layout gives the hidden screens an
	   inline line box worth ~10px of stray leading. */
	display: flex;
	flex-direction: column;
	background: var(--pq-white);
	border: 1px solid var(--pq-hairline-gray);
	border-radius: var(--pq-radius-card);
	overflow: hidden;
}

.ruscio-probiotic-quiz .pq-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 28px;
	background: var(--pq-light-blue);
}
.ruscio-probiotic-quiz .pq-logo {
	height: 28px;
	width: auto;
}
.ruscio-probiotic-quiz .pq-header__label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pq-navy-90);
}

/* ---- Panels ------------------------------------------------ */
.ruscio-probiotic-quiz .pq-panel {
	padding: 28px 40px 36px;
}
.ruscio-probiotic-quiz .pq-panel--gradient {
	background: var(--pq-gradient-panel);
}
.ruscio-probiotic-quiz .pq-panel--white {
	background: var(--pq-white);
	padding: 36px 40px 40px;
}
.ruscio-probiotic-quiz .pq-panel--center {
	text-align: center;
	padding: 56px 40px 48px;
}
.ruscio-probiotic-quiz .pq-panel--result {
	padding: 44px 40px 40px;
}
.ruscio-probiotic-quiz [data-pq-screen="email"].pq-panel--center {
	padding-bottom: 52px;
}

@keyframes pqRiseIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.ruscio-probiotic-quiz .pq-rise:not([hidden]) {
	animation: pqRiseIn 0.45s ease both;
}
.ruscio-probiotic-quiz .pq-rise--slow:not([hidden]) {
	animation-duration: 0.5s;
}

/* ---- Type -------------------------------------------------- */
.ruscio-probiotic-quiz .pq-eyebrow {
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pq-tangerine);
}
.ruscio-probiotic-quiz .pq-eyebrow--wide {
	letter-spacing: 0.14em;
}
.ruscio-probiotic-quiz .pq-eyebrow--dark {
	color: var(--pq-dark-orange);
}
.ruscio-probiotic-quiz .pq-eyebrow--muted {
	color: var(--pq-medium-gray);
}

.ruscio-probiotic-quiz .pq-display {
	max-width: 15ch;
	margin: 0 auto;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--pq-navy);
	text-wrap: balance;
}
.ruscio-probiotic-quiz .pq-display em {
	font-family: var(--pq-font-serif);
	font-style: italic;
	font-weight: 400;
	/* Matches the static Merriweather Italic the handoff ships; the variable
	   face's optical sizing would re-fit the glyphs at 42px. */
	font-optical-sizing: none;
}
.ruscio-probiotic-quiz .pq-display--sm {
	max-width: 17ch;
	font-size: 36px;
	line-height: 1.16;
}
.ruscio-probiotic-quiz .pq-display--result {
	max-width: none;
	font-size: 40px;
	line-height: 1.14;
}

.ruscio-probiotic-quiz .pq-lede {
	max-width: 46ch;
	margin: 22px auto 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: -0.01em;
	color: var(--pq-navy-80);
	text-wrap: pretty;
}
.ruscio-probiotic-quiz .pq-lede--narrow {
	max-width: 44ch;
	margin-top: 18px;
}

.ruscio-probiotic-quiz .pq-fineprint {
	font-size: 13px;
	font-weight: 400;
	line-height: normal;
	color: var(--pq-medium-gray);
}

/* ---- Intro ------------------------------------------------- */
.ruscio-probiotic-quiz .pq-intro__eyebrow {
	margin-bottom: 20px;
}
.ruscio-probiotic-quiz .pq-intro__fine {
	margin-top: 18px;
}

.ruscio-probiotic-quiz .pq-reassure {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	max-width: 520px;
	margin: 36px auto 0 !important;
}
.ruscio-probiotic-quiz .pq-reassure li {
	padding: 16px 12px !important;
	background: var(--pq-white);
	border: 1px solid var(--pq-gray-200);
	border-radius: var(--pq-radius-card);
}
.ruscio-probiotic-quiz .pq-reassure strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: -0.01em;
	color: var(--pq-navy);
}
.ruscio-probiotic-quiz .pq-reassure span {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	line-height: normal;
	color: var(--pq-medium-gray);
}
.ruscio-probiotic-quiz .pq-center-row {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

/* ---- Progress ---------------------------------------------- */
.ruscio-probiotic-quiz .pq-progress-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}
.ruscio-probiotic-quiz .pq-progress-pct {
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	color: var(--pq-medium-gray);
}
.ruscio-probiotic-quiz .pq-progress-track {
	height: 5px;
	margin-bottom: 30px;
	background: var(--pq-track-gray);
	border-radius: 3px;
	overflow: hidden;
}
.ruscio-probiotic-quiz .pq-progress-fill {
	height: 100%;
	width: 0;
	background: var(--pq-navy);
	border-radius: 3px;
	transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Question ---------------------------------------------- */
.ruscio-probiotic-quiz .pq-question__eyebrow {
	margin-bottom: 12px;
}
.ruscio-probiotic-quiz .pq-question-title {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.24;
	letter-spacing: -0.03em;
	color: var(--pq-navy);
	text-wrap: pretty;
}
.ruscio-probiotic-quiz .pq-question-title:focus {
	outline: none;
}

.ruscio-probiotic-quiz .pq-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 26px;
}

.ruscio-probiotic-quiz .pq-option {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	width: 100%;
	padding: 17px 20px;
	text-align: left;
	background: var(--pq-white);
	border: 1px solid var(--pq-hairline-gray);
	border-radius: var(--pq-radius-card);
	color: var(--pq-navy);
	transition:
		background var(--pq-transition-hover),
		border-color var(--pq-transition-hover),
		color var(--pq-transition-hover);
}
.ruscio-probiotic-quiz .pq-option:hover {
	border-color: var(--pq-navy);
}
.ruscio-probiotic-quiz .pq-option:focus-visible {
	outline: 2px solid var(--pq-tangerine);
	outline-offset: 2px;
}
.ruscio-probiotic-quiz .pq-option[aria-checked="true"] {
	background: var(--pq-navy);
	border-color: var(--pq-navy);
	color: var(--pq-white);
}
.ruscio-probiotic-quiz .pq-option__mark {
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pq-white);
	border: 2px solid var(--pq-hairline-gray);
	border-radius: 50%;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: transparent;
	transition:
		background var(--pq-transition-hover),
		border-color var(--pq-transition-hover);
}
.ruscio-probiotic-quiz .pq-option[aria-checked="true"] .pq-option__mark {
	background: var(--pq-tangerine);
	border-color: var(--pq-tangerine);
	color: var(--pq-white);
}
.ruscio-probiotic-quiz .pq-option__label {
	display: block;
	font-size: 17px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: -0.01em;
}

/* ---- Nav rows ---------------------------------------------- */
.ruscio-probiotic-quiz .pq-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 28px;
}
.ruscio-probiotic-quiz .pq-nav--narrow {
	max-width: 440px;
	margin: 26px auto 0;
}
.ruscio-probiotic-quiz .pq-nav--result {
	margin-top: 26px;
}

.ruscio-probiotic-quiz .pq-btn-text {
	padding: 12px 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pq-navy-80);
	transition: color var(--pq-transition-hover);
}
.ruscio-probiotic-quiz .pq-btn-text:hover {
	color: var(--pq-navy);
}
.ruscio-probiotic-quiz .pq-btn-text:focus-visible {
	outline: 2px solid var(--pq-navy);
	outline-offset: 2px;
}
.ruscio-probiotic-quiz .pq-nav--narrow .pq-btn-text {
	padding: 8px 0;
}
.ruscio-probiotic-quiz .pq-btn-text--restart {
	padding: 10px 0;
	letter-spacing: 0.08em;
}

/* ---- Buttons (design system: 40/46/50px, 6px radius) ------- */
.ruscio-probiotic-quiz .pq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 250px;
	height: 50px;
	padding: 0 32px;
	border: none;
	border-radius: var(--pq-radius-button);
	font-family: var(--pq-font-sans);
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background var(--pq-transition-hover);
}
.ruscio-probiotic-quiz .pq-btn--md {
	height: 46px;
}
.ruscio-probiotic-quiz .pq-btn--block {
	display: flex;
	width: 100%;
	min-width: 0;
}
.ruscio-probiotic-quiz .pq-btn--primary {
	background: var(--pq-tangerine);
	color: var(--pq-white);
}
.ruscio-probiotic-quiz .pq-btn--primary:hover {
	background: var(--pq-dark-orange);
	color: var(--pq-white);
}
.ruscio-probiotic-quiz .pq-btn--primary:active {
	background: var(--pq-press-orange);
}
.ruscio-probiotic-quiz .pq-btn:focus-visible {
	outline: 2px solid var(--pq-navy);
	outline-offset: 2px;
}
.ruscio-probiotic-quiz .pq-btn[disabled],
.ruscio-probiotic-quiz .pq-btn[aria-disabled="true"] {
	opacity: 0.4;
	cursor: not-allowed;
}
.ruscio-probiotic-quiz .pq-btn[disabled]:hover {
	background: var(--pq-tangerine);
}

/* ---- Email gate -------------------------------------------- */
.ruscio-probiotic-quiz .pq-email__eyebrow {
	margin-bottom: 18px;
}
.ruscio-probiotic-quiz .pq-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 440px;
	margin: 32px auto 0;
}
.ruscio-probiotic-quiz .pq-field {
	width: 100%;
	height: 50px;
	padding: 0 18px;
	font-family: var(--pq-font-sans);
	font-size: 18px;
	font-weight: 400;
	line-height: normal;
	color: var(--pq-navy);
	background: var(--pq-white);
	border: 1px solid var(--pq-hairline-gray);
	border-radius: var(--pq-radius-button);
	outline: none;
	transition: border-color var(--pq-transition-hover);
}
.ruscio-probiotic-quiz .pq-field::placeholder {
	color: var(--pq-medium-gray);
	opacity: 1;
}
.ruscio-probiotic-quiz .pq-field:focus {
	border-color: var(--pq-navy);
}
.ruscio-probiotic-quiz .pq-field[aria-invalid="true"] {
	border-color: var(--pq-dark-orange);
}
.ruscio-probiotic-quiz .pq-field-error {
	text-align: left;
	font-size: 16px;
	line-height: normal;
	color: var(--pq-dark-orange);
}

/* ---- Result ------------------------------------------------ */
.ruscio-probiotic-quiz .pq-result__eyebrow {
	margin-bottom: 16px;
}
.ruscio-probiotic-quiz .pq-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border-radius: var(--pq-radius-button);
	font-size: 12px;
	font-weight: 600;
	line-height: normal;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.ruscio-probiotic-quiz .pq-chip--category {
	margin-bottom: 18px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--pq-gray-200);
	color: var(--pq-navy-90);
}
.ruscio-probiotic-quiz .pq-recap {
	margin-top: 30px;
	padding-top: 26px;
	border-top: 1px solid var(--pq-gray-200);
}
.ruscio-probiotic-quiz .pq-recap__label {
	margin-bottom: 14px;
}
.ruscio-probiotic-quiz .pq-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ruscio-probiotic-quiz .pq-chips span {
	padding: 7px 14px;
	background: var(--pq-light-gray);
	border: 1px solid var(--pq-gray-200);
	border-radius: var(--pq-radius-button);
	font-size: 13px;
	line-height: normal;
	color: var(--pq-navy-80);
}

/* ---- Utility ----------------------------------------------- */
.ruscio-probiotic-quiz .pq-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---- Landing-page variant --------------------------------- */
@media (min-width: 1200px) {
	.ruscio-probiotic-quiz--full {
		max-width: 960px;
	}
	.ruscio-probiotic-quiz--full .pq-header {
		padding: 26px 44px;
	}
	.ruscio-probiotic-quiz--full .pq-panel {
		padding: 44px 64px 52px;
	}
	.ruscio-probiotic-quiz--full .pq-panel--white {
		padding: 52px 64px 60px;
	}
	.ruscio-probiotic-quiz--full .pq-panel--center {
		padding: 72px 64px 68px;
	}
	.ruscio-probiotic-quiz--full .pq-panel--result {
		padding: 56px 64px 48px;
	}
	.ruscio-probiotic-quiz--full [data-pq-screen="email"].pq-panel--center {
		padding-bottom: 52px;
	}
	.ruscio-probiotic-quiz--full .pq-display {
		font-size: 52px;
	}
	.ruscio-probiotic-quiz--full .pq-display--sm {
		font-size: 44px;
	}
	.ruscio-probiotic-quiz--full .pq-display--result {
		font-size: 48px;
	}
	.ruscio-probiotic-quiz--full .pq-question-title {
		font-size: 38px;
	}
	.ruscio-probiotic-quiz--full .pq-lede {
		font-size: 20px;
	}
	.ruscio-probiotic-quiz--full .pq-reassure {
		max-width: 640px;
	}
}

/* ---- Small screens ----------------------------------------- */
@media (max-width: 600px) {
	.ruscio-probiotic-quiz .pq-header {
		padding: 16px 20px;
	}
	.ruscio-probiotic-quiz .pq-panel {
		padding: 24px 20px 28px;
	}
	.ruscio-probiotic-quiz .pq-panel--white {
		padding: 28px 20px 32px;
	}
	.ruscio-probiotic-quiz .pq-panel--center {
		padding: 40px 20px 36px;
	}
	.ruscio-probiotic-quiz .pq-panel--result {
		padding: 32px 20px 28px;
	}
	.ruscio-probiotic-quiz .pq-display {
		font-size: 32px;
	}
	.ruscio-probiotic-quiz .pq-display--sm {
		font-size: 28px;
	}
	.ruscio-probiotic-quiz .pq-display--result {
		font-size: 30px;
	}
	.ruscio-probiotic-quiz .pq-question-title {
		font-size: 24px;
	}
	.ruscio-probiotic-quiz .pq-lede {
		font-size: 16px;
	}
	.ruscio-probiotic-quiz .pq-reassure {
		grid-template-columns: 1fr;
	}
	.ruscio-probiotic-quiz .pq-btn {
		min-width: 0;
		width: 100%;
		font-size: 18px;
	}
	.ruscio-probiotic-quiz .pq-nav {
		gap: 12px;
	}
}

/* ---- Motion / forced colours ------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.ruscio-probiotic-quiz .pq-rise:not([hidden]) {
		animation: none;
	}
	.ruscio-probiotic-quiz *,
	.ruscio-probiotic-quiz *::before,
	.ruscio-probiotic-quiz *::after {
		transition-duration: 1ms !important;
	}
}

/* High Contrast strips the flat fills and hairlines the design draws its
   edges with, so re-express them as borders. */
@media (forced-colors: active) {
	.ruscio-probiotic-quiz .pq-card,
	.ruscio-probiotic-quiz .pq-option,
	.ruscio-probiotic-quiz .pq-reassure li,
	.ruscio-probiotic-quiz .pq-chip--category,
	.ruscio-probiotic-quiz .pq-chips span,
	.ruscio-probiotic-quiz .pq-field {
		border: 1px solid CanvasText;
	}
	.ruscio-probiotic-quiz .pq-header {
		border-bottom: 1px solid CanvasText;
	}
	.ruscio-probiotic-quiz .pq-recap {
		border-top: 1px solid CanvasText;
	}
	.ruscio-probiotic-quiz .pq-progress-track {
		border: 1px solid CanvasText;
	}
	.ruscio-probiotic-quiz .pq-progress-fill {
		background: CanvasText;
	}
	.ruscio-probiotic-quiz .pq-btn {
		border: 1px solid CanvasText;
	}
	.ruscio-probiotic-quiz .pq-option[aria-checked="true"] .pq-option__mark {
		border-color: Highlight;
		background: Highlight;
	}
}
