/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  /* Colour */
  --asphalt: #141414;
  --concrete: #F4F4F1;
  --ink: #1E1E1E;
  --ink-soft: #55575c;
  --line: #D7D5CE;

  /* Single accent pairing, used everywhere */
  --accent: #F2B705;      /* signal yellow — Reviews */
  --accent-ink: #141414;  /* text on yellow */

  /* Pillar accent colours */
  --parts: #2E6F95;       /* workshop steel blue — Parts */
  --parts-ink: #FFFFFF;
  --desirable: #A6192E;   /* heritage red — Desirable Cars */
  --desirable-ink: #FFFFFF;

  /* Type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 3px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   SITE HEADER / NAV
   ========================================================= */
.site-header {
  background: var(--asphalt);
  color: var(--concrete);
  padding: 18px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  background: var(--concrete);
  padding: 6px 12px;
  border-radius: 6px;
}

.site-logo img {
  display: block;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-nav a {
  text-decoration: none;
  color: #C9C9C4;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.site-nav a:hover { color: var(--concrete); }

/* =========================================================
   SIGNATURE ELEMENT — NUMBER PLATE BADGE
   ========================================================= */
.plate-wrap {
  padding: 40px 0 8px;
}

.plate {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 4px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--plate-accent, var(--accent));
}

.plate .plate-sub {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.page-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  margin: 14px 0 4px;
}

/* pillar accent variants */
.plate--review   { --plate-accent: var(--accent); }
.plate--part     { --plate-accent: var(--parts); }
.plate--desirable{ --plate-accent: var(--desirable); }

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.pill--review    { background: var(--accent);     color: var(--accent-ink); }
.pill--part      { background: var(--parts);      color: var(--parts-ink); }
.pill--desirable { background: var(--desirable);  color: var(--desirable-ink); }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.15;
  margin: 4px 0 18px;
  font-weight: 500;
}

h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 40px 0 12px;
  text-transform: none;
}

h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
}

p { margin: 0 0 16px; }

.lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* =========================================================
   LANE-DASH DIVIDER (structural device)
   ========================================================= */
.lane-divider {
  border: none;
  height: 4px;
  margin: 36px 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--ink) 0px, var(--ink) 26px,
    transparent 26px, transparent 44px
  );
  background-position: center;
  background-repeat: repeat-x;
  background-size: auto 4px;
  opacity: 0.85;
}

/* =========================================================
   SPEC TABLE
   ========================================================= */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 14px;
  margin: 20px 0 32px;
  background: #fff;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  width: 40%;
  background: var(--concrete);
  color: var(--ink-soft);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-right: 1px solid var(--ink-soft);
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* =========================================================
   GENERATIONS TABLE (desirable model pages)
   ========================================================= */
.generations-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 32px;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}
.generations-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
}
.generations-table th, .generations-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.generations-table thead th {
  color: var(--ink-soft);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--line);
}
.generations-table tbody th {
  font-weight: 600;
  white-space: normal;
}
.generations-table td.wrap-cell { white-space: normal; }
.generations-table tbody tr:last-child th, .generations-table tbody tr:last-child td { border-bottom: none; }
.generations-table-caption {
  font-size: 12px;
  color: var(--ink-soft);
  margin: -24px 0 24px;
  font-style: italic;
}

/* =========================================================
   SOURCE SUMMARY BLOCKS
   ========================================================= */
.source-block {
  border-left: 3px solid var(--ink);
  padding: 4px 0 4px 18px;
  margin: 20px 0;
}
.source-block h3 { margin-top: 0; }

/* =========================================================
   PROS / CONS
   ========================================================= */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.pros-cons > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.pros-cons h3 { margin-top: 0; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.pros-cons ul { margin: 0; padding-left: 18px; }
.pros-cons li { margin-bottom: 8px; }

@media (max-width: 560px) {
  .pros-cons { grid-template-columns: 1fr; }
  h1 { font-size: 27px; }
  .plate { font-size: 21px; }
}

/* =========================================================
   DISCLAIMER (Parts)
   ========================================================= */
.disclaimer {
  background: #fff;
  border: 1px solid var(--accent);
  border-left-width: 5px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  margin: 20px 0 32px;
}

/* =========================================================
   VIDEO / SOURCE LINKS
   ========================================================= */
.video-links, .sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.video-links li, .sources-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.video-links a, .sources-list a { text-decoration: underline; }

/* =========================================================
   AD SLOT
   ========================================================= */
.ad-slot {
  border: 1px dashed var(--ink-soft);
  padding: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 30px 0;
  border-radius: var(--radius);
}

/* =========================================================
   HOMEPAGE
   ========================================================= */
.hero {
  background: var(--asphalt);
  color: var(--concrete);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    to right,
    var(--accent) 0px, var(--accent) 40px,
    transparent 40px, transparent 64px
  );
}
.hero h1 {
  font-size: 42px;
  max-width: 560px;
  margin: 0 0 14px;
}
.hero p {
  font-size: 18px;
  color: #C9C9C4;
  max-width: 480px;
  margin: 0;
}

