/* quiz.css — the quiz kit (#116): one set of elements for the section (S11, desktop V2) and the drawer (#109).
   Colours from the scheme (foreground, highlight) and the Extrême card graphite (--ext-surface); sizes from the V2 lab. */

/* ---------- shared elements ---------- */
/* #200: the quiz's eyebrows are the shared .ext-eyebrow; the entry card's tag (a card label, not a section eyebrow) keeps the old lime label */
.ext-quiz-entry__tag { margin: 0; font-size: 12px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--color-highlight)); }
.ext-quiz__lead { color: rgb(var(--color-foreground) / .7); }
.ext-quiz__lead p { margin: 0; }
/* #130: the intro facts — data-facts strip (default) | tiles; the same list (icon, title, line) */
.ext-quiz__strip, .ext-quiz__tiles { margin: 0; padding: 0; list-style: none; }
.ext-quiz__fact-title { display: block; font-size: 16px; font-weight: 500; line-height: 1.5; color: rgb(var(--color-foreground)); } /* Body/Base Medium */
.ext-quiz__fact-text { display: block; font-size: 12px; line-height: 1.5; color: rgb(var(--color-foreground) / .5); } /* Body/XS, 50 % */
/* Strip: three equal cells under a rule — the first flush with the text column, 24 after each divider (the card's spec strip) */
.ext-quiz__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgb(var(--color-foreground) / .1); }
.ext-quiz__fact { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 26px 24px; }
.ext-quiz__fact:first-child { padding-inline-start: 0; }
.ext-quiz__fact + .ext-quiz__fact { border-inline-start: 1px solid rgb(var(--color-foreground) / .1); }
.ext-quiz__fact .icon { flex: none; width: 24px; height: 24px; color: rgb(var(--color-highlight)); stroke-width: 1.5; }
/* a narrow text block (below ~760 — a 1440 screen gives 668) stacks the icon over the text, so the titles keep one line */
.ext-quiz__copy { container-type: inline-size; }
@container (max-width: 759px) { .ext-quiz__fact { flex-direction: column; align-items: flex-start; gap: 12px; } }
/* Tiles: 01–03 on foreground 4.5 % tiles over the button */
.ext-quiz__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 640px; }
.ext-quiz__tile { display: flex; flex-direction: column; gap: 20px; padding: 18px 18px 20px; border-radius: 16px; background: rgb(var(--color-foreground) / .045); }
.ext-quiz__tile-n { font-family: var(--font-heading-family); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.02em; color: rgb(var(--color-highlight)); } /* UI/Answer key small */
.ext-quiz__tile .ext-quiz__fact-title { font-size: 14px; } /* Body/SM Medium */
.ext-quiz:not([data-facts="tiles"]) .ext-quiz__tiles, .ext-quiz[data-facts="tiles"] .ext-quiz__strip { display: none; }
.ext-quiz .link { font-size: 14px; color: rgb(var(--color-foreground) / .7); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.ext-quiz [hidden], .ext-quiz__progress[hidden], .ext-quiz__tags[hidden] { display: none !important; } /* the drawer's header sits outside ext-quiz */

/* progress: «Progress 2 / 3» + one segment per question */
.ext-quiz__progress { display: grid; gap: 12px; }
.ext-quiz__progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ext-quiz__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--color-foreground) / .6); }
.ext-quiz__count { font-size: 14px; color: rgb(var(--color-foreground) / .6); font-variant-numeric: tabular-nums; }
.ext-quiz__bar { display: flex; gap: 4px; }
.ext-quiz__bar i { flex: 1; height: 3px; border-radius: 9px; background: rgb(var(--color-foreground) / .12); transition: background-color .3s; }
.ext-quiz__bar i.is-on { background: rgb(var(--color-highlight)); }

