/* Test intro, questionnaire, review ======================================= */

/* Resume banner: one row on desktop (icon, message, actions); actions take their own row on phones. */
.resume-banner { background: var(--hl-tint-blue); border-bottom: 1px solid var(--hl-border); }
.resume-banner__inner { display: flex; align-items: center; gap: 14px 20px; padding-top: 16px; padding-bottom: 16px; }
.resume-banner__icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--hl-primary); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; box-shadow: 0 1px 2px rgba(14, 40, 95, .08); }
.resume-banner__body { flex: 1 1 auto; min-width: 0; }
.resume-banner__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; line-height: 1.4; font-weight: 700; color: var(--hl-navy); }
.resume-banner__text { margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--hl-muted); }
.resume-banner__meter { display: block; max-width: 320px; height: 6px; margin-top: 10px; border-radius: 3px; background: #fff; overflow: hidden; }
.resume-banner__meter > span { display: block; width: var(--w, 0); height: 100%; border-radius: 3px; background: var(--hl-primary); }
.resume-banner__actions { flex: none; display: flex; gap: 10px; }
.resume-banner .btn { font-size: 14.5px; padding: 0 18px; }
.resume-banner .btn--outline { background: #fff; }
.resume-banner .btn--outline:hover { background: var(--hl-tint); }
/* Below 900px the actions move under the message, lined up with the text column (icon 44px + 20px gap). */
@media (max-width: 899.98px) {
	.resume-banner__inner { flex-wrap: wrap; align-items: flex-start; }
	.resume-banner__body { flex-basis: calc(100% - 64px); }
	.resume-banner__actions { flex-basis: 100%; padding-left: 64px; }
}
/* Phones: full-width stacked buttons so long labels never break inside a button. */
@media (max-width: 480px) {
	.resume-banner__inner { gap: 12px 14px; }
	.resume-banner__icon { width: 40px; height: 40px; font-size: 20px; }
	.resume-banner__body { flex-basis: calc(100% - 54px); }
	.resume-banner__actions { padding-left: 0; flex-direction: column; gap: 8px; }
	.resume-banner__actions .btn { width: 100%; }
}

/* Test intro: hero with the start button and a sample question, then tips, what you get, a closing CTA. */
.tintro-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 88px); }
.tintro-hero .eyebrow { margin-bottom: 16px; }
.tintro-hero__title { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--hl-navy); margin-bottom: 18px; text-wrap: balance; }
.tintro-hero__lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: var(--hl-muted); max-width: 540px; margin-bottom: 22px; }
.tintro-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.tintro-facts li { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--hl-border); font-size: 13.5px; font-weight: 600; color: var(--hl-text); white-space: nowrap; }
.tintro-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 14px; }
.tintro-hero__actions .btn--primary { padding: 0 36px; }
.tintro-hero__save { font-size: 14px; line-height: 1.55; color: var(--hl-muted); }
@media (max-width: 899.98px) {
	.tintro-hero { grid-template-columns: 1fr; }
	.tsample { max-width: 560px; }
}
@media (max-width: 480px) {
	.tintro-hero__actions .btn--primary { width: 100%; }
}

/* Sample question: a static copy of the questionnaire screen. */
.tsample { margin: 0; }
.tsample__card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-xl); box-shadow: var(--hl-shadow); padding: 28px clamp(20px, 3vw, 28px) 24px; }
.tsample__bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--hl-border); }
.tsample__bar span { display: block; width: 3.4%; height: 100%; background: var(--hl-primary); }
.tsample__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; font-weight: 600; color: var(--hl-muted); margin-bottom: 14px; }
.tsample__prompt { font-size: 14px; color: var(--hl-muted); margin-bottom: 6px; }
.tsample__item { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--hl-navy); margin-bottom: 20px; }
.tsample__scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tsample__opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border: 1.5px solid var(--hl-border); border-radius: var(--hl-radius); font-size: 12.5px; font-weight: 500; line-height: 1.3; text-align: center; color: var(--hl-text); }
.tsample__opt b { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hl-border-strong); display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 600; }
.tsample__opt.is-picked { background: var(--hl-primary); border-color: var(--hl-primary); color: #fff; }
.tsample__opt.is-picked b { border-color: rgba(255, 255, 255, .55); }
.tsample__caption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--hl-muted); text-align: center; }
.tsample__legend { display: none; }
/* Phones: numbers only in the sample; the caption explains the five levels. */
@media (max-width: 420px) {
	.tsample__opt { padding: 10px 2px; }
	.tsample__opt span { display: none; }
	.tsample__legend { display: block; margin-top: 2px; font-weight: 600; color: var(--hl-text); }
}

