/* =====================================================================
   280Z Rebuild — 70s heritage theme ("sunset stripes")
   Light = cream paper / chocolate ink. Dark = "garage night".
   ===================================================================== */
:root {
  --orange: #E8742A;
  --red: #B5402A;
  --mustard: #E3A72F;
  --zzzap: #F2B51C;

  --bg: #F3E9D2;
  --bg2: #EADFC4;
  --card: #FAF4E4;
  --card2: #F1E7CF;
  --line: #DCCBA8;
  --text: #3B2418;
  --muted: #7A5C48;
  --accent: var(--orange);
  --accent-text: #3B2418;
  --link: #B5402A;
  --code-bg: #EFE2C3;
  --row-hover: #F5ECD6;
  --shadow: 0 1px 0 rgba(59, 36, 24, .06), 0 8px 24px -12px rgba(59, 36, 24, .25);
  --good: #3f7d3a;
  --warn-bg: rgba(227, 167, 47, .16);
  --warn-line: rgba(181, 64, 42, .35);
  --warn-text: #5a3a1c;
  --viewer-bg: #d9cdb2;

  --radius: 14px;
  --display: "Bagel Fat One", "Cooper Black", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "SF Mono", monospace;
}

[data-theme="dark"] {
  --red: #C4502F;
  --bg: #1E1C1A;
  --bg2: #24211E;
  --card: #2A2724;
  --card2: #322E2A;
  --line: #3E3832;
  --text: #F3E9D2;
  --muted: #B3A390;
  --accent-text: #1E1C1A;
  --link: #F2A25C;
  --code-bg: #36302A;
  --row-hover: #312C28;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
  --good: #6fbf62;
  --warn-bg: rgba(232, 116, 42, .1);
  --warn-line: rgba(232, 116, 42, .35);
  --warn-text: #ecd2b0;
  --viewer-bg: #141210;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  transition: background .25s, color .25s;
}
a { color: var(--link); }
code { font-family: var(--mono); background: var(--code-bg); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; }
.muted { color: var(--muted); }

/* ---------- stripes motif ---------- */
.stripes { display: grid; grid-template-rows: repeat(3, 1fr); }
.stripes i:nth-child(1) { background: var(--orange); }
.stripes i:nth-child(2) { background: var(--red); }
.stripes i:nth-child(3) { background: var(--mustard); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 3px 0 var(--red), 0 6px 0 var(--mustard);
  margin-bottom: 6px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.badge { width: 52px; height: 52px; flex: none; }
.badge-ring { fill: var(--text); }
.badge-face { fill: var(--card); }
.badge-big { font-family: var(--display); font-size: 27px; fill: var(--text); }
.badge-small { font-family: var(--mono); font-weight: 600; font-size: 9.5px; letter-spacing: 2px; fill: var(--card); }
.brand-text { font-family: var(--display); font-size: 1.5rem; letter-spacing: .01em; line-height: 1; }
.brand-text em { font-style: normal; color: var(--orange); margin-left: .25rem; }
.topbar nav { display: flex; gap: .15rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: .4rem .7rem; border-radius: 999px;
}
.topbar nav a:hover { background: var(--orange); color: var(--accent-text); }
.theme-toggle {
  margin-left: .4rem; width: 58px; height: 30px; border-radius: 999px; border: 2px solid var(--text);
  background: var(--card); color: var(--text); cursor: pointer; position: relative; padding: 0;
  display: flex; align-items: center; justify-content: space-around; font-size: .85rem;
}
.theme-toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); transition: transform .2s;
}
[data-theme="dark"] .theme-toggle::after { transform: translateX(28px); }
.theme-toggle span { position: relative; z-index: 1; }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.3rem; border-radius: 999px; border: 2px solid var(--text);
  background: var(--card); color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem;
  cursor: pointer; font-family: inherit; transition: transform .12s, background .15s, box-shadow .15s;
  box-shadow: 3px 3px 0 var(--text);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--text); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--text); }
.btn.primary { background: var(--orange); color: var(--accent-text); }
.btn.small { padding: .4rem .85rem; font-size: .84rem; box-shadow: 2px 2px 0 var(--text); }
.btn.active { background: var(--mustard); color: #3B2418; }

input[type="checkbox"], input[type="range"] { accent-color: var(--orange); }
select, input[type="search"], input[type="text"], textarea {
  background: var(--card); color: var(--text); border: 2px solid var(--line); border-radius: 10px;
  padding: .45rem .65rem; font-family: inherit; font-size: .92rem;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--orange); }