/* steps (#125, variant B): one line — dot, short label, the answer as a chip with ✎ (tap = change); current — lime ring; next — muted */
.ext-quiz__steps { display: grid; margin: 0; padding: 0; list-style: none; }
.ext-quiz__step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 64px; padding: 10px 0; border-top: 1px solid rgb(var(--color-foreground) / .08); }
.ext-quiz__step:first-child { border-top: 0; }
.ext-quiz__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px rgb(var(--color-foreground) / .3); color: rgb(var(--color-foreground) / .6); }
.ext-quiz__dot .icon { display: none; width: 14px; height: 14px; stroke-width: 3; }
.ext-quiz__step.is-done .ext-quiz__dot { background: rgb(var(--color-highlight)); box-shadow: none; color: rgb(var(--color-button-text)); }
.ext-quiz__step.is-done .ext-quiz__dot span { display: none; }
.ext-quiz__step.is-done .ext-quiz__dot .icon { display: block; }
.ext-quiz__step.is-current .ext-quiz__dot { box-shadow: inset 0 0 0 2px rgb(var(--color-highlight)); color: rgb(var(--color-foreground)); }
.ext-quiz__step-text { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.ext-quiz__step-label { font-size: 16px; line-height: 1.2; font-weight: 500; }
.ext-quiz__step.is-next .ext-quiz__step-label { color: rgb(var(--color-foreground) / .4); }
/* Steps style «Rail + chips» (#125, #126 — the S11 prototype's stepper in our colours): 18 px dots on a 2 px rail, lime up to the current step;
   no dividers; the panel's segment bar steps aside (the rail is the progress) */
.ext-quiz[data-steps="rail"] .ext-quiz__step { position: relative; min-height: 67px; padding: 16px 0; border-top: 0; } /* #135: the height of a row with its chip (35 + 2 × 16) — answering a step no longer pushes its dot down */
.ext-quiz[data-steps="rail"] .ext-quiz__step-label { font-size: 18px; } /* #126: the rail's elements a size up */
.ext-quiz[data-steps="rail"] .ext-quiz__step .ext-quiz__chip { font-size: 15px; padding: 10px 14px; }
.ext-quiz[data-steps="rail"] .ext-quiz__step .ext-quiz__pencil { width: 14px; height: 14px; }
.ext-quiz[data-steps="rail"] .ext-quiz__step::before, .ext-quiz[data-steps="rail"] .ext-quiz__step:is(.is-done, .is-current)::after { content: ''; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: rgb(var(--color-foreground) / .12); }
.ext-quiz[data-steps="rail"] .ext-quiz__step:is(.is-done, .is-current)::after { background: rgb(var(--color-highlight)); }
.ext-quiz[data-steps="rail"] .ext-quiz__steps > .ext-quiz__step:first-child::before, .ext-quiz[data-steps="rail"] .ext-quiz__steps > .ext-quiz__step:first-child::after { top: 50%; }
.ext-quiz[data-steps="rail"] .ext-quiz__steps > .ext-quiz__step:last-child::before, .ext-quiz[data-steps="rail"] .ext-quiz__step.is-current::after, .ext-quiz[data-steps="rail"] .ext-quiz__steps > .ext-quiz__step:last-child::after { bottom: 50%; }
.ext-quiz[data-steps="rail"] .ext-quiz__dot { position: relative; z-index: 1; justify-self: center; width: 18px; height: 18px; box-shadow: inset 0 0 0 2px rgb(var(--color-foreground) / .3); background: var(--ext-surface); }
.ext-quiz[data-steps="rail"] .ext-quiz__dot > * { display: none !important; }
.ext-quiz[data-steps="rail"] .ext-quiz__step.is-done .ext-quiz__dot { background: rgb(var(--color-highlight)); box-shadow: none; }
.ext-quiz[data-steps="rail"] .ext-quiz__step.is-current .ext-quiz__dot { box-shadow: inset 0 0 0 2px rgb(var(--color-highlight)); }
.ext-quiz[data-steps="rail"] .ext-quiz__panel .ext-quiz__bar { display: none; }
.ext-quiz--drawer[data-steps="rail"] .ext-quiz__step.is-done:not(:has(~ .ext-quiz__step.is-done))::before,
.ext-quiz--drawer[data-steps="rail"] .ext-quiz__step.is-done:not(:has(~ .ext-quiz__step.is-done))::after { bottom: 50%; } /* the drawer shows answered rows only */

/* question: «Question 2 of 3», the question, answer cards 2×2 */
.ext-quiz__question { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 28px; }
.ext-quiz__legend { display: grid; gap: 16px; padding: 0; float: left; width: 100%; } /* float: the legend joins the fieldset's grid */
.ext-quiz__qn { font-size: 14px; color: rgb(var(--color-foreground) / .6); }
.ext-quiz__answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ext-quiz__answer { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 136px; padding: 20px; border: 0; border-radius: 16px; background: rgb(var(--color-foreground) / .045); color: rgb(var(--color-foreground)); text-align: left; font: inherit; cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: background-color .3s, box-shadow .4s cubic-bezier(.2, .7, .2, 1); }
/* the answer's visual — answer_visual (#120): key (default) · icon · image (the answer's photo, else its icon) · none */
.ext-quiz__key, .ext-quiz__icon, .ext-quiz__thumb { display: none; margin-bottom: auto; }
/* the key (#121, #122, #128 Artem): the bare digit — heading font 800, 32 px, 5 % foreground (a quiet watermark); lime 18 % when picked; ×1.08 on hover */
.ext-quiz__key { font-family: var(--font-heading-family); font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -.02em; color: rgb(var(--color-foreground) / .05); font-variant-numeric: tabular-nums; }
.ext-quiz__answer[aria-pressed="true"] .ext-quiz__key { color: rgb(var(--color-highlight) / .18); }
.ext-quiz__icon { width: 32px; height: 32px; color: rgb(var(--color-highlight)); stroke-width: 1.5; }
.ext-quiz__thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--ext-surface); }
/* fall back so a mode never comes up empty (#123): image → icon → key, icon → key (a merchant needn't give every answer a picture) */
.ext-quiz[data-visual="key"] .ext-quiz__key,
.ext-quiz[data-visual="icon"] .ext-quiz__question:not(:has(.ext-quiz__icon)) .ext-quiz__key,
.ext-quiz[data-visual="image"] .ext-quiz__question:not(:has(.ext-quiz__thumb, .ext-quiz__icon)) .ext-quiz__key { display: block; }
.ext-quiz[data-visual="icon"] .ext-quiz__icon, .ext-quiz[data-visual="image"] .ext-quiz__question:not(:has(.ext-quiz__thumb)) .ext-quiz__icon { display: block; }
.ext-quiz[data-visual="image"] .ext-quiz__thumb { display: block; }
.ext-quiz__answer-label { font-size: 17px; line-height: 1.25; font-weight: 600; }
.ext-quiz__answer-text { font-size: 14px; line-height: 1.35; color: rgb(var(--color-foreground) / .6); }
.ext-quiz__answer[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px rgb(var(--color-highlight)); }
.ext-quiz__answer[aria-pressed="true"]::after { content: ''; position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%; background: rgb(var(--color-highlight)) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2309090b" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / 13px no-repeat; }
.ext-quiz__answer:focus-visible { outline: 2px solid rgb(var(--color-highlight)); outline-offset: 2px; }
/* hover (#121, #122): the card's colour lightens — an 8 % foreground veil fades in over any ground, no ring — and the visual grows a little, like the header tiles (#81) */
.ext-quiz__answer::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgb(var(--color-foreground) / .08); opacity: 0; transition: opacity .4s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.ext-quiz__answer > * { position: relative; }
.ext-quiz__key, .ext-quiz__icon, .ext-quiz__thumb { transform-origin: left top; transition: transform .4s cubic-bezier(.2, .7, .2, 1), background-color .25s, box-shadow .25s, color .25s; }
@media (hover: hover) {
  .ext-quiz .ext-quiz__answer:hover::before { opacity: 1; }
  .ext-quiz .ext-quiz__answer:hover :is(.ext-quiz__key, .ext-quiz__icon, .ext-quiz__thumb) { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .ext-quiz__answer::before, .ext-quiz__key, .ext-quiz__icon, .ext-quiz__thumb { transition: none; } .ext-quiz .ext-quiz__answer:hover :is(.ext-quiz__key, .ext-quiz__icon, .ext-quiz__thumb) { transform: none; } }
.ext-quiz__nav { display: flex; align-items: center; gap: 16px; margin-top: 24px; font-size: 14px; color: rgb(var(--color-foreground) / .5); }
.ext-quiz__next { margin-inline-start: auto; } /* auto_advance off (#120) */
/* the email after the result (#120, show_email): Concept's newsletter field and checkbox */
.ext-quiz__email { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid rgb(var(--color-foreground) / .08); }
.ext-quiz__email .newsletter-form { max-width: none; } /* Concept caps it at 28rem (the footer); here it fills the block */
.ext-quiz__email-form { gap: 14px; }
.ext-quiz__email-title { margin: 0; font-size: 16px; font-weight: 500; } /* Figma Body/Base Medium (#127) */
.ext-quiz__email-text { margin: 0; font-size: 14px; line-height: 1.5; color: rgb(var(--color-foreground) / .6); } /* Body/SM */
.ext-quiz__news { font-size: 14px; color: rgb(var(--color-foreground) / .7); cursor: pointer; }
.ext-quiz__email-foot .link { font-size: 13px; }
.ext-quiz__email-done { margin: 0; font-size: 16px; font-weight: 500; color: rgb(var(--color-highlight)); }
.ext-quiz__panel .ext-quiz__email + .ext-quiz__footnote { margin-top: auto; }
.ext-quiz__stage .ext-quiz__email { display: none; } /* desktop: in the panel; below 1024 the panel is gone — under the result */
/* #129: the picked weight / size — a small filled pill after the colour dots (a thin rule between), like the chosen value of a variant */
.ext-quiz__pick { flex: none; display: inline-flex; align-items: center; height: 22px; padding-inline: 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1; background: rgb(var(--color-foreground)); color: rgb(var(--color-background)); }
.swatches + .ext-quiz__pick { position: relative; margin-inline-start: 9px; }
.swatches + .ext-quiz__pick::before { content: ''; position: absolute; inset-inline-start: -9px; top: 4px; bottom: 4px; width: 1px; background: rgb(var(--color-foreground) / .15); }

/* result */
.ext-quiz__result { display: grid; gap: 24px; align-content: start; }
.ext-quiz__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
/* the answer chip (#126): the pencil 8 px after the text, the hover fades like the answer cards */
.ext-quiz__chip { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; line-height: 1; padding: 8px 12px; border: 0; border-radius: 99px; background: rgb(var(--color-foreground) / .07); color: rgb(var(--color-foreground)); cursor: pointer; transition: background-color .4s cubic-bezier(.2, .7, .2, 1); }
.ext-quiz__pencil { flex: none; width: 12px; height: 12px; stroke-width: 2.2; opacity: .6; transition: opacity .4s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .ext-quiz__chip:hover { background: rgb(var(--color-foreground) / .12); } .ext-quiz__chip:hover .ext-quiz__pencil { opacity: 1; } }
.ext-quiz__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.ext-quiz__card > .card { height: 100%; }
.ext-quiz__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ext-quiz__restart { margin-inline-start: auto; }
/* #132: Back / Start over — Concept's link icon-with-text (the underline grows on hover), semibold in the foreground colour; the arrow
   nudges back, the rotate icon turns */
.ext-quiz .ext-quiz__link { gap: 8px; font-size: 14px; font-weight: 600; color: rgb(var(--color-foreground)); } /* UI/Button Small */
.ext-quiz__link .icon { flex: none; width: 16px; height: 16px; stroke-width: 2; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.ext-quiz__link[data-ext-quiz-back]:hover .icon { transform: translateX(-3px); }
.ext-quiz__restart:hover .icon { transform: rotate(-120deg); }
.ext-quiz__footnote { margin: 0; font-size: 12px; line-height: 1.5; color: rgb(var(--color-foreground) / .5); } /* Body/XS */

/* screens come in softly */
@keyframes ext-quiz-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ext-quiz__question:not([hidden]), .ext-quiz__result:not([hidden]), .ext-quiz__run:not([hidden]) { animation: ext-quiz-in .35s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .ext-quiz__question, .ext-quiz__result, .ext-quiz__run { animation: none !important; } }

/* ---------- section (S11) ---------- */
/* V2: two blocks 8 apart — the question / result block and the panel; the intro: text block + photo block 50/50.
   #118: the panel is the card graphite; the left block must not be (the product cards would merge into it) — «Stage style»:
   outline (default: no fill, a 12 % line) · dark (a step below the cards) · dark-outline (dark + an 8 % line) · light (a step above).
   Mixed from the scheme, so the light demos get their own steps; the answer cards are card graphite in every style. */
.ext-quiz__block { border-radius: var(--rounded-block); padding: 56px; background: transparent; box-shadow: inset 0 0 0 1px rgb(var(--color-foreground) / .12); }
.ext-quiz[data-stage="dark"] .ext-quiz__block { background: color-mix(in srgb, var(--ext-surface) 40%, rgb(var(--color-background))); box-shadow: none; }
.ext-quiz[data-stage="dark-outline"] .ext-quiz__block { background: color-mix(in srgb, var(--ext-surface) 40%, rgb(var(--color-background))); box-shadow: inset 0 0 0 1px rgb(var(--color-foreground) / .08); }
.ext-quiz[data-stage="light"] .ext-quiz__block { background: color-mix(in srgb, var(--ext-surface) 95.5%, rgb(var(--color-foreground))); box-shadow: none; }
.ext-quiz--section .ext-quiz__answer { background: var(--ext-surface); }
.ext-quiz--section { scroll-margin-top: calc(var(--sticky-header-height, 0px) + 24px); } /* #136: the header chip jumps here */
.ext-quiz__intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ext-quiz__copy { display: flex; flex-direction: column; padding: 72px; }
.ext-quiz__copy-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.ext-quiz:not([data-facts="tiles"]) .ext-quiz__copy { padding-bottom: 0; }
.ext-quiz:not([data-facts="tiles"]) .ext-quiz__copy-main { padding-bottom: 56px; }
.ext-quiz__copy .ext-quiz__strip { margin-inline: -72px; padding-inline: 72px; } /* the rule runs the block's full width */
.ext-quiz__copy .ext-quiz__lead { max-width: 520px; }
.ext-quiz__intro:has(.ext-quiz__photo[hidden]) { grid-template-columns: minmax(0, 1fr); }
.ext-quiz__photo { margin: 0; border-radius: var(--rounded-block); background: var(--ext-surface); min-height: 560px; }
.ext-quiz__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ext-quiz__run { scroll-margin-top: calc(var(--sticky-header-height, 0px) + 16px); display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 460px); gap: 8px; align-items: stretch; }
.ext-quiz[data-panel="left"] .ext-quiz__run { grid-template-columns: clamp(360px, 30vw, 460px) minmax(0, 1fr); }
.ext-quiz[data-panel="left"] .ext-quiz__panel { order: -1; }
.ext-quiz__stage { display: grid; align-content: start; }
.ext-quiz__panel { display: flex; flex-direction: column; gap: 28px; padding: 40px; border-radius: var(--rounded-block); background: var(--ext-surface); }
.ext-quiz__panel-head { display: grid; gap: 14px; }
.ext-quiz__panel .ext-quiz__footnote { margin-top: auto; }
.ext-quiz--section .ext-quiz__result .ext-quiz__tags { display: none; } /* the panel (phones: the bar's chips) lists the answers */
.ext-quiz__mbar { display: none; }

/* below 1024: no blocks and no panel — a compact bar (title, n / N, progress, answers as chips) over the question (phone V, #116) */
@media screen and (max-width: 1023px) {
  .ext-quiz__intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ext-quiz .ext-quiz__block, .ext-quiz .ext-quiz__copy { background: none; box-shadow: none; padding: 0; border-radius: 0; }
  .ext-quiz:not([data-facts="tiles"]) .ext-quiz__copy-main { padding-bottom: 0; }
  .ext-quiz__copy .ext-quiz__strip { margin: 8px 0 0; padding: 0; }
  .ext-quiz__photo { min-height: 0; aspect-ratio: 5 / 4; }
  .ext-quiz__run { grid-template-columns: minmax(0, 1fr); }
  .ext-quiz__panel { display: none; }
  .ext-quiz__stage .ext-quiz__email:not([hidden]) { display: grid; margin-top: 8px; }
  .ext-quiz__mbar { display: grid; gap: 12px; margin: 0 calc(var(--page-padding) * -1) 28px; padding: 16px var(--page-padding); background: var(--ext-surface); }
  .ext-quiz__mbar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .ext-quiz__mbar-head .heading { font-size: 22px; }
  .ext-quiz__mbar-head .ext-quiz__count { font-size: 13px; }
  .ext-quiz__chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .ext-quiz__chips:empty { display: none; }
  .ext-quiz__restart { margin-inline-start: 0; }
  /* the cards: a strip swiped by finger, the next one peeking (as the header aside, #113) */
  .ext-quiz__cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--page-padding) * -1); padding-inline: var(--page-padding); scroll-padding-inline: var(--page-padding); }
  .ext-quiz__cards::-webkit-scrollbar { display: none; }
  .ext-quiz__card { flex: 0 0 calc(100% - 64px); scroll-snap-align: start; }
}
@media screen and (max-width: 767px) {
  .ext-quiz__copy-main { gap: 20px; }
  /* the strip's cells stack icon over text; the tiles become rows */
  .ext-quiz__fact { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 12px; }
  .ext-quiz__fact .ext-quiz__fact-title { font-size: 14px; }
  .ext-quiz__tiles { grid-template-columns: minmax(0, 1fr); }
  .ext-quiz__tile { flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; }
  .ext-quiz__answer { min-height: 116px; padding: 16px; }
  .ext-quiz__answer-label { font-size: 16px; }
  .ext-quiz--section .ext-quiz__actions .button { width: 100%; }
  .ext-quiz--section .ext-quiz__actions { justify-content: center; }
}

