/* Driver Training Info
   Layout: one left-aligned reading column (about 68ch) with a green primary-route
   sign as the only bold object; everything else is white, ink and green links. */
:root {
  --paper: #ffffff;
  --panel: #edf2ee;
  --ink: #17231c;
  --muted: #4b5a51;
  --rule: #d3dcd6;
  --sign: #0d5c3a;
  --sign-edge: #ffffff;
  --sign-ink: #ffffff;
  --route: #ffd100;
  --link: #0a6a41;
  --flag: #b3261e;
  --flag-bg: #fbeceb;
  --ok: #1d7a45;
  --ok-bg: #e6f3eb;
  --focus: #ffd100;
  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-tight: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4.6vw, 3.1rem);
  --radius: 10px;
  --measure: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1712; --panel: #17231c; --ink: #e6ede8; --muted: #a8b7ad; --rule: #2b3a31;
    --sign: #0e6a43; --link: #74d6a3; --flag: #ff8f86; --flag-bg: #3a1916; --ok: #7fd9a6; --ok-bg: #16301f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1712; --panel: #17231c; --ink: #e6ede8; --muted: #a8b7ad; --rule: #2b3a31;
  --sign: #0e6a43; --link: #74d6a3; --flag: #ff8f86; --flag-bg: #3a1916; --ok: #7fd9a6; --ok-bg: #16301f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ink); border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--paper); padding: 8px 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 7px;
  background: var(--sign); box-shadow: inset 0 0 0 2px var(--sign), inset 0 0 0 4px var(--sign-edge);
  color: var(--route); font-family: var(--font-tight); font-weight: 700; font-size: 1.25rem; line-height: 1;
}
.brand-name { font-family: var(--font-tight); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.005em; line-height: 1.1; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--sign); }
@media (max-width: 640px) {
  .site-nav { margin-left: 0; width: 100%; gap: 4px 18px; }
}

/* Type */
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-family: var(--font-tight); font-weight: 700; font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-family: var(--font-tight); font-weight: 700; font-size: var(--step-2); }
h3 { font-weight: 600; font-size: var(--step-1); }
p, ul, ol, dl { margin: 0; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); max-width: 60ch; }
.meta { color: var(--muted); font-size: var(--step--1); }
.small { font-size: var(--step--1); }
.num { font-variant-numeric: tabular-nums; }

/* Page structure */
main { padding-block: 32px 64px; }
.stack > * + * { margin-top: 1.1em; }
.stack-lg > * + * { margin-top: 2.6rem; }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose blockquote { margin: 0; padding-left: 1em; border-left: 3px solid var(--rule); color: var(--muted); }
.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.page-head { display: grid; gap: 14px; max-width: var(--measure); margin-bottom: 28px; }

/* Short answer panel */
.answer { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; max-width: var(--measure); }
.answer p + p { margin-top: 0.6em; }
.answer strong:first-child { display: block; font-family: var(--font-tight); font-size: var(--step-1); margin-bottom: 4px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 32px 48px; align-items: start; padding-block: 12px 8px; }
.hero-copy { display: grid; gap: 18px; align-content: start; padding-top: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 8px; border: 2px solid var(--sign);
  font: 600 1.05rem/1.2 var(--font); text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--sign); color: var(--sign-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--sign); }

/* The route sign */
.sign {
  background: var(--sign); color: var(--sign-ink);
  border-radius: 14px; padding: 6px;
}
.sign-inner { border: 3px solid var(--sign-edge); border-radius: 10px; padding: 16px 18px 14px; display: grid; gap: 12px; }
.sign-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sign-title { font-family: var(--font-tight); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.sign-routes { display: flex; gap: 10px; color: var(--route); font-family: var(--font-tight); font-weight: 700; font-size: 1.1rem; }
.sign-rows { display: grid; gap: 10px; }
.sign-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.28); }
.sign-row dt { font-family: var(--font-tight); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.sign-row dd { margin: 0; font-family: var(--font-tight); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--route); font-variant-numeric: tabular-nums; text-align: right; }
.sign-row .sub { display: block; margin-top: 3px; font-family: var(--font); font-weight: 400; font-size: 0.95rem; color: rgba(255,255,255,0.86); }
.sign-foot { font-size: 0.95rem; color: rgba(255,255,255,0.86); }
.sign-foot a { color: var(--sign-ink); }

/* Sections and lists */
.section { display: grid; gap: 18px; }
.section-head { display: grid; gap: 8px; max-width: var(--measure); }
.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 4px 36px; list-style: none; padding: 0; }
.guide-list li { border-top: 1px solid var(--rule); padding-block: 14px; }
.guide-list a { font-weight: 600; font-size: var(--step-1); text-decoration: none; color: var(--ink); }
.guide-list a:hover { color: var(--link); text-decoration: underline; }
.guide-list p { color: var(--muted); margin-top: 4px; }

