/* Free practice test pages (/practice/). Loaded after site.css; built by scripts/site-practice.mjs. */
:root {
  --ok: #0B6B47;
  --ok-soft: #E3F1EA;
  --on-ok: #FFFFFF;
  --bad: #B3261E;
  --bad-soft: #FCE9E7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ok: #6BD3A2;
    --ok-soft: #15291F;
    --on-ok: #0B1510;
    --bad: #FF8F84;
    --bad-soft: #3A1916;
  }
}

.practice section { padding: 0; }
.pwrap { max-width: 820px; padding-top: 28px; padding-bottom: 64px; }
.hubwrap { padding-top: 28px; padding-bottom: 64px; }
.practice h1 { font-size: clamp(32px, 5vw, 50px); margin: 14px 0 12px; }
.practice .lede { font-size: 18.5px; margin: 0 0 20px; }
.practice h2 { overflow-wrap: anywhere; }

/* breadcrumb */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* not-official notice */
.notice { background: var(--yellow-soft); border: 1px solid color-mix(in srgb, var(--yellow) 55%, transparent); border-radius: 14px; padding: 14px 16px; font-size: 15.5px; line-height: 1.55; margin: 0 0 18px; max-width: 760px; }

/* opening */
.practice .start { margin: 0 0 18px; }

/* the real test at a glance */
.practice .glance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 28px; }
.glance h2 { font-size: 19px; letter-spacing: -.01em; margin: 0 0 8px; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 8px 0; border-top: 1px solid var(--line); }
.facts-table tr:first-child th, .facts-table tr:first-child td { border-top: 0; }
.facts-table th { width: 9.5em; padding-right: 14px; font-weight: 700; }
.facts-src { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.quiz-title { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.015em; margin: 0 0 8px; }
.nojs { font-size: 15px; color: var(--muted); }

/* running score */
.qbar { position: sticky; top: 66px; z-index: 4; display: flex; align-items: center; gap: 14px; padding: 10px 0; margin: 0 0 6px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); font-size: 15px; font-weight: 700; }
.qbar[hidden] { display: none; }
.qbar-text { white-space: nowrap; }
.qbar-text a { color: var(--green-ink); }
.qbar progress { flex: 1; min-width: 60px; height: 8px; -webkit-appearance: none; appearance: none; border: 0; border-radius: 99px; background: var(--line); overflow: hidden; }
.qbar progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
.qbar progress::-webkit-progress-value { background: var(--green); border-radius: 99px; }
.qbar progress::-moz-progress-bar { background: var(--green); border-radius: 99px; }

/* questions */
.q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; scroll-margin-top: 130px; }
.q-num { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.q-num .dom { text-transform: none; letter-spacing: 0; font-weight: 600; }
.practice .q-stem { font-size: 19px; line-height: 1.45; letter-spacing: -.005em; font-weight: 750; margin: 0 0 14px; }
.q-sign { margin: 2px 0 16px; }
.q-sign img { height: auto; max-width: 100%; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .12)); }