/* Sections */
.tintro-section { padding: clamp(48px, 7vw, 88px) 0; }
.tintro-section--white { background: #fff; border-top: 1px solid var(--hl-border); border-bottom: 1px solid var(--hl-border); }
.tintro-section--end { padding-top: 0; }
.tintro-h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--hl-navy); margin-bottom: clamp(20px, 3vw, 32px); }

.tintro-tips { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.tintro-tip { background: var(--hl-bg); border: 1px solid var(--hl-border-soft); border-radius: var(--hl-radius-lg); padding: 22px; }
.tintro-tip__num { display: block; font-size: 13px; font-weight: 700; color: var(--hl-primary); margin-bottom: 12px; }
.tintro-tip__title { font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--hl-navy); margin-bottom: 6px; }
.tintro-tip__text { font-size: 14.5px; line-height: 1.6; color: var(--hl-muted); }

.tintro-get { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.tintro-card { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-xl); padding: clamp(22px, 3vw, 30px); }
.tintro-card__tag { margin-bottom: 14px; }
.tintro-card__title { font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--hl-navy); margin-bottom: 14px; }
.tintro-card__list { list-style: none; display: grid; gap: 10px; }
.tintro-card__list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15.5px; line-height: 1.5; }
.tintro-card__list li::before { content: "✓"; color: var(--hl-primary); font-weight: 700; }
.tintro-card__foot { margin-top: auto; padding-top: 18px; font-size: 14px; line-height: 1.55; color: var(--hl-muted); }

.tintro-cta { position: relative; }
.tintro-fine { margin-top: 24px; display: grid; gap: 12px; font-size: 13.5px; line-height: 1.65; color: var(--hl-muted); }
.tintro-fine__privacy { display: flex; align-items: flex-start; gap: 8px; }
.tintro-fine__privacy .icon { width: 16px; height: 16px; margin-top: 3px; flex: none; color: var(--hl-primary); }
.tintro-fine__source { padding-top: 12px; border-top: 1px solid var(--hl-border); font-size: 13px; }

/* Questionnaire */
.quiz-progress { position: sticky; top: var(--hl-header-h); z-index: 39; height: 4px; background: var(--hl-border); }
.admin-bar .quiz-progress { top: calc(var(--hl-header-h) + 32px); }
.quiz-progress__fill { height: 100%; width: var(--w, 0%); background: var(--hl-primary); transition: width .3s ease; }
.quiz { min-height: calc(100vh - var(--hl-header-h) - 4px); display: flex; flex-direction: column; }
.quiz__stage { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vh, 56px) var(--hl-gutter) 24px; display: flex; flex-direction: column; }
.quiz__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--hl-muted); margin-bottom: clamp(20px, 3vw, 28px); }
.quiz__prompt { font-size: 15px; color: var(--hl-muted); margin-bottom: 12px; }
.quiz__item { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.22; font-weight: 700; letter-spacing: -.015em; margin-bottom: clamp(24px, 4vw, 40px); min-height: 2.44em; }
.quiz__item:focus { outline: none; }
.quiz__item:focus-visible { outline: 3px solid var(--hl-primary); outline-offset: 6px; border-radius: 4px; }
/* Answer scale: a vertical list on phones, five equal columns from 640px so the whole
   question fits a laptop screen without scrolling. */
