/* Wais Driver reading pages: question explainers, topic guides and the /guides index (app/templates/explainer.html,
   guide.html, guides_hub.html, _reading.html). Loaded on those pages only, after the shared sheets.
   The site's identity on a low-cost phone: navy ink on pale blue paper, the blue action colour with its flat edge,
   lane-marking yellow as the accent, green for right and red for wrong. System fonts, 2px borders, flat offset
   shadows; no blur, no animation, no image downloads. Nothing here needs :is(), :where(), :has(), aspect-ratio or
   flex gap (Chrome 80, Safari 13.1): spacing in flex rows is margin, everything else is grid. */

.ex-page,.w-plate{--ex-ink:#182b4a;--ex-muted:#52627a;--ex-label:#285a9b;--ex-line:#c9d8ee;--ex-rule:#e1e9f6;--ex-soft:#e6effc;
  --ex-ground:#f7faff;--ex-blue:#1758d8;--ex-blue-edge:#0b3890;--ex-yellow:#ffd339;--ex-yellow-edge:#c9a200;
  --ex-right:#17803f;--ex-right-ink:#135f31;--ex-right-tint:#e8f5ed;--ex-wrong:#b1432b;--ex-wrong-ink:#8f2f1a;--ex-wrong-tint:#fcece4;
  --ex-lane:repeating-linear-gradient(90deg,#ffd339 0 24px,transparent 24px 38px);color:var(--ex-ink)}
.ex-page{width:min(760px,calc(100% - 32px));margin:0 auto;padding:10px 0 56px;font-size:17px;line-height:1.55}
.ex-page p{margin:0;color:inherit}
.ex-page button,.w-plate button{font:inherit;color:inherit}
/* Controls stay disabled until explainer.js starts; until then they read as plain cards, not greyed out. */
.ex-page button:disabled,.w-plate button:disabled{cursor:default;opacity:1}
.ex-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ex-page button:focus,.ex-page a:focus,.ex-page summary:focus{outline:3px solid var(--ex-blue);outline-offset:2px}
.ex-page button:focus:not(:focus-visible),.ex-page a:focus:not(:focus-visible),.ex-page summary:focus:not(:focus-visible){outline:none}

/* Where you are: Home › Guides › Topic */
.ex-crumbs ol{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none;font-size:14px;line-height:1.3}
.ex-crumbs li{display:flex;align-items:center}
.ex-crumbs li+li::before{content:"›";margin:0 8px;color:#8a9ab3;font-weight:700}
.ex-crumbs a{display:inline-block;padding:10px 0;color:var(--ex-blue);font-weight:700;text-decoration:none}
.ex-crumbs a:hover{text-decoration:underline}

/* The question and the answer: both on the first screen of a 360 px phone */
.ex-page .ex-h1{margin:0 0 14px;font-size:clamp(24px,6.7vw,40px);line-height:1.16;font-weight:800;letter-spacing:-.02em;color:var(--ex-ink)}
.ex-answer{margin:0 0 22px;padding:14px 16px 16px;background:#fff;border:2px solid var(--ex-ink);border-radius:16px;box-shadow:5px 6px 0 #dce9fa}
.ex-page .ex-verdict{display:flex;flex-wrap:wrap;align-items:center;margin:0 0 8px}
.ex-verdict-badge,.ex-verdict-fact{display:inline-flex;align-items:center;margin-right:10px;padding:4px 14px 4px 5px;border:2px solid var(--ex-ink);border-radius:999px;background:var(--ex-soft);font-size:18px;font-weight:800;line-height:1.2}
.ex-verdict-fact{padding-left:14px;background:var(--ex-yellow)}
.ex-verdict-mark{display:flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;margin-right:8px;border-radius:50%;background:var(--ex-ink);color:#fff;font-size:14px;line-height:1}
.is-yes .ex-verdict-badge{border-color:var(--ex-right);background:var(--ex-right-tint);color:var(--ex-right-ink)}
.is-yes .ex-verdict-mark{background:var(--ex-right)}
.is-no .ex-verdict-badge{border-color:var(--ex-wrong);background:var(--ex-wrong-tint);color:var(--ex-wrong-ink)}
.is-no .ex-verdict-mark{background:var(--ex-wrong)}
.is-depends .ex-verdict-badge{border-color:var(--ex-yellow-edge);background:#fff6cc}
.is-depends .ex-verdict-mark{background:var(--ex-yellow);color:var(--ex-ink)}
.ex-verdict-label{color:var(--ex-label);font-size:12px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.ex-answer-text{font-size:18px;line-height:1.5;font-weight:600}
.ex-page .ex-lead{margin:0 0 22px;font-size:18px;line-height:1.5;font-weight:500}

/* The next step, one line under the answer (an explainer's short answer, a guide's intro): on the first screen */
.ex-page .ex-nudge{margin:0 0 18px}
.ex-answer+.ex-nudge,.ex-lead+.ex-nudge{margin-top:-8px}
.ex-nudge a{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:10px 14px;border:2px solid var(--ex-blue);border-radius:12px;background:#fff;color:var(--ex-blue-edge);font-size:16px;font-weight:800;line-height:1.3;text-decoration:none;box-shadow:0 3px 0 var(--ex-line)}
.ex-nudge a:hover{background:var(--ex-soft)}

/* Widgets: one frame for all three kinds, a navy title band with a lane line under it */
.ex-tool{margin:0 0 16px;padding:0;background:#fff;border:2px solid var(--ex-ink);border-radius:16px;overflow:hidden}
.ex-page .ex-tool-title,.w-plate .ex-tool-title{position:relative;display:block;margin:0;padding:12px 16px 18px;background:var(--ex-ink);color:#fff;font-size:18px;line-height:1.25;font-weight:800;letter-spacing:-.01em}
.ex-tool-title::after{content:"";position:absolute;left:16px;right:16px;bottom:7px;height:3px;background:var(--ex-lane)}
.ex-tool-body{padding:12px 14px 14px}
.ex-page .ex-label,.w-plate .ex-label{margin:0 0 8px;color:var(--ex-label);font-size:12px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.w-plate-digits+.ex-label{margin-top:14px}
.ex-license-trans{margin-top:12px}
.ex-vehicles-head{margin-top:16px}
.ex-vehicles-head .ex-label{margin-bottom:2px}
.ex-page .ex-hint{margin:0 0 10px;color:var(--ex-ink);font-size:15px;font-weight:600;line-height:1.4}
.ex-checker.is-live .ex-hint-static,.ex-checker:not(.is-live) .ex-hint-live{display:none}

/* code_checker: the code on your license, then the vehicle */
.ex-codes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-gap:6px}
.ex-code{min-height:46px;padding:0 4px;border:2px solid var(--ex-line);border-radius:10px;background:var(--ex-ground);font-size:17px;font-weight:800;letter-spacing:.02em;cursor:pointer}
.ex-code:not(:disabled):hover{border-color:var(--ex-blue)}
.ex-trans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:6px;max-width:200px}
.ex-code[aria-pressed="true"]{border-color:var(--ex-blue-edge);background:var(--ex-blue);color:#fff;box-shadow:0 3px 0 var(--ex-blue-edge)}
.ex-vehicles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:8px}
.ex-vehicle{position:relative;display:block;width:100%;min-height:64px;padding:10px 12px;border:2px solid var(--ex-line);border-radius:12px;background:#fff;text-align:left;cursor:pointer}
.ex-vehicle:not(:disabled):hover{border-color:var(--ex-blue)}
.ex-vehicle-name{display:block;font-size:15.5px;font-weight:800;line-height:1.2}
.ex-vehicle-detail{display:block;margin-top:3px;color:var(--ex-muted);font-size:13px;line-height:1.3}
.ex-vehicle-code{display:inline-block;margin-top:7px;padding:2px 9px;border-radius:999px;background:var(--ex-ink);color:var(--ex-yellow);font-size:12.5px;font-weight:800;line-height:1.4}
/* Live, the code a vehicle needs is hidden until it is tapped; hidden, not removed, so the tiles keep their height. */
.ex-checker.is-live .ex-vehicle-code{visibility:hidden}
.ex-vehicle.is-right,.ex-vehicle.is-wrong{box-shadow:inset 0 0 0 1px currentColor}
.ex-vehicle.is-right{border-color:var(--ex-right);background:var(--ex-right-tint);color:var(--ex-right)}
.ex-vehicle.is-wrong{border-color:var(--ex-wrong);background:var(--ex-wrong-tint);color:var(--ex-wrong)}
.ex-vehicle.is-right .ex-vehicle-name,.ex-vehicle.is-wrong .ex-vehicle-name{color:var(--ex-ink)}
.ex-checker.is-live .ex-vehicle.is-right .ex-vehicle-code,.ex-checker.is-live .ex-vehicle.is-wrong .ex-vehicle-code{visibility:visible;color:#fff}
.ex-vehicle.is-right .ex-vehicle-code{background:var(--ex-right)}
.ex-vehicle.is-wrong .ex-vehicle-code{background:var(--ex-wrong)}
.ex-vehicle.is-right .ex-vehicle-code::before{content:"✓ "}
.ex-vehicle.is-wrong .ex-vehicle-code::before{content:"✕ "}
/* The verdict drawn in the grid, under the row of the tile just tapped (explainer.js moves it there). The status
   line screen readers hear (.ex-result) is a separate, permanently mounted element. */
.ex-callout{grid-column:1/-1;padding:12px 14px;border:2px solid var(--ex-line);border-radius:12px;background:var(--ex-ground);font-size:16px;line-height:1.45}
.ex-callout.is-right{border-color:var(--ex-right);background:var(--ex-right-tint)}
.ex-callout.is-wrong{border-color:var(--ex-wrong);background:var(--ex-wrong-tint)}
.ex-result-verdict{display:flex;align-items:center;font-size:17px;font-weight:800;line-height:1.3}
.ex-callout.is-right .ex-result-verdict{color:var(--ex-right-ink)}
.ex-callout.is-wrong .ex-result-verdict{color:var(--ex-wrong-ink)}
.ex-page .ex-result-detail{margin-top:4px}
.ex-mark{display:flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;margin-right:8px;border-radius:50%;color:#fff;font-size:13px;line-height:1}
.is-right>.ex-result-verdict .ex-mark{background:var(--ex-right)}
.is-wrong>.ex-result-verdict .ex-mark{background:var(--ex-wrong)}

/* svg_card: a drawing and its numbered notes */
.ex-figure{margin:0 0 16px}
.ex-figure>.ex-tool-title{display:block}
.ex-figure-art{padding:14px;background:#eef3fb;border-bottom:2px solid var(--ex-rule)}
.ex-figure-art img{display:block;width:100%;max-width:560px;height:auto;margin:0 auto}
/* steps_card: numbered steps or a two- or three-column table */
.ex-callouts,.ex-steplist{margin:0;list-style:none}
.ex-callouts li,.ex-steplist li{display:flex;align-items:flex-start;padding:10px 0;border-top:1px solid var(--ex-rule)}
.ex-callouts li:first-child,.ex-steplist li:first-child{border-top:0;padding-top:2px}
.ex-num{display:flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;margin-right:12px;border:2px solid var(--ex-ink);border-radius:50%;background:var(--ex-yellow);font-size:14px;font-weight:800;line-height:1}
.ex-step-title{font-weight:800;line-height:1.3}
.ex-page .ex-step-text{margin-top:2px;color:var(--ex-ink);font-size:16px}
.ex-table{width:100%;border-collapse:collapse;font-size:15.5px;line-height:1.4}
.ex-table th,.ex-table td{padding:10px 12px;border-top:1px solid var(--ex-rule);text-align:left;vertical-align:middle}
.ex-table thead th{padding-top:8px;padding-bottom:8px;border-top:0;background:var(--ex-ground);color:var(--ex-label);font-size:12px;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.ex-table tbody th{width:68px;font-weight:800}
/* A third column is the short one (professional only, a speed, an authority): narrow and quieter. */
.ex-cols-3 th,.ex-cols-3 td{padding:9px 6px}
.ex-cols-3 tbody th{width:48px;padding-left:10px}
.ex-cols-3 .ex-chip{min-width:38px}
.ex-cols-3 td+td{width:24%;padding-right:10px;color:var(--ex-muted);font-size:13px;font-weight:700;line-height:1.3}
.ex-chip{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:32px;padding:0 8px;border-radius:8px;background:var(--ex-ink);color:var(--ex-yellow);font-size:15px;font-weight:800;letter-spacing:.02em}

/* The LTO's words, folded under one line */
.ex-source{margin:0 0 8px;color:var(--ex-muted);font-size:14px;line-height:1.45}
.ex-source-label{color:var(--ex-ink);font-weight:800}
.ex-updated{display:block;margin-top:2px}
.ex-page .ex-quotes{border:0}
.ex-quotes summary{display:inline-flex;align-items:center;min-height:44px;color:var(--ex-blue);font-weight:800;cursor:pointer;list-style:none}
.ex-quotes summary::-webkit-details-marker{display:none}
.ex-quotes summary::before{content:"";flex:none;width:7px;height:7px;margin:0 11px 3px 2px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.ex-quotes[open] summary::before{margin-bottom:-3px;transform:rotate(-135deg)}
.ex-quote{margin:6px 0 0;padding:10px 12px;border-left:4px solid var(--ex-yellow);border-radius:0 10px 10px 0;background:#fff;color:var(--ex-ink)}
.ex-quote p{font-size:15px;line-height:1.45}
.ex-quote cite{display:block;margin-top:4px;color:var(--ex-muted);font-size:12.5px;font-style:normal}

/* The one call to action: the free practice, on a navy band with the lane line */
.ex-cta{position:relative;margin:22px 0 30px;padding:24px 18px 16px;border-radius:16px;background:var(--ex-ink);color:#fff;overflow:hidden}
.ex-cta::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:var(--ex-lane)}
.ex-cta-title{font-size:22px;font-weight:800;line-height:1.2;letter-spacing:-.01em}
.ex-page .ex-cta-text{margin:6px 0 16px;color:#d6e2f5;font-size:16px}
.ex-cta-button{display:flex;align-items:center;justify-content:center;min-height:54px;padding:12px 18px;border-radius:12px;background:var(--ex-yellow);color:#112c46;font-size:17px;font-weight:800;line-height:1.25;text-align:center;text-decoration:none;box-shadow:0 4px 0 var(--ex-yellow-edge)}
.ex-cta-button:hover{background:#f2c41f;color:#112c46}
.ex-cta-button:active{box-shadow:0 1px 0 var(--ex-yellow-edge);transform:translateY(3px)}
.ex-cta-button span{margin-left:8px}
.ex-page .ex-cta-note{margin-top:12px;color:#b9c8e0;font-size:14px}
.ex-page .ex-cta a.ex-cta-full{display:inline-block;margin:4px 18px 0 0;padding:10px 0;color:#fff;font-size:15px;font-weight:700;text-decoration:underline;text-underline-offset:4px}

/* The closely related questions */
.ex-qa{padding:22px 0 0;border-top:2px solid var(--ex-rule)}
.ex-qa+.ex-qa{margin-top:22px}
.ex-cta+.ex-qa{padding-top:0;border-top:0}
.ex-page .ex-qa h2,.ex-page .ex-more-title{margin:0 0 8px;font-size:21px;line-height:1.25;font-weight:800;letter-spacing:-.01em}
.ex-qa p{font-size:17px;line-height:1.6}
.ex-page .ex-qa p+p{margin-top:10px}
.ex-guide .ex-tool+.ex-qa{margin-top:10px;padding-top:0;border-top:0}

/* quick_check: one question, green or red at once */
.ex-qc{margin:30px 0 0;padding:16px 16px 16px;border:2px solid var(--ex-ink);border-radius:16px;background:#fff;box-shadow:5px 6px 0 #dce9fa}
.ex-page .ex-qc-label{display:inline-block;margin:0 0 10px;padding:4px 10px;border-radius:999px;background:var(--ex-yellow);color:var(--ex-ink);font-size:12px;font-weight:800;line-height:1.3;letter-spacing:.07em;text-transform:uppercase}
.ex-qc-prompt{font-size:18px;font-weight:800;line-height:1.4}
.ex-page .ex-qc-hint{margin:4px 0 12px;color:var(--ex-muted);font-size:14px}
.ex-qc-options{display:grid;grid-gap:8px}
.ex-qc-option{display:flex;align-items:center;width:100%;min-height:52px;padding:9px 12px;border:2px solid var(--ex-line);border-radius:12px;background:var(--ex-ground);text-align:left;font-size:16px;font-weight:700;line-height:1.3;cursor:pointer}
.ex-qc-option:not(:disabled):hover{border-color:var(--ex-blue)}
.ex-qc:not(.is-live) .ex-qc-hint{display:none}
.ex-qc-option[aria-disabled="true"]{cursor:default}
.ex-qc-option[aria-disabled="true"]:hover{border-color:var(--ex-line)}
.ex-qc-letter{display:flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;margin-right:12px;border:2px solid var(--ex-line);border-radius:50%;background:#fff;font-size:14px;font-weight:800}
.ex-qc-text{flex:1 1 auto}
.ex-qc-option.is-right,.ex-qc-option.is-right:hover{border-color:var(--ex-right);background:var(--ex-right-tint);box-shadow:inset 0 0 0 1px var(--ex-right)}
.ex-qc-option.is-wrong,.ex-qc-option.is-wrong:hover{border-color:var(--ex-wrong);background:var(--ex-wrong-tint);box-shadow:inset 0 0 0 1px var(--ex-wrong)}
.ex-qc-option.is-right .ex-qc-letter{border-color:var(--ex-right);background:var(--ex-right);color:#fff}
.ex-qc-option.is-wrong .ex-qc-letter{border-color:var(--ex-wrong);background:var(--ex-wrong);color:#fff}
.ex-qc-option.is-right::after,.ex-qc-option.is-wrong::after{display:flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;margin-left:10px;border-radius:50%;color:#fff;font-size:13px;font-weight:800;line-height:1}
.ex-qc-option.is-right::after{content:"✓";background:var(--ex-right)}
.ex-qc-option.is-wrong::after{content:"✕";background:var(--ex-wrong)}
/* Without the script: the answer behind a native disclosure. */
.ex-qc-reveal{margin-top:12px}
.ex-qc-reveal summary{display:inline-flex;align-items:center;min-height:44px;color:var(--ex-blue);font-weight:800;cursor:pointer}
.ex-page .ex-qc-reveal p{margin-top:4px;padding:12px 14px;border:2px solid var(--ex-right);border-radius:12px;background:var(--ex-right-tint);font-size:16px;line-height:1.5}
/* The status line is always in the page (a screen reader only announces a region it already knows); it gets its
   frame once there is something in it. */
.ex-qc-result{font-size:16px;line-height:1.5}
.ex-qc.is-answered .ex-qc-result{margin-top:12px;padding:12px 14px;border:2px solid var(--ex-line);border-radius:12px}
.ex-qc.is-right .ex-qc-result{border-color:var(--ex-right);background:var(--ex-right-tint)}
.ex-qc.is-wrong .ex-qc-result{border-color:var(--ex-wrong);background:var(--ex-wrong-tint)}
.ex-qc.is-right .ex-qc-result strong{color:var(--ex-right-ink)}
.ex-qc.is-wrong .ex-qc-result strong{color:var(--ex-wrong-ink)}

/* Related explainers and the way back to the guide */
.ex-more{margin:30px 0 0}
.ex-links,.ex-topics,.ex-topic-questions{margin:0;padding:0;list-style:none}
.ex-links{display:grid;grid-gap:8px}
.ex-links a{display:flex;align-items:center;justify-content:space-between;min-height:54px;padding:12px 14px;border:2px solid var(--ex-line);border-radius:12px;background:#fff;color:var(--ex-ink);font-size:16px;font-weight:700;line-height:1.35;text-decoration:none}
.ex-links a:hover{border-color:var(--ex-blue)}
.ex-page .ex-links a.ex-guide-link{background:var(--ex-soft)}
.ex-arrow{flex:none;margin-left:12px;color:var(--ex-blue);font-weight:800}
.ex-guide .ex-more{margin:26px 0 24px}

/* The /guides index */
.ex-hub .ex-more-title{margin-top:4px}
.ex-topics{display:grid;grid-gap:12px}
.ex-topic{padding:14px 16px 6px;border:2px solid var(--ex-ink);border-radius:16px;background:#fff}
.ex-topic-link{display:flex;align-items:center;justify-content:space-between;min-height:44px;color:var(--ex-ink);font-size:19px;font-weight:800;line-height:1.25;text-decoration:none}
.ex-topic-link:hover span:first-child{text-decoration:underline}
.ex-page .ex-topic-text{margin:2px 0 8px;color:var(--ex-muted);font-size:15.5px}
.ex-topic-questions li{border-top:1px solid var(--ex-rule)}
.ex-page .ex-topic-questions a{display:block;padding:10px 0;color:var(--ex-blue);font-size:15.5px;font-weight:700;line-height:1.35;text-decoration:none}
.ex-topic-questions a:hover{text-decoration:underline}
/* More than four questions: the first three show, the rest fold (still links in the markup). */
.ex-topic-more{border-top:1px solid var(--ex-rule)}
.ex-topic-more summary{display:flex;align-items:center;min-height:44px;color:var(--ex-ink);font-size:15px;font-weight:800;cursor:pointer}
.ex-topic-more[open] summary{border-bottom:1px solid var(--ex-rule)}
.ex-topic-more .ex-topic-questions li:first-child{border-top:0}
/* Jump links to the topics, from three topics on */
.ex-jump{margin:-6px 0 22px}
.ex-jump ul{display:flex;flex-wrap:wrap;margin:0;padding:0;list-style:none}
.ex-jump li{margin:0 8px 8px 0}
.ex-jump a{display:inline-flex;align-items:center;min-height:40px;padding:6px 14px;border:2px solid var(--ex-line);border-radius:999px;background:#fff;color:var(--ex-ink);font-size:15px;font-weight:700;text-decoration:none}
.ex-jump a:hover{border-color:var(--ex-blue)}
.ex-topic{scroll-margin-top:16px}

@media (min-width:600px){
  .ex-page{padding-top:18px}
  .ex-codes{grid-template-columns:repeat(9,minmax(0,1fr))}
  .ex-vehicles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ex-answer{padding:18px 22px 20px}
  .ex-answer-text{font-size:20px}
  .ex-tool-body{padding:14px 18px 18px}
  .ex-page .ex-tool-title,.w-plate .ex-tool-title{padding:14px 18px 20px;font-size:20px}
  .ex-tool-title::after{left:18px;right:18px}
  .ex-cta{padding:28px 26px 20px}
  .ex-cta-button{display:inline-flex}
  .ex-qc{padding:20px 22px}
  .ex-cols-3 th,.ex-cols-3 td{padding:10px 12px}
  .ex-cols-3 tbody th{width:68px}
  .ex-cols-3 td+td{width:24%;font-size:14px}
}
