/* readthemot.uk
 *
 * One stylesheet, served from the origin, no imports and no third party
 * request of any kind. Rule 4 of CLAUDE.md: no GOV.UK visual grammar.
 *
 * The type system carries the argument. Two registers sit beside each other
 * on every page that quotes the record: the raw DVSA line in mono with its
 * defect code, and the reading beside it in a serif at reading size. The
 * serif is there because the product is a written document.
 */

/* ---------------------------------------------------------- typefaces
 * Self hosted, latin subsets only, static weights rather than variable so
 * the browser parses less. The plate face is Source Sans 3 at 900 subset to
 * the thirty seven characters a registration can contain, which is four
 * kilobytes instead of fifteen.
 */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-serif-4-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-600.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}
@font-face {
  font-family: "RTM Plate";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/source-sans-3-900-plate.woff2") format("woff2");
  unicode-range: U+0020, U+0030-0039, U+0041-005A;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2");
}

/* ------------------------------------------------------------- tokens
 * The palette is petrol teal, plate yellow and warm paper. Neutrals are
 * biased green so they read as chosen rather than inherited. Yellow is the
 * single accent and it is spent on the plate and on focus rings.
 */
:root{
  --paper:#f3f4f1;
  --sheet:#ffffff;
  --sheet-2:#eaece7;
  --ink:#131a1a;
  --ink-2:#37423f;
  --muted:#55625e;
  --line:#d3d8d2;
  --line-firm:#b3bcb6;
  --deep:#0f3a3f;
  --deep-2:#17565c;
  --on-deep:#eef5f3;
  --plate:#ffd400;
  --plate-ink:#16181a;
  --oxide:#8a3216;
  --oxide-bg:#f8efe9;
  --moss:#17543f;
  --moss-bg:#e9f1ec;
  --focus:#0f3a3f;

  --serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  --sans:"Source Sans 3",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#0c1112;
    --sheet:#151c1d;
    --sheet-2:#1d2526;
    --ink:#e8ece9;
    --ink-2:#c3cdc9;
    --muted:#95a19d;
    --line:#27302f;
    --line-firm:#3a4544;
    --deep:#9fd5d4;
    --deep-2:#c2e5e3;
    --on-deep:#08181a;
    --plate:#ffd400;
    --plate-ink:#16181a;
    --oxide:#e8a184;
    --oxide-bg:#2a1913;
    --moss:#84cfaf;
    --moss-bg:#14241d;
    --focus:#ffd400;
  }
}
:root[data-theme="dark"]{
  --paper:#0c1112;
  --sheet:#151c1d;
  --sheet-2:#1d2526;
  --ink:#e8ece9;
  --ink-2:#c3cdc9;
  --muted:#95a19d;
  --line:#27302f;
  --line-firm:#3a4544;
  --deep:#9fd5d4;
  --deep-2:#c2e5e3;
  --on-deep:#08181a;
  --plate:#ffd400;
  --plate-ink:#16181a;
  --oxide:#e8a184;
  --oxide-bg:#2a1913;
  --moss:#84cfaf;
  --moss-bg:#14241d;
  --focus:#ffd400;
}

*{box-sizing:border-box}

html{-webkit-text-size-adjust:100%}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17.5px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto}

.wrap{max-width:1040px;margin:0 auto;padding-inline:24px}
.measure{max-width:62ch}

a{color:var(--deep);text-decoration-thickness:1px;text-underline-offset:3px}
:where(a,button,input,summary,[tabindex]):focus-visible{outline:3px solid var(--focus);outline-offset:2px}

.skip{
  position:absolute;left:-9999px;top:0;z-index:10;
  background:var(--deep);color:var(--on-deep);
  padding:10px 16px;border-radius:0 0 5px 0;text-decoration:none;font-weight:600;
}
.skip:focus{left:0}

h1,h2,h3,h4{font-family:var(--serif);font-weight:600;text-wrap:balance;margin:0}
h1{font-size:clamp(33px,5.4vw,50px);line-height:1.08;letter-spacing:-.015em}
h2{font-size:clamp(25px,3.2vw,31px);line-height:1.18;letter-spacing:-.01em}
h3{font-size:21px;line-height:1.3}
h4{font-size:18px;line-height:1.35}
p{margin:0}
ul,ol{margin:0;padding-left:1.15em}
li+li{margin-top:.45em}
b,strong{font-weight:600}

.label{
  font-family:var(--mono);font-size:11.5px;font-weight:600;
  letter-spacing:.15em;text-transform:uppercase;color:var(--muted);
}
.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}

/* ------------------------------------------------------------- plate */
.plate{
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--plate);color:var(--plate-ink);
  border:2px solid #1b1d1f;border-radius:5px;
  font-family:"RTM Plate",var(--sans);
  font-weight:900;letter-spacing:.05em;
  padding:.18em .5em;line-height:1.15;
}
.plate--lg{font-size:34px}
.plate--sm{font-size:17px;border-width:1.5px}

/* ------------------------------------------------------------ chrome */
.masthead{border-bottom:1px solid var(--line);background:var(--paper)}
.masthead .bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:16px;flex-wrap:wrap}
.brand{display:flex;align-items:baseline;gap:10px;text-decoration:none;color:var(--ink)}
.brand b{font-family:var(--serif);font-size:21px;font-weight:600;letter-spacing:-.01em}
.nav{display:flex;gap:22px;flex-wrap:wrap;font-size:15.5px}
.nav a{color:var(--ink-2);text-decoration:none}
.nav a:hover{color:var(--deep);text-decoration:underline}
.nav a[aria-current]{color:var(--deep);text-decoration:underline;text-decoration-thickness:2px}

/* The light and dark switch. theme.js marks <html> with .js before the page
 * paints, so the switch is laid out from the first frame and never shifts the
 * menu; without script it never shows. The icon
 * shows what pressing it gives: the moon in light, the sun in dark. */
/* Wide: name on the left, menu and switch on the right. Narrower: the
 * switch sits beside the name and the menu takes the row below. */
@media (min-width:920px){.masthead .nav{margin-left:auto}}
@media (max-width:919px){
  .masthead .theme{order:1;margin-left:auto}
  .masthead .nav{order:2;flex-basis:100%}
}
/* Wide screens: the masthead stays at the top while the page scrolls, with
 * its own Get a report, so a way in is always in view on a long page. It
 * starts at 1024px, the narrowest width where name, menu, switch and button
 * fit on one row; below 1200px the switch shows its icon only to make room.
 * Narrower, and on a phone where the menu takes two rows, the masthead
 * scrolls away as before and the button is not shown. */