/* ---------- hero ---------- */
.hero { position: relative; height: min(84vh, 760px); min-height: 520px; overflow: hidden; }
.hero .car-viewer { position: absolute; inset: 0; border-radius: 0; border: none; }
.hero-copy {
  position: absolute; top: clamp(1.5rem, 5vh, 3.5rem); left: clamp(1rem, 4vw, 3.5rem); z-index: 3;
  max-width: 34rem; pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.eyebrow { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin: 0 0 .6rem; }
.hero h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  line-height: .95; letter-spacing: -.01em; margin-bottom: .35em; color: var(--text);
  text-shadow: 3px 3px 0 var(--mustard);
}
.lede { font-size: 1.08rem; max-width: 40ch; color: var(--text); opacity: .88; }
.hero-actions { display: flex; gap: .8rem; margin-top: 1.3rem; flex-wrap: wrap; }
.hero-feature {
  position: absolute; z-index: 3; right: clamp(1rem, 3vw, 2.5rem); top: clamp(1.5rem, 5vh, 3.5rem);
  display: flex; flex-direction: column; text-align: right; gap: .1rem;
  background: var(--card); border: 2px solid var(--text); border-radius: var(--radius); padding: .7rem 1rem;
  box-shadow: 4px 4px 0 var(--zzzap);
}
.hero-feature strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.hero-feature span { font-size: .82rem; color: var(--muted); }
.hero-feature .feature-tag { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; }
.hero-controls {
  position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 54px;
  background: color-mix(in srgb, var(--card) 88%, transparent); border: 2px solid var(--text);
  border-radius: 999px; padding: .45rem 1.1rem; backdrop-filter: blur(6px); white-space: nowrap;
}
.stripes-hero { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; z-index: 4; }

.viewer-controls { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; font-size: .88rem; font-weight: 600; }
.viewer-controls label { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.viewer-controls select { padding: .25rem .5rem; border-width: 1.5px; }

.viewer { position: relative; overflow: hidden; background: var(--viewer-bg); border-radius: var(--radius); border: 2px solid var(--text); }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer-hint {
  position: absolute; right: 12px; bottom: 10px; z-index: 2; pointer-events: none;
  font-size: .76rem; color: #f3e9d2; background: rgba(30, 20, 14, .55); padding: 3px 10px; border-radius: 20px;
}
.hero .viewer-hint { bottom: 48px; }
.viewer-label {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, -130%);
  background: var(--orange); color: #2a160c; font-weight: 700; font-size: .78rem;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: none; border: 1.5px solid #2a160c;
}
.viewer-loading {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .95rem; font-weight: 600;
}

.disclaimer {
  max-width: 1400px; margin: 1.5rem auto 0; padding: .9rem 1.2rem; border-radius: var(--radius);
  background: var(--warn-bg); border: 2px dashed var(--warn-line); color: var(--warn-text); font-size: .92rem;
  width: calc(100% - 3rem);
}

/* ---------- sections ---------- */
.section { max-width: 1400px; margin: 0 auto; padding: 4rem 1.5rem 1rem; }
.section-head { margin-bottom: 1.6rem; max-width: 80ch; }
.section-head h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.7rem); letter-spacing: .005em;
  display: inline-block; margin-bottom: .4em;
}
.section-head h2::after {
  content: ""; display: block; height: 12px; margin-top: .25rem; border-radius: 2px;
  background: linear-gradient(var(--orange) 0 33.3%, var(--red) 33.3% 66.6%, var(--mustard) 66.6% 100%);
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--red); letter-spacing: .01em; }
[data-theme="dark"] .card h3 { color: var(--orange); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: .45rem 1rem; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 700; font-size: .88rem; }
.kv dt, .kv dd { padding-bottom: .4rem; border-bottom: 1px dotted var(--line); }