/* ---------- drawer (#109): Concept's drawer-element, graphite; answered steps as rows, then the question; result rows ---------- */
.ext-quiz__dhead { flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.ext-quiz__dhead-text { display: grid; gap: 12px; flex: 1; min-width: 0; }
.ext-quiz__dhead > .ext-quiz__progress, .ext-quiz__dhead > .ext-quiz__tags { flex: 0 0 100%; } /* under the title and the close button, full width */
.ext-quiz__dbody { display: grid; gap: 24px; align-content: start; padding-bottom: 8px; }
.ext-quiz--drawer .ext-quiz__step:not(.is-done) { display: none; }
.ext-quiz--drawer .ext-quiz__step { min-height: 56px; padding: 8px 0; }
.ext-quiz--drawer:not([data-steps="rail"]) .ext-quiz__step.is-done ~ .ext-quiz__step.is-done { border-top: 1px solid rgb(var(--color-foreground) / .08); }
.ext-quiz--drawer .ext-quiz__steps:not(:has(.is-done)), .ext-quiz--drawer.is-done .ext-quiz__steps { display: none; } /* result: the answers are the header's tags */
.ext-quiz--drawer .ext-quiz__question { gap: 20px; }
.ext-quiz--drawer .ext-quiz__legend { gap: 10px; }
.ext-quiz--drawer .ext-quiz__answer { min-height: 116px; padding: 16px; }
/* #124: smaller visuals in the drawer's narrower cards */
.ext-quiz--drawer .ext-quiz__icon { width: 24px; height: 24px; }
.ext-quiz--drawer .ext-quiz__key { font-size: 24px; }
.ext-quiz--drawer .ext-quiz__thumb { width: 44px; height: 44px; border-radius: 8px; }
.ext-quiz--drawer .ext-quiz__answer-label { font-size: 16px; }
/* #124: each result piece on a card a step lighter than the drawer, the packshot on its own graphite tile, «+ Add» on the right */
.ext-quiz__rows { display: grid; gap: 8px; }
.ext-quiz__rows .horizontal-product { padding: 12px; padding-inline-end: 16px; gap: 16px; border: 0; border-radius: 16px; background: rgb(var(--color-foreground) / .045); }
.ext-quiz__rows .horizontal-product__media { border-radius: 10px; background: var(--ext-surface); }
.ext-quiz__add-one .btn-text > span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.ext-quiz__rows .horizontal-product__media img { width: 100%; height: 100%; object-fit: cover; }
.ext-quiz__rows .horizontal-product__title { color: inherit; text-decoration: none; }
/* the footer under the scrolling body (like the cart drawer's), the body's side padding */
.ext-quiz__dfoot { flex: none; display: grid; gap: 10px; padding: 16px var(--sp-5) 20px; border-top: 1px solid rgb(var(--color-foreground) / .08); }
@media screen and (min-width: 1024px) { .ext-quiz__dfoot { padding: 20px var(--sp-12) 28px; } }
.ext-quiz__dfoot-ask { display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 14px; color: rgb(var(--color-foreground) / .5); }
.ext-quiz--drawer .ext-quiz__actions { display: grid; }
.ext-quiz--drawer .ext-quiz__restart { margin: 4px auto 0; }

/* the kit page's launcher block */
.ext-quiz-launch { display: grid; gap: 20px; justify-items: start; padding: 56px; border-radius: var(--rounded-block); background: var(--ext-surface); }
.ext-quiz-launch .ext-quiz__lead { max-width: 640px; }
.ext-quiz-launch__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media screen and (max-width: 767px) { .ext-quiz-launch { padding: 32px 20px; } .ext-quiz-launch__buttons .button { width: 100%; } }

/* ---------- #185 the homepage layouts: Single (the quiz above) · Entries (A) · Chooser (C) — data-ext-quiz-layout on the section ---------- */
.ext-quiz-section:not([data-ext-quiz-layout="entries"]) [data-ext-quiz-part="entries"],
.ext-quiz-section:not([data-ext-quiz-layout="chooser"]) [data-ext-quiz-part="chooser"],
.ext-quiz-section[data-ext-quiz-layout="chooser"][data-ext-quiz-chosen] [data-ext-quiz-part="chooser"] { display: none; }
.ext-quiz-section[data-ext-quiz-layout="entries"] .ext-quiz--section,
.ext-quiz-section[data-ext-quiz-layout="chooser"]:not([data-ext-quiz-chosen]) .ext-quiz--section { display: none !important; }
/* A · Entries: Concept's title row (the text on the right, as a section description) over three cards on the card graphite */
.ext-quiz-entries { display: grid; gap: 44px; } /* the title row to the cards: Best Sellers' tabs to its cards (43.6) */
.ext-quiz-entries__text { max-width: 420px; }
.ext-quiz-entries__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ext-quiz-entry { position: relative; display: flex; flex-direction: column; align-items: stretch; padding: 8px; border: 0; border-radius: var(--rounded-block); background: var(--ext-surface); color: rgb(var(--color-foreground)); text-align: start; font: inherit; cursor: pointer; }
.ext-quiz-entry__photo { display: block; width: 100%; aspect-ratio: 5 / 4; border-radius: calc(var(--rounded-block) - 8px); background: rgb(var(--color-placeholder)); }
.ext-quiz-entry__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.ext-quiz-entry__body { display: grid; gap: 10px; padding: 24px 88px 24px 20px; }
.ext-quiz-entry__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.ext-quiz-entry__time { font-size: 14px; line-height: 1; color: rgb(var(--color-foreground) / .6); }
.ext-quiz-entry__title { margin-top: 6px; font-size: clamp(24px, 1.85vw, 32px); font-weight: 800; }
.ext-quiz-entry__text { font-size: 16px; line-height: 1.4; color: rgb(var(--color-foreground) / .7); }
.ext-quiz-entry .ext-round { position: absolute; right: 28px; bottom: 28px; width: 48px; height: 48px; min-width: 0; padding: 0; }
.ext-quiz-entry .ext-round .btn-text { display: inline-flex; }
.ext-quiz-entry:focus-visible { outline: 2px solid rgb(var(--color-highlight)); outline-offset: 2px; }
@media (hover: hover) { .ext-quiz-entry:hover .ext-quiz-entry__photo img { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .ext-quiz-entry__photo img { transition: none; } }
@media screen and (max-width: 1023px) { .ext-quiz-entry__body { padding: 20px 72px 20px 16px; } .ext-quiz-entry .ext-round { right: 20px; bottom: 20px; width: 40px; height: 40px; } }
/* phones: one card and a peek, sliding sideways to the page edge (as the Best Sellers slider) */
@media screen and (max-width: 767px) {
  .ext-quiz-entries { gap: 28px; }
  .ext-quiz-entries__cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline-end: calc(-1 * var(--page-padding, 20px)); padding-inline-end: var(--page-padding, 20px); }
  .ext-quiz-entries__cards::-webkit-scrollbar { display: none; }
  .ext-quiz-entry { flex: 0 0 82%; scroll-snap-align: start; }
}
/* C · Chooser: the quiz intro with one question — three answer cards in a row (phones: a column of rows); the photo follows the answer */
.ext-quiz-chooser .ext-quiz__copy-main { justify-content: flex-start; }
.ext-quiz-chooser__question { margin-top: 12px; gap: 20px; }
.ext-quiz-chooser__question .heading { font-size: clamp(20px, 1.4vw, 24px); } /* a label under the section heading, not a second title */
.ext-quiz-chooser__answers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ext-quiz-chooser .ext-quiz__answer { min-height: 156px; }
.ext-quiz-chooser__photo img { opacity: 0; transition: opacity .5s cubic-bezier(.2, .7, .2, 1); }
.ext-quiz-chooser__photo img.is-on { opacity: 1; }
.ext-quiz__choose { display: none !important; }
.ext-quiz-section[data-ext-quiz-layout="chooser"] .ext-quiz__nav [data-ext-quiz-back][hidden] + .ext-quiz__choose,
.ext-quiz-section[data-ext-quiz-layout="chooser"] .ext-quiz__actions .ext-quiz__choose { display: inline-flex !important; }
@media screen and (max-width: 767px) {
  .ext-quiz-chooser__answers { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ext-quiz-chooser .ext-quiz__answer { min-height: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px; }
  .ext-quiz-chooser .ext-quiz__answer .ext-quiz__icon { grid-row: span 2; margin: 0; width: 28px; height: 28px; }
  .ext-quiz-chooser__photo { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .ext-quiz-chooser__photo img { transition: none; } }