.quiz__options { display: flex; flex-direction: column; gap: 8px; }
.quiz__option {
	min-height: 56px; border-radius: var(--hl-radius); border: 1.5px solid var(--hl-border); background: #fff; color: var(--hl-text);
	display: flex; align-items: center; gap: 14px; padding: 0 18px; font-weight: 500; font-size: 16px; line-height: 1.3; text-align: left;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.quiz__option:hover { border-color: var(--hl-primary); }
.quiz__option[aria-pressed="true"] { background: var(--hl-primary); border-color: var(--hl-primary); color: #fff; }
.quiz__key { width: 28px; height: 28px; border-radius: var(--hl-radius-sm); border: 1px solid var(--hl-border-strong); flex: none; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; line-height: 1; }
.quiz__option[aria-pressed="true"] .quiz__key { border-color: rgba(255, 255, 255, .5); }
@media (min-width: 640px) {
	.quiz__options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
	/* Top-aligned so the five numbers stay on one line when a label wraps. */
	.quiz__option { min-height: 104px; flex-direction: column; justify-content: flex-start; gap: 10px; padding: 18px 8px 14px; font-size: 15px; text-align: center; }
	.quiz__option:hover { box-shadow: 0 10px 20px -16px var(--hl-primary); }
	.quiz__key { width: 32px; height: 32px; border-radius: 50%; font-size: 14px; }
}

/* Navigation sits right under the scale, followed by the help line and attribution. */
.quiz__nav { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.quiz__navbtn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
	border: 1px solid var(--hl-border); border-radius: var(--hl-radius); background: #fff;
	font-weight: 600; font-size: 15px; color: var(--hl-text);
	transition: background-color .15s ease, border-color .15s ease;
}
.quiz__navbtn .icon { width: 16px; height: 16px; }
.quiz__back .icon { transform: scaleX(-1); }
.quiz__back:hover:not(:disabled) { background: var(--hl-tint); border-color: var(--hl-border-strong); }
/* Nothing to go back to on the first question. */
.quiz__back:disabled { display: none; }
.quiz__next { margin-left: auto; border-color: var(--hl-primary); color: var(--hl-primary); }
.quiz__next:hover { background: var(--hl-tint-blue); }
.quiz__foot { margin-top: clamp(28px, 6vh, 56px); }
.quiz__help { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 24px; }
.quiz__hint { font-size: 14px; line-height: 1.5; color: var(--hl-muted); }
.quiz__keys { display: none; font-size: 13px; line-height: 1.5; color: var(--hl-muted); }
@media (hover: hover) and (pointer: fine) { .quiz__keys { display: block; } }
.quiz__keys kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border: 1px solid var(--hl-border-strong); border-bottom-width: 2px; border-radius: 5px; background: #fff; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--hl-text); text-align: center; }
.quiz__source { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hl-border); font-size: 13px; line-height: 1.6; color: var(--hl-muted); }

/* Short screens (laptops, landscape tablets): tighten vertical rhythm so the scale and navigation stay in view. */
@media (min-width: 640px) and (max-height: 760px) {
	.quiz__stage { padding-top: 20px; }
	.quiz__meta { margin-bottom: 14px; }
	.quiz__prompt { margin-bottom: 8px; }
	.quiz__item { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 20px; }
	.quiz__option { min-height: 88px; gap: 8px; padding-top: 14px; }
	.quiz__foot { margin-top: 24px; }
}
.quiz__noscript { max-width: 720px; margin: 40px auto; }
.quiz__loading { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--hl-muted); padding: 80px 20px; }
.quiz__loading[hidden] { display: none; }
.quiz__done { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 48px var(--hl-gutter); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.quiz__done .status-icon { margin-bottom: 24px; }
.quiz__done-title { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; font-weight: 700; margin-bottom: 14px; }
.quiz__done-title:focus { outline: none; }
.quiz__done .lead { font-size: 17px; margin-bottom: 32px; }
.quiz__done-actions { width: 100%; justify-content: center; }
.quiz__done-actions .btn { flex: 1 1 200px; }

@media (max-width: 480px) {
	.quiz__stage { padding-top: 20px; }
	.quiz__meta { margin-bottom: 14px; }
	.quiz__prompt { margin-bottom: 8px; }
	.quiz__options { gap: 6px; }
	.quiz__option { min-height: 50px; }
	.quiz__item { font-size: 26px; min-height: 3.66em; margin-bottom: 16px; }
	.quiz__navbtn { flex: 1 1 0; justify-content: center; }
	.quiz__next { margin-left: 0; }
}

/* Review */
.review { padding-top: clamp(28px, 5vw, 56px); padding-bottom: 160px; }
.review__title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.review__lead { font-size: 16px; line-height: 1.65; color: var(--hl-muted); margin-bottom: 24px; }
.review__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.review__toolbar .chip { font-weight: 500; }
.review__count { margin-left: auto; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--hl-muted); }
.review__table { background: #fff; border: 1px solid var(--hl-border); border-radius: var(--hl-radius-lg); }
.review__head { position: sticky; top: var(--hl-header-h); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 12px clamp(12px, 2vw, 18px); background: #fff; border-bottom: 1px solid var(--hl-border); border-radius: 16px 16px 0 0; box-shadow: 0 8px 16px -14px rgba(14, 40, 95, .35); }
.admin-bar .review__head { top: calc(var(--hl-header-h) + 32px); }
.review__head-label { flex: 1 1 280px; font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-muted); }
.review__scale { flex: 0 1 340px; width: min(100%, 340px); margin-left: auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; font-size: 13px; line-height: 1.25; font-weight: 500; color: var(--hl-muted); }
.review__scale > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px; }
.review__scale > div + div { border-left: 1px solid var(--hl-border); }
.review__scale b { font-size: 13px; line-height: 1; font-weight: 600; color: var(--hl-primary); }
.review__rows { list-style: none; }
.review__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px clamp(12px, 2vw, 18px); border-bottom: 1px solid var(--hl-border-soft); }
.review__row:last-child { border-bottom: 0; border-radius: 0 0 16px 16px; }
.review__row.is-missing { background: var(--hl-warn-row); }
.review__item { flex: 1 1 280px; display: grid; grid-template-columns: 34px 1fr; gap: 6px; font-size: 15px; line-height: 1.5; }
.review__num { font-size: 13px; line-height: 1.9; font-weight: 600; color: var(--hl-muted); }
.review__opts { flex: 0 1 340px; width: min(100%, 340px); display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-left: auto; }
.review__opt { height: 44px; border-radius: var(--hl-radius); border: 1.5px solid var(--hl-border); background: var(--hl-bg); color: var(--hl-muted); font-weight: 600; font-size: 13px; }
.review__opt:hover { border-color: var(--hl-primary); }
.review__opt[aria-pressed="true"] { background: var(--hl-primary); border-color: var(--hl-primary); color: #fff; }

.review-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(247, 249, 252, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--hl-border); }
.review-bar__inner { max-width: 880px; margin: 0 auto; padding: 14px var(--hl-gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.review-bar__note { font-size: 14px; color: var(--hl-muted); flex: 1 1 220px; }
.btn--bar { min-height: 48px; padding: 0 20px; font-size: 15px; }
.review-bar__status { max-width: 880px; margin: -6px auto 0; padding: 0 var(--hl-gutter) 12px; }
@media (max-width: 480px) {
	.review-bar__inner { padding-top: 10px; padding-bottom: 12px; gap: 8px 10px; }
	.review-bar__note { flex-basis: 100%; font-size: 13px; }
	.review-bar__inner .btn--bar { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 14px; line-height: 1.2; white-space: normal; text-align: center; }
}
.review-bar__status:empty { display: none; }
