/* Quiz funnel visitor pages. Self-contained: no framework, no host CSS.
   Accent colours come from the host setting via --qf-accent / --qf-accent-dark. */

:root {
    --qf-accent: #57A220;
    --qf-accent-dark: #458119;
    --qf-ink: #111111;
    --qf-ink-2: #1b1d1b;
    --qf-ink-3: #262926;
    --qf-text: #2E2E2E;
    --qf-muted: #5c615c;
    --qf-line: #e2e5e0;
    --qf-bg: #f4f5f2;
    --qf-white: #ffffff;
    --qf-down: #c62f27;
    --qf-radius: 14px;
    --qf-shadow: 0 1px 2px rgba(17, 17, 17, .06), 0 8px 24px rgba(17, 17, 17, .06);
    --qf-font: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Component display rules must not defeat the hidden attribute. */
.qf [hidden] { display: none !important; }

body.qf {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--qf-font);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--qf-text);
    background: var(--qf-bg);
}

body.qf--dark { background: var(--qf-ink); color: #f2f3f1; }

.qf a { color: var(--qf-accent-dark); }
.qf--dark a { color: #9fd477; }

.qf-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.qf-skip {
    position: absolute; left: 12px; top: -48px; z-index: 10;
    padding: 10px 14px; border-radius: 8px;
    background: var(--qf-white); color: var(--qf-ink) !important; font-weight: 700;
}
.qf-skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--qf-accent); outline-offset: 2px; }
.qf-main:focus { outline: none; }

/* Long German compounds ("Wahrscheinlichkeitsdenken") must break inside their
   box rather than push it wider than the viewport. Hyphenation follows <html lang>. */
.qf h1, .qf h2, .qf h3, .qf-highlight__name, .qf-chips li, .qf-band, .qf-tile__title, .qf-choice__text {
    overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto;
}
/* Flex children default to min-width: auto, which would let one long word widen the row. */
.qf-choice__text, .qf-tile__title, .qf-ledger dt, .qf-highlight__name { min-width: 0; }

/* Header and footer ---------------------------------------------------- */

