/* Model Year Check: US road vernacular. Asphalt header with a lane line, a green guide sign
   for each vehicle, warning-sign shapes for recall flags. One typeface: Overpass, an open
   font modelled on the Highway Gothic lettering of US road signs. */
:root {
  --page: #E7E9EB;      /* concrete */
  --paper: #FFFFFF;
  --ink: #1D2024;
  --ink-2: #454B52;
  --ink-3: #5C636B;
  --rule: #D3D7DB;
  --asphalt: #2B2E33;
  --sign: #0B6B47;      /* guide-sign green */
  --sign-dark: #08563A;
  --sign-text: #DCEDE4;
  --yellow: #F3C300;    /* lane line, warning signs */
  --yellow-bg: #FFF4CC;
  --red: #B3261E;
  --red-bg: #FBE9E7;
  --link: #1F4E8C;
  --bar: #0B6B47;
  --bar-hover: #08563A;
  --bar-light: #9CC7B3;
  --grid: #E3E6E9;
  --font: "Overpass", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.55 var(--font); }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }

/* header: a strip of asphalt with a dashed lane line */
header.site { background: var(--asphalt); color: #fff; padding-bottom: 10px; }
header.site::after {
  content: ""; display: block; height: 4px; max-width: 940px; margin: 0 auto;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 36px, transparent 36px 62px);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 58px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font: 800 22px/1 var(--font); letter-spacing: -.01em; }
