/* Model Year Check: window-sticker look. Paper card on a cool gray page. */
:root {
  --bg: #EEF0F1;
  --paper: #FFFFFF;
  --ink: #1A1D21;
  --ink-2: #454B53;
  --ink-3: #5F666F;
  --rule: #D5D9DD;
  --rule-strong: #1A1D21;
  --amber: #E8A317;
  --amber-bg: #FDF3DC;
  --red: #B42318;
  --red-bg: #FBEAE8;
  --green: #1F7A4D;
  --link: #1F4E8C;
  --bar: #2F5D99;
  --bar-hover: #1F4E8C;
  --bar-light: #A9BEDA;
  --grid: #E3E6E9;
  --cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }

/* header / footer */
header.site { background: var(--ink); color: #fff; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font: 600 22px/1 var(--cond); letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.brand .mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 2px solid #fff; font-size: 15px; letter-spacing: 0; }
header.site nav { display: flex; gap: 18px; }
header.site nav a { color: #D9DDE1; text-decoration: none; font: 500 16px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; }
header.site nav a:hover { color: #fff; }
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; }

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

/* sticker */
.sticker { background: var(--paper); border: 2px solid var(--rule-strong); margin-bottom: 18px; }
.sticker-band {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--ink); color: #fff; padding: 7px 18px;
  font: 600 14px/1.3 var(--cond); text-transform: uppercase; letter-spacing: .08em;
}
.sticker-band span:last-child { color: #C9CED4; font-weight: 500; }
.sticker-head { padding: 18px 22px 6px; }
h1 { font: 700 clamp(32px, 5vw, 46px)/1.05 var(--cond); margin: 0 0 10px; letter-spacing: -.005em; }
.h1-sub { display: block; font-weight: 500; font-size: .52em; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-top: 6px; }
.verdict { font-size: 19px; line-height: 1.45; margin: 0 0 14px; max-width: 62ch; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 2px solid var(--rule-strong); 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(--amber); }
.stats dt { font: 600 14px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.stats dd { margin: 0; }
.stats .big { font: 700 52px/1.05 var(--cond); margin-top: 4px; }
.stats .big.word { font-size: 30px; line-height: 1.1; padding: 8px 0 6px; }
.stats .star-glyph { font-size: .62em; vertical-align: .32em; margin-left: 2px; }
.stats .sub { font-size: 14px; color: var(--ink-3); line-height: 1.35; }

.flag { margin: 0; padding: 10px 22px; font-size: 16px; border-bottom: 1px solid var(--rule); }
.flag.red { background: var(--red-bg); box-shadow: inset 5px 0 0 var(--red); }
.flag.amber { background: var(--amber-bg); box-shadow: inset 5px 0 0 var(--amber); }
.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(--ink); color: #fff; text-decoration: none;
  font: 600 16px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .06em;
  padding: 12px 18px; border-radius: 2px;
}
.btn:hover { background: #000; text-decoration: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 4px 2px 6px; font: 500 16px/1.4 var(--cond); text-transform: uppercase; letter-spacing: .05em; }
.toc a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule); }
.toc a:hover { color: var(--ink); border-color: var(--ink); }

/* sections */
main > section:not(.sticker):not(.hero), .others, .prose {
  background: var(--paper); border: 1px solid var(--rule); padding: 22px 22px 24px; margin-top: 18px;
}
h2 { font: 700 28px/1.1 var(--cond); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: baseline; gap: 10px; }
h2 .count { display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 8px; background: var(--ink); color: #fff; font-size: 20px; }
h3 { font: 600 21px/1.25 "Barlow", sans-serif; margin: 2px 0 8px; }
.lede { color: var(--ink-3); margin: 0 0 16px; font-size: 16px; max-width: 70ch; }
.note { background: var(--bg); 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(--rule-strong); }
.recall .meta { margin: 0; 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: 600 13px/1 var(--cond); text-transform: uppercase; letter-spacing: .06em; padding: 5px 8px; background: var(--bg); color: var(--ink); }
.badge.amber { background: var(--amber-bg); box-shadow: inset 3px 0 0 var(--amber); }
.badge.red { background: var(--red-bg); box-shadow: inset 3px 0 0 var(--red); }
.rf { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; margin: 0; font-size: 16px; }
.rf dt { font: 600 14px/1.6 var(--cond); text-transform: uppercase; letter-spacing: .06em; 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(--ink); 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: 700 26px/1 var(--cond); color: var(--ink); margin-right: 2px; }
.check { background: var(--bg); padding: 9px 12px; margin-bottom: 0 !important; }
.check span { display: block; font: 600 13px/1.4 var(--cond); text-transform: uppercase; letter-spacing: .07em; 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: 600; }

/* 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 "Barlow", sans-serif; 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: 600 15px/1 "Barlow", sans-serif; 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: 600 14px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); border-bottom: 2px solid var(--rule-strong); }
table.ratings tbody th { font-weight: 500; }
.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: 24px; }
.checklist li { margin-bottom: 8px; padding-left: 4px; max-width: 72ch; }
.checklist li::marker { font: 700 18px var(--cond); }
.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: 34px 0 10px; }
.hero p { font-size: 19px; max-width: 60ch; margin: 0 0 8px; }
.cards { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { border: 2px solid var(--ink); background: var(--paper); padding: 14px 16px 10px; }
.card-title { display: block; font: 700 26px/1.1 var(--cond); margin: 0 0 8px; }
.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: 5px 10px 5px 0; border-top: 1px solid var(--rule); }
.card-table thead th { font: 600 13px/1.2 var(--cond); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); border-top: 0; }
.card-table tbody th a { font: 700 18px/1 var(--cond); }
.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 12px; }
.years span { font: 600 14px/1 var(--cond); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-right: 4px; }
.years a { font: 600 17px/1 var(--cond); padding: 7px 11px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); text-decoration: none; }
.years a:hover { border-color: var(--ink); }
.years a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* about */
.prose { max-width: 760px; }
.prose h1 { font-size: 40px; }
.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; }
  .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: 42px; }
  .stats .big.word { font-size: 24px; }
  .sticker-head, .sticker-foot { padding-left: 14px; padding-right: 14px; }
  main > section:not(.sticker):not(.hero), .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; }
}