.qf-header { background: var(--qf-ink); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.qf-header__inner {
    max-width: 1080px; margin: 0 auto; padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.qf-brand { display: inline-flex; align-items: center; text-decoration: none; }
.qf-brand img { display: block; height: 44px; width: auto; }
.qf-brand__text { color: var(--qf-white); font-weight: 700; letter-spacing: .02em; }

.qf-preview {
    margin: 0; padding: 8px 20px; text-align: center;
    font-size: .875rem; font-weight: 500;
    background: #fff4c7; color: #4a3b00; border-bottom: 1px solid #e8d78c;
}

.qf-main { flex: 1 0 auto; width: 100%; }

.qf-footer { background: var(--qf-ink); color: #b9bdb8; font-size: .875rem; }
.qf-footer__inner {
    max-width: 1080px; margin: 0 auto; padding: 18px 20px;
    display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.qf-footer a { color: #d7dad6; text-decoration: none; }
.qf-footer a:hover { color: var(--qf-white); text-decoration: underline; }

/* Buttons --------------------------------------------------------------- */

.qf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45em;
    min-height: 48px; padding: 12px 22px;
    border: 2px solid transparent; border-radius: 999px;
    font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.2;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.qf-btn:active { transform: translateY(1px); }
.qf-btn[disabled] { opacity: .5; cursor: not-allowed; }

.qf-btn--primary { background: var(--qf-accent); color: var(--qf-white) !important; }
.qf-btn--primary:hover { background: var(--qf-accent-dark); }
.qf-btn--large { min-height: 56px; padding: 14px 30px; font-size: 1.25rem; }
.qf-btn--small { min-height: 44px; padding: 8px 18px; font-size: 1rem; background: var(--qf-white); border-color: var(--qf-line); color: var(--qf-ink); }
.qf-btn--small:hover { border-color: var(--qf-accent); }
.qf-btn--ghost { background: transparent; border-color: var(--qf-line); color: var(--qf-ink) !important; font-weight: 500; }
.qf-btn--ghost:hover { border-color: var(--qf-ink); }
.qf-btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .28); color: #f2f3f1 !important; font-weight: 500; }
.qf-btn--ghost-light:hover { border-color: var(--qf-white); }
.qf-btn--link { background: transparent; color: var(--qf-muted) !important; font-weight: 500; padding-inline: 12px; text-decoration: underline; text-underline-offset: 3px; }
.qf-btn--link:hover { color: var(--qf-ink) !important; }

/* Landing --------------------------------------------------------------- */

.qf-hero {
    max-width: 1080px; margin: 0 auto; padding: 40px 20px 56px;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center;
}
.qf-eyebrow {
    margin: 0 0 12px; font-size: .8125rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--qf-accent);
}
.qf-eyebrow--dark { color: var(--qf-accent-dark); }
.qf-hero__title {
    margin: 0 0 16px; color: var(--qf-white);
    font-size: clamp(2.25rem, 7vw, 3.75rem); line-height: 1.05; letter-spacing: -.02em; font-weight: 800;
}
.qf-lead { margin: 0 0 22px; font-size: 1.1875rem; color: #dfe2de; max-width: 36em; }
.qf-facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.qf-facts li { display: flex; gap: 10px; align-items: baseline; color: #eef0ed; }
.qf-facts__icon { color: var(--qf-accent); font-weight: 700; width: 1.1em; flex: none; text-align: center; }
.qf-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 22px; }
.qf-hero__actions form { margin: 0; }
.qf-status { margin: 0 0 12px; color: #dfe2de; font-weight: 500; }
.qf-hero__note { margin: 0 0 8px; color: #b9bdb8; font-size: .9375rem; max-width: 36em; }
.qf-hero__note--small { font-size: .8125rem; }

.qf-hero__visual {
    background: linear-gradient(160deg, var(--qf-ink-2), var(--qf-ink-3));
    border: 1px solid rgba(255, 255, 255, .07); border-radius: 22px;
    padding: 28px 24px 24px;
}
.qf-candles { display: block; width: 100%; max-width: min(360px, 70vw); height: auto; margin: 0 auto 22px; }
.qf-candles line { stroke-width: 3; stroke-linecap: round; }
.qf-candles__level { stroke: #c62f27; stroke-dasharray: 3 6; stroke-width: 1.5 !important; opacity: .8; }
.qf-candles__up line { stroke: var(--qf-accent); }
.qf-candles__up rect { fill: var(--qf-accent); }
.qf-candles__down line { stroke: #f2f3f1; }
.qf-candles__down rect { fill: #f2f3f1; }
.qf-covers__title { margin: 0 0 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b9bdb8; }
.qf-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.qf-chips li {
    padding: 7px 12px; border-radius: 999px; font-size: .9375rem;
    background: rgba(87, 162, 32, .14); border: 1px solid rgba(87, 162, 32, .45); color: #e9f4df;
}

@media (min-width: 880px) {
    .qf-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); padding: 72px 20px 88px; gap: 56px; }
}

/* Question -------------------------------------------------------------- */

.qf-shell { max-width: 760px; margin: 0 auto; padding: 22px 16px 48px; }

.qf-progress { margin: 0 4px 16px; }
.qf-progress__meta {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    font-size: .9375rem; font-weight: 500; color: var(--qf-muted); margin-bottom: 8px;
}
.qf-progress__bar { height: 8px; border-radius: 99px; background: #dfe3dc; overflow: hidden; }
.qf-progress__bar span { display: block; height: 100%; background: var(--qf-accent); border-radius: 99px; transition: width .4s ease; }
.qf-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700;
    background: var(--qf-ink); color: var(--qf-white);
}
.qf-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--qf-accent); }

.qf-card {
    background: var(--qf-white); border-radius: var(--qf-radius); box-shadow: var(--qf-shadow);
    padding: 24px 18px 20px; border: 1px solid var(--qf-line);
}
.qf-card--challenge { border-top: 4px solid var(--qf-accent); }
@media (min-width: 640px) { .qf-card { padding: 34px 36px 28px; } }

.qf-prompt {
    margin: 0 0 10px; color: var(--qf-ink);
    font-size: clamp(1.3125rem, 3.6vw, 1.625rem); line-height: 1.3; font-weight: 700;
}
.qf-prompt:focus { outline: none; }
.qf-help { margin: 0 0 18px; color: var(--qf-muted); font-size: .9688rem; }
.qf-error {
    margin: 14px 0 0; padding: 10px 14px; border-radius: 10px;
    background: #fdecea; color: #8a1f17; font-weight: 500; border-left: 4px solid var(--qf-down);
}

.qf-choices { border: 0; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.qf-choice {
    position: relative; display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 16px; min-height: 56px;
    border: 2px solid var(--qf-line); border-radius: 12px; background: var(--qf-white);
    cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.qf-choice:hover { border-color: #b7c4ad; }
.qf-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-choice__mark {
    flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
    border: 2px solid #9aa396; background: var(--qf-white);
    display: grid; place-items: center; transition: all .15s ease;
}
.qf-choice__text { font-size: 1.0313rem; color: var(--qf-ink); }
.qf-choice:has(input:checked) { border-color: var(--qf-accent); background: #f3f9ee; box-shadow: 0 0 0 1px var(--qf-accent) inset; }
.qf-choice input:checked + .qf-choice__mark { border-color: var(--qf-accent); background: var(--qf-accent); }
.qf-choice input:checked + .qf-choice__mark::after { content: "✓"; color: var(--qf-white); font-size: .875rem; font-weight: 900; line-height: 1; }
.qf-choice input:checked ~ .qf-choice__text { font-weight: 600; }
.qf-choice:has(input:focus-visible) { outline: 3px solid var(--qf-accent); outline-offset: 2px; }
.qf-choice--compact { min-height: 48px; padding: 10px 14px; }

.qf-actions {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--qf-line);
}
.qf-actions__end { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }

@media (max-width: 520px) {
    .qf-actions { flex-direction: column-reverse; align-items: stretch; }
    .qf-actions__end { flex-direction: column-reverse; align-items: stretch; margin-left: 0; }
    .qf-actions .qf-btn { width: 100%; }
}

/* Challenge exhibits ------------------------------------------------------ */

.qf-exhibit { margin: 16px 0 6px; }
.qf-exhibit--pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 560px) { .qf-exhibit--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qf-exhibit__note { margin: 6px 0 0; font-size: .875rem; color: var(--qf-muted); }

.qf-tile { background: var(--qf-ink); color: #f2f3f1; border-radius: 12px; padding: 16px 18px; }
.qf-tile__title { margin: 0 0 10px; font-weight: 700; font-size: 1.0625rem; color: var(--qf-white); display: flex; gap: 8px; align-items: baseline; }
.qf-tile__text { margin: 8px 0 0; color: #dfe2de; }
.qf-outcome { margin: 4px 0 0; display: flex; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.qf-outcome__icon { flex: none; font-size: .8125rem; }
.qf-outcome--up .qf-outcome__icon { color: var(--qf-accent); }
.qf-outcome--down .qf-outcome__icon { color: #ff6b62; }

.qf-ledger { background: var(--qf-ink); color: #f2f3f1; border-radius: 12px; padding: 6px 18px; }
.qf-ledger__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.qf-ledger__row:last-child { border-bottom: 0; }
.qf-ledger dt { color: #c9cdc8; }
.qf-ledger dd { margin: 0; font-weight: 700; color: var(--qf-white); font-variant-numeric: tabular-nums; white-space: nowrap; }

.qf-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.qf-token {
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    font-size: .6875rem; font-weight: 800;
}
.qf-token--green { background: var(--qf-accent); color: var(--qf-white); }
.qf-token--red { background: #c62f27; color: var(--qf-white); }

/* Rule cards ------------------------------------------------------------- */

.qf-rule {
    margin: 14px 0; padding: 14px 16px; border-radius: 12px;
    background: #f3f9ee; border: 1px solid #cfe3bf; color: var(--qf-ink); font-weight: 500;
}
.qf-rule p { margin: 0; }

.qf-practice { margin: 0 0 16px; padding: 14px 16px; border: 1px dashed #b9c2b3; border-radius: 12px; }
.qf-practice__title { margin: 0 0 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--qf-muted); }
.qf-practice__row { display: flex; gap: 16px; align-items: center; }
.qf-practice__question { margin: 0 0 8px; font-weight: 500; }
.qf-practice__buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.qf-practice__feedback { margin: 8px 0 0; font-weight: 500; min-height: 1.4em; }
.qf-practice__solution summary { cursor: pointer; color: var(--qf-accent-dark); }

.qf-mode { margin: 0 0 16px; padding: 0; border: 0; }
.qf-mode legend { font-weight: 700; color: var(--qf-ink); margin-bottom: 8px; padding: 0; }
.qf-mode__options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 560px) { .qf-mode__options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qf-mode__note { margin: 8px 0 12px; font-size: .875rem; color: var(--qf-muted); }
.qf-timer {
    margin: 0; padding: 10px 14px; border-radius: 10px; text-align: center;
    background: var(--qf-ink); color: var(--qf-white); font-weight: 700; font-variant-numeric: tabular-nums;
}

.qf-cards { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .qf-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qf-cards[hidden] { display: none; }
.qf-cardq { margin: 0; padding: 12px; border: 1px solid var(--qf-line); border-radius: 12px; background: #fbfcfa; min-width: 0; }
.qf-cardq__title { padding: 0; font-size: .8125rem; font-weight: 700; color: var(--qf-muted); text-transform: uppercase; letter-spacing: .06em; }
.qf-cardface {
    flex: none; width: 88px; height: 88px; margin: 8px auto 10px; border-radius: 12px;
    background: var(--qf-ink); color: var(--qf-white);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.qf-practice .qf-cardface { margin: 0; width: 76px; height: 76px; }
.qf-cardface__arrow { font-size: 1.625rem; line-height: 1; }
.qf-cardface--up .qf-cardface__arrow { color: var(--qf-accent); }
.qf-cardface--down .qf-cardface__arrow { color: #ff6b62; }
.qf-cardface__risk { font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.qf-seg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.qf-seg label { position: relative; display: block; cursor: pointer; }
.qf-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qf-seg span {
    display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 4px;
    border: 2px solid var(--qf-line); border-radius: 10px; background: var(--qf-white);
    font-weight: 600; font-size: .9375rem; color: var(--qf-ink); text-align: center;
}
.qf-seg input:checked + span { border-color: var(--qf-ink); background: var(--qf-ink); color: var(--qf-white); }
.qf-seg span { position: relative; overflow-wrap: anywhere; }
.qf-seg input:checked + span { box-shadow: inset 0 -4px 0 var(--qf-accent); }
@media (max-width: 400px) {
    .qf-cardq { padding: 10px 8px; }
    .qf-seg span { font-size: .875rem; padding: 6px 2px; }
}
.qf-seg input:focus-visible + span { outline: 3px solid var(--qf-accent); outline-offset: 2px; }

/* Result ----------------------------------------------------------------- */

.qf-result { max-width: 880px; margin: 0 auto; padding: 0 0 48px; }

.qf-summary {
    background: var(--qf-ink); color: #eef0ed;
    padding: 34px 20px 30px; margin-bottom: 22px;
}
@media (min-width: 880px) { .qf-summary { border-radius: 0 0 22px 22px; padding: 44px 40px 38px; } }
.qf-summary__title { margin: 0 0 6px; color: var(--qf-white); font-size: clamp(1.875rem, 5vw, 2.5rem); line-height: 1.15; font-weight: 800; }
.qf-summary__title:focus { outline: none; }
.qf-summary__intro { margin: 0 0 20px; color: #b9bdb8; }
.qf-summary__text { margin: 14px 0 0; color: #dfe2de; max-width: 40em; }
.qf-highlights { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .qf-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qf-highlight { border-radius: 14px; padding: 18px; background: var(--qf-ink-3); border: 1px solid rgba(255, 255, 255, .08); }
.qf-highlight--strength { border-top: 4px solid var(--qf-accent); }
.qf-highlight--focus { border-top: 4px solid #f2f3f1; }
.qf-highlight__label { margin: 0 0 4px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b9bdb8; }
.qf-highlight--strength .qf-highlight__label span { color: var(--qf-accent); }
.qf-highlight__name { margin: 0 0 6px; font-size: 1.375rem; font-weight: 800; color: var(--qf-white); }
.qf-highlight__text { margin: 0; color: #dfe2de; font-size: .9688rem; }
.qf-highlight__quote { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); color: #c9cdc8; font-size: .9063rem; }
.qf-highlight__quote-label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fa49e; }

.qf-section { margin: 0 16px 22px; }
.qf-section h2 { margin: 0 0 12px; font-size: 1.375rem; color: var(--qf-ink); }
.qf-muted { color: var(--qf-muted); margin-top: -4px; }

.qf-dimensions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) { .qf-dimensions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qf-dimension { background: var(--qf-white); border: 1px solid var(--qf-line); border-radius: var(--qf-radius); padding: 18px; box-shadow: var(--qf-shadow); }
/* The badge wraps below the name when both do not fit; neither may widen the card. */
.qf-dimension__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 10px; }
.qf-dimension h3 { margin: 0; min-width: 0; flex: 1 1 12rem; font-size: 1.125rem; color: var(--qf-ink); }
.qf-dimension__text { margin: 10px 0 8px; }
.qf-dimension__meta { margin: 0 0 6px; font-size: .875rem; color: var(--qf-muted); }
.qf-dimension__about { margin: 0; font-size: .875rem; color: var(--qf-muted); }
.qf-band { flex: 0 1 auto; max-width: 100%; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; line-height: 1.3; }
.qf-band--strength { background: var(--qf-accent); color: var(--qf-white); }
.qf-band--mixed { background: #e8efe2; color: #2d4a17; }
.qf-band--practice { background: var(--qf-ink); color: var(--qf-white); }
.qf-band--open { background: transparent; color: var(--qf-muted); border: 1px dashed #b9c2b3; }
.qf-meter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.qf-meter span { height: 6px; border-radius: 99px; background: #e3e7df; }
.qf-meter--practice span:nth-child(-n+1),
.qf-meter--mixed span:nth-child(-n+2),
.qf-meter--strength span { background: var(--qf-accent); }

.qf-observations { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 720px) { .qf-observations { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.qf-observations h2 { font-size: 1.125rem; }
.qf-quote { margin: 0 0 10px; padding: 12px 14px; border-left: 4px solid var(--qf-accent); background: var(--qf-white); border-radius: 0 10px 10px 0; }
.qf-quote--focus { border-left-color: var(--qf-ink); }
.qf-quote p { margin: 0; font-size: .9375rem; }
.qf-quote__answer { font-weight: 600; color: var(--qf-ink); margin-bottom: 4px !important; }

.qf-exercise { background: var(--qf-white); border: 2px solid var(--qf-accent); border-radius: var(--qf-radius); padding: 20px; }
.qf-exercise p:last-child { margin-bottom: 0; }

.qf-context { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.qf-context__row { background: var(--qf-white); border: 1px solid var(--qf-line); border-radius: 12px; padding: 14px 16px; }
.qf-context dt { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--qf-muted); margin-bottom: 4px; }
.qf-context dd { margin: 0; font-size: .9688rem; }
.qf-context strong { color: var(--qf-ink); }

.qf-cta {
    margin: 0 16px 22px; padding: 28px 22px; border-radius: 18px; text-align: center;
    background: var(--qf-ink); color: #eef0ed;
    background-image: radial-gradient(circle at 85% 0%, rgba(87, 162, 32, .32), transparent 55%);
}
.qf-cta h2 { margin: 0 0 8px; color: var(--qf-white); font-size: 1.5rem; }
.qf-cta p { margin: 0 auto 20px; max-width: 34em; color: #dfe2de; }
.qf-plan__subtitle { margin: 16px 0 6px; font-size: 1rem; color: var(--qf-ink); }
.qf-plan__note { font-size: .875rem; color: var(--qf-muted); }

/* Both learning paths: the recommended one large and first, the alternative smaller. */
.qf-paths { margin: 0 16px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.qf-paths__title { margin: 0 0 2px; font-size: 1.375rem; color: var(--qf-ink); }
.qf-path { border-radius: 18px; padding: 20px; }
.qf-path p { margin: 0 0 12px; }
.qf-path__kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.qf-path__title { margin: 0 0 10px; }
.qf-path__conditions { font-size: .875rem; }
.qf-path--main {
    padding: 28px 22px; background: var(--qf-ink); color: #eef0ed;
    background-image: radial-gradient(circle at 85% 0%, rgba(87, 162, 32, .32), transparent 55%);
}
.qf-path--main .qf-path__kicker { color: var(--qf-accent); }
.qf-path--main .qf-path__title { color: var(--qf-white); font-size: 1.5rem; }
.qf-path--main .qf-path__conditions { color: #b9bdb8; }
.qf-path--alt { background: var(--qf-white); border: 1px solid var(--qf-line); }
.qf-path--alt .qf-path__kicker { color: var(--qf-muted); }
.qf-path--alt .qf-path__title { color: var(--qf-ink); font-size: 1.125rem; }
.qf-path--alt .qf-path__conditions { color: var(--qf-muted); }

.qf-details { background: var(--qf-white); border: 1px solid var(--qf-line); border-radius: var(--qf-radius); }
.qf-details > summary { cursor: pointer; padding: 16px 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.qf-details > summary::-webkit-details-marker { display: none; }
.qf-details > summary::after { content: "+"; font-size: 1.5rem; color: var(--qf-accent-dark); font-weight: 400; }
.qf-details[open] > summary::after { content: "−"; }
.qf-details > summary h2 { margin: 0; font-size: 1.125rem; }
.qf-answers { margin: 0; padding: 0 18px 8px 40px; }
.qf-answer { padding: 14px 0; border-top: 1px solid var(--qf-line); }
.qf-answer p { margin: 0 0 6px; font-size: .9375rem; }
.qf-answer__kind { font-size: .75rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--qf-muted); }
.qf-answer__prompt { font-weight: 600; color: var(--qf-ink); }
.qf-answer__mine span { color: var(--qf-muted); }
.qf-verdict--solved { color: var(--qf-accent-dark); }
.qf-verdict--missed { color: #a3241d; }
.qf-solution { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #f3f9ee; }
.qf-solution__title { font-weight: 700; color: var(--qf-ink); }
.qf-solution p:last-child { margin-bottom: 0; }

.qf-disclaimer { margin: 0 16px 18px; font-size: .875rem; color: var(--qf-muted); }
.qf-restart { margin: 0 16px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