.masthead .bar__cta{display:none}
@media (min-width:1024px){
  html{scroll-padding-top:80px}
  .masthead{position:sticky;top:0;z-index:5}
  .masthead .bar{padding-block:12px;flex-wrap:nowrap}
  .masthead .nav{gap:18px}
  .masthead .bar__cta{display:inline-flex;font-size:15px;padding:.38em 1em;margin-left:-6px;white-space:nowrap}
}
@media (min-width:1024px) and (max-width:1199px){
  .js .masthead .theme{padding:8px 10px}
  .masthead .theme span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
.theme{display:none}
.js .theme{
  display:inline-flex;align-items:center;gap:7px;
  min-height:36px;padding:6px 12px;
  font:inherit;font-size:15px;color:var(--ink-2);
  background:transparent;border:1px solid var(--line-firm);border-radius:999px;
  cursor:pointer;
}
.theme:hover{color:var(--deep);border-color:var(--deep)}
.theme:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.theme svg{flex:none}
.theme-sun{display:none}
.is-dark .theme-sun{display:block}
.is-dark .theme-moon{display:none}
/* On a phone the switch is the icon alone; its name stays for screen readers. */
@media (max-width:479px){
  .js .theme{padding:8px 10px}
  .theme span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

.sitefoot{border-top:1px solid var(--line);margin-top:72px;padding-block:34px 56px;font-size:14.5px;color:var(--muted)}
.sitefoot .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:26px 40px;margin-bottom:28px}
.sitefoot a{color:var(--ink-2);text-decoration:none;display:block;padding-block:3px}
.sitefoot a:hover{color:var(--deep);text-decoration:underline}
.sitefoot .legal{display:flex;flex-direction:column;gap:9px;max-width:76ch}
.sitefoot strong{color:var(--ink-2);font-weight:600}

/* ------------------------------------------------------------ rhythm */
.band{padding-block:56px;border-top:1px solid var(--line)}
.band--first{border-top:0}
.rail{display:grid;grid-template-columns:132px minmax(0,1fr);gap:0 32px}
/* minmax(0,1fr) rather than 1fr: a plain 1fr track keeps an auto minimum, so
 * the 30px registration input forces the whole grid wider than a phone. */
@media (max-width:760px){.rail{grid-template-columns:minmax(0,1fr);gap:14px}}
.rail>.label{padding-top:.55em}
.stack{display:flex;flex-direction:column;gap:20px}
.stack--tight{gap:12px}
.stack--wide{gap:34px}

/* long form prose, for the pages that are mostly reading */
.prose{display:flex;flex-direction:column;gap:18px;max-width:64ch}
.prose h2{margin-top:20px}
.prose h3{margin-top:12px}
.prose ul,.prose ol{display:flex;flex-direction:column;gap:.45em}
.prose li{margin-top:0}

/* --------------------------------------------------------------- hero */
.hero{padding-block:52px 56px}
.hero .lead{font-size:20px;line-height:1.52;color:var(--ink-2);max-width:60ch;margin-top:20px}
.attest{display:inline-flex;align-items:center;gap:10px;margin-bottom:22px;border-left:3px solid var(--plate);padding-left:12px}
.pagehead{padding-block:46px 10px}
.pagehead .lead{font-size:19.5px;line-height:1.52;color:var(--ink-2);max-width:60ch;margin-top:18px}

/* reg capture */
.capture{
  margin-top:34px;background:var(--sheet);border:1px solid var(--line-firm);
  border-radius:6px;padding:22px 22px 20px;max-width:560px;
  display:flex;flex-direction:column;gap:14px;
}
.capture--wide{max-width:none}
.capture label{
  font-family:var(--mono);font-size:11.5px;font-weight:600;
  letter-spacing:.15em;text-transform:uppercase;color:var(--muted);
}
.capture .row{display:flex;gap:12px;flex-wrap:wrap}
input[type=text],input[type=email],textarea{
  background:var(--sheet);color:var(--ink);
  border:1.5px solid var(--line-firm);border-radius:5px;
  font-family:var(--sans);font-size:17px;padding:.6em .7em;
}
input.reg{
  flex:1 1 220px;min-width:0;
  background:var(--plate);color:var(--plate-ink);
  border:2px solid #1b1d1f;
  font-family:"RTM Plate",var(--sans);
  font-size:30px;font-weight:900;letter-spacing:.05em;text-transform:uppercase;
  padding:.22em .4em;
}
input.reg::placeholder{color:#6b5a05;opacity:1}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--sans);font-size:17px;font-weight:600;
  padding:.72em 1.3em;border-radius:5px;border:2px solid transparent;
  text-decoration:none;cursor:pointer;
}
.btn--primary{background:var(--deep);color:var(--on-deep);border-color:var(--deep)}
.btn--primary:hover{background:var(--deep-2);border-color:var(--deep-2)}
.btn--ghost{background:transparent;color:var(--deep);border-color:var(--line-firm)}
.btn--ghost:hover{border-color:var(--deep)}
.note{font-size:14.5px;color:var(--muted);max-width:58ch}

/* ----------------------------------------------------------- evidence */
.evidence{background:var(--deep);color:var(--on-deep);border-radius:6px;padding:30px 30px 28px;display:flex;flex-direction:column;gap:18px}
.evidence p{color:var(--on-deep);max-width:62ch}
.evidence .label{color:var(--plate)}
.tally{display:flex;gap:5px;flex-wrap:wrap}
.tally i{width:24px;height:32px;border-radius:2px;border:1.5px solid rgba(238,245,243,.45)}
.tally i.hit{background:var(--plate);border-color:var(--plate)}
.figure{font-family:var(--serif);font-size:clamp(27px,4vw,37px);line-height:1.16;font-weight:600;letter-spacing:-.015em;max-width:32ch;color:var(--on-deep)}

/* ------------------------------------------ the record and the reading */
.pair{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);
  border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--sheet);
}
@media (max-width:840px){.pair{grid-template-columns:1fr}}
.pair>.side{padding:20px 22px;display:flex;flex-direction:column;gap:12px}
.pair>.side--record{background:var(--sheet-2);border-right:1px solid var(--line)}
@media (max-width:840px){.pair>.side--record{border-right:0;border-bottom:1px solid var(--line)}}
.quote{font-family:var(--mono);font-size:13.5px;line-height:1.5;color:var(--ink);border-left:2px solid var(--line-firm);padding-left:11px}
.quote+.quote{margin-top:10px}
.quote .code{color:var(--muted)}
.quote .when{display:block;color:var(--muted);font-size:11px;letter-spacing:.09em;text-transform:uppercase;margin-bottom:4px}
.pagehead .quote{margin-top:22px}
.reading{font-family:var(--serif);font-size:17.5px;line-height:1.58}
.reading+.reading{margin-top:.7em}
.storytitle{font-family:var(--serif);font-size:20px;font-weight:600;line-height:1.3}