.choices { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice { width: 100%; min-height: 50px; display: flex; gap: 12px; align-items: flex-start; text-align: left; font: inherit; font-size: 16.5px; line-height: 1.45; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.choice:hover { border-color: var(--muted); }
.choice:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 12px; }
.choice .key { flex: 0 0 26px; height: 26px; margin-top: -1px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 800; color: var(--muted); background: var(--surface); border: 1.5px solid var(--line); }
.choice .ct { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.choice[aria-disabled="true"] { cursor: default; }
.choice[aria-disabled="true"]:hover { border-color: var(--line); }
.q.done .choice:not(.is-right):not(.is-wrong) { color: var(--muted); }
.choice.is-right, .choice.is-right:hover { border-color: var(--ok); background: var(--ok-soft); }
.choice.is-right .key { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.choice.is-wrong, .choice.is-wrong:hover { border-color: var(--bad); background: var(--bad-soft); }
.choice.is-wrong .key { background: var(--bad); border-color: var(--bad); color: var(--on-ok); }
.choice.is-right::after, .choice.is-wrong::after { flex: 0 0 auto; font-weight: 800; font-size: 18px; line-height: 1.3; }
.choice.is-right::after { content: "✓"; content: "✓" / ""; color: var(--ok); }
.choice.is-wrong::after { content: "✕"; content: "✕" / ""; color: var(--bad); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.verdict { margin: 14px 0 0; font-weight: 800; }
.verdict:empty { display: none; }
.verdict.ok { color: var(--ok); }
.verdict.bad { color: var(--bad); }

/* answer + explanations: open with "Show answer" without JS, opened by the script after a tap */
.answer { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.answer summary { cursor: pointer; list-style: none; width: fit-content; padding: 6px 0; font-weight: 700; color: var(--green-ink); }
.answer summary::-webkit-details-marker { display: none; }
.answer summary::before { content: "+"; display: inline-block; width: 1em; font-weight: 800; }
.answer[open] summary::before { content: "−"; }
.js .q:not(.done) .answer { display: none; }
.js .answer-line { display: none; }
.answer-line { margin: 6px 0 10px; }
.whys { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.whys li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.whys .key { flex: 0 0 18px; font-weight: 800; }
.whys li.correct { color: var(--ink); }
.whys li.correct .key { color: var(--ok); }
.whys li.picked:not(.correct) { color: var(--ink); }
.whys li.picked:not(.correct) .key { color: var(--bad); }
.tip { margin: 12px 0 0; padding: 10px 12px; background: var(--green-soft); border-radius: 10px; font-size: 15.5px; }
.ref { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* calls to action */
.cta-card { background: var(--green-soft); border-radius: var(--radius); padding: 22px; margin: 6px 0 22px; display: grid; gap: 12px; justify-items: start; }
.cta-card h2 { font-size: 22px; letter-spacing: -.015em; margin: 0; }
.cta-card p { margin: 0; max-width: 40em; }
.cta-end { margin: 34px 0 10px; text-align: center; }
.cta-end h2 { font-size: clamp(26px, 3.4vw, 34px); }
.cta-end p { max-width: 36em; margin: 0 auto 18px; }
.cta-end .cta-row { justify-content: center; }
.cta-end .fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* final score */
.practice .results { background: var(--surface); border: 2px solid var(--green); border-radius: var(--radius); padding: 24px 22px; margin: 8px 0 16px; text-align: center; scroll-margin-top: 130px; }
.results[hidden] { display: none; }
.results:focus { outline: none; }
.results:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.results h2 { font-size: 20px; margin: 0 0 4px; color: var(--muted); letter-spacing: 0; }
.results .score { font-size: clamp(30px, 5vw, 40px); font-weight: 850; letter-spacing: -.02em; margin: 0 0 8px; line-height: 1.15; }
.results p { margin: 0 auto 10px; max-width: 34em; }
.results .btn { margin-top: 8px; }

/* rules people mix up (facts) */
.traps { margin: 40px 0 0; }
.traps h2, .advice h2, .pfaq h2 { font-size: 24px; letter-spacing: -.015em; }
.traps > p { margin: 0 0 10px; color: var(--muted); }
.traps ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.traps li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.5; }

/* our advice (opinion, kept visually apart from the facts) */
.advice { margin: 34px 0 0; padding: 20px 22px; border-radius: var(--radius); background: var(--green-soft); border-left: 5px solid var(--green); }
.advice h2 { margin: 0 0 8px; }
.advice ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.advice li { line-height: 1.55; }

/* FAQ */
.pfaq { margin: 40px 0 0; }
.pfaq h3 { font-size: 18px; letter-spacing: -.005em; margin: 20px 0 4px; }
.pfaq p { margin: 0; max-width: 46em; }

/* programmatic SEO pages: online-test guides, sign tests (content/site/pseo.json) */
.pseo-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; }
.pseo-box h2 { font-size: 19px; letter-spacing: -.01em; margin: 0 0 8px; }
.pseo-box ul { margin: 0; padding-left: 20px; }
.pseo-box li { margin: 3px 0; line-height: 1.5; }
.pseo-steps { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.pseo-steps li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 56px; line-height: 1.5; }
.pseo-steps li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 800; font-size: 14px; }
.pseo-steps b { display: block; }
.pseo-compare { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.pseo-compare th, .pseo-compare td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
.pseo-compare thead th { border-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pseo-section { margin: 34px 0 0; }
.pseo-section > h2 { font-size: 24px; letter-spacing: -.015em; }
.pseo-section > p { margin: 0 0 12px; color: var(--muted); }
.sign-gallery { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sign-gallery li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; line-height: 1.4; }
.sign-gallery img { flex: 0 0 auto; width: 52px; height: 52px; object-fit: contain; }
.sign-gallery b { display: block; font-size: 15px; }
.sign-gallery h3 { grid-column: 1 / -1; font-size: 17px; margin: 14px 0 0; }
.pseo-links { margin: -14px 0 28px; font-size: 15.5px; }
.pseo-links a { font-weight: 700; }

/* other states + sources */
.more-states { margin: 40px 0 0; }
.more-states h2 { font-size: 24px; letter-spacing: -.015em; }
.state-links { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.state-links a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.state-links a:hover { border-color: var(--green); }
.sources, .updated { font-size: 14px; color: var(--muted); }
.sources { margin: 26px 0 4px; overflow-wrap: anywhere; }
.sources a, .sources-all a { color: var(--muted); }
.updated { margin: 4px 0 0; }

/* hub */
.pstates { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pstate a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.pstate a:hover { border-color: var(--green); }
.pstate b { display: block; font-size: 16.5px; }
.pstate span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.hub-note { font-size: 15px; margin: 0 0 26px; }
.compare { margin: 0 0 30px; max-width: 980px; }
.compare h2 { font-size: 24px; letter-spacing: -.015em; }
.compare > p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line); }
.compare-table thead th { border-top: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.compare-table tbody th a { color: var(--ink); font-weight: 700; }
.hubwrap .cta-card { max-width: 820px; }
.sources-all { margin: 34px 0 0; font-size: 14px; color: var(--muted); max-width: 820px; }
.sources-all h2 { font-size: 18px; color: var(--ink); letter-spacing: 0; margin: 0 0 6px; }
.sources-all ul { columns: 2; column-gap: 28px; padding-left: 18px; margin: 8px 0 12px; }
.sources-all li { break-inside: avoid; margin: 0 0 4px; overflow-wrap: anywhere; }
@media (max-width: 1000px) { .pstates { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .sources-all ul { columns: 1; } }
@media (max-width: 640px) { .pstates { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 560px) {
  .q { padding: 16px; }
  .q-stem { font-size: 18px; }
  .choice { font-size: 16px; padding: 11px 12px; }
  .practice .glance, .cta-card, .advice { padding: 16px; }
  .facts-table th { width: 7.5em; }
}

/* links into the web app at /app/ */
.webapp-top { margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; background: var(--green-soft); border-radius: 14px; padding: 12px 16px; max-width: 760px; }
.webapp-top a { font-weight: 700; }
.webapp-cta { margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: center; }
.webapp-cta h3 { margin: 0; font-size: 20px; }
.webapp-cta p { margin: 0 auto; }
.practice .results .webapp-cta .btn { margin-top: 4px; }
/* All-states rules page (/practice/how-many-questions/) and the 50-state online hub */
.pwrap.pwide { max-width: 1120px; }
.pwide .lede, .pwide .notice, .pwide .glance, .pwide .advice, .pwide .pfaq, .pwide .cta-end, .pwide .pseo-box { max-width: 820px; }
.pwide .compare { max-width: none; }
.rules-table { min-width: 980px; font-size: 14.5px; }
.rules-table th[scope="row"] { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 118px; }
.rules-table tr:target th, .rules-table tr:target td { background: var(--yellow-soft); }
.rules-table tr { scroll-margin-top: 120px; }
.cell-note { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.cell-na { color: var(--muted); }
.cell-src a { display: inline-block; min-width: 22px; padding: 1px 6px; margin: 0 2px 2px 0; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; text-align: center; color: var(--muted); text-decoration: none; }
.cell-src a:hover { border-color: var(--green); color: var(--ink); }
.sources-all li { margin: 0 0 6px; }
.apps-table { min-width: 1180px; }
.apps-table tr.ours th, .apps-table tr.ours td { background: var(--green-soft); }
/* National road signs page (/practice/road-signs/) */
.shape-grid img { width: 64px; height: 64px; }
.color-table { min-width: 0; }
.color-table th[scope="row"] { width: 45%; }
.color-table td { vertical-align: middle; }
.color-table th img { display: inline-block; width: 32px; height: 32px; vertical-align: middle; object-fit: contain; margin-right: 8px; }
.pseo-section + .quiz-title { margin-top: 30px; }
.sign-gallery h3 { scroll-margin-top: 120px; }
.q-sign img { max-width: 120px; height: auto; display: block; }
.nav-row { margin: 24px 0; }
.direct-answer { background: var(--green-soft); border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; padding: 10px 14px; font-size: 15.5px; margin: 10px 0 0; }
