/* Wrenchmark: "Friendly verdict" style. Mobile first. */

/* Plus Jakarta Sans (SIL Open Font License, see fonts/OFL.txt), served from this site so no
   visitor data goes to a font service. One variable file covers every weight. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --hero: #0B3B3C;
  --hero-text: #CFE3E2;
  --ink: #13201F;
  --muted: #4C5958;
  --surface: #FFFFFF;
  --soft: #F2F5F4;
  --line: #DCE3E2;
  --accent: #C2410C;
  --accent-ink: #FFFFFF;
  --accent-soft: #FFF4EC;
  --link: #0B5E58;
  /* chart series, validated for colour-blind separation on --soft and white */
  --s1: #00897B;
  --s2: #6359D6;
  /* status */
  --good: #166534; --good-bg: #DCFCE7;
  --neutral: #334155; --neutral-bg: #E2E8F0;
  --warn: #92400E; --warn-bg: #FEF3C7;
  --bad: #991B1B; --bad-bg: #FEE2E2;
  --radius: 20px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--surface); }
a { color: var(--link); }
a:hover { color: #07433F; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- hero */
.hero { background: var(--hero); color: #fff; border-radius: 0 0 28px 28px; padding-bottom: 72px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; min-height: 44px; }
.brand:hover { color: #fff; }
.brand-mark { width: 26px; height: 26px; border-radius: 999px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.topnav { display: flex; gap: 4px; }
.topnav a { color: var(--hero-text); text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 440px) { .topnav a:first-child { display: none; } }
.topnav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.hero-in { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--hero-text); }
.crumbs a { color: #fff; font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.lead { color: var(--hero-text); font-size: 17px; max-width: 640px; }
.verdict { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.badge { width: 112px; height: 112px; flex-shrink: 0; border-radius: 999px; background: #fff; color: var(--hero); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.badge-num { font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.badge-cap { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.verdict-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.verdict-lead { font-size: 18px; font-weight: 700; }
.verdict-sub { font-size: 15px; color: var(--hero-text); }

/* ---------- chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.tone-good { color: var(--good); background: var(--good-bg); }
.tone-neutral { color: var(--neutral); background: var(--neutral-bg); }
.tone-warn { color: var(--warn); background: var(--warn-bg); }
.tone-bad { color: var(--bad); background: var(--bad-bg); }

/* ---------- layout */
.main { display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; }
.plain { position: relative; margin-top: -48px; background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(11,59,60,0.16); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.plain p { font-size: 17px; line-height: 1.5; font-weight: 600; max-width: 860px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 20px; }
.card { background: var(--soft); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h2, .how h2, .makes-wrap h2, .alts-wrap h2 { font-size: 21px; font-weight: 800; }
.sub { font-size: 14px; color: var(--muted); margin-top: -6px; }
.note, .source { font-size: 13px; color: var(--muted); }

/* ---------- stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; }
.stat { background: var(--soft); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }

/* ---------- ads */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ad-box { width: 100%; max-width: 728px; height: 250px; border: 1.5px dashed #AEBDBB; border-radius: 12px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }

/* ---------- legend & keys */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; flex-shrink: 0; }
.key-bar { width: 12px; height: 12px; border-radius: 3px; background: var(--s1); }
.key-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--s2); }

/* ---------- column chart */
.colchart { position: relative; height: 200px; margin: 18px 0 0 34px; }
.gridlines { position: absolute; inset: 0; pointer-events: none; }
.gridlines span { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.gridlines em { position: absolute; left: -36px; top: -8px; width: 30px; text-align: right; font-style: normal; font-size: 11px; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; }
.cols { position: absolute; inset: 0; display: flex; align-items: stretch; gap: 2px; }
.col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; border-radius: 6px; }
.col:hover, .col:focus-visible { background: rgba(0,137,123,0.08); outline: none; }
.col:focus-visible { box-shadow: 0 0 0 2px var(--s1); }
.bar { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(24px, 64%); background: var(--s1); border-radius: 4px 4px 0 0; }
.dot { position: absolute; left: 50%; width: 10px; height: 10px; border-radius: 999px; background: var(--s2); box-shadow: 0 0 0 2px var(--soft); transform: translate(-50%, 50%); }
.val { position: absolute; left: 50%; transform: translate(-50%, -6px); font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.xlabels { display: flex; gap: 2px; margin-left: 34px; font-size: 12px; color: var(--muted); }
.xlabels span { flex: 1 1 0; text-align: center; min-width: 0; font-variant-numeric: tabular-nums; }
.axis-cap { font-size: 12px; color: var(--muted); text-align: center; margin-left: 34px; margin-top: -6px; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.35; padding: 8px 10px; border-radius: 10px; max-width: 240px; box-shadow: 0 6px 16px rgba(0,0,0,0.18); list-style: none; }

/* ---------- horizontal bars */
.hbars { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.hb-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.hb-top span { font-weight: 600; }
.hb-top strong { font-weight: 800; font-variant-numeric: tabular-nums; }
.hb-track { position: relative; height: 12px; border-radius: 6px; background: #DCE5E4; margin-top: 6px; cursor: pointer; }
.hb-track:focus-visible { outline: 2px solid var(--s1); outline-offset: 3px; }
.hb-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--s1); border-radius: 0 4px 4px 0; }
.hb-dot { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 999px; background: var(--s2); box-shadow: 0 0 0 2px var(--soft); transform: translate(-50%, -50%); }

/* ---------- lists */
.faults { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.faults li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.faults li:first-child { border-top: 0; }
.faults strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rank li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); min-height: 48px; }
.rank li:first-child { border-top: 0; }
.rank-n { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank-name a { font-weight: 700; text-decoration: none; }
.rank-name a:hover { text-decoration: underline; }
.rank-rate { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.rank-rate strong { font-size: 16px; }
.rank-rate small { font-size: 12px; color: var(--muted); }

/* ---------- years */
.years { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.ybox { background: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ytitle { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.ytitle.good { color: var(--good); }
.ytitle.bad { color: var(--bad); }
.ytable, .tableview table, .models { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ytable th, .tableview th, .models th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.ytable td, .tableview td, .models td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.ytable tr:last-child td { border-bottom: 0; }
.tableview { font-size: 14px; }
.tableview summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 44px; display: flex; align-items: center; }
.tableview[open] summary { margin-bottom: 4px; }

/* ---------- reg check */
.check { background: var(--accent-soft); }
.check .sub { color: #5B4636; }
.regform { display: flex; flex-direction: column; gap: 6px; }
.regform label { font-size: 14px; font-weight: 700; }
.regrow { display: flex; flex-wrap: wrap; gap: 10px; }
.regrow input { flex: 1 1 200px; min-width: 0; height: 52px; border-radius: 14px; border: 2px solid #E8C9B5; background: #fff; padding: 0 16px; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.regrow input:focus { outline: 3px solid rgba(194,65,12,0.35); border-color: var(--accent); }
.regrow button { flex: 0 1 auto; height: 52px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); padding: 0 22px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.regrow button:hover { background: #9A3412; }
.formnote { font-size: 13px; color: #5B4636; }
.partner { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid #EED8C8; }
.partner a { color: var(--ink); font-weight: 700; text-decoration: none; }
.partner a:hover { text-decoration: underline; }
.partner span { font-size: 12px; color: #5B4636; }

/* ---------- alternatives */
.alts-wrap { display: flex; flex-direction: column; gap: 12px; }
.alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.alt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 16px; border: 1.5px solid #D5DEDD; text-decoration: none; color: var(--ink); }
a.alt:hover { border-color: var(--s1); color: var(--ink); }
.alt-name { font-weight: 800; }
.alt-rate { font-weight: 800; font-size: 18px; }
.alt-rate small { font-weight: 500; font-size: 13px; color: var(--muted); }

/* ---------- home */
.home-hero { padding-bottom: 8px; }
.home-hero h1 { font-size: 34px; }
.search { position: relative; max-width: 640px; }
.search-icon { position: absolute; left: 16px; top: 16px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 54px; border-radius: 16px; border: 0; padding: 0 16px 0 46px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.search input:focus { outline: 3px solid rgba(255,255,255,0.45); }
.suggest { position: absolute; z-index: 10; left: 0; right: 0; top: 60px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.suggest a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.suggest a:hover, .suggest a:focus { background: var(--soft); outline: none; }
.suggest .empty { padding: 12px; color: var(--muted); font-size: 14px; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--hero-text); }
.popular a { color: #fff; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,0.12); }
.popular a:hover { background: rgba(255,255,255,0.2); color: #fff; }
.is-home .hero { padding-bottom: 36px; }
.is-home .main { padding-top: 24px; }
.how { display: flex; flex-direction: column; gap: 12px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; counter-reset: step; }
.steps li { background: var(--soft); border-radius: 16px; padding: 16px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.makes-wrap { display: flex; flex-direction: column; gap: 12px; }
.makes { display: flex; flex-wrap: wrap; gap: 8px; }
.makes a, .makes span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #D5DEDD; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.makes span { color: var(--muted); }
.makes a:hover { border-color: var(--s1); }

/* ---------- make page */
.models td:first-child a { font-weight: 700; text-decoration: none; }
.models td:first-child a:hover { text-decoration: underline; }
.cell-chip { margin-top: 4px; }
.cell-chip .chip { font-size: 12px; padding: 3px 9px 3px 7px; }

/* ---------- prose */
.prose { gap: 10px; max-width: 760px; }
.prose h2 { font-size: 19px; margin-top: 8px; }
.prose p { font-size: 16px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875em; background: var(--surface); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }
.policy .updated { font-size: 13px; color: var(--muted); }
.prose .cookielist { list-style: none; padding: 0; gap: 0; }
.cookielist li { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cookielist li:last-child { border-bottom: 0; }
.cookielist code { align-self: flex-start; font-weight: 700; }
.linkbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--link); text-decoration: underline; cursor: pointer; text-align: left; }
.linkbtn:hover { color: #07433F; }

/* ---------- footer */
.footer { background: var(--soft); margin-top: 24px; }
.footer-in { padding-top: 24px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.footer-brand { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- larger screens */
@media (min-width: 768px) {
  .wrap { padding: 0 24px; }
  .hero h1 { font-size: 42px; }
  .home-hero h1 { font-size: 48px; }
  .badge { width: 132px; height: 132px; }
  .badge-num { font-size: 38px; }
  .verdict-lead { font-size: 20px; }
  .plain { padding: 24px 28px; }
  .plain p { font-size: 19px; }
  .card { padding: 24px; }
  .colchart { height: 220px; }
  .bar { width: min(24px, 56%); }
}
@media (forced-colors: active) {
  .bar, .hb-bar, .key-bar { background: CanvasText; }
  .dot, .hb-dot, .key-dot { background: Highlight; }
}
.govlink { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; align-self: flex-start; }
.govlink:hover { background: #9A3412; color: var(--accent-ink); }
.notfound { display: flex; flex-direction: column; gap: 12px; }
