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

  /* Override light-theme defaults from styles-core.css */
  body { background: #0a0a0a; }
  .compare-wrap { background: #0a0a0a; }
  .compare-wrap::before { display: none; }
  .sources { background: #0d0d0d; border-top-color: #1f1f1f; border-bottom-color: #1f1f1f; }
  .sources-title { color: #e8e8e8; }
  .source-item { background: #161616; border-color: #1f1f1f; color: #c4c4c4; }
  .source-item strong { color: #e8e8e8; }

  /* 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;
  }
}

/* === RR v31 polish === */

/* (Filled-style block removed — see outline-only block below.) */

/* --- Remove rogue orange highlight on Gear (and any) nav link
       This kills :focus, :active, :visited orange that was leaking through. --- */
.masthead-center .nav a,
.nav-mobile-panel > a {
  color: var(--paper-bright, #f4f4f4) !important;
}
.masthead-center .nav a:visited,
.masthead-center .nav a:focus,
.masthead-center .nav a:active,
.nav-mobile-panel > a:visited,
.nav-mobile-panel > a:focus,
.nav-mobile-panel > a:active {
  color: var(--paper-bright, #f4f4f4) !important;
  outline: none;
}
.masthead-center .nav a:hover,
.nav-mobile-panel > a:hover {
  color: #d94e1f !important;
}

/* --- Flag hero background on every hero variant (UK or US) --- */
.hero,
.home-hero,
.cmp-hero,
.about-hero,
.cat-hero {
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.92)),
    url('/assets/hero-flag-uk.jpg') !important;
  background-size: cover !important;
  background-position: center 30% !important;
  background-repeat: no-repeat !important;
}
.hero::before {
  display: none;
}

/* Pages with no hero section get a flag banner via body padding-top.
   Gear and Disclosure use <main class="gear-page"> / <main class="disclosure-page">.
   We add a flag banner div before <main> via the script. */
.flag-banner {
  padding: 64px 32px 48px;
  background-image:
    linear-gradient(rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.92)),
    url('/assets/hero-flag-uk.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  color: var(--paper-bright, #f4f4f4);
  border-bottom: 1px solid #2a2a2a;
}
.flag-banner-inner {
  max-width: 1480px;
  margin: 0 auto;
}
.flag-banner h1 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
  margin: 0;
  text-transform: none;
}
.flag-banner h1 em {
  font-style: normal;
  color: #d94e1f;
  display: block;
  margin-top: 8px;
}
.flag-banner .crumb {
  margin-bottom: 20px;
}

/* === /RR v31 polish === */

/* === RR v32 polish === */

/* --- Bigger, better-spaced nav --- */
.masthead-center .nav {
  gap: 36px !important;
  align-items: center;
}
.masthead-center .nav a {
  font-family: 'Oswald', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}

/* --- Locale toggle: bigger pill with SVG flag images --- */
.masthead-right .locale-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: rgba(20, 20, 20, 0.6);
}
.masthead-right .locale-toggle .locale-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.masthead-right .locale-toggle .locale-opt:hover {
  color: #ccc;
}
.masthead-right .locale-toggle .locale-opt.active {
  background: rgba(40, 40, 40, 0.9);
  color: #fff;
}
.locale-flag-svg {
  width: 22px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  display: block;
}

/* --- Install app button: outline only (per user request) --- */
.install-app-btn {
  background: transparent !important;
  border: 1px solid rgba(245, 242, 236, 0.4) !important;
  color: #f5f2ec !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 9px 16px !important;
  border-radius: 6px !important;
  display: inline-flex;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease !important;
  box-shadow: none !important;
}
.install-app-btn:hover {
  border-color: rgba(245, 242, 236, 0.8) !important;
  background: rgba(245, 242, 236, 0.05) !important;
}
.install-app-btn:active {
  background: rgba(245, 242, 236, 0.1) !important;
}
.install-app-btn svg {
  width: 16px;
  height: 16px;
}

/* --- Right cluster spacing --- */
.masthead-right {
  gap: 16px !important;
  align-items: center;
}
.masthead-right .social-cluster {
  gap: 12px;
}

/* --- Responsive: keep mobile clean --- */
@media (max-width: 1100px) {
  .masthead-center .nav { gap: 24px !important; }
  .masthead-center .nav a { font-size: 13px !important; letter-spacing: 0.14em !important; }
}
@media (max-width: 900px) {
  .install-app-btn { display: none !important; }
}

/* === /RR v32 polish === */