/* ---------- gauge stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.gauge {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: .9rem .8rem .8rem;
  text-align: center; box-shadow: var(--shadow);
}
.gauge svg { width: 100%; max-width: 170px; height: auto; display: block; margin: 0 auto; }
.gauge .g-face { fill: #1d1a17; stroke: var(--text); stroke-width: 4; }
[data-theme="dark"] .gauge .g-face { stroke: #5a524a; }
.gauge .g-tick { stroke: #f3e9d2; stroke-width: 2; }
.gauge .g-tick.minor { stroke-width: 1; opacity: .55; }
.gauge .g-red { stroke: var(--red); stroke-width: 7; fill: none; }
.gauge .g-num { fill: #f3e9d2; font-family: var(--mono); font-size: 9px; }
.gauge .g-needle { stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; transition: transform 1.2s cubic-bezier(.2, .9, .2, 1.1); }
.gauge .g-hub { fill: var(--orange); stroke: #1d1a17; stroke-width: 2; }
.gauge .g-val { fill: #f3e9d2; font-family: var(--display); font-size: 17px; }
.gauge .g-unit { fill: #b3a390; font-family: var(--mono); font-size: 8px; letter-spacing: 1px; }
.gauge .l { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-top: .4rem; }
.odo {
  display: inline-flex; gap: 3px; margin: 1.6rem auto .9rem; font-family: var(--mono); font-weight: 600; font-size: 1.15rem;
}
.odo b {
  display: grid; place-items: center; min-width: 1.4em; height: 1.9em; padding: 0 .2em; border-radius: 4px;
  background: linear-gradient(#111 0%, #2c2824 50%, #111 100%); color: #f3e9d2; border: 1px solid #000;
}
.odo b.sep { background: none; border: none; color: var(--muted); min-width: .6em; }

/* ---------- engine explorer ---------- */
.engine-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1rem; }
.engine-viewer { height: 620px; }
.engine-panel { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.control-block label { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
input[type="range"] { width: 100%; }
.control-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.part-list { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 170px; overflow: auto; padding: 2px 4px 2px 2px; }
.part-chip {
  font-size: .78rem; padding: .28rem .65rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; font-family: inherit; font-weight: 600;
}
.part-chip:hover, .part-chip.active { color: #2a160c; background: var(--orange); border-color: var(--text); }
.part-info { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem; flex: 1; overflow: auto; max-height: 360px; box-shadow: var(--shadow); }
.part-info h3 { font-family: var(--display); font-weight: 400; color: var(--red); font-size: 1.3rem; }
[data-theme="dark"] .part-info h3 { color: var(--orange); }
.part-info h4 { margin: .8rem 0 .2rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.part-info p, .part-info ul { font-size: .9rem; }
.part-info ul { padding-left: 1.1rem; margin: .3rem 0; }
.part-info .tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--mustard); color: #3B2418; margin: 0 .3rem .3rem 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 2px solid var(--line); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--card); }
table.data th, table.data td { padding: .6rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--text); color: var(--bg); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: var(--row-hover); }
table.data td.num { font-family: var(--mono); white-space: nowrap; }
table.data td.torque { font-family: var(--mono); color: var(--red); font-weight: 600; white-space: nowrap; }
[data-theme="dark"] table.data td.torque { color: var(--orange); }
table.data td .note { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
table.data .group-row td { background: var(--card2); color: var(--red); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; border-left: 6px solid var(--orange); }
[data-theme="dark"] table.data .group-row td { color: var(--orange); }
table.compact th, table.compact td { padding: .4rem .7rem; }
.sock { display: inline-block; font-family: var(--mono); font-size: .8rem; font-weight: 600; background: var(--mustard); color: #3B2418; padding: 1px 8px; border-radius: 999px; }

.tabs { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tab {
  padding: .45rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--card);
  color: var(--text); cursor: pointer; font-family: inherit; font-size: .88rem; font-weight: 700;
}
.tab:hover { border-color: var(--text); }
.tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.unit-toggle { margin-top: .6rem; color: var(--muted); font-size: .88rem; }

.bolt-tools { display: flex; gap: .6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.bolt-tools input { flex: 1; min-width: 220px; padding: .6rem .9rem; }
.sub-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; margin-top: 1.25rem; }
#head-seq svg { width: 100%; height: auto; }

/* ---------- wiring ---------- */
.wiring-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; }
.wiring-canvas { background: #f4f1e8; border-radius: var(--radius); border: 2px solid var(--line); overflow: auto; padding: .5rem; box-shadow: var(--shadow); }
.wiring-canvas svg { width: 100%; height: auto; min-width: 700px; display: block; }
.wiring-canvas .wire { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke-width .1s, opacity .1s; }
.wiring-canvas .wire-outline { fill: none; stroke: #222; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.wiring-canvas svg.hovering .wgroup { opacity: .18; }
.wiring-canvas svg.hovering .wgroup.hot { opacity: 1; }
.wiring-canvas .wgroup { cursor: pointer; transition: opacity .12s; }
.wiring-canvas .wgroup.hot .wire { stroke-width: 6; }
.wiring-canvas .comp rect, .wiring-canvas .comp circle { fill: #fff; stroke: #222; stroke-width: 2; }
.wiring-canvas .comp text, .wiring-canvas text { font-family: var(--font); fill: #1d1d1d; }
.wiring-canvas .wlabel { font-family: var(--mono); font-size: 12px; font-weight: 700; paint-order: stroke; stroke: #f4f1e8; stroke-width: 4px; }
.wiring-side { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.wiring-side h3 { font-family: var(--display); font-weight: 400; color: var(--red); font-size: 1.3rem; }
[data-theme="dark"] .wiring-side h3 { color: var(--orange); }
.wiring-side h4 { margin-top: 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.wiring-side ul { padding-left: 1.1rem; font-size: .88rem; }
.wiring-side li { margin-bottom: .35rem; }
.color-legend { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .6rem; font-size: .82rem; }
.color-legend span { display: flex; align-items: center; gap: .4rem; }
.color-legend i { width: 22px; height: 10px; border-radius: 3px; border: 1px solid #000; display: inline-block; }

/* ---------- teardown ---------- */
.progress { position: relative; height: 30px; background: var(--card); border: 2px solid var(--text); border-radius: 999px; overflow: hidden; margin-bottom: 1.2rem; }
.progress-bar { height: 100%; width: 0; transition: width .3s; background: linear-gradient(var(--orange) 0 33.3%, var(--red) 33.3% 66.6%, var(--mustard) 66.6% 100%); }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .82rem; font-weight: 800; }
.guide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.guide-cols h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; background: var(--card); border: 2px solid var(--line);
  border-radius: 12px; padding: .8rem 1rem .8rem 3.4rem; margin-bottom: .55rem; cursor: pointer; transition: border-color .15s, opacity .15s;
}
.steps li::before {
  content: counter(s); position: absolute; left: .8rem; top: .75rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--mustard); color: #3B2418; font-weight: 800; font-size: .85rem; border: 2px solid var(--text);
}
.steps li:hover { border-color: var(--orange); }
.steps li.done { opacity: .6; }
.steps li.done::before { content: "✓"; background: var(--good); color: #fff; }
.steps li strong { display: block; }
.steps li span { color: var(--muted); font-size: .88rem; }
.steps li .spec { color: var(--red); font-family: var(--mono); font-size: .8rem; font-weight: 600; }
[data-theme="dark"] .steps li .spec { color: var(--orange); }

/* ---------- footer ---------- */
.footer { margin-top: 5rem; text-align: center; color: var(--muted); font-size: .85rem; }
.footer .stripes { height: 30px; }
.footer-inner { padding: 2rem 1.5rem; background: var(--bg2); }
.footer p { margin: .3rem 0; }

/* ---------- responsive ---------- */
@media (max-width: 1050px) {
  .engine-layout, .wiring-layout, .sub-grid, .guide-cols { grid-template-columns: 1fr; }
  .engine-viewer { height: 480px; }
  .hero-feature { display: none; }
}
@media (max-width: 700px) {
  .topbar { flex-direction: column; align-items: flex-start; padding: .5rem 1rem; }
  .topbar nav { justify-content: flex-start; }
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .hero .car-viewer { position: relative; height: 360px; order: 2; }
  .hero-copy { position: relative; top: 0; left: 0; padding: 1.5rem 1rem 1rem; order: 1; }
  .hero-controls { position: relative; left: 0; transform: none; bottom: 0; order: 3; margin: .8rem 1rem 3rem; border-radius: var(--radius); white-space: normal; }
  .card-grid { grid-template-columns: 1fr; }
}

/* soft scrim so hero copy stays readable over the 3D garage */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 30%, transparent 52%);
}
@media (max-width: 700px) { .hero::before { display: none; } }

/* odometer tiles: keep long values (firing order) inside the card */
.odo-card { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.odo { flex-wrap: wrap; justify-content: center; font-size: .95rem; gap: 2px; max-width: 100%; }
.odo b { min-width: 1.15em; height: 1.8em; }
.odo b.sep { min-width: .45em; padding: 0; }

/* big readout under each gauge; firing order odometer spans two columns on one line */
.gauge .g-big { font-family: var(--display); font-size: 1.65rem; line-height: 1.1; margin-top: .45rem; color: var(--text); }
.gauge .g-big small { font-family: var(--font); font-weight: 700; font-size: .85rem; color: var(--muted); }
.gauge .g-unit { font-size: 7px; }
.odo-card.wide { grid-column: span 2; }
.odo-card.wide .odo { flex-wrap: nowrap; font-size: 1.15rem; }
@media (max-width: 520px) { .odo-card.wide { grid-column: span 1; } .odo-card.wide .odo { font-size: .85rem; } }

/* parts-store links in the part info panel */
.part-info ul.shop { list-style: none; padding: 0; }
.part-info ul.shop li { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; padding: .3rem 0; border-bottom: 1px dotted var(--line); }
.part-info ul.shop li span { font-weight: 700; margin-right: auto; text-transform: capitalize; }
.part-info ul.shop a {
  font-size: .74rem; font-weight: 700; text-decoration: none; padding: .15rem .55rem; border-radius: 999px;
  border: 1.5px solid var(--text); color: var(--text); background: var(--card);
}
.part-info ul.shop a:hover { background: var(--orange); color: #2a160c; }
.part-info .shop-note { font-size: .78rem; color: var(--muted); margin-top: .5rem; }

/* fit all gauges plus the wide firing-order tile on one row on desktop */
.stat-row { grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); }

/* nav link to shop mode */
.topbar nav a.nav-shop { border: 2px solid var(--text); margin-left: .3rem; }
