/* PsyMed quiz page v2: Oxygen wrappers and the Quiz Maker skin.
   Quiz Maker styles carry the container id, so these rules use !important. */

/* Template wrappers: the v2 hero and body bring their own layout. */
body.psymed-v2 { background: #fafbf8; }
body.psymed-v2 .psymed-sq-hero { background: transparent !important; padding: 0 !important; color: inherit !important; }
body.psymed-v2 .psymed-sq-hero > .section-container,
body.psymed-v2 .psymed-sq-body > .section-container,
body.psymed-v2 .psymed-sq-body .psymed-sq-shell { max-width: none !important; width: 100% !important; padding: 0 !important; display: block !important; }
body.psymed-v2 .psymed-sq-body { padding: 0 !important; background: transparent !important; }
body.psymed-v2 .psymed-prose.psymed-prose-quiz { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; font-size: inherit; }
body.psymed-v2 .psymed-author,
body.psymed-v2 .psymed-rel,
body.psymed-v2 .psymed-also { display: none !important; }

/* Site prose rules that leak into the template. */
body.psymed-v2 .pmv2 ul, body.psymed-v2 .pmv2 ol { padding-left: 0; }
body.psymed-v2 .pmv2 .strip-grid, body.psymed-v2 .pmv2 .signs-grid, body.psymed-v2 .pmv2 .criteria-grid,
body.psymed-v2 .pmv2 .treat-grid, body.psymed-v2 .pmv2 .steps-grid, body.psymed-v2 .pmv2 .related-grid { list-style: none; margin-top: 0; margin-bottom: 0; }
body.psymed-v2 .pmv2 .refs-card ol { padding-left: 1.2em; }
body.psymed-v2 .pmv2 .score-bands { list-style: none; margin: 0 0 12px; display: grid; gap: 6px; font-size: .9rem; }
body.psymed-v2 .pmv2 .score-bands strong { display: inline-block; min-width: 52px; color: var(--forest); }
body.psymed-v2 .pmv2 .hero-meta { font-size: .84rem; color: var(--muted); margin: 18px 0 0; }
body.psymed-v2 .pmv2 .hero-meta a, body.psymed-v2 .pmv2 .hero-disclaimer a, body.psymed-v2 .pmv2 .aside-foot a { text-decoration: underline; text-underline-offset: 2px; }
body.psymed-v2 .pmv2 .breadcrumbs strong { font-weight: 700; }

/* ---------- Quiz Maker inside .test-card ---------- */
body.psymed-v2 .pmv2 .test-card { min-height: 0; }
body.psymed-v2 .pmv2 #begin-test-section { margin: 0 !important; padding: 0 !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container {
	background: #fff !important; background-image: none !important; color: var(--ink) !important;
	box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
	width: 100% !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
	font-family: var(--font) !important;
}
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container form,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-questions-container { width: 100% !important; padding: 0 !important; margin: 0 !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container div.step { min-height: 0 !important; padding: 28px 34px 30px !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-abs-fs { width: 100% !important; padding: 0 !important; margin: 0 !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container *:not(input):not(.btn) { color: inherit; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container p,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container p::first-letter { color: var(--ink) !important; }

/* Start screen */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page { text-align: left !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-fs-title { font-family: var(--display) !important; font-weight: 800 !important; font-size: 1.5rem !important; letter-spacing: -.04em !important; text-align: left !important; margin: 0 0 10px !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-fs-subtitle,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-fs-subtitle p { text-align: left !important; color: var(--muted) !important; font-size: .98rem !important; line-height: 1.6 !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_quiz_timer_container,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-wrap > img,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_quiz_image { display: none !important; }

/* Buttons (start, back, finish, restart) */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .action-button,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container input.action-button,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container button.action-button {
	background: var(--forest) !important; color: #fff !important; border: 1px solid var(--forest) !important;
	border-radius: 13px !important; min-height: 50px !important; padding: 12px 24px !important;
	font: 800 .92rem/1.2 var(--font) !important; box-shadow: 0 9px 20px rgba(44,104,90,.16) !important; text-transform: none !important;
	width: auto !important; margin: 18px 10px 0 0 !important; cursor: pointer;
}
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .action-button:hover { background: var(--forestDark) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_previous,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_previous.action-button {
	background: #fff !important; color: var(--forestDark) !important; border-color: #cfe0d6 !important; box-shadow: none !important;
}
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-keyboard-active span,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .action-button span { color: inherit !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_buttons_div { justify-content: flex-start !important; display: flex !important; flex-wrap: wrap; padding: 0 !important; margin-top: 8px !important; }

/* Counter and live progress bar */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-question-counter {
	font: 800 .76rem/1 var(--font) !important; letter-spacing: .115em !important; text-transform: uppercase;
	color: var(--forest) !important; text-align: left !important; margin: 0 0 14px !important; padding: 0 !important;
}
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-live-bar-wrap { margin: 0 0 6px !important; padding: 0 34px !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-live-bar-fill { background: var(--forest) !important; height: 6px !important; border-radius: 12px !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-live-bar-wrap > div:not(.ays-live-bar-fill),
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-live-bar-wrap { background: transparent !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-live-bar-percent { display: none !important; }

/* Question */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_quiz_question,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_quiz_question p {
	font-family: var(--display) !important; font-weight: 800 !important; font-size: clamp(1.24rem, 2.15vw, 1.6rem) !important;
	letter-spacing: -.035em !important; line-height: 1.43 !important; text-align: left !important; margin: 0 0 18px !important; max-width: 650px;
}

/* Answers: two-column choice grid */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-answers {
	display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 11px !important;
	width: 100% !important; margin: 0 !important; padding: 0 !important;
}
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field {
	position: relative; width: auto !important; margin: 0 !important; padding: 0 !important; min-height: 57px;
	border: 1.5px solid #e0e9e2 !important; border-radius: 14px !important; background: #fff !important; box-shadow: none !important;
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field:hover { border-color: #a9cab8 !important; background: #f9fcf9 !important; transform: translateY(-1px); }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field:has(input:checked) { background: #eff7f1 !important; border-color: var(--forest) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field input[type=radio] { position: absolute !important; opacity: 0 !important; pointer-events: none; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field label:not(.ays_answer_image) {
	display: flex !important; align-items: center; gap: 13px; width: 100% !important; min-height: 54px; margin: 0 !important;
	padding: 12px 16px !important; background: transparent !important; border: 0 !important; border-radius: 14px !important;
	color: #475a51 !important; font: 700 .9rem/1.3 var(--font) !important; text-align: left !important; cursor: pointer; box-shadow: none !important;
}
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field label:not(.ays_answer_image)::before {
	content: ''; flex: none; width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid #b9cdc1; background: #fff;
	box-shadow: inset 0 0 0 4px #fff; transition: background .15s ease, border-color .15s ease;
}
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field:has(input:checked) label:not(.ays_answer_image) { color: var(--forestDark) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field:has(input:checked) label:not(.ays_answer_image)::before { background: var(--forest); border-color: var(--forest); }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field label.ays_answer_image { display: none !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field:has(input:focus-visible) { outline: 3px solid #9dcfc3; outline-offset: 3px; }

/* Results */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_score,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_score_message,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_message { text-align: left !important; color: var(--ink) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_score { font-family: var(--display) !important; font-weight: 800 !important; font-size: 1.1rem !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_interval_message,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_score_message { text-align: left !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box h3,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_message h2 {
	color: var(--forestDark) !important; font-family: var(--display) !important; font-size: 1.45rem !important; letter-spacing: -.04em !important; margin: 6px 0 12px !important;
}
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box p,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_score_message p { color: #3f514b !important; font-size: .98rem !important; line-height: 1.65 !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box a { color: var(--forest) !important; text-decoration: underline; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .psymed-v2-bandnote { font-size: .86rem !important; color: var(--muted) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box p:last-child {
	background: #fff6e6; border: 1px solid #f1dcae; border-radius: 12px; padding: 12px 14px; font-size: .92rem !important;
}

@media (max-width: 530px) {
	body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container div.step { padding: 22px 20px 24px !important; }
	body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-answers { grid-template-columns: 1fr !important; gap: 8px !important; }
	body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-live-bar-wrap { padding: 0 20px !important; }
}
@media (prefers-reduced-motion: reduce) {
	body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field { transition: none; }
	body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field:hover { transform: none; }
}
/* The site's dark quiz theme (Oxygen selectors.css) styles Quiz Maker with
   class-only !important rules; the #begin-test-section id above outranks them.
   These undo the parts of that theme the rules above do not already cover. */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-questions-container p,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-questions-container form .step p,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page *:not(input),
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_quiz_question *,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container p::first-letter { color: inherit !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page { color: var(--muted) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_quiz_question { color: var(--ink) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_quiz_question * { font: inherit !important; letter-spacing: inherit !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-fs-subtitle { max-width: 620px !important; margin: 0 0 6px !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .ays_buttons_div,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page { justify-content: flex-start !important; text-align: left !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field.ays_list_view_item::before { content: none !important; display: none !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field input:checked + label::before,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field:has(input:checked) label:not(.ays_answer_image)::before { background: var(--forest) !important; border-color: var(--forest) !important; box-shadow: inset 0 0 0 4px #fff !important; background-clip: border-box !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field.checked_answer_div input:checked ~ label,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-field:hover label[for^="ays-answer-"] { background: transparent !important; color: var(--forestDark) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_previous.action-button:hover { background: #f3f8f4 !important; color: var(--forestDark) !important; border-color: var(--forest) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box { background: #fff !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box h3,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box h3 * { color: var(--forestDark) !important; font-family: var(--display) !important; font-size: 1.45rem !important; font-weight: 800 !important; letter-spacing: -.04em !important; margin-top: 0 !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_message,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_score_message { color: var(--ink) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_score { color: var(--ink) !important; }
body.psymed-v2 .pmv2 .score-bands li { list-style: none !important; padding-left: 0 !important; }
body.psymed-v2 .pmv2 .score-bands li::before,
body.psymed-v2 .pmv2 .score-bands li::marker { content: none !important; display: none !important; }

body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-question-counter { position: static !important; float: none !important; display: block !important; width: auto !important; }
body.psymed-v2 .pmv2 .breadcrumbs { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 530px) { body.psymed-v2 .pmv2 .breadcrumbs { gap: 6px; } }

body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container div.step { flex-wrap: wrap !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-question-counter { flex: 0 0 100% !important; }

/* Progress bar in place of the "7 / 15" counter (built by v2.js). */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-question-counter { margin: 0 0 24px !important; padding: 0 !important; line-height: 0 !important; font-size: 0 !important; }
body.psymed-v2 .pmv2 .pmv2-sr { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
body.psymed-v2 .pmv2 .pmv2-progress { display: block; width: 100%; height: 6px; background: #ebf0eb; border-radius: 12px; overflow: hidden; }
body.psymed-v2 .pmv2 .pmv2-progress-fill { display: block; height: 100%; width: var(--to); background: var(--forest); border-radius: 12px; animation: pmv2-grow .45s ease both; }
@keyframes pmv2-grow { from { width: var(--from); } to { width: var(--to); } }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-live-bar-wrap { display: none !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_quiz_question { padding: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }

/* FAQ: height is animated by v2.js. */
body.psymed-v2 .pmv2 .faq-panel { overflow: hidden; transition: height .3s ease; }
body.psymed-v2 .pmv2 .faq-trigger::after { transition: transform .3s ease; }
body.psymed-v2 .pmv2 .faq-trigger[aria-expanded="true"]::after { transform: rotate(180deg); }

/* The site's prose styles draw a dot before every li; the template uses none. */
body.psymed-v2 .pmv2 li::before { content: none !important; display: none !important; }
body.psymed-v2 .pmv2 ul > li { list-style: none; }

/* Headings on the dark closing card. */
body.psymed-v2 .pmv2 .closing h2 { color: #fff !important; }

@media (prefers-reduced-motion: reduce) {
	body.psymed-v2 .pmv2 .pmv2-progress-fill { animation: none; }
	body.psymed-v2 .pmv2 .faq-panel, body.psymed-v2 .pmv2 .faq-trigger::after { transition: none; }
}

/* Self-check layout: quiz card with the band box under it, notes beside. */
body.psymed-v2 .pmv2 .intro-strip { padding-top: 50px; }
body.psymed-v2 .pmv2 .test-main { display: grid; gap: 19px; min-width: 0; }
body.psymed-v2 .pmv2 .score-box h3 { margin-bottom: 16px; }
body.psymed-v2 .pmv2 .score-box .score-bands { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
body.psymed-v2 .pmv2 .score-box .score-bands li { background: #f5f9f6; border: 1px solid #e3ece5; border-radius: 14px; padding: 14px 15px !important; font-size: .84rem; line-height: 1.45; color: var(--muted); }
body.psymed-v2 .pmv2 .score-box .score-bands strong { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 4px; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_quiz_question p { padding: 0 !important; }
@media (max-width: 800px) {
	body.psymed-v2 .pmv2 .score-box .score-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Band colours by level: green, amber, orange, red. Same on the result. */
body.psymed-v2 .pmv2 { --lv1: #2e6959; --lv1-bg: #eef6f0; --lv1-line: #cfe3d6; --lv2: #8a6a12; --lv2-bg: #fdf6dd; --lv2-line: #f0dfa6; --lv3: #a4501a; --lv3-bg: #fdeee3; --lv3-line: #f3cfb3; --lv4: #b42318; --lv4-bg: #fdecea; --lv4-line: #f5c2bd; }
body.psymed-v2 .pmv2 .score-box .score-bands li:nth-child(1) { background: var(--lv1-bg); border-color: var(--lv1-line); }
body.psymed-v2 .pmv2 .score-box .score-bands li:nth-child(2) { background: var(--lv2-bg); border-color: var(--lv2-line); }
body.psymed-v2 .pmv2 .score-box .score-bands li:nth-child(3) { background: var(--lv3-bg); border-color: var(--lv3-line); }
body.psymed-v2 .pmv2 .score-box .score-bands li:nth-child(4) { background: var(--lv4-bg); border-color: var(--lv4-line); }
body.psymed-v2 .pmv2 .score-box .score-bands li:nth-child(1) strong { color: var(--lv1); }
body.psymed-v2 .pmv2 .score-box .score-bands li:nth-child(2) strong { color: var(--lv2); }
body.psymed-v2 .pmv2 .score-box .score-bands li:nth-child(3) strong { color: var(--lv3); }
body.psymed-v2 .pmv2 .score-box .score-bands li:nth-child(4) strong { color: var(--lv4); }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box[data-pmv2-level] { border-left: 4px solid var(--lvc) !important; padding-left: 18px !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box[data-pmv2-level] h3,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box[data-pmv2-level] h3 * { color: var(--lvc) !important; }
body.psymed-v2 .pmv2 [data-pmv2-level="low"] { --lvc: var(--lv1); }
body.psymed-v2 .pmv2 [data-pmv2-level="mild"] { --lvc: var(--lv2); }
body.psymed-v2 .pmv2 [data-pmv2-level="moderate"] { --lvc: var(--lv3); }
body.psymed-v2 .pmv2 [data-pmv2-level="high"] { --lvc: var(--lv4); }

/* Question transition (next and back): the question, then the answers in turn. */
@keyframes pmv2-in { from { opacity: 0; transform: translateY(13px); } to { opacity: 1; transform: none; } }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .step .ays_quiz_question { animation: pmv2-in .44s cubic-bezier(.2,.75,.2,1) both; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .step .ays-field { animation: pmv2-in .44s cubic-bezier(.2,.75,.2,1) both; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .step .ays-field:nth-child(1) { animation-delay: .1s; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .step .ays-field:nth-child(2) { animation-delay: .15s; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .step .ays-field:nth-child(3) { animation-delay: .2s; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .step .ays-field:nth-child(4) { animation-delay: .25s; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .step .ays-field:nth-child(5) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
	body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .step .ays_quiz_question,
	body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .step .ays-field { animation: none; }
}

/* Start screen: the quiz description is a designed intro card (.pmv2-intro). */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .ays-fs-subtitle { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro { text-align: left; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro-tag { display: flex; align-items: center; gap: 10px; margin: 0 0 14px !important; color: var(--forest) !important; font: 800 .74rem/1.2 var(--font) !important; letter-spacing: .115em; text-transform: uppercase; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro-tag::before { content: ''; width: 22px; height: 2px; background: #85bba9; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro-title { margin: 0 0 10px !important; color: var(--ink) !important; font: 800 clamp(1.35rem, 2.2vw, 1.7rem)/1.3 var(--display) !important; letter-spacing: -.04em !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro-text { margin: 0 0 20px !important; max-width: 560px; color: var(--muted) !important; font-size: .98rem !important; line-height: 1.65 !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px !important; padding: 0 !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro-meta li { display: inline-flex; align-items: center; gap: 7px; margin: 0 !important; padding: 7px 13px !important; border-radius: 999px; background: #eef6f0; color: var(--forestDark) !important; font: 700 .8rem/1.2 var(--font) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro-meta li::before { content: '\2713' !important; display: inline !important; color: var(--forest); font-size: .78rem; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 0 16px; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro-scale span { padding: 9px 6px; border: 1.5px solid #e0e9e2; border-radius: 11px; text-align: center; color: #5d6d62 !important; font: 700 .76rem/1.2 var(--font) !important; background: #fff; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro-note { margin: 0 !important; color: var(--muted) !important; font-size: .84rem !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .ays_buttons_div { justify-content: flex-start !important; margin: 8px 0 0 !important; }
@media (max-width: 530px) {
	body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro-scale { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .ays_buttons_div input { width: 100% !important; margin-right: 0 !important; }
}

/* Questions are h3 (stored that way in Quiz Maker). */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays_quiz_question h3 {
	margin: 0 0 18px !important; padding: 0 !important; max-width: 650px; color: var(--ink) !important;
	font: 800 clamp(1.24rem, 2.15vw, 1.6rem)/1.43 var(--display) !important; letter-spacing: -.035em !important;
}

/* Intro card: outrank the "form .step p { color: inherit }" reset above, and
   undo the theme's paragraph indent, list icon and centred start button. */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro p { padding: 0 !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro .pmv2-intro-tag { color: var(--forest) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro .pmv2-intro-text,
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro .pmv2-intro-note { color: var(--muted) !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro .pmv2-intro-meta li { background: #eef6f0 !important; background-image: none !important; list-style: none !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro .pmv2-intro-meta li::marker { content: none; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .pmv2-intro .pmv2-intro-meta li::before { background: none !important; -webkit-mask: none !important; mask: none !important; width: auto !important; height: auto !important; position: static !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page { align-items: flex-start !important; }
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-start-page .ays_buttons_div { width: 100% !important; align-self: stretch !important; }

/* Teen-test line under "Why two years?". */
body.psymed-v2 .pmv2 .aside-box p + p { margin-top: 10px; }
body.psymed-v2 .pmv2 .aside-box a { text-decoration: underline; text-underline-offset: 2px; }

/* Any number of bands (3 to 6) fits the grid. */
body.psymed-v2 .pmv2 .score-box .score-bands { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
/* Explicit levels (li.lv1-4) for quizzes whose bands don't map one-to-one by position. */
body.psymed-v2 .pmv2 .score-box .score-bands li.lv1 { background: var(--lv1-bg); border-color: var(--lv1-line); }
body.psymed-v2 .pmv2 .score-box .score-bands li.lv2 { background: var(--lv2-bg); border-color: var(--lv2-line); }
body.psymed-v2 .pmv2 .score-box .score-bands li.lv3 { background: var(--lv3-bg); border-color: var(--lv3-line); }
body.psymed-v2 .pmv2 .score-box .score-bands li.lv4 { background: var(--lv4-bg); border-color: var(--lv4-line); }
body.psymed-v2 .pmv2 .score-box .score-bands li.lv1 strong { color: var(--lv1); }
body.psymed-v2 .pmv2 .score-box .score-bands li.lv2 strong { color: var(--lv2); }
body.psymed-v2 .pmv2 .score-box .score-bands li.lv3 strong { color: var(--lv3); }
body.psymed-v2 .pmv2 .score-box .score-bands li.lv4 strong { color: var(--lv4); }
/* Identity quizzes: a neutral spectrum, no "good" or "bad" end. */
body.psymed-v2 .pmv2 .score-box.is-spectrum .score-bands li:nth-child(n) { background: #f6f5fb; border-color: #e6e3f2; }
body.psymed-v2 .pmv2 .score-box.is-spectrum .score-bands li:nth-child(n) strong { color: #5b4f8f; }
body.psymed-v2 .pmv2 .score-box.is-spectrum .score-bands li:nth-child(2n) { background: #f2f7f6; border-color: #dfece8; }
body.psymed-v2 .pmv2 .score-box.is-spectrum .score-bands li:nth-child(2n) strong { color: #2e6959; }

/* Results whose last paragraph is the band note (no support line) keep it plain. */
body.psymed-v2 .pmv2 #begin-test-section .ays-quiz-container .ays-quiz-interval-message-box p.psymed-v2-bandnote:last-child { background: none !important; border: 0 !important; padding: 0 !important; }

/* Owner (2026-11-06): all text links are underlined. Buttons and whole-card links are not text links. */
body.psymed-v2 .pmv2 a:not(.btn):not(.related-card):not(.hero-feature-link) { text-decoration: underline; text-underline-offset: 2px; }

/* Owner (2026-11-06): the last block of every section has bottom spacing.
   Clinical note 24px; the comparison table keeps its 40px; every other final block in a section container gets 24px. */
body.psymed-v2 .pmv2 .clinical-note { margin-bottom: 24px; }
body.psymed-v2 .pmv2 .comparison { margin-bottom: 40px; }
body.psymed-v2 .pmv2 section > .container > :last-child:not(.comparison),
body.psymed-v2 .pmv2 section > .container.two-up-section > :last-child,
body.psymed-v2 .pmv2 .test-layout,
body.psymed-v2 .pmv2 .related-grid,
body.psymed-v2 .pmv2 .faq-grid > :last-child,
body.psymed-v2 .pmv2 .editorial-grid > :last-child { margin-bottom: 24px; }
