/*
 * Course-only rules for the UK nursing CBT practice course. The look itself (type, bands, buttons, chips, Q&A, header,
 * footer) comes from the site's theme.css; this file adds what only this course needs. Every colour is a theme token
 * (var(--...)); no colour value is written here. Built on its own, standalone.css supplies the same tokens.
 *
 * THE ONE IDEA: the real CBT tells you pass or fail and nothing more (fact X017). Here every answer comes with its
 * reasons and its receipt: the source it was checked against.
 * MOTION (the one authored moment): when you answer, the four reasons unfold one after another (opacity + translate,
 * 240 ms each, 60 ms apart) and the receipt line under them draws itself once (scaleX, 500 ms). Everything else is
 * quiet feedback (150-300 ms). Reduced motion: nothing moves, every state still shows.
 */
:root { --bad: var(--c-english); --hdr-h: 68px; }

/* ---------- where you are inside the course ---------- */
.course-nav { border-bottom: 1px solid var(--line); background: var(--page); }
.course-nav .wrap { display: flex; gap: 4px; padding-block: 8px; overflow-x: auto; scrollbar-width: none; }
.course-nav .wrap::-webkit-scrollbar { display: none; }
.course-nav a { flex: none; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background-color 150ms var(--ease); }
.course-nav a:hover { background: var(--wash); }
.course-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- small shared parts ---------- */
.proof { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15.5px; font-weight: 600; }
.proof li { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.proof li::after { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 3px; margin-top: -3px; border-left: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep); transform: rotate(-45deg); }
.cticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cticks li { position: relative; padding-left: 34px; }
.cticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.cticks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 10px; height: 5px; border-left: 2.5px solid var(--accent-ink); border-bottom: 2.5px solid var(--accent-ink); transform: rotate(-45deg); }
.cticks.is-not li::before { background: var(--wash-2); }
.cticks.is-not li::after { left: 7px; top: 13px; width: 9px; height: 0; border-left: 0; border-bottom: 2.5px solid var(--ink-2); transform: none; }
.src { white-space: nowrap; font-weight: 600; font-size: 0.92em; }
.notice { margin: 18px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-2); }
.status { min-height: 1.5em; margin-top: 12px; font-size: 15px; font-weight: 600; }
.status-ok { color: color-mix(in srgb, var(--ok) 75%, black); }
.status-error { color: var(--bad); }
.status-info { color: var(--ink-2); }
.last-result { margin-top: 14px; font-weight: 700; color: var(--accent-deep); }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 46em; }
.fact-list li { padding: 14px 16px; border-radius: 16px; background: var(--wash); font-size: 15.5px; line-height: 1.5; }

/* ---------- course page hero: copy left, a real question right ---------- */
.hero-c { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(28px, 5vw, 72px) clamp(40px, 6vw, 88px); }
.hero-c-in { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 1000px) { .hero-c-in { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); } .hero-c-copy { padding-top: 24px; } }
.hero-c .display { font-size: clamp(36px, 9.4vw, 70px); }
@media (min-width: 1000px) { .hero-c .display { font-size: clamp(46px, 4.4vw, 64px); } }
.hero-c .lede { max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } }

