/* RodderMods — "sticker" system: thick black outlines and hard offset shadows,
   taken from the logo's outlined script and drop shadow. */

:root {
  --red: #EE1B1F;
  --red-deep: #B8121A;
  --black: #000;
  --white: #fff;
  --primer: #E7E6E2;       /* light primer grey, page background */
  --primer-mid: #C9C8C3;
  --primer-dark: #6E7073;  /* secondary text */
  --text: #1C1C1C;
  --euro: #1D5843;         /* racing green for the European side */
  --euro-deep: #123A2C;
  --jdm: #1F3263;          /* indigo (ai-iro) for the Japanese side */
  --jdm-deep: #121E40;
  --amber: #F2A900;
  --line: 3px;
  --shadow: 6px 6px 0 var(--black);
  --shadow-sm: 3px 3px 0 var(--black);
  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gutter: 16px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--primer);
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid #1F6FEB; outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--white); padding: 8px 12px; z-index: 100; border: var(--line) solid var(--black); }
.skip:focus { top: 8px; }
.muted { color: var(--primer-dark); }

h1, h2, h3 {
  font-stretch: 118%;
  font-variation-settings: "wdth" 118;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; line-height: 1.2; }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: 1.18rem; max-width: 62ch; color: var(--text); }
.meta { font-size: .875rem; color: var(--primer-dark); margin: 0; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: 800 1rem/1 var(--font);
  font-variation-settings: "wdth" 110;
  padding: .85em 1.2em;
  border: var(--line) solid var(--black);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--black); color: inherit; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--black); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { color: var(--white); }
.btn-ink { background: var(--black); color: var(--white); box-shadow: 3px 3px 0 var(--white); }
.btn-ink:hover { color: var(--white); box-shadow: 4px 4px 0 var(--white); }
.btn-line { background: var(--white); color: var(--black); }
.btn-paper { background: var(--white); color: var(--black); }
.btn-sm { font-size: .85rem; padding: .55em .8em; border-width: 2px; box-shadow: 2px 2px 0 var(--black); }
.btn-block { width: 100%; }
.aff-note { font-size: .8rem; color: var(--primer-dark); margin-left: .4em; }

.chip {
  display: inline-block; font-size: .78rem; font-weight: 700; line-height: 1;
  padding: .38em .6em; border-radius: 999px; border: 2px solid var(--black); white-space: nowrap;
}
.chip-red { background: var(--red); color: var(--white); }
.chip-ink { background: var(--black); color: var(--white); }
.chip-line { background: var(--white); color: var(--black); }

