:root { color-scheme: light; --ink: #172b40; --muted: #5a6978; --accent: #eaa735; --green: #17633c; --red: #a82e36; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #f4f6f8; color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.6; }
.site-header { max-width: 1040px; margin: auto; padding: 30px 28px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 800; letter-spacing: .09em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: var(--accent); font-size: 28px; border-radius: 12px; }
.site-header small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
main { max-width: 960px; margin: 20px auto 60px; padding: 0 28px; }
.intro { padding: 52px 58px 36px; background: white; border: 1px solid #e1e6eb; border-top: 5px solid var(--accent); border-radius: 20px; box-shadow: 0 15px 45px #172b4008; }
.eyebrow, .question-number { color: #76602f; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; letter-spacing: -.04em; margin: 16px 0 20px; }
.lead { font-size: 24px; line-height: 1.45; }
.intro > p:not(.lead) { max-width: 630px; color: var(--muted); }
.intro-details { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.intro-details span { background: #f3f5f7; border: 1px solid #e3e7ec; border-radius: 8px; padding: 7px 11px; font-size: 13px; }
.instructions { border-left: 3px solid var(--accent); padding: 0 0 0 18px; margin: 30px 0; }
.instructions h2 { font-size: 17px; margin-bottom: 6px; }
.instructions p { margin: 0; font-size: 15px; color: var(--muted); }
button { font: inherit; }
.primary { display: inline-flex; justify-content: center; align-items: center; gap: 28px; background: var(--ink); color: white; border: 0; border-radius: 10px; padding: 15px 24px; font-weight: 650; cursor: pointer; transition: background .2s, transform .2s; }
.primary:hover:not(:disabled) { background: #294763; transform: translateY(-1px); }
button:focus-visible { outline: 3px solid #255fb4; outline-offset: 4px; }
.primary:disabled { background: #e1e6ec; color: #647383; cursor: not-allowed; }
.intro-note { font-size: 13px; margin-top: 18px; }
.quiz-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.quiz-heading h1 { font-size: 32px; margin-bottom: 8px; }
/* Outside the quiz container so it stays visible through the final result. */
.test-status { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #dfe5eb; box-shadow: 0 4px 16px #172b4010; }
.status-content { max-width: 960px; margin: auto; padding: 14px 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; font-variant-numeric: tabular-nums; }
.status-content > span { white-space: nowrap; }
.status-answered { font-weight: 650; }
.status-correct { color: var(--green); }
.status-wrong { color: var(--red); }
.status-complete { margin-left: auto; color: var(--green); font-size: 13px; font-weight: 650; }
.test-status progress { margin: 0; height: 4px; border-radius: 0; }
#quiz-title, .question, .result { scroll-margin-top: 130px; }
@media (max-width: 600px) { .status-content { padding: 12px 16px; gap: 6px 16px; font-size: 13px; } .status-complete { margin-left: 0; } }
progress { display: block; width: 100%; height: 7px; margin: 16px 0 30px; border: 0; border-radius: 20px; overflow: hidden; accent-color: var(--accent); background: #dfe5eb; }
progress::-webkit-progress-bar { background: #dfe5eb; }
progress::-webkit-progress-value { background: var(--accent); transition: width .3s; }
progress::-moz-progress-bar { background: var(--accent); }
.question { padding: 28px; margin-bottom: 22px; background: white; border: 1px solid #dfe5eb; border-radius: 16px; box-shadow: 0 3px 12px #172b4004; overflow: hidden; }
.question h2 { font-size: 20px; font-weight: 650; line-height: 1.5; margin: 10px 0 22px; }
.description { background: #f3f5f8; border-left: 3px solid #bec9d4; padding: 14px 18px; margin: -5px 0 22px; color: #46576a; overflow-wrap: anywhere; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 16px; color: var(--ink); background: white; border: 1px solid #d9e0e7; border-radius: 10px; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.option:hover:not(:disabled) { background: #fff9ed; border-color: #c88d27; }
.option-letter { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; background: #eef1f5; border-radius: 7px; font-size: 13px; font-weight: 750; }
.option-text { flex: 1; overflow-wrap: anywhere; }
.option-icon { font-size: 22px; font-weight: bold; min-width: 22px; text-align: center; }
.option:disabled { cursor: default; opacity: 1; }
.answered .option:not(.correct):not(.wrong) { color: #677381; background: #fafbfc; }
.option.correct { border-color: #78b88b; background: #eaf6ee; color: var(--green); }
.option.correct .option-letter { background: #cee9d7; }
.option.wrong { border-color: #d98e92; background: #fff0f0; color: var(--red); }
.option.wrong .option-letter { background: #f7d8db; }
/* Expands in the same question card; content slides out from beneath the options. */
.explanation { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .65s ease, opacity .5s ease, visibility .65s; }
.explanation-inner { min-height: 0; overflow: hidden; }
.feedback-content { margin-top: 22px; padding: 20px 0 0; border-top: 1px solid #dfe5eb; transform: translateY(-18px); transition: transform .65s ease; }
.explanation.visible { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
.explanation.visible .feedback-content { transform: translateY(0); }
.feedback-title { margin: 0 0 7px; font-size: 17px; color: var(--green); }
.answered-wrong .feedback-title { color: var(--red); }
.correct-answer { font-size: 14px; font-weight: 650; margin: 0 0 16px; }
.feedback-content h4 { margin: 0 0 4px; font-size: 14px; }
.explanation-text { color: var(--muted); margin: 0; font-size: 15px; }
.result { margin-top: 26px; padding: 34px; background: var(--ink); color: white; border-radius: 16px; }
.result .eyebrow { color: #ffd17c; }
.result h2 { margin-bottom: 0; }
#score { font-size: 60px; font-weight: 750; letter-spacing: -.04em; margin: 10px 0 0; line-height: 1.3; }
#score-info { color: #ffd17c; margin-top: 5px; }
.result > p:last-child { color: #c4d0dd; max-width: 630px; }
footer { color: var(--muted); text-align: center; font-size: 12px; padding: 20px; }
@media (max-width: 600px) { .site-header { padding: 20px; } main { padding: 0 16px; margin-top: 10px; } .intro { padding: 30px 24px; } .lead { font-size: 21px; } .question { padding: 22px 18px; } .question h2 { font-size: 18px; } .option { padding: 12px; gap: 10px; } .quiz-heading { align-items: start; flex-direction: column; gap: 0; } .quiz-heading h1 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
