/* Shared styles for the generated vehicle and type pages. Tokens match index.html. */
:root {
  color-scheme: light;
  --bg: #fcfcfb;
  --surface: #ffffff;
  --border: #e6e5e1;
  --grid: #efeeea;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #77766f;
  --series-1: #2a78d6;
  --series-1-soft: rgba(42, 120, 214, 0.35);
  --others: rgba(119, 118, 111, 0.35);
  --accent-bg: #eef4fc;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #131312;
    --surface: #1a1a19;
    --border: #2e2e2c;
    --grid: #262624;
    --text-primary: #f0efec;
    --text-secondary: #c3c2b7;
    --text-muted: #94938a;
    --series-1: #3987e5;
    --series-1-soft: rgba(57, 135, 229, 0.4);
    --others: rgba(148, 147, 138, 0.4);
    --accent-bg: #1b2636;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131312;
  --surface: #1a1a19;
  --border: #2e2e2c;
  --grid: #262624;
  --text-primary: #f0efec;
  --text-secondary: #c3c2b7;
  --text-muted: #94938a;
  --series-1: #3987e5;
  --series-1-soft: rgba(57, 135, 229, 0.4);
  --others: rgba(148, 147, 138, 0.4);
  --accent-bg: #1b2636;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--series-1); }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }

.topbar { border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 14px; }
.topbar .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text-primary); text-decoration: none; }
.crumbs { color: var(--text-muted); font-size: 13px; padding-top: 24px; }
.crumbs a { color: var(--text-muted); }

h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 40px 0 12px; line-height: 1.25; }
h3 { font-size: 16px; margin: 20px 0 4px; }
p { color: var(--text-secondary); margin: 0 0 12px; }
.lede { font-size: 18px; }

.verdict {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 8px;
}
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--text-muted); }

.strip { position: relative; height: 56px; margin: 20px 0 4px; }
.strip .base { position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: var(--border); }
.strip .o { position: absolute; top: 24px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--others); }
.strip .avg { position: absolute; top: 8px; bottom: 8px; border-left: 1px dashed var(--text-muted); }
.strip .range { position: absolute; top: 26px; height: 5px; border-radius: 3px; background: var(--series-1-soft); }
.strip .me { position: absolute; top: 21px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--series-1); box-shadow: 0 0 0 2px var(--bg); }
.strip .tag { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ticks { position: relative; height: 18px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ticks span { position: absolute; transform: translateX(-50%); }
.ticks span:first-child { transform: none; }
.ticks span:last-child { transform: translateX(-100%); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin: 6px 0 0; }
.legend i { display: inline-block; vertical-align: middle; margin-right: 6px; border-radius: 50%; width: 9px; height: 9px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.current td { background: var(--accent-bg); font-weight: 600; }
td small { display: block; color: var(--text-muted); font-size: 13px; font-weight: 400; }
.table-wrap { overflow-x: auto; }

.note { background: var(--accent-bg); border-radius: var(--radius); padding: 14px 16px; font-size: 15px; color: var(--text-primary); margin: 16px 0; }
.faq h3 { margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0; list-style: none; }
.chips a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; color: var(--text-primary); font-size: 14px; background: var(--surface); }

footer { margin-top: 56px; padding: 24px 0 48px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
footer p { color: var(--text-muted); font-size: 13px; }

@media (max-width: 560px) {
  .verdict { grid-template-columns: 1fr 1fr; }
  .verdict .stat:last-child { grid-column: 1 / -1; }
  .hide-sm { display: none; }
}
