/* =====================================================================
   AutoMotoNews Future — Main Stylesheet v4.0 (Premium UI/UX)
   Kinetic Performance Framework — Classic Editorial Mode (Light)
   ===================================================================== */

/* ── Design Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:            #fcfbfa;
  --surface:       #ffffff;
  --surface-hi:    #f5f3f0;
  --line:          #e0dbd3;
  --text:          #111111;
  --text-light:    #444444;
  --muted:         #666666;

  /* Vibrant Colors */
  --accent:        #e60000;
  --accent-hover:  #cc0000;
  --accent-blue:   #0056b3;

  --radius:        12px;
  --radius-sm:     6px;
  --radius-pill:   999px;
  --shadow:        0 8px 24px rgba(0,0,0,0.08);
  --shadow-hover:  0 12px 32px rgba(0,0,0,0.15);
  --shadow-red:    0 6px 16px rgba(230, 0, 0, 0.25);

  --font-head:     'Oswald', sans-serif;
  --font-body:     'Inter', sans-serif;
  --transition:    all 0.25s cubic-bezier(0.2, 0, 0, 1);
}

/* ── Dark Mode Token Overrides ──────────────────────────────────────── */
body.dark-mode {
  --bg:            #0f0f0f;
  --surface:       #1a1a1a;
  --surface-hi:    #222222;
  --line:          #2e2e2e;
  --text:          #f0f0f0;
  --text-light:    #c0c0c0;
  --muted:         #888888;
  --shadow:        0 8px 24px rgba(0,0,0,0.4);
  --shadow-hover:  0 12px 32px rgba(0,0,0,0.6);
}