.browse-section {
  padding: 50px 0 10px;
}
.browse-section h2 {
  margin-top: 0;
}
.browse-section .section-note {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: -8px;
  margin-bottom: 24px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 10px;
}
.pillar-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: #fff;
  border-top: 5px solid var(--card-accent, var(--accent));
}
.pillar-card.card--review    { --card-accent: var(--accent); }
.pillar-card.card--part      { --card-accent: var(--parts); }
.pillar-card.card--desirable { --card-accent: var(--desirable); }

.pillar-card .k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 8px;
}
.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink);
}
.pillar-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}
.pillar-card p + p {
  margin-top: 10px;
}

.chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px 12px;
  margin: 0 0 8px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--dot-color, var(--accent));
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.chip:hover {
  border-color: var(--dot-color, var(--accent));
  box-shadow: 0 6px 14px rgba(20,20,20,.10);
  transform: translateY(-2px);
}
.chip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot-color, var(--accent));
  flex-shrink: 0;
}
.chip--review     { --dot-color: var(--accent); }
.chip--part       { --dot-color: var(--parts); }
.chip--desirable  { --dot-color: var(--desirable); }

@media (max-width: 700px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .chip-list { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero h1 { font-size: 30px; }
}
.site-footer {
  background: var(--asphalt);
  color: #9C9C97;
  font-size: 13px;
  padding: 34px 0 40px;
  margin-top: 60px;
}
.site-footer a { color: #C9C9C4; text-decoration: none; }

/* Illustrations */
.illustration-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 10px 10px;
  margin: 4px 0 28px;
  text-align: center;
}
.illustration-wrap img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.illustration-wrap .illustration-caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-top: 10px;
}
.illustration-wrap--part img {
  max-width: 200px;
}
.content-plate {
  display: block;
  margin: 28px auto;
  max-width: 100%;
  width: auto;
  height: auto;
}
.content-plate-wrap {
  text-align: center;
  margin: 28px 0;
}

/* =========================================================
   VIDEO EMBEDS
   ========================================================= */
.video-embed-frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: 10px 0 4px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}
.video-embed-frame--full {
  max-width: 100%;
}
.video-embed-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed {
  margin: 12px 0 20px;
}
.video-caption {
  margin: 0 0 2px;
  font-size: 14px;
}
.video-fallback-link {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* =========================================================
   EBAY LISTINGS
   ========================================================= */
.ebay-listings {
  margin: 24px 0;
}
.ebay-listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin: 10px 0;
}
.ebay-listing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.ebay-listing-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #fff;
  margin-bottom: 8px;
}
.ebay-listing-title {
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ebay-listing-price {
  font-weight: 700;
  font-size: 13px;
}
.ebay-disclosure {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* =========================================================
   PARTS SHOP — CTA button (on parts pages) & back button
   ========================================================= */
.shop-cta {
  margin: 30px 0;
  text-align: center;
}
.shop-cta-button {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--parts);
  color: var(--parts-ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: var(--radius);
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.shop-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20,20,20,.18);
}
.shop-cta-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 10px;
}

.shop-back-wrap {
  margin: 40px 0 10px;
  text-align: center;
}
.shop-back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--asphalt);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease;
}
.shop-back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20,20,20,.18);
}
.shop-empty-state {
  text-align: center;
  padding: 40px 20px;
}

/* =========================================================
   MODEL SHOP BUTTON — one per model, full-width, on make-level
   parts hubs, linking straight to /parts-shop for live listings.
   ========================================================= */
.model-shop-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  background: var(--parts);
  color: var(--parts-ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 8px;
  margin: 4px 0 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.model-shop-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(20,20,20,.15);
}