/* --------------------------------------------------------------- steps */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(238px,1fr));gap:28px}
/* Four steps of running prose. Auto-fit gives three and an orphan in the
 * content column, and four tracks would be too narrow to read. Two by two. */
.steps--pairs{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 32px}
@media (max-width:640px){.steps--pairs{grid-template-columns:minmax(0,1fr)}}
.step{display:flex;flex-direction:column;gap:9px;border-top:2px solid var(--deep);padding-top:14px}
.step .n{font-family:var(--mono);font-size:11.5px;font-weight:600;letter-spacing:.15em;color:var(--muted)}
.step p{font-size:16.5px;color:var(--ink-2)}

/* ------------------------------------------------------------- pricing */
.packs{display:grid;grid-template-columns:repeat(auto-fit,minmax(176px,1fr));gap:14px}
.pack{background:var(--sheet);border:1px solid var(--line);border-radius:6px;padding:18px 18px 20px;display:flex;flex-direction:column;gap:9px}
.pack--lead{border:2px solid var(--deep)}
.pack .qty{font-family:var(--mono);font-size:11.5px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:var(--muted)}
.pack .amt{font-family:var(--serif);font-size:34px;font-weight:600;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.pack .each{font-size:14.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.pack p{font-size:14.5px;color:var(--ink-2)}
.pack .btn{margin-top:auto;width:100%;font-size:15.5px;padding:.62em 1em}

.promise{border-left:3px solid var(--moss);background:var(--moss-bg);padding:17px 19px;border-radius:0 5px 5px 0;display:flex;flex-direction:column;gap:9px}
.promise h4{color:var(--moss)}
.promise p{font-size:16px;color:var(--ink-2)}

.legalblock{
  border:1px solid var(--line-firm);border-radius:5px;padding:17px 19px;
  background:var(--sheet);font-size:14.5px;line-height:1.58;color:var(--ink-2);max-width:80ch;
}

/* ----------------------------------------------------------------- faq */
.faq{border-top:1px solid var(--line)}
.faq details{border-bottom:1px solid var(--line);padding-block:16px}
.faq summary{font-family:var(--serif);font-size:19px;font-weight:600;cursor:pointer;list-style:none;display:flex;gap:14px;align-items:baseline}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{content:"+";font-family:var(--mono);font-size:17px;color:var(--deep);font-weight:600}
.faq details[open] summary::before{content:"\2212"}
.faq .answer{padding-top:11px;padding-left:28px;display:flex;flex-direction:column;gap:11px;max-width:66ch}
.faq .answer p{color:var(--ink-2)}

/* -------------------------------------------------------- report sheet */
.sheet-card{background:var(--sheet);border:1px solid var(--line-firm);border-radius:3px;max-width:800px;margin:0 auto}
.sheet-in{padding:34px 40px 44px;display:flex;flex-direction:column;gap:32px}
@media (max-width:620px){.sheet-in{padding:22px 20px 32px}}

.rpt-head{display:flex;flex-direction:column;gap:18px;border-bottom:2px solid var(--ink);padding-bottom:20px}
.rpt-head .top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap}
.rpt-head h2{font-size:clamp(24px,3.4vw,30px)}
.vehicle{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.vehicle .who{display:flex;flex-direction:column;gap:1px}
.vehicle .who b{font-family:var(--serif);font-size:21px;font-weight:600}
.vehicle .who span{font-size:15px;color:var(--muted)}
.stamp{font-family:var(--mono);font-size:11px;line-height:1.75;color:var(--muted)}

.rpt-sec{display:flex;flex-direction:column;gap:15px}
.rpt-sec>h3{font-size:22px;padding-bottom:7px;border-bottom:1px solid var(--line)}
.rpt-sec>h4{font-size:19px}
.rpt-sec p{max-width:70ch}

/* provenance tags. A word and a shape, never colour on its own. */
.tag{
  display:inline-block;font-family:var(--mono);font-size:10px;font-weight:600;
  letter-spacing:.14em;text-transform:uppercase;padding:2px 7px;border-radius:2px;white-space:nowrap;
}
.tag--record{background:var(--ink);color:var(--paper)}
.tag--calculated{background:transparent;color:var(--ink-2);border:1.5px solid var(--line-firm)}
.tag--assessment{background:var(--deep);color:var(--on-deep)}
.tag--reported{background:transparent;color:var(--oxide);border:1.5px dotted var(--oxide)}

.legend{display:grid;grid-template-columns:repeat(auto-fit,minmax(232px,1fr));gap:14px 24px;background:var(--sheet-2);border-radius:4px;padding:18px 20px}
.legend .item{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.legend .item p{font-size:14px;line-height:1.5;color:var(--ink-2)}

.verdict{border:1px solid var(--oxide);border-left-width:5px;background:var(--oxide-bg);border-radius:0 4px 4px 0;padding:18px 20px;display:flex;flex-direction:column;gap:11px}
.verdict h4{color:var(--oxide);font-size:20px}
.verdict p{font-family:var(--serif);font-size:17.5px;line-height:1.56}

.finding{display:flex;flex-direction:column;gap:11px;padding-block:19px;border-bottom:1px solid var(--line)}
.finding:last-child{border-bottom:0;padding-bottom:0}
.finding h4{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;font-size:18.5px}
.finding .calc{font-family:var(--mono);font-size:13px;color:var(--ink-2);background:var(--sheet-2);border-radius:3px;padding:9px 12px;line-height:1.6}

.sheet-wrap{padding-bottom:24px}

table{width:100%;border-collapse:collapse;font-size:15px}
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:4px}
/* A table caption defaults to centred. These are labels for the table under
 * them, so they read as headings rather than titles. */
.tablewrap caption{text-align:left;padding:9px 13px}
th{
  text-align:left;font-family:var(--mono);font-size:10px;font-weight:600;
  letter-spacing:.13em;text-transform:uppercase;color:var(--muted);
  background:var(--sheet-2);padding:9px 13px;border-bottom:1px solid var(--line-firm);
}
td{padding:9px 13px;border-bottom:1px solid var(--line);vertical-align:top;font-variant-numeric:tabular-nums}
tbody tr:last-child td{border-bottom:0}
td.num,th.num{text-align:right;white-space:nowrap}

.chart{width:100%;height:auto;display:block}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart .axis{stroke:var(--line-firm);stroke-width:1}
.chart .trace{fill:none;stroke:var(--deep);stroke-width:2.5;stroke-linejoin:round}
.chart .trace-last{fill:none;stroke:var(--oxide);stroke-width:4;stroke-linecap:round}
.chart .dot{fill:var(--deep)}
.chart .dot-last{fill:var(--oxide)}
.chart .expiry{stroke:var(--oxide);stroke-width:1.5;stroke-dasharray:3 4}
.chart .trend{stroke:var(--line-firm);stroke-width:1.5;stroke-dasharray:2 5}
.chart text{font-family:var(--mono);font-size:10.5px;fill:var(--muted)}
.chart text.val{fill:var(--ink);font-weight:600;font-size:11px}
.chart text.flag{fill:var(--oxide);font-weight:600}

.favour{border-left:3px solid var(--moss);background:var(--moss-bg);padding:17px 19px;border-radius:0 4px 4px 0;display:flex;flex-direction:column;gap:11px}
.favour h4{color:var(--moss)}
.gaps{border:1px dashed var(--line-firm);border-radius:4px;padding:17px 20px;display:flex;flex-direction:column;gap:12px}
.sources{font-family:var(--mono);font-size:11.5px;line-height:1.85;color:var(--muted)}

.callout{background:var(--sheet);border:1px solid var(--line-firm);border-radius:6px;padding:22px 24px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.callout .row{display:flex;gap:12px;flex-wrap:wrap}

/* A placeholder that has to be filled before publication. Deliberately ugly.
 * build.mjs refuses a PUBLISH build while any of these survive. */
.todo{
  background:var(--oxide-bg);color:var(--oxide);
  border-bottom:2px dotted var(--oxide);
  font-family:var(--mono);font-size:.82em;padding:1px 4px;
}

/* ------------------------------------------------------------ guides */
.crumb{
  font-family:var(--mono);font-size:11.5px;font-weight:600;letter-spacing:.13em;
  text-transform:uppercase;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap;
}
.crumb a{color:var(--muted);text-decoration:none}
.crumb a:hover{color:var(--deep);text-decoration:underline}
.crumb span[aria-hidden]{color:var(--line-firm)}

/* The guide list. A rule per item rather than a card, because these are
 * documents in a contents page and not products in a shop. */
.guidelist{display:flex;flex-direction:column;gap:0;border-top:1px solid var(--line)}
.guidelist article{
  border-bottom:1px solid var(--line);padding-block:22px;
  display:grid;grid-template-columns:112px minmax(0,1fr);gap:0 24px;align-items:baseline;
}
@media (max-width:700px){.guidelist article{grid-template-columns:minmax(0,1fr);gap:8px}}
.guidelist .n{font-family:var(--mono);font-size:11.5px;font-weight:600;letter-spacing:.13em;color:var(--muted)}
.guidelist h2{font-size:23px;margin-bottom:7px}
.guidelist h2 a{color:var(--ink);text-decoration:none}
.guidelist h2 a:hover{color:var(--deep);text-decoration:underline}
.guidelist p{color:var(--ink-2);max-width:62ch;font-size:16.5px}
.guidelist .mins{font-family:var(--mono);font-size:11.5px;color:var(--muted);margin-top:7px}

/* A guide's own prose. Wider leading than the marketing pages, because these
 * are read rather than scanned. */
.guide{display:flex;flex-direction:column;gap:19px;max-width:66ch;line-height:1.68}
.guide h2{font-size:26px;margin-top:22px}
.guide h3{font-size:19.5px;margin-top:10px}
.guide ul,.guide ol{display:flex;flex-direction:column;gap:.5em}
.guide li{margin-top:0}
.guide .quote{font-size:13.5px}
.guide .aside{
  border-left:3px solid var(--line-firm);background:var(--sheet);
  padding:16px 18px;border-radius:0 4px 4px 0;display:flex;flex-direction:column;gap:10px;
}
.guide .aside h3{margin-top:0;font-size:18px}
.guide .aside p{font-size:16px;color:var(--ink-2)}

.related{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px 26px}
.related .item{display:flex;flex-direction:column;gap:6px;border-top:2px solid var(--deep);padding-top:12px}
.related .item a{font-family:var(--serif);font-size:18px;font-weight:600;text-decoration:none;color:var(--ink)}
.related .item a:hover{color:var(--deep);text-decoration:underline}
.related .item p{font-size:15px;color:var(--muted)}

/* contact and other definition style lists */
.deflist{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px 32px}
.deflist .item{display:flex;flex-direction:column;gap:5px;border-top:2px solid var(--deep);padding-top:12px}
.deflist .item p{font-size:16px;color:var(--ink-2)}

@media print{
  body{background:#fff;color:#000}
  .masthead,.sitefoot,.noprint,.skip{display:none}
  .sheet-card{border:0;max-width:none}
  .sheet-in{padding:0}
  .finding,.rpt-sec{break-inside:avoid}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:11px;color:#555}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Words for screen readers only, such as a link saying it opens a new tab. */
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Sample label (Ruling 67) and the inline links in the footer's legal lines */
.samplebar{
  margin-top:28px;background:var(--sheet);border:1.5px solid var(--deep);
  border-radius:6px;padding:12px 16px;font-size:16px;line-height:1.5;color:var(--ink-2);
}
.samplebar b{
  font-family:var(--mono);font-size:13px;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--deep);margin-right:10px;
}
.hero .ailine{margin-top:22px}
.sitefoot .legal a{display:inline;padding-block:0;text-decoration:underline}

/* ------------------------------------------------------- sample pages
 * The first pages of a sample report, as images of the real report the hub
 * makes. Each links to the whole PDF. Two across where there is room. */
.pages{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px;max-width:1100px;margin:0 auto}
.pages a{display:block;border:1px solid var(--line-firm);border-radius:3px;background:#fff;line-height:0}
.pages a:focus-visible{outline:3px solid var(--plate);outline-offset:3px}
.pages img{width:100%;height:auto}

/* The three samples side by side at the top of /sample-report/, so a reader
 * sees there are three before scrolling past the first. One column on a
 * phone. The cover is decorative here: the buttons and heading name it. */
.trio{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:28px}
.sample{display:flex;flex-direction:column;gap:10px;background:var(--sheet);border:1px solid var(--line-firm);border-radius:6px;padding:16px 16px 18px}
.sample__cover{display:block;line-height:0;border:1px solid var(--line);border-radius:3px;background:#fff;overflow:hidden;aspect-ratio:1075/760}
.sample__cover img{width:100%;height:auto}
.sample__cover:focus-visible{outline:3px solid var(--plate);outline-offset:3px}
.sample__verdict{align-self:flex-start;font-family:var(--sans);font-size:14px;font-weight:600;border-radius:4px;padding:2px 9px;border-left:4px solid}
.sample__verdict--ask{background:var(--oxide-bg);color:var(--oxide)}
.sample__verdict--fine{background:var(--moss-bg);color:var(--moss)}
.sample h3{font-size:21px}
.sample p{font-size:15.5px;color:var(--ink-2)}
.sample .row{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:4px}
.sample .btn{font-size:15.5px;padding:.55em 1.1em}
.sample__more{font-size:15px;color:var(--deep)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ------------------------------------------------------------- figures
 * Drawn in the page, not pictures, so they follow the theme and add no
 * request. The flow keeps its own width so its lettering stays readable on
 * a phone; the AI step is the one box in the accent, because it is the one
 * step allowed to be creative.
 */
.flow{margin:6px 0 4px;max-width:440px}
.flow svg{display:block;width:100%;height:auto;color:var(--ink-2);overflow:visible}
.flow figcaption,.tline figcaption{font-size:15px;line-height:1.5;color:var(--muted);margin-top:14px;max-width:62ch}
.fl-box{fill:var(--sheet);stroke:var(--line-firm);stroke-width:1}
.fl-box--ai{fill:var(--deep);stroke:var(--deep)}
.fl-t{font-family:var(--sans);font-weight:600;font-size:13.5px;fill:var(--ink)}
.fl-s{font-family:var(--sans);font-size:11.5px;fill:var(--muted)}
.fl-tag{font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:.12em;fill:var(--muted)}
.fl-on{fill:var(--on-deep)}
.fl-line{stroke:currentColor;stroke-width:1.3;fill:none}
.fl-back{stroke:var(--deep);stroke-dasharray:4 3}
.fl-head-back{fill:var(--deep)}
.fl-backlabel{fill:var(--deep)}
.fl-drop{stroke:var(--oxide)}
.fl-head-drop{fill:var(--oxide)}
.fl-droptext{fill:var(--oxide)}

.tline{margin:6px 0 0}
.tline ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--line-firm);display:flex;flex-direction:column;gap:10px}
.tline li{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:start;gap:12px;position:relative;padding-left:14px}
.tline li::before{content:"";position:absolute;left:-6px;top:7px;width:10px;height:10px;border-radius:50%;background:var(--paper);border:2px solid var(--deep)}
.tline__year{font-family:var(--mono);font-size:13.5px;font-weight:600;color:var(--ink-2);line-height:24px}
.tline__chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{font-family:var(--mono);font-size:12.5px;line-height:22px;padding:0 9px;border-radius:3px;background:var(--oxide-bg);color:var(--oxide);border:1px solid var(--oxide)}
.chip--vague{background:transparent;border-style:dashed}
.chip--none{background:transparent;color:var(--muted);border:1px dashed var(--line-firm)}

/* The mileage chart. One series, so no legend: the caption names it. The
 * last two years are in oxide because that slope is the finding; the labels
 * stay in text colours. Each reading has a hover title on a wider hit area,
 * and the same numbers sit in a table under it.
 */
.miles{margin:6px 0 4px;max-width:480px}
.miles svg{display:block;width:100%;height:auto;overflow:visible}
.miles figcaption{font-size:15px;line-height:1.5;color:var(--muted);margin-top:12px;max-width:62ch}
.mi-grid{stroke:var(--line);stroke-width:1}
.mi-base{stroke:var(--line-firm)}
.mi-tick{stroke:var(--line-firm);stroke-width:1}
.mi-ax{font-family:var(--mono);font-size:11.5px;fill:var(--muted)}
.mi-line{fill:none;stroke:var(--deep);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.mi-recent{stroke:var(--oxide)}
.mi-none{fill:none;stroke:var(--line-firm);stroke-width:1.5;stroke-dasharray:4 4}
.mi-dot{fill:var(--deep);stroke:var(--paper);stroke-width:2}
.mi-dot--recent{fill:var(--oxide)}
.mi-hit{fill:transparent}
.mi-pt:hover .mi-dot{stroke:var(--ink)}
.mi-rate{font-family:var(--sans);font-weight:600;font-size:14px;fill:var(--ink)}
.mi-note{font-family:var(--sans);font-size:12.5px;fill:var(--muted)}
.mi-val{font-family:var(--mono);font-size:12px;font-weight:600;fill:var(--ink-2)}
.mi-table{margin-top:10px;font-size:15px}
.mi-table summary{cursor:pointer;color:var(--deep);width:max-content;max-width:100%}
.mi-table table{margin-top:8px;font-size:14px}
.mi-table th,.mi-table td{padding:4px 10px 4px 0;text-align:left;border-bottom:1px solid var(--line)}
.mi-table .num{text-align:right;font-variant-numeric:tabular-nums}

/* A picture. Only one Julian picked, and labelled small when it was made with
 * AI (docs/image-prompts.md); never placed beside a record as if it were that
 * car.
 */
.photo{margin:26px 0 0;max-width:900px}
.photo img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:6px;background:var(--line)}
.photo figcaption{font-size:13px;color:var(--muted);margin-top:8px}

/* The home hero shows the product: the first two pages of a real sample
 * report, stacked. Beside the text on a wide screen; under the start box on
 * a phone, smaller, so the heading still comes first.
 */
.hero--product{display:grid;grid-template-columns:minmax(0,1fr);gap:40px}
.hero__report{margin:0;justify-self:center;width:min(100%,320px)}
.hero__pages{display:block;position:relative;aspect-ratio:760/1075;margin:0 18px 0 14px}
.hero__page{position:absolute;inset:0;width:100%;height:auto;border-radius:4px;background:#fff;box-shadow:0 1px 2px rgb(0 0 0 / .08),0 12px 32px rgb(15 58 63 / .18)}
.hero__page--back{transform:translate(18px,14px) rotate(2.5deg);opacity:.96}
.hero__page--far{transform:translate(-14px,22px) rotate(-5deg);opacity:.92}
.hero__page--front{transform:rotate(-1.2deg);transition:transform .2s ease}
.hero__pages:hover .hero__page--front{transform:rotate(0deg) translateY(-3px)}
.hero__report figcaption{font-size:13.5px;color:var(--muted);margin-top:30px;text-align:center}
@media (min-width:980px){
  .hero--product{grid-template-columns:minmax(0,1fr) 340px;gap:64px;align-items:start}
  .hero__report{width:100%;margin-top:34px}
}
@media (prefers-reduced-motion:reduce){.hero__page--front{transition:none}}

/* On a wide screen a page picture sits beside its heading, a third of the
 * width, rather than under it across the column (Julian, 17 November 2026:
 * smaller). On a phone it stays under the heading.
 */
@media (min-width:980px){
  .pagehead:has(> .photo){display:grid;grid-template-columns:minmax(0,1fr) 400px;grid-template-rows:auto auto 1fr;column-gap:56px;align-items:start}
  .pagehead:has(> .photo) > :not(.photo){grid-column:1}
  .pagehead > .photo{grid-column:2;grid-row:1 / span 3;margin:6px 0 0;max-width:none}
  .pagehead > .photo img{aspect-ratio:4/3}
}

/* ------------------------------------------------------ model pages
 * Car model pages (/guides/models/): figures first, words second. Key
 * numbers as tiles, a short list in place of paragraphs, a chart with a
 * caption under each heading, checks as cards, the method folded away.
 *
 * Chart colours were checked with the dataviz validator (26 November 2026).
 * The model is a teal, "all cars" a neutral grey that is also dashed and
 * labelled, so neither reading depends on colour alone. Separation passes
 * for every type of colour vision: ΔE 24 light, 26 dark.
 */
:root{--c-model:#17565c;--c-base:#8b9692}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--c-model:#7cc6c4;--c-base:#5f6b68}}
:root[data-theme="dark"]{--c-model:#7cc6c4;--c-base:#5f6b68}

.mh .crumb{margin-bottom:14px}
.mh .lead{max-width:56ch}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-top:30px}
.tile{background:var(--sheet);border:1px solid var(--line);border-radius:8px;padding:18px 20px 16px;display:flex;flex-direction:column;gap:6px}
.tile .label{font-size:10.5px}
.tile .big{font-family:var(--serif);font-weight:600;font-size:40px;line-height:1;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.tile .vs{font-size:14.5px;color:var(--muted)}
.tile .vs b{color:var(--ink-2)}
.tile--flag{border-top:3px solid var(--oxide)}

.inshort{background:var(--sheet);border:1px solid var(--line-firm);border-radius:8px;padding:20px 24px}
.inshort ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:10px;margin-top:10px}
.inshort li{margin:0;padding-left:22px;position:relative;font-size:17px;line-height:1.5}
.inshort li::before{content:"";position:absolute;left:2px;top:.62em;width:8px;height:8px;border-radius:2px;background:var(--c-model)}

.mfig{display:flex;flex-direction:column;gap:12px;max-width:640px}
.mfig h2{font-size:clamp(22px,2.6vw,26px)}
.mfig .cap{color:var(--ink-2);font-size:16.5px;line-height:1.6;max-width:62ch}
.key{display:flex;gap:18px;flex-wrap:wrap;font-size:14px;color:var(--ink-2)}
.key span{display:inline-flex;align-items:center;gap:8px}
.key svg{flex:none}
.sw-model{stroke:var(--c-model);stroke-width:2.5}
.sw-base{stroke:var(--c-base);stroke-width:2.5;stroke-dasharray:5 4}
.sw-dot-model{fill:var(--c-model)}
.sw-dot-base{fill:var(--c-base)}

.mc{width:100%;height:auto;display:block;overflow:visible}
.mc .g{stroke:var(--line);stroke-width:1}
.mc .g0{stroke:var(--line-firm);stroke-width:1}
.mc .ax{font-family:var(--mono);font-size:11.5px;fill:var(--muted)}
.mc .l-model{fill:none;stroke:var(--c-model);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.mc .l-base{fill:none;stroke:var(--c-base);stroke-width:2;stroke-dasharray:5 4;stroke-linecap:round}
.mc .d-model{fill:var(--c-model);stroke:var(--paper);stroke-width:2}
.mc .d-base{fill:var(--c-base);stroke:var(--paper);stroke-width:2}
.mc .end{font-family:var(--sans);font-size:12.5px;font-weight:600;fill:var(--ink)}
.mc .end-base{font-family:var(--sans);font-size:12.5px;fill:var(--muted)}
.mc .hit{fill:transparent}
.mc .col:hover .hl{stroke:var(--line-firm)}
.mc .hl{stroke:transparent;stroke-width:1}
.mc .rl{font-family:var(--sans);font-size:13px;fill:var(--ink-2)}
.mc .rv{font-family:var(--mono);font-size:12px;font-weight:600;fill:var(--ink)}
.mc .rb{font-family:var(--mono);font-size:11px;fill:var(--muted)}
.mc .rf{font-family:var(--sans);font-size:11.5px;font-weight:600;fill:var(--oxide)}
.mc .track,.db .track{stroke:var(--line);stroke-width:6;stroke-linecap:round}
.db{list-style:none;padding:0;display:flex;flex-direction:column;gap:14px;max-width:560px}
.db li{margin:0;display:flex;flex-direction:column;gap:4px}
.db .top{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.db .name{font-size:15.5px;color:var(--ink)}
.db .val{font-family:var(--mono);font-size:14px;font-weight:600;color:var(--ink);white-space:nowrap}
.db .val span{font-weight:400;color:var(--muted);font-size:13px;margin-left:4px}
.db svg{display:block;width:100%;height:16px;overflow:visible}
.db .gap{stroke:var(--line-firm);stroke-width:2}
.db .d-model{fill:var(--c-model);stroke:var(--paper);stroke-width:2}
.db .d-base{fill:var(--c-base);stroke:var(--paper);stroke-width:2}
.db .flag{font-size:13.5px;font-weight:600;color:var(--oxide)}
.db .less{font-size:13.5px;color:var(--muted)}
.mc .gap{stroke:var(--line-firm);stroke-width:2}
.mc .row:hover .track{stroke:var(--line-firm)}

.mfig details,.method{font-size:15px}
.mfig summary,.method summary{cursor:pointer;color:var(--deep);width:max-content;max-width:100%}
.mfig details .tablewrap{margin-top:10px}
.method{border:1px solid var(--line);border-radius:8px;padding:14px 18px;background:var(--sheet)}
.method p{margin-top:10px;color:var(--ink-2);line-height:1.6;max-width:66ch}

.checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.check{border:1px solid var(--line);border-radius:8px;padding:16px 18px;display:flex;flex-direction:column;gap:8px;background:var(--sheet)}
.agechip{align-self:flex-start;font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--deep);border:1px solid var(--line-firm);border-radius:999px;padding:3px 10px}
.check p{font-size:15.5px;line-height:1.55;color:var(--ink-2)}

/* the car models index */
.models{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.model{border:1px solid var(--line);border-radius:8px;background:var(--sheet);padding:18px 20px;display:flex;flex-direction:column;gap:10px;position:relative}
.model:hover{border-color:var(--deep)}
.model h2{font-size:21px}
.model h2 a{color:var(--ink);text-decoration:none}
.model h2 a::after{content:"";position:absolute;inset:0;border-radius:8px}
.model h2 a:hover{color:var(--deep);text-decoration:underline}
.model .pf{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted)}
.model .pf b{font-family:var(--serif);font-size:26px;color:var(--ink);font-variant-numeric:tabular-nums}
.model .watch{font-size:15px;color:var(--ink-2);line-height:1.5}

/* search, in the masthead and on /search/ */
.searchlink{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:6px 12px;font-size:15px;color:var(--ink-2);text-decoration:none;border:1px solid var(--line-firm);border-radius:999px}
.searchlink:hover,.searchlink[aria-current]{color:var(--deep);border-color:var(--deep)}
.searchlink svg{flex:none}
/* With seven menu items, search and the theme switch are icons at every
 * width, their names kept for screen readers, so the masthead stays one row
 * from 1024px. */
.masthead .nav a{white-space:nowrap}
.searchlink{padding:8px 10px}
.searchlink span,.masthead .theme span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.js .masthead .theme{padding:8px 10px}
@media (max-width:919px){.masthead .searchlink{order:1;margin-left:auto}.masthead .theme{margin-left:0}}
.mfig .mc{max-width:500px}
@media (min-width:1024px){
  .masthead .bar{gap:14px}
  .masthead .nav{flex-wrap:nowrap;gap:16px;font-size:15px}
}
.find{display:flex;flex-direction:column;gap:10px;max-width:640px;margin-top:26px}
.find label{font-weight:600}
.find input{font:inherit;font-size:19px;padding:12px 16px;border:1.5px solid var(--line-firm);border-radius:8px;background:var(--sheet);color:var(--ink);width:100%}
.find input:focus-visible{border-color:var(--deep)}
.find .hint{font-size:14.5px;color:var(--muted)}
.results{display:flex;flex-direction:column;gap:0;max-width:720px;list-style:none;padding:0}
.results li{margin:0;padding-block:18px;border-top:1px solid var(--line)}
.results a{font-family:var(--serif);font-size:20px;font-weight:600;text-decoration:none;color:var(--ink)}
.results a:hover{color:var(--deep);text-decoration:underline}
.results .where{font-family:var(--mono);font-size:11.5px;color:var(--muted);margin-top:4px}
.results p{margin-top:6px;color:var(--ink-2);font-size:16px;line-height:1.55}
.results mark{background:var(--plate);color:var(--plate-ink);border-radius:2px;padding:0 2px}
.status{font-size:15px;color:var(--muted);min-height:1.5em}
.regnote{border-left:3px solid var(--plate);padding:4px 0 4px 14px;max-width:62ch}
@media (max-width:640px){
  .tiles{grid-template-columns:1fr 1fr;gap:10px}
  .tile{padding:14px 14px 12px}
  .tile .big{font-size:30px}
  .tile .vs{font-size:13.5px}
  .tile--flag{grid-column:1 / -1}
}

/* Advisory guides: tables of the tester's wording. Long quoted phrases may
 * hyphenate so a three column table fits a phone without scrolling. */
table.words td{hyphens:auto;-webkit-hyphens:auto}
table.words td:first-child{font-weight:600;color:var(--ink);min-width:8.5em}
/* On a phone each row of a wording table becomes a small card: the part as
 * its heading, then each column's words under that column's own label. */
@media (max-width:560px){
  .tablewrap:has(table.words){border:0;overflow:visible}
  table.words,table.words tbody,table.words tr,table.words td{display:block;width:100%}
  table.words thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  table.words caption{display:block;padding:0 0 8px}
  table.words tr{border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin-bottom:10px;background:var(--sheet)}
  table.words td{border:0;padding:3px 0}
  table.words td:first-child{font-family:var(--serif);font-size:17px;padding-bottom:6px}
  table.words td:not(:first-child)::before{content:attr(data-label);display:block;font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-top:6px}
}

/* Model photos (27 November 2026): Wikimedia Commons pictures, cut to 2:1
 * because the cars fill the width of the originals. On a model page the
 * photo sits beside the heading on a wide screen and the figure tiles run
 * the full width under both; on the car models page each card leads with it. */
.pagehead.mh > .photo img{aspect-ratio:2/1}
@media (min-width:980px){
  .pagehead.mh > .photo img{aspect-ratio:2/1}
  .pagehead.mh:has(> .photo) > .tiles{grid-column:1 / -1}
}
.photo figcaption a{color:var(--muted)}
.model img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;border-radius:5px;background:var(--line)}
.credits{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted)}
.credits li{margin:0}
.credits a{color:var(--muted)}

/* Single-value bar rows (the MOT statistics page): the same row layout as the
 * model pages' dot rows, with a filled bar instead of two dots. */
.db .bar{stroke:var(--c-model);stroke-width:6;stroke-linecap:round}
/* Tables with many columns (class "many") become cards up to 900px, since
 * seven or eight columns do not fit a tablet either. */
@media (max-width:900px){
  .tablewrap:has(table.words.many){border:0;overflow:visible}
  table.words.many,table.words.many tbody,table.words.many tr,table.words.many td{display:block;width:100%}
  table.words.many thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  table.words.many caption{display:block;padding:0 0 8px}
  table.words.many tr{border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin-bottom:10px;background:var(--sheet)}
  table.words.many td{border:0;padding:3px 0}
  table.words.many td:first-child{font-family:var(--serif);font-size:17px;padding-bottom:6px}
  table.words.many td:not(:first-child)::before{content:attr(data-label);display:block;font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-top:6px}
}

/* ----------------------------------------------------------------- fold
 * Source detail folded under a short summary, so a page that leans on
 * outside sources reads cleanly and the detail is one tap away. A native
 * details element: no script, works with the keyboard and a screen reader. */
details.fold{border-block:1px solid var(--line);padding-block:11px}
details.fold + details.fold{border-top:0}
details.fold summary{cursor:pointer;list-style:none;display:flex;gap:10px;align-items:baseline;color:var(--deep);font-weight:600;font-size:15.5px}
details.fold summary::-webkit-details-marker{display:none}
details.fold summary::before{content:"+";font-family:var(--mono);font-weight:600;width:1ch}
details.fold[open] summary::before{content:"\2212"}
details.fold > :not(summary){margin-top:10px;margin-left:calc(1ch + 10px);font-size:15px;color:var(--ink-2);max-width:66ch}
details.fold ul{padding-left:1.1em;display:flex;flex-direction:column;gap:6px}

/* ------------------------------------------------------------- compare
 * /compare/ and the home section: a picture of the portal's compare page,
 * shown whole (never cropped, it is a record of what the page shows), and
 * a row of buttons outside the hero's capture box.
 */
.shot{margin:0;max-width:900px}
.shot img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px;background:var(--sheet)}
.shot figcaption{font-size:13px;color:var(--muted);margin-top:8px}
.shot figcaption a{color:var(--muted)}
.row.cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}

/* ----------------------------------------------------------------- guides index
 * /guides/ starts from what the reader has in hand: a line from a record, a
 * car, a buying situation, or nothing yet. Four doors, then the sections they
 * jump to, each a grid of cards in the site's related-link style.
 */
.doors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:30px}
@media (max-width:900px){.doors{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:460px){.doors{grid-template-columns:minmax(0,1fr)}}
.door{display:flex;flex-direction:column;gap:6px;background:var(--sheet);border:1px solid var(--line);border-top:3px solid var(--deep);border-radius:8px;padding:16px 18px 15px;text-decoration:none;color:var(--ink)}
.door:hover{border-color:var(--deep)}
.door .label{font-size:10.5px}
.door b{font-family:var(--serif);font-size:19px;font-weight:600;line-height:1.25}
.door span{font-size:14.5px;color:var(--muted);line-height:1.45}
.door:hover b{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.related .item .mins{font-family:var(--mono);font-size:11px;color:var(--muted)}
.namelist{list-style:none;padding:0;columns:4 11em;column-gap:26px}
.namelist li{margin:0 0 8px;break-inside:avoid;font-size:16px}
.namelist li a{color:var(--ink);text-decoration:none}
.namelist li a:hover{color:var(--deep);text-decoration:underline}
.namelist li span{font-family:var(--mono);font-size:12px;color:var(--muted);margin-left:6px;white-space:nowrap}
.sectionhead{display:flex;justify-content:space-between;align-items:baseline;gap:18px;flex-wrap:wrap}
.sectionhead h2{font-size:clamp(23px,2.8vw,27px)}
.sectionhead a{font-size:15px;white-space:nowrap}

/* ----------------------------------------------------------------- area table
 * /guides/mot-pass-rates-by-area/: 118 postcode areas in six columns. It
 * stays a table at every width, because the point is to run an eye down a
 * column, so on a phone the type and the padding tighten instead of each
 * row becoming a card. The headings stay in view while the rows scroll, and
 * a row reached from the list of postcode letters is marked.
 */
.jump{margin-block:20px 14px;font-size:16.5px;color:var(--ink-2);max-width:62ch}
.stack>.row{display:flex;gap:12px;flex-wrap:wrap}
.cares{list-style:none;padding:0;display:flex;flex-direction:column;gap:14px;max-width:64ch}
.cares li{margin:0;padding-left:16px;border-left:3px solid var(--line-firm);font-size:16.5px;line-height:1.55;color:var(--ink-2)}
.cares b{color:var(--ink)}
details.fold ul.codes{list-style:none;padding:0;margin-left:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:6px;max-width:none}
.codes li{margin:0}
.codes a{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:34px;padding:2px 6px;font-family:var(--mono);font-size:13px;font-weight:600;color:var(--deep);text-decoration:none;background:var(--sheet);border:1px solid var(--line-firm);border-radius:5px}
.codes a:hover{border-color:var(--deep)}
/* The wrap must not be a scroll box, or the headings cannot stay in view. */
.tablewrap--fit{overflow:visible}
table.league{font-size:15.5px;line-height:1.4}
table.league th,table.league td{padding-block:7px}
table.league thead{position:sticky;top:0;z-index:1}
table.league thead th{border-bottom:0;box-shadow:inset 0 -1px 0 var(--line-firm);vertical-align:bottom}
table.league thead th[colspan]{box-shadow:none;padding-bottom:0;text-align:center;color:var(--ink-2)}
table.league tbody th{font-family:var(--sans);font-size:inherit;font-weight:600;letter-spacing:0;text-transform:none;color:var(--ink);background:none;border-bottom:1px solid var(--line);scroll-margin-top:60px}
table.league tbody tr:last-child th{border-bottom:0}
table.league .code{font-family:var(--mono);font-size:12px;font-weight:400;color:var(--muted);margin-left:5px}
table.league td.rk{color:var(--muted)}
/* A rule between the two groups of columns: every car, then cars of one age. */
table.league td:nth-child(5),table.league thead tr:first-child th:nth-child(3),table.league thead tr:last-child th:nth-child(4){border-left:1px solid var(--line)}
table.league tbody tr:has(th:target)>*{background:var(--sheet-2)}
table.league tbody th:target{box-shadow:inset 4px 0 0 var(--deep)}
/* From 1024px the masthead stays at the top, so the headings sit under it. */
@media (min-width:1024px){table.league thead{top:64px}table.league tbody th{scroll-margin-top:44px}}
@media (max-width:560px){
  table.league{font-size:13.5px}
  table.league th,table.league td{padding:7px 5px}
  table.league thead th{font-size:9px;letter-spacing:.04em;line-height:1.35;white-space:normal}
  table.league tbody th{padding-left:9px;overflow-wrap:break-word;scroll-margin-top:92px}
  table.league td:last-child,table.league thead tr:last-child th:last-child{padding-right:9px}
  table.league .code{font-size:11px;margin-left:2px}
  .tablewrap--fit caption{padding:8px 9px}
}
/* Narrower than any current phone: let the table scroll rather than the page. */
@media (max-width:359px){.tablewrap--fit{overflow-x:auto}}