/* Dark mode smooth transition on every element (except opacity — that's handled by page transitions) */
body *, *::before, *::after {
  transition: background-color 0.35s ease, color 0.35s ease,
              border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ── Reset & AdSense Core Fixes ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

img, video { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--accent-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
p { color: var(--text-light); line-height: 1.7; margin-bottom: 1.2rem; font-size: 1.05rem; }

/* ── Typography (Improved Readability) ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}
/* Removed aggressive italics from headers for better readability */
h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--text); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ── Layout Shell ──────────────────────────────────────────────────── */
.site-shell {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: 3.5rem; /* Increased to accommodate floating social plugins */
  padding-right: 1.5rem;
}

/* ── Social Top Bar ────────────────────────────────────────────────── */
.social-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.social-link {
  display: flex; align-items: center; justify-content: center;
  padding: 0.5rem; min-width: 48px; min-height: 48px;
  background: transparent !important;
  border: none !important;
  transition: var(--transition);
}
.social-link svg { width: 24px; height: 24px; }
.social-link:hover { transform: translateY(-3px) scale(1.1); }
.social-link.instagram { color: #e1306c; }
.social-link.facebook { color: #1877f2; }
.social-link.youtube { color: #ff0000; }
.social-link.telegram { color: #229ed9; }
.social-link.whatsapp { color: #25d366; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 3px solid var(--accent);
  padding: 1.2rem 0; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--text); flex-shrink: 0; text-decoration: none !important;
}
.brand-badge {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: var(--shadow-red), 0 0 12px rgba(230,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand:hover .brand-badge {
  transform: rotate(15deg) scale(1.08);
  box-shadow: var(--shadow-red), 0 0 20px rgba(230,0,0,0.5);
}
.brand-name {
  font-family: 'Orbitron', var(--font-head), sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header Search */
.header-search {
  display: flex; align-items: center;
  background: var(--bg); border: 2px solid var(--line);
  border-radius: var(--radius-pill); padding: 0.4rem 1rem;
  gap: 0.5rem; flex: 1; max-width: 350px;
  transition: border-color 0.2s;
}
.header-search:focus-within { border-color: var(--accent-blue); }
.header-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-family: var(--font-body); font-size: 1rem; flex: 1;
}
.header-search button { 
  background: none; border: none; cursor: pointer; color: var(--accent-blue); 
  display: flex; padding: 0.4rem; min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}

/* Nav */
.site-nav { margin-left: auto; }
.nav-menu { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.nav-menu li a {
  display: block; padding: 0.6rem 1.2rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--text); border-radius: var(--radius-pill);
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1); text-decoration: none !important;
  position: relative;
}
.nav-menu li a::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; width: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-menu li a:hover::after {
  width: 60%; left: 20%;
}
.nav-menu li a:hover {
  color: #fff; background: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
}
.nav-menu li.current-menu-item > a,
.nav-menu li.current_page_item > a {
  color: #fff; background: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.25);
}

/* ── Secondary Nav Bar (Horizontal) ─────────────────────────────────── */
.secondary-nav-bar {
  border-top: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.secondary-nav-bar::-webkit-scrollbar { display: none; }
.horizontal-menu {
  flex-wrap: nowrap;
  padding: 0.8rem 0;
  margin: 0;
  gap: 0.5rem;
  justify-content: flex-start;
}
.horizontal-menu li { flex-shrink: 0; }


/* Mobile toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 2px solid var(--text);
  border-radius: var(--radius-sm); 
  padding: 0.6rem; cursor: pointer;
  min-width: 48px; min-height: 48px;
  align-items: center; justify-content: center;
}
.hamburger-bar { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

/* ── Vibrant Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.8rem; font-family: var(--font-head);
  font-weight: 700; font-size: 1.05rem; text-transform: uppercase;
  letter-spacing: 0.05em; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0, 0, 1); text-decoration: none !important;
  min-height: 48px;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn-primary { 
  color: #fff !important; 
  background: linear-gradient(135deg, #e60000, #cc0000); 
  border-color: var(--accent); 
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: linear-gradient(135deg, #ff1a1a, #e60000); border-color: var(--accent-hover); box-shadow: 0 8px 24px rgba(230,0,0,0.5); }

.btn-outline { 
  color: var(--accent-blue); 
  border-color: var(--accent-blue); 
  background: #fff; 
}
.btn-outline:hover { background: var(--accent-blue); color: #fff; box-shadow: 0 8px 20px rgba(0,86,179,0.3); transform: translateY(-3px) scale(1.02); }

/* ── Hero (Fixed Images) ───────────────────────────────────────────── */
/* ── Hero (Top Stories only — hero-content removed) ────────────── */
.hero-stories-only, #top-stories {
  margin-top: 2rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  display: block; /* single column */
}
#top-stories .hero-card {
  border-left: none;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card h2 { color: var(--accent); }
.top-stories-list { display: flex; flex-direction: column; gap: 1rem; }
.top-stories-list li { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.top-stories-list li:last-child { border-bottom: none; padding-bottom: 0; }

.top-stories-list a {
  color: var(--text); font-size: 1.1rem; font-weight: 600; text-decoration: none !important;
  display: block; transition: all 0.3s ease;
  padding-left: 0; position: relative;
}
.top-stories-list a:hover {
  color: var(--accent); padding-left: 0.8rem;
}



/* ── Card Grid ─────────────────────────────────────────────────────── */
.section { margin-top: 4rem; }
.section-heading {
  margin-bottom: 2rem; border-bottom: 3px solid var(--accent);
  padding-bottom: 0.5rem; display: inline-block;
  transition: border-color 0.3s ease;
}
.section-heading:hover {
  border-bottom-color: var(--accent-blue);
}
.section-heading h2 {
  transition: letter-spacing 0.3s ease;
}
.section-heading:hover h2 {
  letter-spacing: 0.04em;
}
.card-grid { display: grid; gap: 2rem; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four  { grid-template-columns: repeat(4, 1fr); }

/* ── News Card ─────────────────────────────────────────────────────── */
.news-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
}
.news-card:hover {
  transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); border-color: var(--accent-blue);
}
/* Card image zoom on card hover */
.news-card .card-img-link .card-img {
  transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}
.news-card:hover .card-img-link .card-img {
  transform: scale(1.06);
}

/* ── Premium Feature Cards (Car Launches) ───────────────────────────── */
.dual-feature {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.feature-card {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s;
  background: #000;
  border: none;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
/* Image fills entire card background */
.feature-card > .card-img-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
}
.feature-card .card-img {
  width: 100%;
  height: 100%;
  max-height: none !important;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}
.feature-card:hover .card-img {
  transform: scale(1.05);
}
/* Dark gradient overlay */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.1) 100%);
  z-index: 2;
  pointer-events: none;
}
/* Card body sits ON TOP of overlay */
.feature-card > .card-body {
  position: relative;
  z-index: 3;
  padding: 1.8rem;
  background: transparent;
  flex: none;
  gap: 0.6rem;
}
/* All text inside feature cards = WHITE */
.feature-card .card-title a,
.feature-card .card-title a:visited {
  color: #fff !important;
  font-size: 1.35rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  line-height: 1.3;
}
.feature-card .card-title a:hover {
  color: var(--accent) !important;
}
.feature-card .card-excerpt {
  color: rgba(255,255,255,0.85) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
  font-size: 0.95rem;
}
.feature-card .card-meta {
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7) !important;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
}
.feature-card .card-meta time,
.feature-card .card-meta .read-time {
  color: rgba(255,255,255,0.7) !important;
}
/* Read More button inside feature cards */
.feature-card .btn-read-more {
  background: linear-gradient(135deg, #e60000 0%, #cc0000 50%, #b30000 100%);
  color: #fff !important;
  border: none;
  margin-top: 0.8rem;
  box-shadow: 0 4px 15px rgba(230, 0, 0, 0.5);
}
.feature-card .btn-read-more:hover {
  background: linear-gradient(135deg, #ff1a1a 0%, #e60000 50%, #cc0000 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 25px rgba(230, 0, 0, 0.6);
}
/* Category badge inside feature cards */
.feature-card .cat-badge {
  align-self: flex-start;
}

.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; max-height: 160px; }
.card-img-link { display: block; position: relative; overflow: hidden; }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.8rem; }
.card-title a { color: var(--text); text-decoration: none !important; transition: color 0.25s ease; }
.card-title a:hover { color: var(--accent-blue); }
.card-excerpt { font-size: 1rem; flex: 1; color: var(--text-light); }

/* Card image placeholder shimmer */
.card-img-placeholder {
  background: linear-gradient(135deg, var(--surface-hi) 25%, var(--line) 50%, var(--surface-hi) 75%);
  background-size: 200% 200%;
  animation: shimmer 2s ease infinite;
  min-height: 120px;
  display: grid; place-items: center; color: var(--muted);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.card-excerpt a,
.card-excerpt .more-link,
a.more-link,
.more-link {
  display: none !important;
}
.card-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted); margin-top: auto; padding-top: 1.2rem;
  border-top: 1px solid var(--line); font-family: var(--font-head); text-transform: uppercase;
}

/* Category Badge */
.cat-badge {
  display: inline-flex; align-items: center; padding: 0.4rem 0.8rem;
  background: var(--accent-blue); color: #fff; min-height: 32px;
  font-family: var(--font-head); font-size: 0.8rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  border-radius: var(--radius-sm); transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  text-decoration: none !important;
}
.cat-badge:hover {
  background: var(--accent); color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

/* ── Read More Button (Premium Automotive Pill) ─────────────── */
.btn-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.65rem 1.8rem;
  background: linear-gradient(135deg, #e60000 0%, #cc0000 50%, #b30000 100%);
  color: #fff !important;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 50px; /* Pill shape */
  text-decoration: none !important;
  transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
  align-self: flex-start;
  border: none;
  box-shadow: 0 4px 15px rgba(230, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}
.btn-read-more::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn-read-more:hover::before {
  left: 100%;
}
.btn-read-more::after {
  content: '→';
  font-size: 1.1em;
  font-weight: bold;
  transition: transform 0.3s ease;
}
.btn-read-more:hover {
  background: linear-gradient(135deg, #ff1a1a 0%, #e60000 50%, #cc0000 100%);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(230, 0, 0, 0.5);
}
.btn-read-more:hover::after {
  transform: translateX(5px);
}
.btn-read-more:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 0, 0, 0.4);
}

/* ── Compare Tool ──────────────────────────────────────────────────── */
.compare-tool { padding: 2.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.compare-controls {
  display: grid; grid-template-columns: 1fr auto 1fr auto;
  gap: 1.5rem; align-items: end; margin-bottom: 2rem;
}
.compare-group { display: flex; flex-direction: column; gap: 0.5rem; }
.compare-vs {
  font-family: var(--font-head); font-weight: 700; font-size: 1.8rem;
  color: var(--accent); padding: 0.5rem; align-self: center; text-transform: uppercase;
}
label { color: var(--text); font-size: 1rem; font-weight: 600; font-family: var(--font-head); text-transform: uppercase; }
select {
  width: 100%; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: var(--surface);
  color: var(--text); padding: 0.8rem 1rem;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  min-height: 52px; transition: border-color 0.2s;
}
select:focus { outline: none; border-color: var(--accent); }
.compare-result {
  border: 2px solid var(--accent-blue); border-radius: var(--radius-sm);
  padding: 2rem; background: rgba(0, 86, 179, 0.03); color: var(--text);
}
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.compare-col h3 { font-size: 1.4rem; color: var(--text); margin-bottom: 1.2rem; border-bottom: 3px solid var(--accent); padding-bottom: 0.5rem; display: inline-block; }
.compare-row { display: flex; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.winner { color: var(--accent); font-weight: 700; }

/* ── Archive & Single Post ─────────────────────────────────────────── */
.archive-main, .single-main { padding-top: 2rem; padding-bottom: 4rem; }
.single-article { max-width: 840px; background: var(--surface); padding: 3rem; border: 1px solid var(--line); border-radius: var(--radius); margin-inline: auto; box-shadow: var(--shadow); }
.article-header { margin-bottom: 2.5rem; border-bottom: 2px solid var(--line); padding-bottom: 1.5rem; }
.article-content { font-size: 1.15rem; line-height: 1.85; color: var(--text); }
.article-content p { margin-bottom: 1.5rem; }
.article-content img { border-radius: var(--radius-sm); margin: 2rem auto; width: 100%; max-width: 600px; height: auto; max-height: 250px; object-fit: contain; display: block; }

/* ── Page Template ─────────────────────────────────────────────────── */
.page-article .article-content h2,
.page-article .article-content h3,
.page-article .article-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.page-article .article-content ul,
.page-article .article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.page-article .article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* ── Comment Form ──────────────────────────────────────────────────── */
.comments-section {
  max-width: 840px;
  margin-inline: auto;
  margin-top: 3rem;
  padding: 2.5rem;
}
.comment-respond h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.comment-notes {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.comment-form p {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.comment-form label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
}
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.comment-form textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}
.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}
.comment-form .form-submit {
  margin-top: 1rem;
}
.comment-form .submit,
.comment-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.comment-form .submit:hover,
.comment-form input[type="submit"]:hover {
  background: var(--text);
  border-color: var(--text);
}

/* ── Contact Form (Contact Form 7 & generic) ──────────────────────── */
.wpcf7-form,
.wpforms-form,
.article-content form {
  max-width: 100%;
}
.wpcf7-form p,
.wpforms-field,
.article-content form p {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.wpcf7-form label,
.wpforms-field-label,
.article-content form label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select,
.article-content form input[type="text"],
.article-content form input[type="email"],
.article-content form input[type="url"],
.article-content form input[type="tel"],
.article-content form textarea,
.article-content form select {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus,
.article-content form input:focus,
.article-content form textarea:focus,
.article-content form select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}
.wpcf7-form textarea,
.article-content form textarea {
  min-height: 180px;
  resize: vertical;
}
.wpcf7-form input[type="submit"],
.wpcf7-submit,
.wpforms-submit,
.article-content form input[type="submit"],
.article-content form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.5rem;
  background: var(--accent);
  color: #fff !important;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--accent);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover,
.wpforms-submit:hover,
.article-content form input[type="submit"]:hover,
.article-content form button[type="submit"]:hover {
  background: var(--text);
  border-color: var(--text);
  color: #fff !important;
}
/* CF7 validation messages */
.wpcf7-not-valid-tip {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}
.wpcf7-response-output {
  border: 1px solid var(--line) !important;
  padding: 1rem !important;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--text); color: #fff;
  margin-top: 5rem; padding-top: 1rem; border-top: 4px solid var(--accent);
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; padding: 4rem 0;
}
.footer-brand-link { display: flex; align-items: center; gap: 0.8rem; color: #fff; margin-bottom: 1.2rem; text-decoration: none !important; font-size: 1.2rem; }
.footer-nav-list { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-nav-list a {
  color: #ccc; font-size: 1.05rem; padding: 0.5rem 0;
  display: inline-block; min-height: 44px;
  transition: all 0.3s ease; padding-left: 0;
}
.footer-nav-list a:hover {
  color: var(--accent); padding-left: 0.6rem;
}

/* Newsletter Form Sizing Fixes */
.newsletter-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 450px;
}
#newsletter-email {
  flex: 1;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.05rem;
}
.newsletter-row .btn {
  min-height: auto;
}

/* ── Responsive: Mobile Optimization ───────────────────────────────── */
@media (max-width: 960px) {
  /* hero-content removed — no hero grid override needed */
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .dual-feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-card { min-height: 320px; }
  .compare-controls { grid-template-columns: 1fr; gap: 1rem; }
  .compare-vs { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 700px) {
  h1 { font-size: 2.2rem; }
  /* Tighter shell padding so compare tool can use more screen */
  .site-shell { padding-left: 0.75rem; padding-right: 0.75rem; }
  .card-grid.three, .card-grid.four { grid-template-columns: 1fr; }

  /* ── Compare section: full-bleed on mobile ────────────────────── */
  #compare.section {
    margin-left:  -0.75rem;
    margin-right: -0.75rem;
  }
  #compare .compare-tool {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 1rem 0.75rem;
  }
  #compare .compare-result { padding: 0; }
  .tv-root { border-radius: 0; }
  .compare-grid { grid-template-columns: 1fr; gap: 2rem; }
  .compare-col { border-bottom: 2px dashed var(--line); padding-bottom: 1.5rem; }
  .compare-col:last-child { border-bottom: none; padding-bottom: 0; }

  /* Mobile card outline fixes */
  .news-card, .feature-card {
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .news-card {
    border: 1px solid var(--line);
  }
  .card-grid { gap: 1.5rem; }
  .dual-feature { gap: 1.5rem; }
  .feature-card { min-height: 260px; }
  .feature-card .card-title a { font-size: 1.2rem; }
  .section { margin-top: 3rem; }
  .section-heading { font-size: 1rem; }

  /* Mobile Nav Fixes */
  .header-search { display: none; }
  .menu-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%;
    left: 0; right: 0; width: 100%;
    background: #ffffff; border-bottom: 3px solid var(--accent);
    padding: 1rem; z-index: 1000; box-shadow: var(--shadow-hover);
  }
  .site-nav.open { display: block; }
  .nav-menu:not(.horizontal-menu) { flex-direction: column; gap: 0; }
  .nav-menu:not(.horizontal-menu) li a { padding: 1.2rem 1rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav-menu:not(.horizontal-menu) li:last-child a { border-bottom: none; }
  
  .horizontal-menu { padding: 0.6rem 1rem; }
  .horizontal-menu li a { padding: 0.5rem 1rem; font-size: 0.95rem; border-bottom: none; border-radius: var(--radius-pill); }
  .single-article { padding: 1.5rem; border: none; border-radius: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
}

@media (max-width: 480px) {
  .social-bar { flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
  .btn { width: 100%; margin-bottom: 0.5rem; }
}

/* ══════════════════════════════════════════════════════════════════════
   PREMIUM FEATURES
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1. Reading Progress Bar ──────────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #e60000, #ff4444, #e60000);
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(230, 0, 0, 0.5);
  border-radius: 0 4px 4px 0;
}

/* ── 2. Back to Top Button ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e60000, #cc0000);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(230, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
  z-index: 9999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(230, 0, 0, 0.6);
  background: linear-gradient(135deg, #ff1a1a, #e60000);
}
.back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}
.back-to-top svg {
  pointer-events: none;
}


/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .reading-progress { transition: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   DARK MODE — Element-Specific Overrides
   ══════════════════════════════════════════════════════════════════════ */

/* Header */
body.dark-mode .site-header {
  background: #111111;
  border-bottom-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
body.dark-mode .brand-name {
  background: linear-gradient(135deg, #f0f0f0 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
body.dark-mode .nav-menu li a {
  color: #d0d0d0;
}
body.dark-mode .nav-menu li a:hover {
  color: #fff;
  background: var(--accent-blue);
}

/* Search */
body.dark-mode .header-search {
  background: #1a1a1a;
  border-color: #333;
}
body.dark-mode .header-search input {
  background: #1a1a1a;
  color: #f0f0f0;
}
body.dark-mode .header-search input::placeholder { color: #888; }

/* Cards */
body.dark-mode .news-card {
  background: var(--surface);
  border-color: var(--line);
}
body.dark-mode .news-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}


/* Section headings */
body.dark-mode .section-heading {
  border-bottom-color: var(--accent);
}

/* Compare tool */
body.dark-mode .compare-tool {
  background: #1a1a1a;
  border-color: #333;
}
body.dark-mode .compare-controls select,
body.dark-mode .compare-controls input {
  background: #222;
  color: #f0f0f0;
  border-color: #444;
}

/* Forms & Inputs */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
  background: #1e1e1e;
  color: #f0f0f0;
  border-color: #333;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder { color: #666; }
body.dark-mode input:focus,
body.dark-mode textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

/* Footer */
body.dark-mode .site-footer {
  background: #080808;
  border-top-color: var(--accent);
}
body.dark-mode .footer-bottom {
  background: #000;
  border-top-color: #222;
}

/* Images — subtle dim for dark mode comfort */
body.dark-mode img:not(.no-dim) {
  filter: brightness(0.92);
}

/* Article content */
body.dark-mode .single-article {
  background: var(--surface);
  border-color: var(--line);
}
body.dark-mode .article-content { color: #d8d8d8; }
body.dark-mode .article-content p { color: #c0c0c0; }
body.dark-mode .article-content h2,
body.dark-mode .article-content h3 { color: #f0f0f0; }
body.dark-mode blockquote {
  border-left-color: var(--accent);
  background: #1e1e1e;
  color: #c0c0c0;
}

/* Comment form */
body.dark-mode .comment-form label { color: #d0d0d0; }

/* Mobile menu */
body.dark-mode .site-nav {
  background: #111;
}
@media (max-width: 960px) {
  body.dark-mode .site-nav {
    background: #111;
    border-bottom-color: var(--accent);
  }
  body.dark-mode .nav-menu li a {
    border-bottom-color: #2e2e2e;
  }
}

/* ── Dark Mode Toggle Button ─────────────────────────────────────── */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface-hi);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  flex-shrink: 0;
  padding: 0;
  color: var(--text);
}
.dark-mode-toggle:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: rotate(15deg) scale(1.1);
}
.dark-mode-toggle .icon-sun,
.dark-mode-toggle .icon-moon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Light mode: show moon (click to go dark) */
.dark-mode-toggle .icon-sun  { display: none; }
.dark-mode-toggle .icon-moon { display: flex; }

/* Dark mode: show sun (click to go light) */
body.dark-mode .dark-mode-toggle .icon-sun  { display: flex; }
body.dark-mode .dark-mode-toggle .icon-moon { display: none; }

body.dark-mode .dark-mode-toggle {
  border-color: #444;
  background: #222;
  color: #f0f0f0;
}
body.dark-mode .dark-mode-toggle:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════
   FEATURE: SKELETON LOADING
   ══════════════════════════════════════════════════════════════════════ */

/* The shimmer gradient that runs across the skeleton */
@keyframes skeleton-sweep {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* Applied to .card-img-link BEFORE the image loads */
.card-img-link:not(.img-loaded) {
  position: relative;
  background: linear-gradient(
    90deg,
    var(--surface-hi) 25%,
    var(--line)       50%,
    var(--surface-hi) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-sweep 1.6s ease infinite;
  min-height: 160px;
  display: block;
  overflow: hidden;
}

/* Hide the real image while skeleton is showing */
.card-img-link:not(.img-loaded) img {
  opacity: 0;
}

/* Smoothly reveal image once loaded */
.card-img-link.img-loaded img {
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Remove animation once loaded */
.card-img-link.img-loaded {
  background: none;
  animation: none;
}

/* Dark mode skeleton */
body.dark-mode .card-img-link:not(.img-loaded) {
  background: linear-gradient(
    90deg,
    #1e1e1e 25%,
    #2a2a2a 50%,
    #1e1e1e 75%
  );
  background-size: 200% 100%;
  animation: skeleton-sweep 1.6s ease infinite;
}

/* ══════════════════════════════════════════════════════════════════════
   FEATURE: PARALLAX HERO BACKGROUND
   ══════════════════════════════════════════════════════════════════════ */

/* Hero needs position:relative and overflow:hidden for containment */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate; /* ensures z-index stacking is self-contained */
}

/* The parallax background layer — sits behind all hero content */
.hero-parallax-bg {
  position: absolute;
  inset: -30% 0;   /* extend 30% above & below so parallax doesn't reveal edges */
  z-index: 0;
  will-change: transform;
  background:
    /* Dark gradient overlay for text readability */
    linear-gradient(135deg,
      rgba(0,0,0,0.55) 0%,
      rgba(230,0,0,0.12) 50%,
      rgba(0,0,0,0.4) 100%
    ),
    /* Automotive grid pattern */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(230,0,0,0.07) 39px,
      rgba(230,0,0,0.07) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(230,0,0,0.07) 39px,
      rgba(230,0,0,0.07) 40px
    ),
    /* Deep dark base */
    linear-gradient(160deg, #0a0a0a 0%, #1a0505 60%, #0f0f0f 100%);
  border-radius: 0;
  pointer-events: none;
}

/* Hero children must sit above the parallax bg */
.hero > *:not(.hero-parallax-bg) {
  position: relative;
  z-index: 1;
}

/* When parallax bg is active, style hero text for dark bg */
.hero {
  color: #fff;
}
.hero .eyebrow {
  background: rgba(0, 86, 179, 0.85);
  color: #fff;
}
.hero h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.hero .hero-subtitle {
  color: rgba(255,255,255,0.85);
}
.hero .top-stories-list a {
  color: rgba(255,255,255,0.9);
}
.hero .top-stories-list a:hover {
  color: #fff;
  padding-left: 0.8rem;
}
.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-card h2 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.2);
}

/* Disable parallax transform on mobile (no visual benefit on small screens) */
@media (max-width: 700px) {
  .hero-parallax-bg {
    inset: 0;
    transform: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   FEATURE: SMOOTH PAGE TRANSITIONS
   ══════════════════════════════════════════════════════════════════════ */

/* Body starts transparent — JS adds .page-ready to fade in */
body {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Fade in when JS marks the page as ready */
body.page-ready {
  opacity: 1;
}

/* Fade out before navigating away */
body.page-leaving {
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none; /* prevent double-clicks during transition */
}

/* Fallback: if JS is disabled or slow, ensure body is visible */
@media (prefers-reduced-motion: reduce) {
  body,
  body.page-ready,
  body.page-leaving {
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   FEATURE: ANIMATED STATS BAR
   ══════════════════════════════════════════════════════════════════════ */
.stats-bar {
  background: linear-gradient(135deg, #111 0%, #1a0505 50%, #111 100%);
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  padding: 2rem 0;
  overflow: hidden;
  position: relative;
}
/* Subtle racing stripe */
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(230,0,0,0.06), transparent);
  animation: stats-sweep 4s ease infinite;
}
@keyframes stats-sweep {
  0%   { left: -60%; }
  100% { left: 120%; }
}
.stats-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 120px;
}
.stat-number {
  font-family: 'Orbitron', var(--font-head), sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 20px rgba(230,0,0,0.4);
  letter-spacing: 0.02em;
}
.stat-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
}
.stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .stats-bar-inner {
    gap: 1.5rem;
  }
  .stat-divider { display: none; }
  .stat-item { min-width: 80px; }
  .stat-number { font-size: 1.8rem; }
}

/* Dark mode — already looks great, just adjust bg slightly */
body.dark-mode .stats-bar {
  background: linear-gradient(135deg, #080808 0%, #150202 50%, #080808 100%);
}

/* ══════════════════════════════════════════════════════════════════════
   FEATURE: BLUR-UP IMAGE LAZY LOADING
   ══════════════════════════════════════════════════════════════════════ */

/* Starting state: blurred and slightly scaled up */
img.blur-up {
  filter: blur(12px);
  transform: scale(1.03);
  transition: filter 0.6s ease, transform 0.6s ease;
  will-change: filter, transform;
}

/* Final state: sharp and normal size */
img.blur-up.blur-up-loaded {
  filter: blur(0);
  transform: scale(1);
}

/* Don't apply blur-up to feature cards (they use overlay) */
.feature-card img.blur-up,
.feature-card img.blur-up-loaded {
  filter: none !important;
  transform: none !important;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1) !important;
}

/* Reduced motion — skip blur animation */
@media (prefers-reduced-motion: reduce) {
  img.blur-up {
    filter: none;
    transform: none;
    transition: none;
  }
  .stats-bar::before {
    animation: none;
  }
}



/* ══════════════════════════════════════════════════════════════════════
   TELEMETRY VS — Compare Tool (Mobile-First, Google CWV Compliant)
   Touch targets ≥ 48px · Font ≥ 16px body · No horizontal overflow
   Scoped entirely to .tv-root
   ══════════════════════════════════════════════════════════════════════ */

/* ── Root ────────────────────────────────────────────────────────── */
.tv-root {
  background: #0d0d0d;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  /* Prevent ANY horizontal scroll */
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Header Bar — "TELEMETRY VS" ─────────────────────────────────── */
.tv-top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: #111;
  border-bottom: 1px solid #1e1e1e;
  min-height: 48px; /* Google touch target */
}
.tv-title {
  font-family: var(--font-head);
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  font-style: italic;
}

/* ── Vehicle Section ─────────────────────────────────────────────── */
.tv-vehicles {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: start;
  background: #111;
  padding: 16px 12px 12px;
  gap: 8px;
  box-sizing: border-box;
}

.tv-veh {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Photo card */
.tv-veh-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.tv-veh-a .tv-veh-img {
  background: radial-gradient(ellipse at 55% 55%, rgba(230,0,0,0.22) 0%, #111 70%);
  border: 1.5px solid rgba(230,0,0,0.25);
}
.tv-veh-b .tv-veh-img {
  background: radial-gradient(ellipse at 45% 55%, rgba(59,130,246,0.22) 0%, #111 70%);
  border: 1.5px solid rgba(59,130,246,0.25);
}
.tv-veh-img .car-sil {
  width: 80%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}
.tv-veh-img:hover .car-sil,
.tv-veh-img:focus-within .car-sil { transform: scale(1.06) translateY(-3px); }
.tv-veh-a .car-sil { color: #e60000; filter: drop-shadow(0 0 10px rgba(230,0,0,0.55)); }
.tv-veh-b .car-sil { color: #3b82f6; filter: drop-shadow(0 0 10px rgba(59,130,246,0.55)); }

.tv-veh-crown {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 1.1rem;
  line-height: 1;
  animation: trophy-bounce 0.7s cubic-bezier(0.2,0,0,1.4) 0.4s both;
}

/* Fuel badge */
.tv-fuel-badge {
  font-family: var(--font-head);
  font-size: clamp(0.52rem, 2vw, 0.65rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 100px;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Vehicle name */
.tv-veh-name {
  font-family: var(--font-head);
  font-size: clamp(0.6rem, 2.5vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}

/* ── VS Badge ────────────────────────────────────────────────────── */
.tv-vs-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}
.tv-vs-badge span {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: clamp(0.65rem, 2.5vw, 0.82rem);
  font-weight: 900;
  color: var(--accent);
  background: #111;
  box-shadow: 0 0 16px rgba(230,0,0,0.28);
  animation: vs-pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Spec Rows ───────────────────────────────────────────────────── */
.tv-specs {
  background: #0d0d0d;
  padding: 4px 0;
}

/* Base layout — Compact */
.tv-spec-row {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 6px;
  box-sizing: border-box;
  min-height: 56px;
}
.tv-spec-row-texts,
.tv-spec-row-bars {
  display: grid;
  grid-template-columns: 1fr 68px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.tv-spec-row-bars {
  align-items: flex-start;
}

/* Values — min 16px for mobile readability */
.tv-spec-val {
  font-family: var(--font-head);
  font-size: clamp(0.78rem, 3vw, 0.95rem);
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.tv-val-win   { color: #e60000 !important; font-weight: 900; }
.tv-val-win-b { color: #3b82f6 !important; font-weight: 900; }
.tv-spec-a-val { text-align: right; }
.tv-spec-b-val { text-align: left; }

/* Bar track */
.tv-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
  width: 100%;
  flex-shrink: 0;
}
/* Side A bars grow right-to-left */
.tv-bar-track-a { direction: rtl; }

.tv-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  transition: width 1.1s cubic-bezier(0.16,1,0.3,1);
}
.tv-bar-fill.animate  { width: var(--bw); }
.tv-bar-a { background: linear-gradient(90deg, #e60000, #ff5555); }
.tv-bar-b { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.tv-bar-glow       { box-shadow: 0 0 6px rgba(230,0,0,0.5); }
.tv-bar-b-glow     { box-shadow: 0 0 6px rgba(59,130,246,0.5); }

/* Center label column */
.tv-spec-lbl {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}
.tv-spec-icon {
  font-size: clamp(0.8rem, 2.5vw, 1rem);
  line-height: 1;
  opacity: 0.5;
}
.tv-spec-lbl > span:last-child {
  font-family: var(--font-head);
  font-size: clamp(0.45rem, 1.8vw, 0.58rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Performance Analysis ────────────────────────────────────────── */
.tv-analysis {
  margin: 14px;
  background: #161616;
  border: 1px solid #242424;
  border-radius: 10px;
  padding: 18px 16px;
  box-sizing: border-box;
}
.tv-analysis-title {
  font-family: var(--font-head);
  font-size: clamp(0.8rem, 3vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 12px;
  padding: 0;
}
.tv-analysis-body {
  font-size: clamp(0.85rem, 3.2vw, 0.95rem); /* ≥16px prevents iOS zoom */
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin: 0 0 16px;
}
.pa-name   { font-weight: 700; }
.pa-name-a { color: var(--accent); }
.pa-name-b { color: #3b82f6; }

/* ── Book Test Ride CTA (Google: touch target ≥ 48px) ────────────── */
.tv-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px; /* Google 48px+ guideline */
  padding: 14px 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(0.78rem, 3vw, 0.88rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(230,0,0,0.3);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-sizing: border-box;
}
.tv-cta-btn:hover   { background: #cc0000; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,0,0,0.45); }
.tv-cta-btn:active  { transform: translateY(0); box-shadow: 0 2px 8px rgba(230,0,0,0.3); }

/* ── Confetti keyframe ───────────────────────────────────────────── */
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(260px) rotate(720deg); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════════
   TV RESPONSIVE — full-bleed mobile, padded tablet/desktop
   ══════════════════════════════════════════════════════════════════ */

/* ── Mobile default ≤480px (full-bleed, so use generous sizes) ─── */
@media (max-width: 480px) {
  .tv-top-bar { padding: 16px 20px; min-height: 52px; }
  .tv-title { font-size: 1.1rem; letter-spacing: 0.22em; }

  .tv-vehicles {
    grid-template-columns: 1fr 52px 1fr;
    padding: 18px 16px 14px;
    gap: 10px;
  }
  .tv-vs-badge span {
    width: 48px; height: 48px; font-size: 0.78rem;
  }
  .tv-veh-name { font-size: 0.78rem; letter-spacing: 0.07em; }
  .tv-fuel-badge { font-size: 0.62rem; padding: 4px 10px; }

  .tv-spec-row {
    grid-template-columns: 1fr 64px 1fr;
    padding: 14px 16px;
    min-height: 62px;
    gap: 10px;
  }
  .tv-spec-val { font-size: 0.92rem; }
  .tv-val-win, .tv-val-win-b { font-size: 0.98rem; }
  .tv-bar-track { height: 6px; }
  .tv-spec-icon { font-size: 1rem; }
  .tv-spec-lbl > span:last-child { font-size: 0.55rem; letter-spacing: 0.09em; }

  .tv-analysis { margin: 14px 12px; padding: 18px 16px; }
  .tv-analysis-title { font-size: 0.9rem; margin-bottom: 10px; }
  .tv-analysis-body { font-size: 0.92rem; line-height: 1.65; }
  .tv-cta-btn { min-height: 54px; font-size: 0.82rem; letter-spacing: 0.12em; }
}

/* ── Tablet: 481px – 768px ───────────────────────────────────────── */
@media (min-width: 481px) and (max-width: 768px) {
  .tv-vehicles {
    grid-template-columns: 1fr 64px 1fr;
    padding: 22px 20px 16px;
    gap: 14px;
  }
  .tv-vs-badge span { width: 52px; height: 52px; font-size: 0.88rem; }
  .tv-veh-name { font-size: 0.88rem; }
  .tv-spec-row {
    grid-template-columns: 1fr 80px 1fr;
    padding: 15px 20px;
    min-height: 64px;
  }
  .tv-spec-val { font-size: 0.98rem; }
  .tv-bar-track { height: 6px; }
  .tv-analysis { margin: 18px; padding: 22px; }
  .tv-cta-btn { min-height: 52px; }
}

/* ── Desktop: 769px+ ─────────────────────────────────────────────── */
@media (min-width: 769px) {
  .tv-root { border-radius: 12px; }
  .tv-vehicles {
    grid-template-columns: 1fr 80px 1fr;
    padding: 28px 28px 20px;
    gap: 16px;
  }
  .tv-vs-badge span { width: 60px; height: 60px; font-size: 0.95rem; }
  .tv-veh-name { font-size: 0.92rem; }
  .tv-spec-row {
    grid-template-columns: 1fr 96px 1fr;
    padding: 16px 28px;
    min-height: 64px;
  }
  .tv-spec-val { font-size: 1.05rem; }
  .tv-val-win, .tv-val-win-b { font-size: 1.12rem; }
  .tv-spec-lbl > span:last-child { font-size: 0.62rem; }
  .tv-bar-track { height: 6px; }
  .tv-analysis { margin: 24px; padding: 28px; }
  .tv-analysis-title { font-size: 1rem; }
  .tv-analysis-body { font-size: 0.98rem; }
  .tv-cta-btn { font-size: 0.9rem; min-height: 54px; }
}

/* ── Very small: ≤360px (iPhone SE, low-end Android) ─────────────── */
@media (max-width: 360px) {
  .tv-title { font-size: 0.95rem; letter-spacing: 0.16em; }
  .tv-vehicles {
    grid-template-columns: 1fr 46px 1fr;
    padding: 14px 10px 12px;
    gap: 8px;
  }
  .tv-vs-badge span { width: 40px; height: 40px; font-size: 0.68rem; }
  .tv-veh-name { font-size: 0.68rem; }
  .tv-spec-row {
    grid-template-columns: 1fr 56px 1fr;
    padding: 12px 10px;
    min-height: 56px;
    gap: 6px;
  }
  .tv-spec-val { font-size: 0.8rem; }
  .tv-spec-lbl > span:last-child { font-size: 0.46rem; letter-spacing: 0.06em; }
  .tv-analysis { margin: 10px 8px; padding: 14px 12px; }
  .tv-analysis-title { font-size: 0.8rem; }
  .tv-analysis-body { font-size: 0.84rem; }
  .tv-cta-btn { min-height: 50px; font-size: 0.75rem; }
}


/* ══════════════════════════════════════════════════════════════════════
   TELEMETRY FILTER BAR + FEATURED CARD
   All classes prefixed .tl- — zero conflict with any existing component
   ══════════════════════════════════════════════════════════════════════ */

/* ── Filter Bar ──────────────────────────────────────────────────── */
.tl-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Scope to site-shell width — no structural changes */
}
.tl-filter-bar::-webkit-scrollbar { display: none; }

.tl-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none !important;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.55);
  transition: all 0.22s ease;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.tl-filter-btn:hover,
.tl-filter-btn:focus-visible {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.tl-filter-active {
  border-color: transparent !important;
  background: transparent !important;
  color: #fff !important;
  padding-left: 0;
}
.tl-filter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 6px rgba(230,0,0,0.6);
  animation: tl-dot-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes tl-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Light mode filter bar text */
body:not(.dark-mode) .tl-filter-btn {
  color: rgba(0,0,0,0.5);
  border-color: rgba(0,0,0,0.12);
}
body:not(.dark-mode) .tl-filter-btn:hover { color: #111; border-color: rgba(0,0,0,0.3); }
body:not(.dark-mode) .tl-filter-active    { color: #111 !important; }

/* ── Featured Card ───────────────────────────────────────────────── */
.tl-featured-card {
  position: relative;
  width: calc(100% + 1.5rem);       /* extend beyond site-shell padding */
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-bottom: 0;
}

/* On desktop keep normal card width */
@media (min-width: 769px) {
  .tl-featured-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
    max-height: 540px;
  }
}

/* Background image layer */
.tl-featured-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}
.tl-featured-card:hover .tl-featured-bg {
  transform: scale(1.03);
}

/* Gradient vignette over image — bottom 60% dark */
.tl-featured-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.1)  35%,
    rgba(0,0,0,0.65) 65%,
    rgba(0,0,0,0.92) 100%
  );
}

/* Content sits above the image */
.tl-featured-content {
  position: relative;
  z-index: 2;
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Meta row: tag + date */
.tl-featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.tl-tag {
  background: rgba(232, 144, 122, 0.9); /* salmon — matches PNG */
  backdrop-filter: blur(4px);
  color: #1a0a05;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.tl-featured-date {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
}

/* Big title */
.tl-featured-title {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 5vw, 2.2rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin: 0;
  padding: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

/* CTA button — full width salmon */
.tl-featured-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  background: rgba(232, 144, 122, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #1a0a05;
  font-family: var(--font-head);
  font-size: clamp(0.78rem, 3vw, 0.9rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.15s ease;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.tl-featured-cta:hover {
  background: rgba(220, 115, 90, 0.95);
  transform: translateY(-2px);
}
.tl-featured-cta:active { transform: translateY(0); }

/* ── Responsive tweaks ────────────────────────────────────────────── */
@media (max-width: 480px) {
  /* extend to screen edges on mobile like the PNG */
  .tl-featured-card {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    border-radius: 0;
    aspect-ratio: 3 / 4;
    max-height: 580px;
  }
  .tl-featured-content { padding: 0 16px 20px; gap: 12px; }
  .tl-featured-title   { font-size: 1.4rem; }
  .tl-featured-cta     { min-height: 54px; border-radius: 8px; }
  .tl-filter-bar       { padding: 12px 0; }
  .tl-filter-btn       { padding: 8px 14px; font-size: 0.68rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .tl-featured-card {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    aspect-ratio: 16 / 10;
    max-height: 460px;
  }
  .tl-featured-title { font-size: 1.7rem; }
}