/* ---------- a question you can answer on the spot, with its reasons and its receipt ---------- */
.try { position: relative; padding: 22px 18px 18px; border-radius: 26px; background: var(--page); box-shadow: var(--sh-2, var(--sh-1)), inset 0 0 0 1px var(--line); }
@media (min-width: 640px) { .try { padding: 28px 28px 22px; } }
.try-h { font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--accent-deep); }
.try-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.try-q { margin-top: 12px; font-weight: 800; font-size: clamp(18px, 2.3vw, 22px); line-height: 1.3; letter-spacing: -0.02em; text-wrap: pretty; }
.try-opts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.try-opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 10px 14px; border: 0; border-radius: 16px; background: var(--page); color: var(--ink); text-align: left; font-size: 16px; line-height: 1.35; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow 150ms var(--ease), transform 150ms var(--ease); }
.try-opt b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wash-2); font-size: 14.5px; transition: background-color 200ms var(--ease), color 200ms var(--ease); }
.try-opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.try-opt:active { transform: scale(0.99); }
.try.is-answered .try-opt { cursor: default; }
.try.is-answered .try-opt:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.try-opt.is-right, .try.is-answered .try-opt.is-right:hover { font-weight: 700; background: var(--accent-soft); box-shadow: inset 0 0 0 2.5px var(--accent); }
.try-opt.is-right b { background: var(--accent); color: var(--accent-ink); }
.try-opt.is-wrong, .try.is-answered .try-opt.is-wrong:hover { box-shadow: inset 0 0 0 2.5px var(--bad); }
.try-opt.is-wrong b { background: var(--bad); color: var(--page); }
.try-status { margin-top: 12px; font-weight: 700; }
.try-status:empty { display: none; }
.try-status.is-ok { color: color-mix(in srgb, var(--ok) 75%, black); }
.try-status.is-no { color: var(--bad); }
.try-why { margin-top: 12px; }
.try-why summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--accent-deep); list-style: none; }
.try-why summary::-webkit-details-marker { display: none; }
.try-why summary::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease); }
.try-why[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.try.is-answered .try-why summary { display: none; }
.reasons { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.reasons li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--wash); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.reasons li b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--page); color: var(--ink); font-size: 13.5px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.reasons li.is-best { background: var(--accent-soft); color: var(--ink); }
.reasons li.is-best b { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.reasons li strong { color: var(--ink); }
.receipt { position: relative; margin-top: 14px; padding-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.receipt::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left center; }
.receipt strong { color: var(--ink); }
.try.is-unfolding .reasons li { animation: unfold 240ms var(--ease) both; }
.try.is-unfolding .reasons li:nth-child(2) { animation-delay: 60ms; }
.try.is-unfolding .reasons li:nth-child(3) { animation-delay: 120ms; }
.try.is-unfolding .reasons li:nth-child(4) { animation-delay: 180ms; }
.try.is-unfolding .receipt::before { animation: draw 500ms var(--ease) 260ms both; }
@keyframes unfold { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- the test in one table, and other plain tables ---------- */
.g-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.g-table th, .g-table td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.g-table thead th { font-size: 14px; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.g-table tbody th { font-weight: 700; }
.g-table td .src { margin-left: 4px; }
.g-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .g-table.is-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .g-table.is-stack, .g-table.is-stack tbody, .g-table.is-stack tr, .g-table.is-stack th, .g-table.is-stack td { display: block; }
  .g-table.is-stack tr { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .g-table.is-stack tbody th { padding: 0 0 6px; border: 0; font-size: 17px; }
  .g-table.is-stack td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; padding: 5px 0; border: 0; }
  .g-table.is-stack td::before { content: attr(data-label); font-weight: 600; color: var(--ink-2); }
}
.table-note { margin-top: 14px; max-width: 46em; font-size: 15px; color: var(--ink-2); }

/* ---------- the blueprint, counted: real test vs our bank ---------- */
.bp { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 900px; }
.bp-head, .bp li { display: grid; grid-template-columns: minmax(0, 1fr) 4.2em 4.2em; gap: 6px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bp-head { padding-top: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.bp-name { font-weight: 700; line-height: 1.3; }
.bp-n { text-align: right; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.bp-n.is-real { color: var(--ink-2); font-weight: 700; }
.bp .bar { grid-column: 1 / -1; width: 100%; height: 8px; }
.bp-total { font-size: 15.5px; color: var(--ink-2); margin-top: 16px; max-width: 46em; }
.bar-bg { fill: var(--wash-2); }
.bar-fg { fill: var(--accent); }

/* ---------- how each question is made (a real sequence, so it is numbered) ---------- */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: h; max-width: 46em; }
.how li { counter-increment: h; position: relative; padding-left: 50px; min-height: 36px; color: var(--ink-2); }
.how li::before { content: counter(h); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; }
.how strong { display: block; color: var(--ink); }
.made-line { margin-top: 24px; max-width: 46em; font-weight: 600; }

/* ---------- free now / the full bank ---------- */
.offer { display: grid; gap: 20px; }
@media (min-width: 900px) { .offer { grid-template-columns: 1fr 1fr; gap: 28px; } }
.offer-col { padding: 24px 22px; border-radius: 24px; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); }
.offer-col.is-full { box-shadow: inset 0 0 0 2px var(--accent); }
.offer-col .h3 { margin-bottom: 14px; }
.offer-col .cticks { font-size: 16px; }
.offer-not { margin-top: 28px; max-width: 46em; }
.offer-not .h3 { margin-bottom: 12px; }

/* ---------- price and the waiting list ---------- */
.price-box { margin-top: 26px; padding: 22px 20px; border-radius: 24px; background: var(--page); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); max-width: 560px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.price-n { font-weight: 800; font-size: clamp(32px, 5vw, 44px); line-height: 1; letter-spacing: -0.03em; }
.price-box.is-soon .price-n { font-size: clamp(24px, 3.4vw, 30px); }
.price-t { font-weight: 600; color: var(--ink-2); }
.price-note { margin-top: 10px; color: var(--ink-2); }
.price-why { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.price-box .waitlist, .price-box .buy { margin-top: 18px; }
.waitlist .field, .waitlist .check, .buy .check { margin-top: 16px; }
.waitlist .field:first-child { margin-top: 0; }
.waitlist label { display: block; margin-bottom: 6px; font-size: 15.5px; font-weight: 700; }
.waitlist input[type="email"], .waitlist select, .qz-select { width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--page); color: var(--ink); font-size: 16px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.waitlist .check, .buy .check, .qz-timed { display: flex; align-items: flex-start; gap: 12px; }
.waitlist .check input, .buy .check input, .qz-timed input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.waitlist .check label, .buy .check label, .qz-timed label { margin: 0; font-weight: 400; font-size: 15px; line-height: 1.45; }
.waitlist .btn, .buy .btn { width: 100%; margin-top: 20px; }

/* ---------- Q&A answers with sources ---------- */
.qa-a { margin-top: 8px; color: var(--ink-2); max-width: 44em; }
.qa-a .src { margin-left: 2px; }

/* ---------- sticky button on phones; the honest small print ---------- */
.sticky-cta { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--glass, var(--page)); border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform 300ms var(--ease), visibility 0s linear 300ms; }
.sticky-cta.is-on { transform: none; visibility: visible; transition: transform 300ms var(--ease), visibility 0s; }
.sticky-cta .btn { flex: none; min-height: 48px; }
.sticky-note { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
@media (min-width: 900px) { .sticky-cta { display: none; } }
.course-note { padding-block: 36px; border-top: 1px solid var(--line); background: var(--wash); }
.course-note p { max-width: 52em; font-size: 14.5px; color: var(--ink-2); }
.course-note p + p { margin-top: 8px; }
.course-note strong { color: var(--ink); }
.note-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
body[data-page="course"] .course-note { padding-bottom: calc(36px + 76px); }
@media (min-width: 900px) { body[data-page="course"] .course-note { padding-bottom: 36px; } }

/* ---------- guide pages: answer first, then a table or steps ---------- */
.guide-head { padding-block: clamp(28px, 5vw, 56px) 20px; }
.guide-head .lede.answer { max-width: 40em; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink); }
.guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 8px 56px; }
@media (min-width: 1000px) { .guide { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 56px; align-items: start; } .guide-cta { position: sticky; top: 24px; } }
.guide-body > * + * { margin-top: 16px; }
.guide-body h2 { margin-top: 40px; font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.guide-body h2:first-child { margin-top: 0; }
.guide-body p, .guide-body li { max-width: 42em; }
.guide-body ul, .guide-body ol { padding-left: 1.2em; display: grid; gap: 8px; }
.guide-cta { padding: 22px; border-radius: 22px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.guide-cta p { margin-top: 10px; color: var(--ink-2); }
.guide-cta .btn { margin-top: 16px; width: 100%; }
.formula { padding: 14px 16px; border-radius: 14px; background: var(--wash); font-weight: 700; font-size: 17px; }
.worked { padding: 18px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.worked ol { margin-top: 10px; }
.worked .xp-trap { margin-top: 10px; }

/* ---------- sources and method, privacy, terms ---------- */
.srcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 52em; }
.srcs li { padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.srcs strong { color: var(--ink); }
.srcs code { font-family: inherit; font-weight: 600; color: var(--ink); }
.prose-c { padding-block: 8px 56px; }
.prose-c > * { max-width: 44em; }
.prose-c > * + * { margin-top: 14px; }
.prose-c h2 { margin-top: 36px; font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; }
.prose-c ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose-c .btn { white-space: normal; text-align: center; max-width: 100%; height: auto; padding-block: 12px; }

/* ---------- the question engine (mini mock, full mocks, practice) ---------- */
.qz { margin-top: 8px; }
.qz-stage { display: grid; gap: 16px; }
.qz-card { padding: 22px 18px; border-radius: 24px; background: var(--page); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
@media (min-width: 640px) { .qz-card { padding: 28px; } }
.qz-h { margin-bottom: 14px; }
.qz-h:focus, .qz-qn:focus, .qz-res-h:focus { outline: none; }
.qz-parts { margin: 0 0 18px; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.qz-parts strong { color: var(--ink); }
.qz-timed { margin-top: 6px; }
.qz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 520px) { .qz-actions .btn { flex: 1 1 100%; } }
.qz-bar { position: sticky; top: var(--hdr-h); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; background: var(--page); border-bottom: 1px solid var(--line); }
.qz-where { flex: 1 1 auto; font-size: 15px; }
.qz-count { color: var(--ink-2); font-size: 14.5px; }
.qz-clock { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; min-width: 4.2em; }
.qz-flag, .qz-map-toggle { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--wash); color: var(--ink); font-weight: 700; font-size: 14.5px; }
.qz-flag[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-deep); box-shadow: inset 0 0 0 1.5px var(--accent); }
.qz-qn { font-size: 14.5px; font-weight: 700; color: var(--accent-deep); }
.qz-stem { margin-top: 8px; font-weight: 700; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.4; letter-spacing: -0.01em; max-width: 40em; }
.qz-opts { margin: 16px 0 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.qz-opt { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 54px; padding: 10px 14px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; font-size: 16.5px; line-height: 1.35; transition: box-shadow 150ms var(--ease), background-color 150ms var(--ease); }
.qz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qz-opt b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wash-2); font-size: 14.5px; }
.qz-opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.qz-opt:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 2.5px var(--accent); }
.qz-opt:has(input:checked) b { background: var(--accent); color: var(--accent-ink); }
.qz-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.qz-opt.is-right, .qz-opt.is-right:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 2.5px var(--accent); }
.qz-opt.is-right b, .qz-opt.is-right:has(input:checked) b { background: var(--accent); color: var(--accent-ink); }
.qz-opt.is-wrong, .qz-opt.is-wrong:has(input:checked) { background: var(--page); box-shadow: inset 0 0 0 2.5px var(--bad); }
.qz-opt.is-wrong b, .qz-opt.is-wrong:has(input:checked) b { background: var(--bad); color: var(--page); }
.qz-opt:has(input:disabled) { cursor: default; }
.qz-num-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-top: 16px; }
.qz-num-l { flex: 1 1 100%; font-weight: 700; font-size: 15.5px; }
.qz-num-in { display: flex; align-items: center; gap: 10px; }
.qz-num { width: 9em; min-height: 54px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--page); color: var(--ink); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.qz-num:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.qz-unit { font-weight: 700; font-size: 18px; }
.qz-calc-btn { min-height: 54px; }
.calc { margin-top: 12px; max-width: 320px; padding: 14px; border-radius: 18px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.calc-out { display: block; min-height: 48px; padding: 10px 12px; border-radius: 12px; background: var(--page); text-align: right; font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; box-shadow: inset 0 0 0 1px var(--line-2); }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.calc-key { min-height: 48px; border: 0; border-radius: 12px; background: var(--page); color: var(--ink); font-weight: 700; font-size: 18px; box-shadow: inset 0 0 0 1px var(--line-2); }
.calc-key.is-op { background: var(--accent-soft); color: var(--accent-deep); }
.calc-key:active { transform: scale(0.97); }
.qz-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.qz-nav .btn { min-width: 9em; }
.qz-mapwrap { display: grid; gap: 10px; justify-items: start; }
.qz-map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; width: 100%; }
.qz-map-b { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: var(--page); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.qz-map-b.is-done { background: var(--wash-2); }
.qz-map-b.is-flag { box-shadow: inset 0 0 0 2.5px var(--accent); }
.qz-map-b.is-here { background: var(--ink); color: var(--page); }
.qz-review-sum { margin-bottom: 14px; color: var(--ink-2); }
.qz-res-big { margin-top: 10px; font-size: 20px; }
.qz-res-big strong { font-size: clamp(34px, 6vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.qz-res-parts { display: grid; gap: 10px; margin: 18px 0 10px; }
@media (min-width: 640px) { .qz-res-parts { grid-template-columns: 1fr 1fr; } }
.qz-res-part { padding: 14px 16px; border-radius: 16px; background: var(--wash); }
.qz-res-part dt { font-weight: 700; }
.qz-res-part dd { margin: 4px 0 0; }
.qz-res-part dd strong { font-size: 22px; font-weight: 800; }
.qz-sub { margin: 26px 0 12px; }
.qz-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 720px; }
.qz-area { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.qz-area-n { font-weight: 700; }
.qz-area-s { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.qz-area .bar { grid-column: 1 / -1; width: 100%; height: 8px; }
.qz-results.is-growing .bar-fg { animation: grow 600ms var(--ease) both; transform-origin: left center; transform-box: fill-box; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.qz-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.qz-filter .chip[aria-pressed="true"], .qz-tools .chip[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.qz-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.qz-rev { padding-top: 18px; border-top: 1px solid var(--line); }
.qz-rev-meta { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.qz-rev.is-no .qz-rev-meta::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--bad); }
.qz-rev.is-ok .qz-rev-meta::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--ok); }
.qz-prog .bar { display: block; width: 100%; height: 8px; margin-bottom: 12px; }
.qz-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.qz-tools .qz-select { width: auto; flex: 1 1 260px; }
.qz-tools .qz-count { flex: 1 1 100%; }

/* the explanation: verdict, every option's reason (or the worked solution), the key point, the receipt */
.xp { margin-top: 18px; display: grid; gap: 12px; }
.xp-verdict { font-weight: 800; font-size: 18px; }
.xp-verdict.is-ok { color: color-mix(in srgb, var(--ok) 75%, black); }
.xp-verdict.is-no { color: var(--bad); }
.xp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xp-item { padding: 12px 14px; border-radius: 14px; background: var(--wash); }
.xp-item.is-right { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent-mid); }
.xp-item.is-mine { box-shadow: inset 0 0 0 1.5px var(--bad); }
.xp-opt { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 10px; align-items: start; font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.xp-opt b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--page); font-size: 13.5px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.xp-item.is-right .xp-opt b { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.xp-tag { grid-column: 2; font-style: normal; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.xp-item.is-right .xp-tag { color: var(--accent-deep); }
.xp-reason { margin-top: 6px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
@media (min-width: 640px) { .xp-reason { padding-left: 36px; } }
.xp-answer strong { font-size: 18px; }
.xp-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.xp-trap, .xp-key { padding: 12px 14px; border-radius: 14px; background: var(--wash); font-size: 15.5px; }
.xp-key { background: var(--accent-soft); }
.xp-src { position: relative; padding-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.xp-src::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left center; }
.xp-src-h { font-weight: 700; color: var(--ink); }
.xp-fact + .xp-fact { margin-top: 6px; }
.xp.is-unfolding .xp-item { animation: unfold 240ms var(--ease) both; }
.xp.is-unfolding .xp-item:nth-child(2) { animation-delay: 60ms; }
.xp.is-unfolding .xp-item:nth-child(3) { animation-delay: 120ms; }
.xp.is-unfolding .xp-item:nth-child(4) { animation-delay: 180ms; }
.xp.is-unfolding .xp-src::before { animation: draw 500ms var(--ease) 260ms both; }

/* no-JavaScript fallback list of the mini mock */
.static-q { padding: 18px 0; border-top: 1px solid var(--line); }
.static-q ol { margin-top: 10px; padding-left: 1.4em; display: grid; gap: 6px; }
.static-q details { margin-top: 10px; }
.static-q summary { cursor: pointer; font-weight: 700; color: var(--accent-deep); min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- the bank home and the study plan ---------- */
.bank-areas { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .bank-areas { grid-template-columns: 1fr 1fr; } }
.bank-area { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 200ms var(--ease); }
.bank-area:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.bank-area-t { font-weight: 800; font-size: 18px; line-height: 1.25; }
.bank-area-d { font-size: 14.5px; color: var(--ink-2); }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plan-week { padding: 20px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.plan-week h3 { font-weight: 800; font-size: 20px; letter-spacing: -0.015em; }
.plan-week p { margin-top: 6px; color: var(--ink-2); }
.plan-week ul { margin-top: 10px; padding-left: 1.2em; display: grid; gap: 6px; }
.weakest { margin-top: 18px; padding: 18px 20px; border-radius: 20px; background: var(--accent-soft); }
.weakest ol { margin-top: 8px; padding-left: 1.3em; }
.locked { color: var(--ink-2); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .try-opt, .qz-opt, .sticky-cta, .bank-area, .course-nav a, .try-opt b { transition: none; }
  .try.is-unfolding .reasons li, .try.is-unfolding .receipt::before, .xp.is-unfolding .xp-item, .xp.is-unfolding .xp-src::before, .qz-results.is-growing .bar-fg { animation: none; }
}
@media print {
  .course-nav, .sticky-cta, .qz-bar, .qz-nav, .qz-actions, .qz-filter { display: none; }
}