header.site nav { display: flex; gap: 20px; }
header.site nav a { color: #D5D9DD; text-decoration: none; font: 600 16px/1 var(--font); }
header.site nav a:hover { color: #fff; text-decoration: underline; }

footer.site { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 14px; }
footer.site p { margin: 0 0 8px; max-width: 70ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }

main { padding-bottom: 8px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin: 18px 0 12px; }
.crumbs a { color: var(--ink-3); }

/* the guide sign: green field, white border line, rounded corners */
.sign {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 24px;
  background: var(--sign); color: #fff;
  border: 3px solid #fff; border-radius: 12px; box-shadow: 0 0 0 5px var(--sign);
  margin: 5px 5px 23px; padding: 22px 26px 24px;
}
.sign h1 { color: #fff; }
h1 { font: 800 clamp(32px, 5vw, 48px)/1.05 var(--font); margin: 0; letter-spacing: -.015em; }
.h1-sub { display: block; font-weight: 600; font-size: max(16px, .4em); letter-spacing: 0; color: var(--sign-text); margin-top: 10px; }
.car { display: block; width: 200px; height: auto; fill: currentColor; }
.car .hub { fill: var(--sign); }

/* report panel under the sign */
.sticker { background: var(--paper); border: 1px solid var(--rule); margin-bottom: 18px; }
.sticker-head { padding: 20px 22px 4px; }
.verdict { font-size: 19px; line-height: 1.5; margin: 0 0 10px; max-width: 64ch; }
.source { margin: 0 0 14px; font-size: 14px; color: var(--ink-3); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stats .cell { padding: 14px 18px 16px; border-left: 1px solid var(--rule); min-width: 0; }
.stats .cell:first-child { border-left: 0; }
.stats .cell.alert { box-shadow: inset 0 5px 0 var(--yellow); }
.stats dt { font: 700 15px/1.2 var(--font); color: var(--ink-2); }
.stats dd { margin: 0; }
.stats .big { font: 800 50px/1.05 var(--font); margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats .big.word { font-size: 28px; line-height: 1.15; padding: 8px 0 6px; letter-spacing: -.01em; }
.stats .star-glyph { font-size: .6em; vertical-align: .34em; margin-left: 2px; }
.stats .sub { font-size: 14px; color: var(--ink-3); line-height: 1.35; }

/* warning-sign shapes: octagon = stop, diamond = caution */
.flag, .badge.red, .badge.amber { position: relative; }
.flag.red::before, .badge.red::before, .flag.amber::before, .badge.amber::before {
  content: ""; display: inline-block; vertical-align: -2px; margin-right: 8px;
}
.flag.red::before, .badge.red::before {
  width: 16px; height: 16px; background: var(--red);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.flag.amber::before, .badge.amber::before {
  width: 12px; height: 12px; margin: 0 10px 0 3px; background: var(--yellow);
  border: 1.5px solid var(--ink); transform: rotate(45deg);
}
.flag { margin: 0; padding: 11px 22px; font-size: 16px; border-bottom: 1px solid var(--rule); }
.flag.red { background: var(--red-bg); }
.flag.amber { background: var(--yellow-bg); }

.sticker-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 14px 22px 18px; }
.sticker-foot p { margin: 0; max-width: 52ch; font-size: 16px; color: var(--ink-2); }

.btn {
  display: inline-block; background: var(--yellow); color: var(--ink); text-decoration: none;
  font: 700 16px/1.2 var(--font); padding: 13px 18px 11px; border-radius: 6px;
}
.btn:hover { background: #DDB100; text-decoration: none; }

.toc { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 4px 2px 6px; font: 600 16px/1.4 var(--font); }
.toc a { color: var(--ink-2); text-decoration: none; border-bottom: 2px solid var(--rule); }
.toc a:hover { color: var(--ink); border-color: var(--ink); }

/* sections */
main > section:not(.sticker):not(.hero):not(.vehicles), .others, .prose {
  background: var(--paper); border: 1px solid var(--rule); padding: 22px 22px 24px; margin-top: 18px;
}
h2 { font: 800 28px/1.15 var(--font); margin: 0 0 6px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
h2 .count { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 3px 9px 0; background: var(--asphalt); color: #fff; font-size: 18px; border-radius: 4px; }
h3 { font: 700 20px/1.3 var(--font); margin: 2px 0 8px; }
.lede { color: var(--ink-3); margin: 0 0 16px; font-size: 16px; max-width: 70ch; }
.note { background: var(--page); padding: 8px 12px; font-size: 15px; margin: -4px 0 16px; }

/* recalls */
.recalls { list-style: none; margin: 0; padding: 0; }
.recall { padding: 16px 0 14px; border-top: 1px solid var(--rule); }
.recall:first-child { border-top: 2px solid var(--ink); }
.recall .meta { margin: 0 0 2px; display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.recall .meta a { color: var(--ink-3); }
.badges { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font: 700 14px/1 var(--font); padding: 6px 9px 4px; background: var(--page); color: var(--ink); border-radius: 3px; }
.badge.red { background: var(--red-bg); }
.badge.amber { background: var(--yellow-bg); }
.badge.new { background: var(--yellow-bg); }
.rf { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; margin: 0; font-size: 16px; }
.rf dt { font: 700 15px/1.55 var(--font); color: var(--ink-3); }
.rf dd { margin: 0; max-width: 72ch; }

/* owner-reported patterns */
.patterns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pattern { border: 1px solid var(--rule); border-top: 4px solid var(--asphalt); padding: 14px 16px 16px; }
.pattern p { margin: 0 0 10px; font-size: 16px; }
.pcount { color: var(--ink-3); font-size: 15px !important; margin-bottom: 4px !important; }
.pcount b { font: 800 26px/1 var(--font); color: var(--ink); margin-right: 2px; }
.check { background: var(--page); padding: 10px 12px; margin-bottom: 0 !important; }
.check span { display: block; font: 700 14px/1.4 var(--font); color: var(--ink-2); }

/* horizontal bars (single series: no legend, value at the tip) */
.hbars { list-style: none; margin: 0; padding: 0; }
.hbars li { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; align-items: center; gap: 12px; padding: 5px 0; }
.hbars .lbl { font-size: 16px; text-align: right; color: var(--ink); }
.hbars .track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hbars .fill { flex: 0 0 calc((100% - 4.5rem) * var(--p)); height: 20px; background: var(--bar); border-radius: 0 4px 4px 0; }
.hbars .num { font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbars li:hover .fill { background: var(--bar-hover); }
.hbars li:hover .lbl { font-weight: 700; }

/* column chart */
.cols { margin: 8px 0 0; }
.cols .plot { position: relative; height: 200px; margin: 26px 0 30px 44px; border-bottom: 1px solid var(--ink-3); }
.cols .gl { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--grid); }
.cols .gl i { position: absolute; right: calc(100% + 8px); top: -9px; font: 13px/1 var(--font); font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cols ol { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.cols li { position: relative; height: 100%; }
.cols .col { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(24px, 64%); height: var(--h); background: var(--bar); border-radius: 4px 4px 0 0; }
.cols li.partial .col { background: var(--bar-light); }
.cols li:hover .col { background: var(--bar-hover); }
.cols .val { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--h) + 5px); font: 700 15px/1 var(--font); white-space: nowrap; }
.cols .yr { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 8px); font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cols figcaption { font-size: 14px; color: var(--ink-3); }
.table-view { margin-top: 10px; font-size: 15px; }
.table-view summary { cursor: pointer; color: var(--link); }
.table-view table { border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.table-view th, .table-view td { padding: 4px 18px 4px 0; text-align: left; border-bottom: 1px solid var(--rule); }

/* ratings */
.table-scroll { overflow-x: auto; }
table.ratings { border-collapse: collapse; width: 100%; font-size: 16px; }
table.ratings th, table.ratings td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.ratings thead th { font: 700 15px/1.2 var(--font); color: var(--ink-2); border-bottom: 2px solid var(--ink); }
table.ratings tbody th { font-weight: 600; }
.stars { color: var(--ink); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #CBD0D5; }
.stars.small { font-size: 17px; }
.risk { display: block; font-size: 13px; color: var(--ink-3); }

/* checklist */
.checklist ol { margin: 8px 0 18px; padding-left: 26px; }
.checklist li { margin-bottom: 8px; padding-left: 4px; max-width: 72ch; }
.checklist li::marker { font: 800 18px var(--font); }
.method p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 78ch; }
.method h2 { font-size: 20px; }
.others ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.others h2 { font-size: 20px; }

/* home */
.hero { padding: 26px 0 4px; }
.home-sign { display: block; margin-bottom: 18px; padding: 26px 30px 28px; }
.home-sign h1 { font-size: clamp(32px, 5.6vw, 54px); max-width: 16ch; }
.home-sign p { margin: 12px 0 0; font: 600 19px/1.4 var(--font); color: var(--sign-text); max-width: 52ch; }
.hero > p { font-size: 17px; color: var(--ink-2); max-width: 70ch; margin: 0; }
.vehicles { margin-top: 30px; }
.cards { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--paper); border: 1px solid var(--rule); border-top: 4px solid var(--asphalt); padding: 12px 16px 10px; }
.card-title { display: flex; align-items: center; gap: 12px; font: 800 24px/1.1 var(--font); margin: 0 0 8px; letter-spacing: -.01em; }
.car.small { width: 66px; flex: 0 0 66px; color: var(--ink); }
.car.small .hub { fill: var(--paper); }
.card-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.card-table th, .card-table td { text-align: left; padding: 6px 10px 4px 0; border-top: 1px solid var(--rule); }
.card-table thead th { font: 700 14px/1.2 var(--font); color: var(--ink-3); border-top: 0; }
.card-table tbody th a { font: 800 18px/1 var(--font); }
.card-table td:last-child { color: var(--ink-3); font-size: 14px; }

/* model-year switcher */
.years { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.years span { font: 700 15px/1 var(--font); color: var(--ink-3); margin-right: 6px; }
.years a { font: 800 17px/1 var(--font); padding: 8px 12px 6px; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.years a:hover { border-color: var(--ink); }
.years a.on { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }

/* about */
.prose { max-width: 760px; }
.prose h1 { font-size: 40px; margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin-top: 22px; }
.prose li { margin-bottom: 6px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 12px; }
  .sign { padding: 16px 16px 18px; gap: 10px; }
  .car { width: 92px; }
  .h1-sub { font-size: 15px; }
  .home-sign p { font-size: 17px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .cell:nth-child(3) { border-left: 0; }
  .stats .cell:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .stats .big { font-size: 40px; }
  .stats .big.word { font-size: 23px; }
  .sticker-head, .sticker-foot { padding-left: 14px; padding-right: 14px; }
  main > section:not(.sticker):not(.hero):not(.vehicles), .others, .prose { padding: 16px 14px 18px; }
  .patterns { grid-template-columns: 1fr; }
  .hbars li { grid-template-columns: 1fr; gap: 2px; padding: 6px 0; }
  .hbars .lbl { text-align: left; font-size: 15px; }
  .cols .plot { margin-left: 38px; }
  .cols .yr { font-size: 11px; }
  .verdict { font-size: 17px; }
}

@media print {
  body { background: #fff; }
  header.site, .toc, .btn, footer.site { display: none; }
  .sign { box-shadow: none; border-color: var(--sign); }
}
