/* ============================================
     Take B spec cards — kill old SVG bike, replace with typography card
     ============================================ */

  /* Override old .bike layout */
  .bike {
    background: #161616;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #1f1f1f;
    transition: border-color 0.2s;
  }
  .bike:hover { border-color: #2f2f2f; }

  /* Hide all old card internals — we replace markup but defensive CSS */
  .bike-art, .bike-era-tag, .bike-name, .bike-year,
  .specs, .aids-section, .spec-row, .aids-list, .aids-heading {
    display: none !important;
  }

  /* Page-level brand badge — sits in hero area above the breadcrumb */
  .page-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    margin-bottom: 18px;
  }
  .page-brand-flag {
    width: 28px;
    height: 18px;
    border-radius: 2px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
  }
  .page-brand-flag svg { display: block; width: 100%; height: 100%; }
  .page-brand-name {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #d4d4d4;
    text-transform: uppercase;
    line-height: 1;
  }
  .page-brand-name.long { font-size: 14px; letter-spacing: 1.5px; }
  .page-brand-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #666;
    text-transform: uppercase;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.1);
    margin-left: 4px;
  }

  /* New v2 card structure */
  .bike-v2-head {
    padding: 14px 20px 14px;
    border-bottom: 1px solid #1f1f1f;
  }
  .bike-v2-year {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    display: block;
  }
  .bike-v2-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: #888;
    margin-top: 6px;
    display: block;
    text-transform: uppercase;
  }

  .bike-v2-body {
    padding: 16px 20px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .bike-v2-name {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 4px;
    color: #fff;
    line-height: 1.15;
  }
  .bike-v2-ctx {
    font-size: 12px;
    color: #999;
    margin: 0 0 12px;
    line-height: 1.45;
    min-height: 33px;
  }
  .bike-v2-engine {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
  }

  .bike-v2-hero-num {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 14px;
  }
  .bike-v2-big-num {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
  }
  .bike-v2-big-unit {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #888;
    font-weight: 500;
  }

  .bike-v2-sub-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #666;
  }
  .bike-v2-sub-stats > div { text-align: center; }
  .bike-v2-sub-stats span {
    display: block;
    font-size: 17px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 2px;
  }
  .bike-v2-sub-stats label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .bike-v2-tech {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #222;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.5px;
  }
  .bike-v2-tech-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #888;
  }
  .bike-v2-tech-item.has::before {
    content: '●';
    color: #5a8a8a;
    font-size: 8px;
  }
  .bike-v2-tech-item.no::before {
    content: '○';
    color: #444;
    font-size: 8px;
  }
  .bike-v2-tech-item.no { color: #555; }

  .bike-v2-issues {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px dashed #555;
    background: rgba(255,255,255,0.02);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    line-height: 1.5;
    color: #b0a89c;
  }
  .bike-v2-issues-label {
    display: block;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d94e1f;
    margin-bottom: 6px;
    font-weight: 600;
  }
  .bike-v2-issues ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .bike-v2-issues li {
    padding: 2px 0;
    color: #c8c0b4;
  }
  .bike-v2-issues li::before {
    content: "▸ ";
    color: #888;
  }
  .bike-v2-issues .issue-years {
    color: #888;
    font-size: 9.5px;
    font-style: italic;
  }
  .bike-v2-issues .none {
    color: #6a8a6a;
    font-style: italic;
    font-size: 10px;
  }
  .bike.is-gap .bike-v2-issues {
    border-color: #333;
    color: #555;
  }
  .bike.is-gap .bike-v2-issues-label { color: #555; }

  .bike-v2-price {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px solid;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
  }
  .bike-v2-price > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .bike-v2-price label {
    color: #666;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 10px;
  }
  .bike-v2-price strong {
    color: #ddd;
    font-weight: 600;
  }
  .bike-v2-price .hilite strong {
    font-weight: 700;
    font-size: 13px;
  }

  /* GAP / GONE state */
  .bike.is-gap .bike-v2-year,
  .bike.is-gap .bike-v2-big-num,
  .bike.is-gap .bike-v2-tag,
  .bike.is-gap .bike-v2-engine,
  .bike.is-gap .bike-v2-name { color: #666 !important; }
  .bike.is-gap .bike-v2-name {
    text-decoration: line-through;
    text-decoration-color: #444;
  }
  .bike.is-gap .bike-v2-sub-stats span,
  .bike.is-gap .bike-v2-price strong { color: #555; }
  .bike.is-gap .bike-v2-price { border-top-color: #444 !important; }
  .bike.is-gap .bike-v2-price .hilite strong { color: #888; }

  /* Era colour assignments — override at top of card via inline style */
  .bike.era-1996 .bike-v2-year,
  .bike.era-1996 .bike-v2-big-num,
  .bike.era-1996 .bike-v2-engine { color: #8a6d3b; }
  .bike.era-1996 .bike-v2-price { border-top-color: #8a6d3b; }
  .bike.era-1996 .bike-v2-head {
    background: linear-gradient(180deg, rgba(138,109,59,0.12) 0%, transparent 100%);
  }

  .bike.era-2006 .bike-v2-year,
  .bike.era-2006 .bike-v2-big-num,
  .bike.era-2006 .bike-v2-engine { color: #c14d2a; }
  .bike.era-2006 .bike-v2-price { border-top-color: #c14d2a; }
  .bike.era-2006 .bike-v2-head {
    background: linear-gradient(180deg, rgba(193,77,42,0.12) 0%, transparent 100%);
  }

  .bike.era-2016 .bike-v2-year,
  .bike.era-2016 .bike-v2-big-num,
  .bike.era-2016 .bike-v2-engine { color: #5a8a8a; }
  .bike.era-2016 .bike-v2-price { border-top-color: #5a8a8a; }
  .bike.era-2016 .bike-v2-head {
    background: linear-gradient(180deg, rgba(90,138,138,0.12) 0%, transparent 100%);
  }

  .bike.era-2026 .bike-v2-year,
  .bike.era-2026 .bike-v2-big-num,
  .bike.era-2026 .bike-v2-engine { color: #d94e1f; }
  .bike.era-2026 .bike-v2-price { border-top-color: #d94e1f; }
  .bike.era-2026 .bike-v2-head {
    background: linear-gradient(180deg, rgba(217,78,31,0.12) 0%, transparent 100%);
  }

  /* Used price gets era colour highlight */
  .bike.era-1996 .bike-v2-price .hilite strong { color: #8a6d3b; }
  .bike.era-2006 .bike-v2-price .hilite strong { color: #c14d2a; }
  .bike.era-2016 .bike-v2-price .hilite strong { color: #5a8a8a; }
  .bike.era-2026 .bike-v2-price .hilite strong { color: #d94e1f; }

  /* Tighten compare grid for narrower cards */
  @media (max-width: 1100px) {
    .compare-grid { gap: 12px; }
    .bike-v2-head, .bike-v2-body { padding-left: 14px; padding-right: 14px; }
  }

  /* Social icon buttons (used in masthead and footers) */
  .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .social-icon svg { width: 18px; height: 18px; display: block; }
  .social-icon:hover { border-color: #d94e1f; color: #fff; }
  .social-icon.youtube:hover { color: #ff0033; border-color: #ff0033; }
  .social-icon.instagram:hover { color: #e4405f; border-color: #e4405f; }
  .social-icon.facebook:hover { color: #1877f2; border-color: #1877f2; }
  .nav .social-icon { width: 36px; height: 36px; padding: 0; }
  .nav .social-icon.cta {
    background: #d94e1f;
    border-color: #d94e1f;
    color: #fff;
    padding: 0;
  }
  .nav .social-icon.cta:hover { background: #c4471c; border-color: #c4471c; color: #fff; }
  .nav-mobile-panel .social-row {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #1f1f1f;
  }
  .nav-mobile-panel .social-row .social-icon {
    flex: 1;
    height: 44px;
  }

  /* Mobile hamburger menu */
  .nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #fff;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
  }
  .nav-toggle:hover { border-color: #d94e1f; }
  .nav-toggle:focus-visible { outline: 2px solid #d94e1f; outline-offset: 2px; }
  .nav-toggle-bars { width: 18px; height: 14px; position: relative; }
  .nav-toggle-bars span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s, top 0.2s;
  }
  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 6px; }
  .nav-toggle-bars span:nth-child(3) { top: 12px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
  .nav-mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: #0a0a0a;
    border-left: 1px solid #1f1f1f;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    display: flex;
    flex-direction: column;
    padding: 72px 24px 24px;
    overflow-y: auto;
  }
  .nav-mobile-panel.open { transform: translateX(0); }
  .nav-mobile-panel a {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: #ccc;
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid #1f1f1f;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.15s;
  }
  .nav-mobile-panel a:hover { color: #d94e1f; }
  .nav-mobile-panel a.cta {
    background: #d94e1f;
    color: #fff;
    padding: 14px 18px;
    border-radius: 4px;
    border-bottom: none;
    margin-top: 12px;
    text-align: center;
  }
  .nav-mobile-panel a.cta:hover { background: #c4471c; color: #fff; }
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
  @media (max-width: 700px) {
    .nav-toggle { display: inline-flex; }
  }

  /* ============================================
     Electric category override — bright lime green
     Scoped to body.electric-page so combustion pages stay untouched.
     The site uses CSS variables for era colours, so overriding the four vars
     cascades through every element that references them: timeline dots, era
     accent stripes, year headers, big bhp numbers, price underlines, the lot.
     ============================================ */
  body.electric-page {
    --era-1996: #9eff00;
    --era-2006: #9eff00;
    --era-2016: #9eff00;
    --era-2026: #9eff00;
    --rust-bright: #9eff00;
  }

  /* The .bike.era-* rules in CARD_V2_CSS hardcode the colour rather than using
     the variable, so we still need explicit overrides for those */
  body.electric-page .bike.era-1996 .bike-v2-year,
  body.electric-page .bike.era-1996 .bike-v2-big-num,
  body.electric-page .bike.era-1996 .bike-v2-engine,
  body.electric-page .bike.era-2006 .bike-v2-year,
  body.electric-page .bike.era-2006 .bike-v2-big-num,
  body.electric-page .bike.era-2006 .bike-v2-engine,
  body.electric-page .bike.era-2016 .bike-v2-year,
  body.electric-page .bike.era-2016 .bike-v2-big-num,
  body.electric-page .bike.era-2016 .bike-v2-engine,
  body.electric-page .bike.era-2026 .bike-v2-year,
  body.electric-page .bike.era-2026 .bike-v2-big-num,
  body.electric-page .bike.era-2026 .bike-v2-engine { color: #9eff00; }

  body.electric-page .bike.era-1996 .bike-v2-price,
  body.electric-page .bike.era-2006 .bike-v2-price,
  body.electric-page .bike.era-2016 .bike-v2-price,
  body.electric-page .bike.era-2026 .bike-v2-price { border-top-color: #9eff00; }

  body.electric-page .bike.era-1996 .bike-v2-price .hilite strong,
  body.electric-page .bike.era-2006 .bike-v2-price .hilite strong,
  body.electric-page .bike.era-2016 .bike-v2-price .hilite strong,
  body.electric-page .bike.era-2026 .bike-v2-price .hilite strong { color: #9eff00; }

  /* GAP cards stay grey on electric pages — "did not exist" reads universally */

/* Locale toggle (UK / US) — added globally for cross-page consistency */
.locale-toggle {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  margin-left: 12px;
  overflow: hidden;
}
.locale-toggle .locale-opt {
  padding: 6px 12px;
  font-family: 'JetBrains Mono', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #888;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
  background: transparent;
  border: none;
  line-height: 1.4;
  white-space: nowrap;
}
.locale-toggle .locale-opt + .locale-opt {
  border-left: 1px solid #2a2a2a;
}
.locale-toggle .locale-opt:hover {
  color: #fff;
  background: #1a1a1a;
}
.locale-toggle .locale-opt.active {
  background: #d94e1f;
  color: #fff;
}
.locale-toggle-mobile {
  margin: 16px 0 0;
  width: 100%;
  justify-content: center;
}
.locale-toggle-mobile .locale-opt {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 12px;
}
@media (max-width: 700px) {
  .masthead .locale-toggle:not(.locale-toggle-mobile) {
    display: none;
  }
}

/* US verification pending banner — sits beneath masthead on US lineage pages */
.us-verify-banner {
  background: #1a0e07;
  border-bottom: 1px solid rgba(217, 78, 31, 0.35);
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
}
.us-verify-banner-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.us-verify-banner-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #d94e1f;
  text-transform: uppercase;
  white-space: nowrap;
}
.us-verify-banner-msg {
  font-size: 13px;
  color: #c4c4c4;
  line-height: 1.4;
}
.us-verify-banner-msg a {
  color: #d94e1f;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.us-verify-banner-msg a:hover {
  color: #ff6a3d;
}
@media (max-width: 540px) {
  .us-verify-banner-inner { gap: 6px; }
  .us-verify-banner-tag { font-size: 10px; }
  .us-verify-banner-msg { font-size: 12px; }
}

/* Price info (ⓘ) button and tooltip */
.pi {
  display: inline-block; border: none; background: none;
  padding: 0 0 0 3px; font-size: 10px; cursor: help;
  color: #555; vertical-align: middle; line-height: 1;
  position: relative; font-family: inherit;
  font-weight: 400; letter-spacing: 0; text-transform: none;
}
.pi:hover, .pi:focus { color: #999; outline: none; }
.pi::after {
  content: attr(data-pi-text);
  display: none;
  position: absolute; bottom: 130%; left: 50%;
  transform: translateX(-50%);
  background: #111; border: 1px solid #2a2a2a;
  color: #bbb; font-size: 10px; line-height: 1.55;
  padding: 7px 11px; border-radius: 4px;
  width: 230px; white-space: normal;
  z-index: 100; pointer-events: none;
  font-weight: 400; letter-spacing: 0;
  text-transform: none;
}
.pi:hover::after, .pi:focus::after, .pi.open::after { display: block; }
@media (pointer: coarse) {
  .pi::after { display: none !important; }
  .pi.open::after { display: block !important; }
}