.checks { list-style: none; padding: 0; display: grid; gap: 14px; max-width: var(--measure); counter-reset: none; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.tick { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.cross { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--flag-bg); color: var(--flag); font-weight: 700; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-weight: 600; padding-bottom: 8px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: var(--step--1); white-space: nowrap; }
td.money, th.money { text-align: right; white-space: nowrap; }
.fees td:last-child, .fees th:last-child { text-align: right; }
.fees tfoot td { font-weight: 700; border-bottom: 0; }

/* Price index */
.index-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.stat { border-top: 3px solid var(--sign); padding-top: 10px; display: grid; gap: 2px; }
.stat-name { font-weight: 600; }
.stat-value { font-family: var(--font-tight); font-weight: 700; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-note { color: var(--muted); font-size: var(--step--1); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters span { font-weight: 600; margin-right: 4px; }
.chip { border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: 600 0.95rem/1.2 var(--font); cursor: pointer; min-height: 38px; }
.chip[aria-pressed="true"] { background: var(--sign); color: var(--sign-ink); border-color: var(--sign); }

.idx th button { all: unset; cursor: pointer; font: inherit; color: inherit; }
.idx th button:focus-visible { outline: 3px solid var(--focus); }
.idx th[aria-sort="ascending"] button::after { content: " ▲"; font-size: 0.7em; }
.idx th[aria-sort="descending"] button::after { content: " ▼"; font-size: 0.7em; }
.idx .prov { font-weight: 600; }
.idx .prov a { color: var(--ink); }
.idx .loc { display: block; color: var(--muted); font-size: var(--step--1); font-weight: 400; }
.idx .inc { font-size: var(--step--1); color: var(--muted); }
.idx details summary { cursor: pointer; color: var(--link); font-size: var(--step--1); }
.idx details[open] summary { margin-bottom: 8px; }
.idx .evidence { font-size: var(--step--1); display: grid; gap: 6px; max-width: 60ch; }
.idx .evidence li { list-style: none; }
.idx .evidence ul { padding: 0; display: grid; gap: 6px; }
.model { white-space: nowrap; }

.meter { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.meter i { width: 9px; height: 14px; border-radius: 2px; background: var(--rule); }
.meter i.on { background: var(--sign); }

@media (max-width: 760px) {
  .idx thead { display: none; }
  .idx caption { display: block; width: 100%; }
  .idx, .idx tbody, .idx td { display: block; width: 100%; }
  .idx tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; border-top: 1px solid var(--rule); padding-block: 14px; }
  .idx td { border: 0; padding: 0; font-size: 0.98rem; line-height: 1.35; }
  .idx td.c-prov { grid-column: 1 / -1; }
  .idx td.c-prov .prov, .idx td.c-prov .loc { display: block; padding-right: 110px; }
  .idx td.c-price { position: absolute; top: 14px; right: 0; width: auto; text-align: right; font-weight: 700; font-size: 1.25rem; }
  .idx td.c-course { grid-column: 1 / -1; }
  .idx td.c-value { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
  .idx td.c-value .loc { display: inline; }
  .idx td.c-value::before { content: none; }
  .idx td.c-hours strong { font-size: 1.05rem; }
  .idx td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.8rem; }
  .idx td.money { text-align: left; }
  .idx td.c-price.money { text-align: right; }
}

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; }
.field .hint { color: var(--muted); font-size: var(--step--1); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="email"], select {
  font: 1.05rem/1.3 var(--font); color: var(--ink); background: var(--paper);
  border: 2px solid var(--rule); border-radius: 8px; padding: 10px 12px; min-height: 48px; width: 100%; max-width: 360px;
}
input:focus-visible, select:focus-visible { border-color: var(--sign); }
.money-input { display: flex; align-items: center; gap: 6px; }
.money-input span { font-weight: 700; font-size: 1.2rem; }
.options { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.options label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; min-height: 32px; }
.options input { width: 20px; height: 20px; accent-color: var(--sign); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }

/* Checker result */
.result { border: 2px solid var(--sign); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; max-width: 760px; }
.verdict { font-family: var(--font-tight); font-weight: 700; font-size: var(--step-2); line-height: 1.15; }
.verdict-sub { color: var(--muted); }
.range { position: relative; height: 56px; margin: 6px 6px 0; }
.range-track { position: absolute; left: 0; right: 0; top: 22px; height: 10px; border-radius: 5px; background: var(--panel); }
.range-band { position: absolute; top: 22px; height: 10px; border-radius: 5px; background: var(--sign); opacity: 0.35; }
.range-mid { position: absolute; top: 16px; width: 2px; height: 22px; background: var(--sign); }
.range-you { position: absolute; top: 14px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--route); border: 3px solid var(--ink); }
.range-labels { display: flex; justify-content: space-between; font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.flags { list-style: none; padding: 0; display: grid; gap: 10px; }
.flags li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.lead-box { background: var(--panel); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; max-width: 760px; }
.form-msg { font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--flag); }

/* Mini check on home */
.mini { background: var(--panel); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.mini .form-row { align-items: end; }
.mini-out { font-weight: 600; font-size: var(--step-1); }

/* Sources */
.sources { border-top: 1px solid var(--rule); padding-top: 18px; max-width: var(--measure); }
.sources h2 { font-size: var(--step-1); }
.sources ol { padding-left: 1.3em; margin-top: 10px; font-size: var(--step--1); display: grid; gap: 6px; }

/* Footer */
.site-footer { background: var(--panel); margin-top: 24px; }
.site-footer .wrap { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-block: 32px 40px; font-size: var(--step--1); }
.site-footer h2 { font-family: var(--font); font-size: var(--step-0); font-weight: 700; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); }
.site-footer .fine { grid-column: 1 / -1; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.idx .evidence .tick, .idx .evidence .cross { width: 22px; height: 22px; font-size: 0.8rem; margin-right: 6px; vertical-align: middle; }

/* Value model */
.filter-bar { display: grid; gap: 10px; }
.pkg { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; vertical-align: 2px; white-space: nowrap; }
.pkg-full { background: var(--ok-bg); color: var(--ok); }
.pkg-training { background: var(--panel); color: var(--muted); }
.missing { color: var(--flag); font-weight: 600; }
.idx td.c-hours strong { font-size: 1.1rem; }
.value-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.value-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.compare-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; max-width: 760px; }
.quote-card { border: 1.5px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 6px; }
.quote-card .big { font-family: var(--font-tight); font-weight: 700; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.quote-card .per { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.quote-card.win { border-color: var(--sign); border-width: 2px; }
.key-facts { border-left: 0; background: var(--panel); border-radius: var(--radius); padding: 16px 20px; max-width: var(--measure); }
.key-facts h2 { font-size: var(--step-1); margin-bottom: 8px; }
.key-facts ul { padding-left: 1.2em; display: grid; gap: 6px; }
.related { border-top: 1px solid var(--rule); padding-top: 18px; max-width: var(--measure); }
.related h2 { font-size: var(--step-1); margin-bottom: 8px; }
.related ul { padding-left: 1.2em; display: grid; gap: 6px; }

.value-badge { display: inline-flex; align-items: baseline; gap: 1px; min-width: 52px; justify-content: center; padding: 4px 8px; border-radius: 8px; font-family: var(--font-tight); font-weight: 700; font-size: 1.35rem; line-height: 1; background: var(--panel); color: var(--ink); font-variant-numeric: tabular-nums; }
.value-badge span { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.value-badge.v8, .value-badge.v9, .value-badge.v10 { background: var(--sign); color: var(--sign-ink); }
.value-badge.v8 span, .value-badge.v9 span, .value-badge.v10 span { color: rgba(255,255,255,0.8); }
.value-badge.v6, .value-badge.v7 { background: var(--ok-bg); color: var(--ok); }
.value-badge.v0, .value-badge.v1 { background: var(--flag-bg); color: var(--flag); }
.feats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.feat { font-size: 0.75rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }

.verdict-row { display: flex; gap: 16px; align-items: flex-start; }
.big-badge { font-size: 2.2rem; min-width: 84px; padding: 10px 12px; }
.big-badge span { font-size: 0.95rem; }
.value-list .tick, .value-list .cross { font-size: 0.95rem; }
.value-badge.vq { background: var(--flag-bg); color: var(--flag); }
.updated { margin: -4px 0 14px; }
.glossary { display: grid; gap: 0; max-width: var(--measure); }
.glossary > div { border-top: 1px solid var(--rule); padding-block: 14px; display: grid; gap: 4px; scroll-margin-top: 16px; }
.glossary dt { font-weight: 700; font-size: var(--step-1); }
.glossary dd { margin: 0; }
.ask { padding-left: 1.4em; display: grid; gap: 12px; max-width: var(--measure); }
.ask li span { display: block; color: var(--muted); }
@media print {
  .site-header, .site-footer, .related, .breadcrumb, .updated, .skip { display: none !important; }
  body { font-size: 11pt; }
  .checklist-page .prose p.meta { display: block; }
  a { color: inherit; text-decoration: none; }
}

/* graded support */
.support-table { width: 100%; margin: 8px 0 12px; font-size: 0.9rem; border-collapse: collapse; }
.support-table caption { text-align: left; font-weight: 600; padding-bottom: 4px; caption-side: top; }
.support-table th, .support-table td { padding: 6px 8px 6px 0; vertical-align: top; border-top: 1px solid var(--line); text-align: left; }
.support-table th { font-weight: 600; white-space: nowrap; }
.support-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.support-table .loc { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.field-title { font-weight: 700; margin: 0; }
.support-q legend .meta { font-weight: 400; }
@media (max-width: 640px) { .support-table th { white-space: normal; } }