.sticker { background: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); }
.sticker-soft { background: var(--white); border: 2px solid var(--primer-mid); border-radius: var(--radius); }
.sticker-img { border: var(--line) solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- header ---------- */
.site-head { background: var(--red); border-bottom: var(--line) solid var(--black); position: relative; z-index: 10; }
.is-euro .site-head { background: var(--euro); }
.is-jdm .site-head { background: var(--jdm); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.brand img { width: 210px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav ul a {
  display: block; padding: 8px 10px; color: var(--white); text-decoration: none; font-weight: 750;
  font-variation-settings: "wdth" 108; border-radius: 8px; border: 2px solid transparent;
}
.site-nav ul a:hover { border-color: var(--black); background: var(--black); color: var(--white); }
.site-nav ul a[aria-current="page"] { background: var(--white); color: var(--black); border-color: var(--black); }
.region-switch { display: inline-flex; border: var(--line) solid var(--black); border-radius: 999px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.region-switch a { padding: 6px 14px; font-weight: 800; font-size: .9rem; text-decoration: none; color: var(--black); }
.region-switch a + a { border-left: 2px solid var(--black); }
.region-switch a.on { background: var(--black); color: var(--white); }
.is-euro .region-switch a.on { background: var(--euro-deep); }
.is-jdm .region-switch a.on { background: var(--jdm-deep); }
.nav-toggle {
  display: none; font: 800 1rem var(--font); background: var(--white); color: var(--black);
  border: var(--line) solid var(--black); border-radius: 10px; padding: 8px 14px; box-shadow: var(--shadow-sm); cursor: pointer;
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-block; }
  .brand img { width: 170px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--black); flex-direction: column; align-items: stretch; gap: 14px; padding: 16px;
    border-bottom: var(--line) solid var(--black);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px; font-size: 1.1rem; }
  .region-switch { align-self: flex-start; }
}

.flash { border-bottom: var(--line) solid var(--black); padding: 12px 0; font-weight: 700; }
.flash-ok { background: #FFE58A; }
.flash-error { background: var(--white); color: var(--red-deep); }

/* ---------- home hero ---------- */
.hero { padding: 56px 0 64px; border-bottom: var(--line) solid var(--black); background: var(--primer); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-variation-settings: "wdth" 125; font-weight: 900; letter-spacing: -0.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.hero-note { color: var(--primer-dark); font-size: .95rem; max-width: 46ch; }

/* The price ladder: the one loud element on the page. */
.ladder { margin: 0; padding: 22px 22px 18px; }
.ladder figcaption h2 { font-size: 1.35rem; margin: 0; }
.ladder figcaption p { margin: 2px 0 14px; color: var(--primer-dark); font-size: .92rem; }
.ladder ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ladder li a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; text-decoration: none; }
.ladder-label { font-size: .86rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ladder-bar {
  position: relative; display: block; height: 26px; width: var(--w); min-width: 92px;
  border: 2px solid var(--black); border-radius: 6px; background: var(--red);
  transform-origin: left center;
}
.ladder-bar.is-clip { background: repeating-linear-gradient(-45deg, var(--white) 0 6px, #FFD5D6 6px 12px); }
.ladder-price { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-weight: 850; font-size: .84rem; font-variant-numeric: tabular-nums; color: var(--white); text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.ladder-bar.is-clip .ladder-price { color: var(--black); text-shadow: none; }
.ladder li a:hover .ladder-bar { box-shadow: 3px 3px 0 var(--black); }
.ladder li a:hover .ladder-label { text-decoration: underline; }
.ladder-key { display: flex; align-items: center; gap: 8px; font-size: .82rem; margin: 14px 0 4px; color: var(--primer-dark); }
.key { width: 18px; height: 12px; border: 2px solid var(--black); border-radius: 3px; display: inline-block; }
.key-frame { background: var(--red); }
.key-clip { background: repeating-linear-gradient(-45deg, var(--white) 0 4px, #FFD5D6 4px 8px); margin-left: 10px; }
.ladder-foot { font-size: .88rem; margin: 6px 0 0; }
.ladder-foot a { font-weight: 800; }
@media (prefers-reduced-motion: no-preference) {
  .ladder-bar { animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
  .ladder li:nth-child(2) .ladder-bar { animation-delay: .04s; } .ladder li:nth-child(3) .ladder-bar { animation-delay: .08s; }
  .ladder li:nth-child(4) .ladder-bar { animation-delay: .12s; } .ladder li:nth-child(5) .ladder-bar { animation-delay: .16s; }
  .ladder li:nth-child(6) .ladder-bar { animation-delay: .2s; } .ladder li:nth-child(n+7) .ladder-bar { animation-delay: .24s; }
}
@keyframes grow { from { transform: scaleX(.08); } to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .hero { padding: 36px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- bands & grids ---------- */
.band { padding: 56px 0; }
.band-white { background: var(--white); border-top: var(--line) solid var(--black); border-bottom: var(--line) solid var(--black); }
.band-white + .band-white { border-top: 0; }
.band-ink { background: var(--black); color: var(--white); }
.band-ink h2, .band-ink h3, .band-ink a { color: var(--white); }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.band-head h2 { margin: 0; }
.band-head > a { font-weight: 800; }
.band-head .total { margin: 0; }
.band-title { margin-bottom: 22px; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .band { padding: 40px 0; } }

.empty { padding: 22px 24px; margin: 0; max-width: 760px; }

/* Primer plate: placeholder art in big expanded type */
.plate {
  aspect-ratio: 16 / 10; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px;
  background:
    radial-gradient(circle at 85% 18%, rgba(255,255,255,.55) 0 18%, transparent 19%),
    var(--primer-mid);
  border: var(--line) solid var(--black); border-radius: var(--radius);
  overflow: hidden;
}
.plate-big { font-weight: 900; font-variation-settings: "wdth" 125; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .95; color: var(--black); letter-spacing: -0.02em; }
.plate-small { font-weight: 700; font-size: .95rem; margin-top: 6px; color: var(--black); }
.is-euro .plate { background: radial-gradient(circle at 85% 18%, rgba(255,255,255,.4) 0 18%, transparent 19%), #BFD1C8; }
.is-jdm .plate { background: radial-gradient(circle at 85% 18%, rgba(255,255,255,.4) 0 18%, transparent 19%), #C3CAE0; }

/* ---------- project cards ---------- */
.project-card a { text-decoration: none; display: block; position: relative; }
.project-card img, .project-card .plate { aspect-ratio: 4 / 3; object-fit: cover; border: var(--line) solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); }
.project-card .plate { background: var(--white); }
.project-card a:hover .plate, .project-card a:hover img { box-shadow: 8px 8px 0 var(--red); }
.project-name { display: block; font-weight: 850; font-variation-settings: "wdth" 115; font-size: 1.15rem; margin-top: 14px; }
.project-card p { margin: 4px 0 0; font-size: .95rem; }
.project-status { font-weight: 700; font-size: .88rem !important; display: flex; align-items: center; gap: 7px; }
.project-status.big { font-size: 1rem !important; }
.dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--black); background: var(--primer-mid); display: inline-block; flex: none; }
.dot-planning { background: var(--white); }
.dot-teardown, .dot-chassis-and-suspension, .dot-drivetrain, .dot-paint-and-body, .dot-assembly { background: var(--amber); }
.dot-on-the-road { background: #2EA043; }

/* ---------- deal cards ---------- */
.deal-card { background: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.deal-media { position: relative; display: block; border-bottom: var(--line) solid var(--black); }
.deal-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.deal-media .plate { border: 0; border-radius: 0; }
.deal-body { padding: 16px 18px 18px; }
.deal-body h3 { margin-bottom: 8px; }
.deal-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
.deal-price strong { font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 112; }
.deal-verdict { margin: 10px 0 0; font-size: .95rem; }
.stamp {
  position: absolute; top: 14px; right: 14px; transform: rotate(6deg);
  background: var(--black); color: var(--white); font-weight: 900; font-variation-settings: "wdth" 125;
  padding: 4px 12px; border-radius: 6px; border: 2px solid var(--white); outline: 2px solid var(--black);
}

/* ---------- article cards ---------- */
.story { display: flex; flex-direction: column; }
.story-media { display: block; }
.story-media img, .story-media .plate { aspect-ratio: 16 / 10; object-fit: cover; border: var(--line) solid var(--black); border-radius: var(--radius); }
.story-media .plate { background: var(--primer); }
.story-media .plate-big { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.story-media:hover img, .story-media:hover .plate { box-shadow: var(--shadow); }
.story-body { padding-top: 14px; }
.story-body p { margin: 0 0 8px; }
.kicker { font-size: .85rem; font-weight: 800; color: var(--red-deep); margin: 0 0 6px; }
.kicker a { color: inherit; }
.kicker-comparison { color: #6B3FA0; }
.kicker-review { color: #0B6E4F; }
.rating strong { font-variant-numeric: tabular-nums; }

/* ---------- videos ---------- */
.video { margin: 0; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #222; border: var(--line) solid var(--black); border-radius: var(--radius); overflow: hidden; }
.band-ink .yt { border-color: var(--white); }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; border: 0; cursor: pointer; }
.yt-play span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 70px; height: 50px; border-radius: 14px; background: var(--red); border: var(--line) solid var(--black);
  box-shadow: var(--shadow-sm);
}
.yt-play span::after { content: ""; position: absolute; left: 26px; top: 12px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--white); }
.yt-play:hover span { transform: translate(-50%, -50%) scale(1.06); }
.video figcaption { padding-top: 12px; display: grid; gap: 3px; }
.video figcaption strong { line-height: 1.3; }
.band-ink .meta { color: #BDBDBD; }
.video-note { font-size: .93rem; color: inherit; opacity: .9; }
.video-intro { max-width: 62ch; margin: 0 0 26px; color: #E6E6E6; }

/* ---------- euro band ---------- */
.band-euro { background: var(--euro); color: var(--white); border-top: var(--line) solid var(--black); }
.band-euro h2 { color: var(--white); }
.euro-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.euro-row p { max-width: 52ch; }
.euro-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.euro-list li { padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-weight: 700; break-inside: avoid; }
.euro-list span { font-weight: 400; opacity: .8; font-size: .9rem; margin-left: 4px; }
@media (max-width: 800px) { .euro-row { grid-template-columns: 1fr; } }

/* ---------- home: European and Japanese sides ---------- */
.band-sides { background: var(--black); border-top: var(--line) solid var(--black); }
.sides-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.side-card { color: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 6px 6px 0 #333; }
.side-card h2 { color: var(--white); margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.side-card p { margin: 0; max-width: 52ch; }
.side-card .btn { align-self: flex-start; margin-top: auto; }
.side-euro { background: var(--euro); }
.side-jdm { background: var(--jdm); }
.side-new { font-size: .75rem; font-weight: 900; background: var(--red); color: var(--white); border: 2px solid var(--black); border-radius: 999px; padding: 2px 9px; }
.side-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.side-list li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.25); font-weight: 700; break-inside: avoid; font-size: .95rem; }
.side-list span { font-weight: 400; opacity: .8; font-size: .85rem; margin-left: 4px; white-space: nowrap; }
.side-list .side-more { font-weight: 400; opacity: .85; border-bottom: 0; }
@media (max-width: 900px) { .sides-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .side-list { columns: 1; } .side-card { padding: 20px; } }

/* ---------- newsletter ---------- */
.signup { background: var(--red); border-top: var(--line) solid var(--black); padding: 48px 0; color: var(--white); }
.is-euro .signup { background: var(--euro); }
.is-jdm .signup { background: var(--jdm); }
.signup h2 { color: var(--white); margin-bottom: 6px; }
.signup p { margin: 0; max-width: 52ch; }
.signup-row { display: grid; grid-template-columns: 1fr minmax(300px, 460px); gap: 32px; align-items: center; }
.signup-form { display: flex; gap: 10px; background: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.signup-form input[type=email] { flex: 1; min-width: 0; font: inherit; border: 2px solid var(--black); border-radius: var(--radius-sm); padding: 10px 12px; }
.signup-form .btn-ink { box-shadow: none; }
@media (max-width: 760px) { .signup-row { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .signup-form { flex-direction: column; } }

/* ---------- page heads, filters ---------- */
.page-head { padding: 44px 0 30px; }
.page-head-euro { background: var(--euro); color: var(--white); border-bottom: var(--line) solid var(--black); }
.page-head-euro h1, .page-head-euro .lede { color: var(--white); }
.page-head-jdm { background: var(--jdm); color: var(--white); border-bottom: var(--line) solid var(--black); }
.page-head-jdm h1, .page-head-jdm .lede { color: var(--white); }
.crumbs { margin: 0 0 8px; font-weight: 700; font-size: .92rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filters a { text-decoration: none; font-weight: 750; font-size: .92rem; padding: 7px 13px; border: 2px solid var(--black); border-radius: 999px; background: var(--white); }
.filters a.on { background: var(--black); color: var(--white); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 36px; font-weight: 700; }

/* ---------- platforms ---------- */
.platform-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.platform { border: 2px solid var(--black); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 2px; background: var(--white); }
.platform-years { font-size: .85rem; font-weight: 700; color: var(--primer-dark); font-variant-numeric: tabular-nums; }
.platform-name { font-weight: 850; font-variation-settings: "wdth" 112; font-size: 1.05rem; }
.platform-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9rem; margin-top: 6px; }
.platform-links a { font-weight: 700; }

/* ---------- chassis comparison ---------- */
.platform-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 6px 12px 2px; margin-bottom: 18px; scrollbar-width: thin; }
.platform-tabs a {
  flex: none; display: grid; gap: 1px; text-decoration: none; padding: 10px 14px; min-width: 170px;
  border: 2px solid var(--black); border-radius: 10px; background: var(--white);
}
.platform-tabs a span { font-weight: 800; }
.platform-tabs a small { font-size: .8rem; color: var(--primer-dark); }
.platform-tabs a.on { background: var(--red); color: var(--white); box-shadow: var(--shadow-sm); }
.platform-tabs a.on small { color: var(--white); }
.table-title { margin: 8px 0 12px; }
.table-tools { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.table-tools label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
select, .form input, .form textarea, .search-form input {
  font: inherit; border: 2px solid var(--black); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--white); color: var(--black);
}
.table-scroll { overflow-x: auto; border: var(--line) solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 860px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--primer-mid); }
.spec-table thead th { background: var(--black); color: var(--white); font-weight: 800; font-size: .85rem; position: sticky; top: 0; }
.spec-table tbody tr:last-child > * { border-bottom: 0; }
.spec-table tbody tr:hover { background: #FFF6F6; }
.spec-table tbody th { font-weight: 600; min-width: 220px; }
.spec-table tbody th a { text-decoration: none; }
.spec-table tbody th a:hover { text-decoration: underline; }
.spec-table .maker { display: block; font-weight: 850; font-variation-settings: "wdth" 110; }
.spec-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.spec-table .num strong { display: block; font-size: 1.02rem; }
.spec-table small { display: block; color: var(--primer-dark); font-size: .78rem; margin-top: 3px; }
.spec-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--red); cursor: pointer; }
.compare-bar {
  position: sticky; bottom: 12px; margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius); padding: 10px 12px 10px 18px; box-shadow: var(--shadow);
  z-index: 5;
}
.compare-bar span { font-weight: 700; }
.compare-table { min-width: calc(220px + var(--cols) * 230px); }
.compare-table thead td { background: var(--black); }
.compare-table thead th a { color: var(--white); text-decoration: none; }
.compare-table tbody th { background: var(--primer); width: 200px; font-weight: 800; }
.fine { margin-top: 32px; padding: 20px 22px; max-width: 820px; }
.fine h2 { font-size: 1.1rem; }
.fine p { margin: 0; }

.item-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.spec-sheet { margin: 0; padding: 6px 22px; }
.spec-sheet > div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--primer-mid); }
.spec-sheet > div:last-child { border-bottom: 0; }
.spec-sheet dt { font-weight: 800; }
.spec-sheet dd { margin: 0; }
.price-card { padding: 22px; position: sticky; top: 16px; }
.price-card p { margin: 0 0 10px; }
.price-big { font-size: 2.2rem !important; font-weight: 900; font-variation-settings: "wdth" 120; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: 12px !important; }
.maker-line { display: block; font-size: .5em; font-weight: 800; margin-bottom: 6px; }
.maker-line a { text-decoration: none; color: var(--red-deep); }
.others { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 900px; }
.others li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--white); border: 2px solid var(--black); border-radius: 10px; padding: 10px 14px; }
.others li > a:first-child { flex: 1 1 280px; text-decoration: none; }
.others .maker { font-weight: 850; margin-right: 4px; }
.others-price { font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .item-grid { grid-template-columns: 1fr; } .spec-sheet > div { grid-template-columns: 1fr; gap: 2px; } .price-card { position: static; } }

/* ---------- posts ---------- */
.post-head { padding: 44px 0 26px; }
.byline { font-size: .92rem; color: var(--primer-dark); }
.post-hero { margin-bottom: 30px; }
.post-hero img { width: 100%; max-height: 560px; object-fit: cover; }
.post-body { padding-bottom: 56px; }
.prose { font-size: 1.07rem; line-height: 1.68; }
.prose h2 { margin-top: 1.6em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose a { color: var(--red-deep); font-weight: 600; }
.prose img { border: var(--line) solid var(--black); border-radius: var(--radius); margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 6px solid var(--red); font-size: 1.12rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border: 2px solid var(--black); padding: 8px 10px; text-align: left; }
.prose th { background: var(--primer); }
.draft-note { display: inline-block; background: var(--amber); border: 2px solid var(--black); padding: 4px 10px; border-radius: 6px; font-weight: 800; }
.verdict { padding: 20px 22px; margin: 0 0 30px; }
.verdict-score { font-size: 1.1rem; margin: 0 0 10px; }
.verdict-score strong { font-size: 2.6rem; font-weight: 900; font-variation-settings: "wdth" 125; }
.verdict-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.verdict h2 { font-size: 1.05rem; }
.verdict ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 600px) { .verdict-cols { grid-template-columns: 1fr; } }
.callout { padding: 20px 22px; margin-top: 30px; display: grid; gap: 12px; justify-items: start; }
.callout p { margin: 0; }

/* ---------- deal page ---------- */
.deal-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 56px; }
.deal-photo { position: relative; margin-bottom: 28px; }
.deal-side .price-card { position: sticky; top: 16px; }
.mini-specs { margin: 14px 0 16px; padding: 0; }
.mini-specs > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--primer-mid); font-size: .95rem; }
.mini-specs dt { font-weight: 700; }
.mini-specs dd { margin: 0; text-align: right; }
.fine-print { font-size: .84rem; color: var(--primer-dark); margin-top: 16px; }
@media (max-width: 860px) { .deal-grid { grid-template-columns: minmax(0, 1fr); } .deal-side .price-card { position: static; } }

/* ---------- projects ---------- */
.project-hero { padding: 44px 0; }
.project-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.project-hero .plate { aspect-ratio: 4 / 3; background: var(--white); box-shadow: var(--shadow); }
.project-hero .plate-big { font-size: clamp(3rem, 9vw, 6.5rem); }
.project-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.plan { padding: 18px 22px; }
.plan h2 { font-size: 1.25rem; }
.plan dl { margin: 0; }
.plan dl > div { padding: 9px 0; border-bottom: 1px solid var(--primer-mid); }
.plan dl > div:last-child { border-bottom: 0; }
.plan dt { font-weight: 850; font-size: .92rem; }
.plan dd { margin: 0; }
.parts-table { min-width: 680px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: var(--line) solid var(--black); }
.timeline li { position: relative; padding: 0 0 34px; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: var(--line) solid var(--black); }
.timeline time { font-weight: 800; font-size: .9rem; color: var(--red-deep); }
.timeline img { margin: 12px 0; }
@media (max-width: 820px) { .project-hero-grid, .project-grid { grid-template-columns: 1fr; } }

/* ---------- brands ---------- */
.brand-groups { columns: 3 280px; column-gap: 40px; }
.brand-group { break-inside: avoid; margin-bottom: 30px; }
.brand-group h2 { font-size: 1.2rem; padding-bottom: 6px; border-bottom: var(--line) solid var(--black); }
.brand-group ul { list-style: none; margin: 0; padding: 0; }
.brand-group li { padding: 6px 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.brand-group li a { font-weight: 750; }
.brand-head { display: flex; gap: 24px; align-items: center; }
.brand-logo { width: 120px; height: 120px; object-fit: contain; background: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius); padding: 10px; }

/* ---------- forms ---------- */
.form { padding: 24px; display: grid; gap: 6px; }
.form label { font-weight: 800; margin-top: 8px; }
.form input, .form textarea, .form select { width: 100%; }
.form .btn { margin-top: 16px; justify-self: start; }
.form-error { background: #FFF0F0; border: 2px solid var(--red); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 6px; font-weight: 700; }
.hint { font-size: .86rem; color: var(--primer-dark); margin: 2px 0 0; }
.search-form { display: flex; gap: 10px; max-width: 560px; margin-top: 12px; }
.search-form input { flex: 1; min-width: 0; }
.links-row { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 800; }

/* ---------- ads ---------- */
.ad-slot { max-width: var(--wrap); margin: 28px auto; padding: 0 var(--gutter); min-height: 90px; text-align: center; }
.ad-preview { border: 2px dashed var(--primer-dark); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--primer-dark); font-size: .88rem; padding: 18px; max-width: calc(var(--wrap) - 2 * var(--gutter)); }
.price-card .ad-slot { padding: 0; margin: 18px 0 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--black); color: #DADADA; padding: 52px 0 26px; }
.site-foot a { color: var(--white); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h2 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-brand img { border-radius: 14px; border: 2px solid var(--white); margin-bottom: 12px; }
.foot-brand p { max-width: 34ch; margin: 0 0 10px; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 700; }
.foot-legal { border-top: 1px solid #333; margin-top: 36px; padding-top: 18px; font-size: .85rem; color: #A8A8A8; }
.foot-legal p { margin: 0 0 6px; }
.foot-legal a { text-decoration: underline; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Plates inside links shouldn't inherit link underlines */
a .plate, a .plate * { text-decoration: none; }

/* ---------- chassis car picker ---------- */
.car-picker { display: grid; gap: 8px; margin: 24px 0 10px; max-width: 640px; }
.car-picker label { font-weight: 800; font-size: 1.02rem; }
.car-picker-row { display: flex; gap: 10px; background: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.car-picker select { flex: 1; min-width: 0; font-size: 1.02rem; font-weight: 600; padding: 10px 12px; }
.car-picker .btn { box-shadow: none; white-space: nowrap; }
@media (max-width: 520px) { .car-picker-row { flex-direction: column; } }
.hero-alt { margin: 6px 0 14px; font-weight: 700; }
.picker-hero { padding: 48px 0 40px; }
.picker-hero .car-picker { max-width: 720px; }

.car-dir { columns: 3 300px; column-gap: 36px; }
.car-dir-group { break-inside: avoid; margin-bottom: 28px; }
.car-dir-group h3 { font-size: 1.05rem; padding-bottom: 6px; margin-bottom: 4px; border-bottom: var(--line) solid var(--black); }
.car-dir-group ul { list-style: none; margin: 0; padding: 0; }
.car-dir-group li a { display: grid; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--primer-mid); text-decoration: none; }
.car-dir-group li a:hover .car-dir-name { text-decoration: underline; }
.car-dir-name { font-weight: 750; }
.car-dir-years { font-variant-numeric: tabular-nums; color: var(--red-deep); }
.car-dir-meta { font-size: .86rem; color: var(--primer-dark); }

.plat-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.plat-head .car-picker { margin: 0; }
.plat-head .car-picker-row { box-shadow: var(--shadow-sm); }
.builder-list { font-size: .92rem; color: var(--primer-dark); max-width: 70ch; }
@media (max-width: 900px) { .plat-head { grid-template-columns: 1fr; } }
.jump { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 22px; }
.jump a { font-weight: 750; font-size: .92rem; padding: 7px 13px; border: 2px solid var(--black); border-radius: 999px; background: var(--white); text-decoration: none; }
.jump a:hover { background: var(--black); color: var(--white); }

.row-factory { background: #FFF6DA; }
.spec-table tbody tr.row-factory:hover { background: #FFEFC2; }
.chip-amber { background: var(--amber); color: var(--black); }
.price-note { max-width: 190px; margin-left: auto; white-space: normal; }

.factory-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; margin-bottom: 34px; }
.upgrade-path { padding: 20px 22px; background: #FFF6DA; }
.upgrade-path h3 { font-size: 1.15rem; }
.upgrade-path p { margin: 0 0 12px; }
.floor strong { font-size: 1.6rem; font-weight: 900; font-variation-settings: "wdth" 120; font-variant-numeric: tabular-nums; display: block; line-height: 1.1; }
.kits-title { font-size: 1.25rem; margin-bottom: 14px; }
.kits-table { min-width: 760px; }
.kits-table td:first-child { width: 150px; }
.project-note { margin-top: 20px; font-weight: 600; }
@media (max-width: 860px) { .factory-grid { grid-template-columns: 1fr; } }
.car-picker select { width: 100%; }
.car-picker, .car-picker-row { min-width: 0; }
.plat-head { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 900px) { .plat-head { grid-template-columns: minmax(0, 1fr); } }

/* Car silhouettes (drawn to one scale: 80 units = 80 inches tall) */
.car-dir-group li a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name sil" "meta sil"; column-gap: 14px; align-items: center; }
.car-dir-name { grid-area: name; }
.car-dir-meta { grid-area: meta; }
.car-sil { grid-area: sil; height: 34px; width: auto; justify-self: end; }
.car-sil-lg { display: block; height: 72px; width: auto; margin: 4px 0 12px; }
@media (max-width: 520px) { .car-sil { height: 28px; } .car-sil-lg { height: 56px; } }

/* ---------- Deal Finds: badges, filters, article ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.badge { display: inline-block; padding: 3px 9px 2px; border: 2px solid var(--black); border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; line-height: 1.3; white-space: nowrap; font-variation-settings: "wdth" 108; }
.badge-parts { background: #5B5E63; color: #fff; }
.badge-project { background: var(--amber); color: var(--black); }
.badge-driver { background: #1F6FEB; color: #fff; }
.badge-collector { background: #6B3FA0; color: #fff; }
.badge-probuild { background: var(--red); color: #fff; }
.badge-rare { background: var(--black); color: #fff; }
.badge-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 16px; font-size: .9rem; }
.badge-help { margin-right: 14px; color: var(--primer-dark); }
.post-head .badges { margin-bottom: 12px; }

.deals-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.deal-filters { padding: 18px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; }
.deal-filters fieldset { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; }
.deal-filters legend, .deal-filters > label:not(.check), .deal-filters .two label { font-weight: 800; font-size: .85rem; margin: 8px 0 2px; padding: 0; }
.deal-filters input:not([type=checkbox]), .deal-filters select { width: 100%; min-width: 0; padding: 8px 10px; border: 2px solid var(--black); border-radius: var(--radius-sm); font: inherit; font-size: .95rem; background: var(--white); }
.deal-filters .btn { margin-top: 14px; }
/* Desktop: the filter box scrolls on its own (mouse wheel over it) and "Show finds" stays pinned at its bottom. */
@media (min-width: 901px) {
  .deal-filters { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 0; }
  .deal-filters .btn-block[type=submit] { position: sticky; bottom: 12px; z-index: 1; margin-bottom: 12px; box-shadow: 2px 2px 0 var(--black), 0 14px 0 12px var(--white); }
  .deal-filters .clear-link { margin-bottom: 14px; }
}
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; margin: 2px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two > div { display: flex; flex-direction: column; min-width: 0; }
.clear-link { text-align: center; font-size: .9rem; margin-top: 8px; }
.deals-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.deals-bar p { margin: 0; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { font-weight: 800; font-size: .9rem; }
.sort-form select { padding: 7px 10px; border: 2px solid var(--black); border-radius: var(--radius-sm); font: inherit; font-size: .95rem; background: var(--white); max-width: 220px; }
.deal-grid-list { gap: 22px; }
.track { margin: 40px 0 0; }
.track ul { padding-left: 1.2em; }
.track li { margin: 6px 0; }
.deals-layout .fine { margin-top: 36px; padding: 18px 22px; }
.deals-layout .fine h2 { font-size: 1.1rem; }

.deal-plate { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; background: var(--primer); }
.deal-sil { width: 88%; height: auto; max-height: 72%; object-fit: contain; margin: auto auto 0; display: block; }
.deal-plate-big { aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.deal-card.is-over { opacity: .72; }
.deal-card.is-over:hover { opacity: 1; }

.rare-note { padding: 14px 18px; margin: 0 0 24px; display: flex; gap: 10px; align-items: baseline; }
.comp-list { font-size: .95rem; }
.before-buy { padding: 16px 20px; margin-top: 20px; }
.before-buy h3 { font-size: 1rem; margin: 0 0 6px; }
.before-buy ul { margin: 0; padding-left: 1.1em; font-size: .92rem; }

@media (max-width: 900px) {
  .deals-layout { grid-template-columns: minmax(0, 1fr); }
  .deal-filters { position: static; }
}
.deal-media .deal-sil { aspect-ratio: auto; object-fit: contain; width: 86%; height: auto; max-height: 70%; }
.deal-photo > .meta { margin-top: 10px; }

/* Deal Finds results and value history */
.deal-tabs { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.deal-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: var(--line) solid var(--black); border-radius: 999px; background: var(--white); color: var(--black); font-weight: 800; text-decoration: none; }
.deal-tabs a span { font-size: .8rem; background: var(--primer); border-radius: 999px; padding: 1px 8px; }
.deal-tabs a[aria-current] { background: var(--black); color: var(--white); }
.deal-tabs a[aria-current] span { background: var(--red); color: var(--white); }
.value-history { margin: 40px 0 0; }
.value-history h3 { margin: 24px 0 10px; }
.value-history .spec-table { min-width: 0; }
.value-history .sales-table { min-width: 640px; }
.value-history .badges { margin: 0; }
.sales-table th .meta { display: block; font-weight: 400; font-size: .85rem; }
.deal-article .value-history { margin-bottom: 32px; }
.is-results .deal-card.is-over { opacity: 1; }

/* Listing photos shown from the listing site */
.deal-media { overflow: hidden; }
.deal-media .deal-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.deal-photo .deal-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deal-photo:has(.deal-remote) { aspect-ratio: 16 / 10; }
.deal-photo:has(.deal-remote) .plate { height: 100%; }
.deal-media .stamp, .deal-photo .stamp { z-index: 2; }
.photo-credit { margin: -18px 0 24px; }

/* Account menu */
.site-nav ul li.acct { position: relative; }
.acct-menu summary { list-style: none; cursor: pointer; display: block; padding: 8px 10px; color: var(--white); font-weight: 750; font-variation-settings: "wdth" 108; border-radius: 8px; border: 2px solid var(--white); white-space: nowrap; }
.acct-menu summary::-webkit-details-marker { display: none; }
.acct-menu summary::after { content: " ▾"; }
.acct-menu[open] summary, .acct-menu summary:hover { background: var(--black); border-color: var(--black); }
.site-nav ul li.acct > a { border-color: var(--white); }
.acct-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--amber); color: var(--black); font-size: .78rem; font-weight: 900; text-align: center; line-height: 1.5; }
.acct-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; z-index: 50; display: grid; gap: 2px; }
.acct-panel a, .acct-panel button { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--black); text-decoration: none; font: 700 .95rem var(--font); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.acct-panel a:hover, .acct-panel button:hover { background: var(--primer); }
.acct-panel form { margin: 4px 0 0; border-top: 2px solid var(--primer-mid); padding-top: 4px; }
.acct-who { margin: 2px 10px 6px; font-size: .82rem; color: var(--primer-dark); }
.owner-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; padding: 8px 12px; background: var(--amber); border: 2px solid var(--black); border-radius: 10px; font-weight: 700; font-size: .9rem; }
.owner-bar a { color: var(--black); }
@media (max-width: 1020px) {
  .acct-panel { position: static; width: auto; margin-top: 8px; box-shadow: none; }
  .acct-menu summary { padding: 12px; font-size: 1.1rem; }
}
.site-nav .acct-panel a { color: var(--black); border: 0; padding: 9px 10px; font-size: .95rem; display: flex; }
.site-nav .acct-panel a:hover { background: var(--primer); color: var(--black); }
@media (min-width: 1021px) {
  .site-nav { gap: 14px; }
  .site-nav ul { flex-wrap: nowrap; gap: 2px; }
  .site-nav ul a { white-space: nowrap; }
  .site-nav ul a, .acct-menu summary { padding: 7px 8px; }
}
@media (min-width: 1021px) and (max-width: 1240px) {
  .brand img { width: 160px; }
  .site-nav ul a, .acct-menu summary { font-size: .92rem; padding: 6px 6px; }
  .region-switch a { padding: 5px 10px; font-size: .82rem; }
}

/* ---------- Upgrade your Ride: menu dropdown ---------- */
.site-nav ul li.drop { position: relative; }
.nav-drop summary {
  list-style: none; cursor: pointer; display: block; padding: 8px 10px; color: var(--white); font-weight: 750;
  font-variation-settings: "wdth" 108; border-radius: 8px; border: 2px solid transparent; white-space: nowrap;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: " ▾"; }
.nav-drop summary:hover, .nav-drop[open] summary { background: var(--black); border-color: var(--black); }
.nav-drop summary.on { background: var(--white); color: var(--black); border-color: var(--black); }
.drop-panel {
  position: absolute; left: 0; top: calc(100% + 8px); width: 290px; background: var(--white); border: var(--line) solid var(--black);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; z-index: 50; display: grid; gap: 2px;
}
.site-nav .drop-panel a { color: var(--black); border: 0; padding: 9px 10px; font-size: .95rem; display: block; white-space: normal; border-radius: 8px; }
.site-nav .drop-panel a:hover { background: var(--primer); color: var(--black); }
.site-nav .drop-panel a.drop-all { font-weight: 900; border-bottom: 2px solid var(--primer-mid); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
@media (min-width: 1021px) { .nav-drop summary { padding: 7px 8px; } }
@media (min-width: 1021px) and (max-width: 1240px) { .nav-drop summary { font-size: .92rem; padding: 6px 6px; } }
@media (max-width: 1020px) {
  .drop-panel { position: static; width: auto; margin-top: 8px; box-shadow: none; }
  .nav-drop summary { padding: 12px; font-size: 1.1rem; }
}

/* ---------- Upgrade your Ride: pages ---------- */
.up-hero h1 { margin: 0 0 10px; }
.up-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.up-card { padding: 22px 24px; }
.up-card h2 { margin: 0 0 10px; font-size: 1.35rem; }
.up-card p { margin: 0 0 .8em; }
.up-card p:last-child { margin-bottom: 0; }
.up-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.up-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--primer-mid); }
.up-item:last-child { border-bottom: 0; }
.up-what { display: grid; gap: 2px; }
.up-vendor { font-weight: 850; font-variation-settings: "wdth" 110; }
.up-name { font-size: .95rem; }
.up-fits { font-size: .82rem; color: var(--primer-dark); }
.up-price { display: flex; align-items: center; gap: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.up-price strong { font-size: 1.05rem; }
.up-gap { margin-top: 40px; }
.up-note { margin: 16px 0 0; font-weight: 600; }
.up-vendors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.up-vendor-card { background: var(--white); border: 2px solid var(--primer-mid); border-radius: var(--radius); padding: 16px 18px; }
.up-vendor-card.is-for-car { border: var(--line) solid var(--black); box-shadow: var(--shadow-sm); }
.up-vendor-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.up-vendor-card p { margin: 0 0 8px; font-size: .93rem; }
.up-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.up-tags:empty { display: none; }
.up-covers { color: var(--primer-dark); font-size: .84rem !important; }
.up-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.up-chips a { display: inline-block; padding: 8px 14px; border: var(--line) solid var(--black); border-radius: 999px; background: var(--white); font-weight: 800; text-decoration: none; box-shadow: var(--shadow-sm); }
.up-chips a:hover { background: var(--black); color: var(--white); }
.up-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.up-tile > a { display: flex; flex-direction: column; height: 100%; padding: 18px 18px 16px; text-decoration: none; color: inherit; }
.up-tile > a:hover { color: inherit; }
.up-tile:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--black); }
.up-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white); font-weight: 900; border: 2px solid var(--black); margin-bottom: 10px; }
.up-tile h2 { margin: 0 0 4px; font-size: 1.2rem; line-height: 1.2; }
.up-head { margin: 0 0 8px; font-weight: 700; font-size: .9rem; color: var(--red-deep); }
.up-tile p { margin: 0 0 10px; font-size: .92rem; }
.up-count { margin-top: auto; font-weight: 800; font-size: .86rem; }
@media (max-width: 1000px) { .up-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .up-vendors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .up-why, .up-vendors { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .up-grid { grid-template-columns: minmax(0, 1fr); }
  .up-item { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .up-price { justify-content: space-between; }
}

/* Home: upgrade strip */
.home-up { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-up a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); font-weight: 800; text-decoration: none; height: 100%; }
.home-up a:hover { background: var(--black); color: var(--white); }
.home-up .up-num { width: 28px; height: 28px; margin: 0; flex: none; font-size: .85rem; }
@media (max-width: 900px) { .home-up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .home-up { grid-template-columns: minmax(0, 1fr); } }
.project-plan { margin: 6px 0 0; padding: 0; list-style: none; font-size: .86rem; }
.project-plan li { padding: 2px 0; }
.project-plan strong { font-weight: 800; }
.shop-new { margin: -8px 0 18px; font-weight: 800; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* Product photos on upgrade lists */
.up-item { grid-template-columns: 84px minmax(0, 1fr) auto; }
.up-photo { width: 84px; height: 84px; border: 2px solid var(--primer-mid); border-radius: var(--radius-sm); background: var(--white); display: grid; place-items: center; overflow: hidden; }
.up-photo img { width: 100%; height: 100%; object-fit: contain; }
.up-photo.is-empty { background: var(--primer) url("../img/rm-192.png") center / 46% no-repeat; opacity: .55; }
@media (max-width: 560px) {
  .up-item { grid-template-columns: 64px minmax(0, 1fr); }
  .up-photo { width: 64px; height: 64px; grid-row: span 2; }
}

/* ---------- Home: Deal Finds gallery ---------- */
.dg { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.dg-track { position: relative; }
.dg-slide { display: grid; grid-template-rows: auto 1fr; }
.dg-slide[hidden] { display: none; }
.dg-slide.is-on { animation: dg-in .45s ease; }
@keyframes dg-in { from { opacity: 0; } to { opacity: 1; } }
.dg-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--primer); border-bottom: var(--line) solid var(--black); overflow: hidden; }
.dg-media .plate { position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; display: grid; place-content: center; }
.dg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dg-region { position: absolute; left: 12px; top: 12px; background: var(--red); color: var(--white); font-weight: 900; font-size: .8rem; padding: 4px 10px; border: 2px solid var(--black); border-radius: 999px; box-shadow: var(--shadow-sm); }
.dg-region.is-euro { background: var(--euro); }
.dg-region.is-jdm { background: var(--jdm); }
.dg-body { padding: 16px 20px 6px; }
.dg-body h2 { font-size: 1.28rem; line-height: 1.22; margin: 6px 0 8px; }
.dg-body h2 a { text-decoration: none; }
.dg-body h2 a:hover { text-decoration: underline; }
.dg-body .meta { margin: 0 0 3px; font-size: .9rem; color: var(--primer-dark); }
.dg-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.dg-price strong { font-size: 1.35rem; }
.dg-verdict { margin: 8px 0 0; font-size: .95rem; }
.dg-controls { display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px; margin-top: auto; }
.dg-btn { font: 900 1.1rem var(--font); width: 36px; height: 36px; border: 2px solid var(--black); border-radius: 50%; background: var(--white); cursor: pointer; line-height: 1; }
.dg-btn:hover { background: var(--black); color: var(--white); }
.dg-pause { font-size: .7rem; margin-left: 4px; }
.dg-dots { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; justify-content: center; }
.dg-dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid var(--black); background: var(--white); cursor: pointer; }
.dg-dot[aria-selected="true"] { background: var(--red); }
.dg-empty { padding: 24px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .dg-slide.is-on { animation: none; } }

/* ---------- Header: keep the logo visible ---------- */
.brand { flex: none; }
@media (min-width: 1021px) {
  .brand img { width: 150px; }
  .head-row { gap: 12px; }
  .site-nav { gap: 10px; }
  .site-nav ul a, .acct-menu summary, .nav-drop summary { font-size: .9rem; padding: 6px 6px; }
  .region-switch a { padding: 5px 9px; font-size: .8rem; }
}
@media (min-width: 1021px) and (max-width: 1180px) {
  .brand img { width: 120px; }
  .site-nav ul a, .acct-menu summary, .nav-drop summary { font-size: .84rem; padding: 5px 5px; }
  .site-nav ul { gap: 0; }
}
@media (min-width: 1021px) and (max-width: 1100px) {
  /* three sides in the switch: squeeze a little more so "My account" fits */
  .brand img { width: 104px; }
  .head-row, .site-nav { gap: 6px; }
  .region-switch a { padding: 4px 6px; font-size: .74rem; }
  .site-nav ul a, .acct-menu summary, .nav-drop summary { font-size: .8rem; padding: 5px 4px; }
}
@media (max-width: 560px) { .up-photo { align-self: start; } }

/* ---------- Donor cars ---------- */
.donor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.donor { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.donor-head h3 { margin: 4px 0 0; font-size: 1.2rem; line-height: 1.25; }
.donor-fam { margin: 0; font-weight: 700; font-size: .88rem; color: var(--primer-dark); }
.donor-spec { margin: 0; display: grid; gap: 6px; font-size: .93rem; }
.donor-spec div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; }
.donor-spec dt { font-weight: 800; }
.donor-spec dd { margin: 0; }
.donor-price { background: var(--primer); border: 2px solid var(--black); border-radius: var(--radius-sm); padding: 10px 12px; }
.donor-price strong { display: block; font-size: 1.35rem; font-variation-settings: "wdth" 110; }
.donor-price span { font-size: .85rem; color: var(--primer-dark); }
.donor-family + .donor-family { margin-top: 40px; }
.donor-fam-title { font-size: 1.3rem; margin: 0 0 12px; }
.donor-why { border-left: 6px solid var(--red); padding: 14px 18px; margin-bottom: 20px; max-width: 860px; }
.donor-why h3 { margin: 0 0 6px; font-size: 1rem; }
.donor-why ul { margin: 0; padding-left: 18px; font-size: .94rem; }
.donor-why li + li { margin-top: 3px; }
.donor-text p { margin: 0 0 8px; font-size: .93rem; line-height: 1.5; }
.donor-fits { margin: 0; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.donor-fits > span:first-child { font-weight: 800; margin-right: 2px; }
.donor-fits a { border: 2px solid var(--black); border-radius: 999px; padding: 2px 9px; text-decoration: none; font-weight: 700; background: var(--white); }
.donor-fits a:hover { background: var(--black); color: var(--white); }
.donor-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.donor-src summary { cursor: pointer; font-weight: 700; font-size: .88rem; }
.donor-src ul { margin: 6px 0 0; padding-left: 18px; font-size: .85rem; }
.donor-src li { margin-bottom: 3px; overflow-wrap: anywhere; }
.jump + .band-head { margin-top: 10px; }
@media (max-width: 420px) { .donor-grid { grid-template-columns: 1fr; } .donor { padding: 16px; } .donor-spec div { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Chassis stiffening ---------- */
.stiff-callout { margin: 0 0 18px; padding: 12px 16px; border-left: 6px solid var(--red); }
.btn-amazon { background: #FFD814; color: var(--black); border: 2px solid var(--black); }
.btn-amazon:hover { background: #F7CA00; }

/* Cookie notice and privacy settings */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.consent { position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.consent-box { pointer-events: auto; max-width: 640px; width: 100%; background: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.consent-title { margin: 0 0 4px; font-weight: 800; font-size: 1.02rem; }
.consent-text { margin: 0 0 12px; font-size: .9rem; line-height: 1.45; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.consent-modal { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: var(--gutter); }
.consent-modal[hidden], .consent[hidden] { display: none; }
.consent-panel { background: var(--white); border: var(--line) solid var(--black); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; max-width: 560px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; }
.consent-panel h2 { margin: 0 0 6px; font-size: 1.4rem; }
.consent-opt { border-top: 2px solid var(--primer-mid); padding: 10px 0; }
.consent-opt label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.consent-opt input { width: 20px; height: 20px; accent-color: var(--red); }
.consent-opt p { margin: 4px 0 0 30px; font-size: .88rem; color: var(--primer-dark); line-height: 1.4; }
.consent-opt .consent-gpc { color: var(--text); font-weight: 600; }
body.consent-open { overflow: hidden; }
.site-foot .link-btn { font-size: inherit; text-decoration: none; }
.site-foot .link-btn:hover { text-decoration: underline; }
@media (max-width: 560px) { .consent-actions .btn { flex: 1 1 auto; text-align: center; } }

/* Send us a deal */
.ocr-status { margin: 4px 0 8px; font-size: .9rem; font-weight: 600; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.local-note { margin: 10px 0 0; font-size: .88rem; line-height: 1.45; }
.crumbs { margin: 0 0 6px; font-size: .9rem; font-weight: 700; }
