/**
 * compare.html — fixed slots (2 or 3 columns), placeholder slot.
 */

.compare-page {
  max-width: 1320px;
}

.compare-hero {
  margin-bottom: 2rem;
  text-align: center;
}

.compare-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.compare-hero .compare-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 450;
}

/* Unit + value currency — aligned with car detail Key facts */
.compare-unit-toolbar {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  width: 100%;
}

.value-currency {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 3px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.value-currency-btn {
  margin: 0;
  padding: 0.34rem 0.52rem;
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(130, 142, 162, 0.78);
  cursor: pointer;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.value-currency-btn:hover {
  color: rgba(200, 210, 225, 0.92);
}

.value-currency-btn[aria-pressed="true"] {
  color: rgba(248, 250, 255, 0.98);
  background: rgba(110, 176, 255, 0.14);
  border-color: rgba(110, 176, 255, 0.38);
  box-shadow: 0 0 12px rgba(70, 130, 200, 0.12);
}

.value-currency-btn:focus-visible {
  outline: 2px solid var(--accent, #6eb0ff);
  outline-offset: 2px;
}

.unit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.unit-toggle-label {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(139, 150, 168, 0.85);
}

.unit-toggle-track {
  position: relative;
  display: inline-flex;
  width: 100%;
  max-width: 15.5rem;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}

.unit-toggle-highlight {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    165deg,
    rgba(88, 138, 205, 0.42) 0%,
    rgba(42, 68, 108, 0.38) 48%,
    rgba(20, 26, 38, 0.92) 100%
  );
  border: 1px solid rgba(120, 175, 235, 0.48);
  box-shadow:
    0 0 0 1px rgba(100, 165, 230, 0.2),
    0 2px 14px rgba(45, 85, 140, 0.35),
    0 0 24px rgba(70, 130, 200, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  transform: translateX(0);
  transition: transform 0.42s cubic-bezier(0.34, 1.1, 0.42, 1);
  will-change: transform;
}

.unit-toggle-track[data-active="imperial"] .unit-toggle-highlight {
  transform: translateX(100%);
}

@media (prefers-reduced-motion: reduce) {
  .unit-toggle-highlight {
    transition-duration: 0.01ms;
  }
}

.unit-toggle-btn {
  margin: 0;
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  min-width: 0;
  padding: 0.42rem 0.65rem;
  text-align: center;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(130, 142, 162, 0.72);
  opacity: 0.72;
  box-shadow: none;
  transition:
    color 0.28s cubic-bezier(0.34, 1.1, 0.42, 1),
    opacity 0.28s cubic-bezier(0.34, 1.1, 0.42, 1),
    transform 0.2s ease;
}

.unit-toggle-btn:active {
  transform: scale(0.985);
}

.unit-toggle-btn[aria-checked="false"]:hover {
  color: rgba(190, 200, 218, 0.88);
  opacity: 0.92;
}

.unit-toggle-btn[aria-checked="true"] {
  opacity: 1;
  color: rgba(252, 253, 255, 0.98);
  font-weight: 650;
}

.unit-toggle-btn[aria-checked="true"]:hover {
  color: #fff;
}

.unit-toggle-btn:focus-visible {
  outline: 2px solid var(--accent, #6eb0ff);
  outline-offset: 2px;
}

.compare-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius, 18px);
  background: rgba(18, 22, 30, 0.45);
}

.compare-empty p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: rgba(200, 210, 225, 0.88);
}

.compare-empty a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.compare-empty a:hover {
  text-decoration: underline;
}

/* Head-to-head: two equal columns (second may be placeholder) */
.compare-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
}

.compare-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-grid--matchup {
  gap: 1.5rem;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.compare-grid--matchup.compare-grid--three {
  max-width: 1240px;
  gap: 1.15rem;
}

@media (max-width: 960px) {
  .compare-grid--two,
  .compare-grid--three {
    grid-template-columns: 1fr;
  }

  .compare-grid--matchup.compare-grid--three {
    gap: 1.5rem;
  }
}

.compare-column {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--surface-elevated, #181e27) 0%, var(--surface, #12161c) 100%);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius, 18px);
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25), 0 24px 48px rgba(0, 0, 0, 0.35);
  min-width: 0;
  min-height: 100%;
}

.compare-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  box-sizing: border-box;
  min-height: 3.35rem;
  padding: 0.75rem 1rem 1.05rem;
}

.compare-column-head--minimal {
  min-height: 0;
  padding: 0.65rem 0.85rem 0.35rem;
  justify-content: flex-end;
}

.compare-column-head-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
}

.compare-remove {
  appearance: none;
  margin: 0;
  padding: 0.4rem 0.78rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200, 210, 225, 0.85);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.compare-remove:hover {
  color: #ffe0e0;
  background: rgba(255, 100, 90, 0.12);
  border-color: rgba(255, 140, 130, 0.35);
}

.compare-remove:focus-visible {
  outline: 2px solid rgba(255, 140, 125, 0.75);
  outline-offset: 2px;
}

.compare-column-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d1015;
  overflow: hidden;
  flex-shrink: 0;
}

.compare-media-pp {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: rgba(220, 230, 245, 0.95);
  background: rgba(8, 10, 14, 0.78);
  border: 1px solid rgba(110, 176, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.compare-media-pp.compare-metric--better {
  color: rgba(130, 235, 190, 0.98);
  border-color: rgba(80, 200, 150, 0.45);
  background: rgba(10, 28, 22, 0.88);
}

.compare-media-pp.compare-metric--worse {
  color: rgba(255, 180, 175, 0.92);
  border-color: rgba(220, 100, 95, 0.4);
  background: rgba(28, 14, 14, 0.85);
}

.compare-column-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-column-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 12, 15, 0.88) 100%);
  pointer-events: none;
  z-index: 0;
}

/* PP overlay on hero; compare highlighting when 2 cars */
.compare-pp-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: rgba(184, 198, 218, 0.94);
  background: rgba(10, 12, 16, 0.82);
  border: 1px solid rgba(110, 176, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 4px 20px rgba(0, 0, 0, 0.35);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-pp-badge--head {
  position: static;
}

.compare-pp-badge.compare-metric--better {
  color: rgba(120, 210, 165, 0.98);
  border-color: rgba(90, 185, 140, 0.42);
  background: rgba(12, 28, 22, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(100, 200, 150, 0.12),
    0 4px 18px rgba(0, 0, 0, 0.35);
}

.compare-pp-badge.compare-metric--worse {
  color: rgba(240, 155, 150, 0.98);
  border-color: rgba(210, 110, 105, 0.4);
  background: rgba(28, 14, 14, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(220, 100, 95, 0.12),
    0 4px 18px rgba(0, 0, 0, 0.35);
}

.compare-pp-missing {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(120, 132, 152, 0.75);
  letter-spacing: 0.02em;
  padding: 0.2rem 0;
}

.compare-column-body {
  padding: 1rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}

/* Match card brand row typography (index / garage) */
.compare-column-body .brand-line .brand {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.compare-model {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.compare-key-lede {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(139, 150, 168, 0.92);
}

.compare-dl--focus {
  padding-bottom: 0.35rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.compare-specs-heading {
  margin: 0 0 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(130, 142, 162, 0.88);
}

.compare-dl {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.compare-dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-dl > div:first-of-type {
  border-top: none;
  padding-top: 0;
}

.compare-dl dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(139, 150, 168, 0.88);
}

.compare-dl dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 550;
  line-height: 1.45;
  color: rgba(240, 243, 247, 0.94);
  font-variant-numeric: tabular-nums;
}

/* Compare-only: best/worse for power, torque, weight, top speed, acceleration (2+ cars) */
.compare-dl dd.compare-metric--better {
  color: rgba(120, 210, 165, 0.96);
  font-weight: 600;
}

.compare-dl dd.compare-metric--worse {
  color: rgba(230, 140, 138, 0.94);
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* RevScore: compact block + same slider pattern as car detail */
.compare-dl dd.compare-rating-wrap {
  min-width: 0;
}

.compare-rating-block {
  position: relative;
  margin-top: 0.15rem;
}

.compare-rating-display-wrap {
  margin-bottom: 0.45rem;
}

.compare-rating-display-wrap[hidden] {
  display: none !important;
}

.compare-rating-display .card-revscore-line {
  justify-content: flex-start;
  gap: 0.45rem;
}

.compare-rating-display .card-revscore-text {
  font-size: 1.02rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(154, 198, 242, 0.96);
}

.compare-rating-display .card-revscore-line--empty .card-revscore-text {
  color: var(--muted, #8b96a8);
  font-weight: 500;
  font-size: 0.86rem;
}

.compare-rating-actions-inline {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.compare-rating-block .btn-rating-cta {
  margin: 0;
  padding: 0.38rem 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(180, 205, 238, 0.92);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(110, 176, 255, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease, background 0.2s ease;
}

.compare-rating-block .btn-rating-cta:hover {
  color: rgba(210, 228, 252, 0.98);
  text-decoration-color: rgba(140, 190, 255, 0.55);
  background: rgba(110, 176, 255, 0.06);
}

.compare-rating-block .btn-rating-cta:focus-visible {
  outline: 2px solid var(--accent, #6eb0ff);
  outline-offset: 2px;
}

.compare-rating-block .btn-rating-cta[hidden] {
  display: none !important;
}

.compare-rating-block .rating-slider-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition:
    max-height 0.45s cubic-bezier(0.34, 1, 0.64, 1),
    opacity 0.32s ease,
    margin-top 0.35s ease,
    padding 0.35s ease;
}

.compare-rating-block .rating-slider-panel.is-open {
  max-height: 10rem;
  opacity: 1;
  pointer-events: auto;
  margin-top: 0.55rem;
  padding-top: 0.25rem;
  padding-bottom: 0.05rem;
  transition:
    max-height 0.45s cubic-bezier(0.34, 1, 0.64, 1),
    opacity 0.38s ease 0.05s,
    margin-top 0.35s ease,
    padding 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .compare-rating-block .rating-slider-panel,
  .compare-rating-block .rating-slider-panel.is-open {
    transition-duration: 0.01ms;
  }
}

.compare-rating-block .rating-slider-panel-inner {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.compare-rating-block .rating-slider-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 26px;
  padding: 0;
}

.compare-rating-block .rating-slider {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: block;
  height: 26px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
}

.compare-rating-block .rating-slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
}

.compare-rating-block .rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(230, 205, 130, 0.95) 0%, rgba(160, 130, 60, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: grab;
}

.compare-rating-block .rating-slider::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
}

.compare-rating-block .rating-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(230, 205, 130, 0.95) 0%, rgba(160, 130, 60, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: grab;
}

.compare-rating-block .rating-slider-footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

.compare-rating-block .btn-rating-submit {
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(12, 14, 18, 0.95);
  background: linear-gradient(180deg, rgba(230, 210, 150, 0.95) 0%, rgba(175, 145, 75, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: filter 0.2s ease, transform 0.18s ease;
}

.compare-rating-block .btn-rating-submit:hover {
  filter: brightness(1.06);
}

.compare-rating-block .btn-rating-submit:active {
  transform: scale(0.98);
}

.compare-rating-block .btn-rating-submit:focus-visible {
  outline: 2px solid var(--accent, #6eb0ff);
  outline-offset: 2px;
}

.compare-rating-block .btn-rating-cancel {
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 550;
  color: var(--muted, #8b96a8);
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

.compare-rating-block .btn-rating-cancel:hover {
  color: rgba(210, 218, 230, 0.92);
}

.compare-rating-block .btn-rating-cancel:focus-visible {
  outline: 2px solid var(--accent, #6eb0ff);
  outline-offset: 2px;
  border-radius: 4px;
}

.compare-rating-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compare-detail-link {
  margin-top: 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  align-self: flex-start;
}

.compare-detail-link:hover {
  text-decoration: underline;
}

.compare-detail-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Placeholder slot — empty compare card */
.compare-column--placeholder {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(22, 26, 34, 0.95) 0%, rgba(12, 14, 20, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 32px rgba(0, 0, 0, 0.28);
}

.compare-placeholder-head-spacer {
  box-sizing: border-box;
  min-height: 2.5rem;
  padding: 0.65rem 0.85rem 0.35rem;
  flex-shrink: 0;
}

.compare-placeholder-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, rgba(30, 38, 52, 0.9) 0%, rgba(12, 16, 24, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.compare-placeholder-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(110, 176, 255, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.compare-placeholder-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.35rem 1.75rem;
  gap: 1rem;
  min-height: 12rem;
}

.compare-placeholder-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.45;
  color: rgba(180, 195, 215, 0.92);
  max-width: 14rem;
}

.compare-placeholder-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(210, 225, 245, 0.96);
  text-decoration: none;
  background: rgba(110, 176, 255, 0.1);
  border: 1px solid rgba(110, 176, 255, 0.28);
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.compare-placeholder-cta:hover {
  background: rgba(110, 176, 255, 0.16);
  border-color: rgba(110, 176, 255, 0.45);
  color: #f4f8ff;
}

.compare-placeholder-cta:focus-visible {
  outline: 2px solid var(--accent, #6eb0ff);
  outline-offset: 2px;
}

/* —— Decision-first: community RevScore strip + winner —— */
.compare-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 1rem;
}

.compare-decision {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.25rem 1.35rem;
  border-radius: var(--radius, 18px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(22, 28, 38, 0.95) 0%, rgba(12, 15, 22, 0.92) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.compare-decision-head {
  text-align: center;
  margin-bottom: 1.1rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.compare-decision-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160, 175, 198, 0.92);
}

.compare-decision-sub {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(180, 192, 212, 0.9);
}

.compare-revscore-strip {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

.compare-revscore-strip--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-revscore-strip--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .compare-revscore-strip--two,
  .compare-revscore-strip--three {
    grid-template-columns: 1fr;
  }
}

.compare-revscore-cell {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 16, 0.55);
  min-width: 0;
}

.compare-revscore-cell--lead {
  border-color: rgba(255, 210, 150, 0.35);
  background: linear-gradient(165deg, rgba(42, 36, 24, 0.85) 0%, rgba(14, 12, 10, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 200, 120, 0.12),
    0 12px 36px rgba(0, 0, 0, 0.35);
}

.compare-revscore-cell--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 9.5rem;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 18, 0.35);
}

.compare-revscore-empty-title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: rgba(200, 210, 228, 0.92);
}

.compare-revscore-empty-sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(139, 150, 168, 0.88);
  max-width: 14rem;
}

.compare-revscore-car-name {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgba(236, 240, 248, 0.96);
  line-height: 1.3;
}

.compare-revscore-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.compare-revscore-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(150, 162, 182, 0.88);
}

.compare-winner-pill {
  flex-shrink: 0;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(18, 14, 8, 0.95);
  background: linear-gradient(180deg, rgba(255, 230, 190, 0.98) 0%, rgba(214, 162, 92, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.compare-winner-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.48rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 244, 220, 0.98);
  background: rgba(120, 85, 40, 0.45);
  border: 1px solid rgba(255, 210, 150, 0.35);
}

.compare-revscore-bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.compare-revscore-bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 0;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.compare-revscore-bar-fill.revscore-tier--empty {
  width: 0 !important;
  opacity: 0;
}

.compare-revscore-bar-fill.revscore-tier--platinum {
  background: linear-gradient(90deg, rgba(140, 185, 235, 0.35) 0%, rgba(200, 230, 255, 0.95) 100%);
  box-shadow: 0 0 16px rgba(180, 215, 255, 0.35);
}

.compare-revscore-bar-fill.revscore-tier--gold {
  background: linear-gradient(90deg, rgba(200, 150, 70, 0.4) 0%, rgba(255, 220, 150, 0.95) 100%);
  box-shadow: 0 0 14px rgba(255, 190, 120, 0.28);
}

.compare-revscore-bar-fill.revscore-tier--silver {
  background: linear-gradient(90deg, rgba(120, 130, 150, 0.4) 0%, rgba(210, 218, 232, 0.92) 100%);
}

.compare-revscore-bar-fill.revscore-tier--bronze {
  background: linear-gradient(90deg, rgba(160, 110, 60, 0.45) 0%, rgba(230, 180, 130, 0.9) 100%);
}

.compare-revscore-bar-fill.revscore-tier--dark-bronze {
  background: linear-gradient(90deg, rgba(90, 65, 45, 0.5) 0%, rgba(180, 140, 105, 0.88) 100%);
}

.compare-revscore-meta {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem;
  font-size: 0.8rem;
}

.compare-revscore-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(230, 238, 250, 0.98);
}

.compare-revscore-n {
  color: rgba(150, 165, 188, 0.9);
  font-size: 0.76rem;
}

.compare-revscore-missing {
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(139, 150, 168, 0.92);
}

/* Decision winner — full card emphasis (RevScore leader, unique winner only) */
@keyframes compare-winner-emphasis {
  0%,
  100% {
    border-color: rgba(110, 176, 255, 0.26);
    box-shadow:
      0 4px 6px rgba(0, 0, 0, 0.28),
      0 28px 56px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(110, 176, 255, 0.1),
      0 0 44px rgba(70, 130, 210, 0.1);
  }
  50% {
    border-color: rgba(140, 200, 255, 0.45);
    box-shadow:
      0 4px 6px rgba(0, 0, 0, 0.28),
      0 28px 56px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(130, 190, 255, 0.28),
      0 0 64px rgba(90, 160, 240, 0.22);
  }
}

.compare-column--best-overall {
  border-color: rgba(110, 176, 255, 0.28);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.28),
    0 28px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(110, 176, 255, 0.12),
    0 0 48px rgba(70, 130, 210, 0.12);
  animation: compare-winner-emphasis 3.2s ease-in-out infinite;
}

/* Three-way matchup: single leader stands out vs two-way “best overall” */
.compare-column--triple-top.compare-column--best-overall {
  border-color: rgba(150, 205, 255, 0.42);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.28),
    0 28px 56px rgba(0, 0, 0, 0.42),
    0 0 0 2px rgba(120, 185, 255, 0.35),
    0 0 72px rgba(90, 160, 240, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .compare-column--best-overall {
    animation: none;
  }
}

/* —— Embedded community RevScore hero —— */
.compare-revhero {
  flex-shrink: 0;
  padding: 1.15rem 1.15rem 1.2rem;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(14, 18, 26, 0.98) 0%, rgba(10, 12, 18, 0.92) 100%);
}

.compare-revhero--winner {
  background: linear-gradient(165deg, rgba(28, 38, 58, 0.55) 0%, rgba(12, 16, 24, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.compare-revhero--winner-triple {
  background: linear-gradient(165deg, rgba(36, 52, 82, 0.65) 0%, rgba(14, 18, 28, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 48px rgba(100, 160, 240, 0.12);
  border-bottom: 1px solid rgba(130, 190, 255, 0.22);
}

.compare-revhero-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(150, 165, 188, 0.88);
  margin-bottom: 0.55rem;
}

.compare-revhero-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.compare-revhero-score {
  display: flex;
  align-items: baseline;
  gap: 0.12rem;
  min-width: 0;
}

.compare-revhero-value {
  font-size: clamp(2.65rem, 7vw, 3.45rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgba(240, 245, 255, 0.98);
}

.compare-revhero-score.revscore-tier--platinum .compare-revhero-value {
  color: #e4f0ff;
  text-shadow: 0 0 40px rgba(160, 205, 255, 0.25);
}

.compare-revhero-score.revscore-tier--gold .compare-revhero-value {
  color: #ffe8c8;
}

.compare-revhero-score.revscore-tier--silver .compare-revhero-value {
  color: #e8eef8;
}

.compare-revhero-score.revscore-tier--bronze .compare-revhero-value,
.compare-revhero-score.revscore-tier--dark-bronze .compare-revhero-value {
  color: #f0e4d8;
}

.compare-revhero-suffix {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(130, 145, 168, 0.88);
}

.compare-revhero-piston {
  flex-shrink: 0;
  opacity: 0.92;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.compare-revhero-piston-img {
  display: block;
  width: 32px;
  height: 32px;
}

.compare-revhero-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.compare-revhero-bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 0;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.compare-revhero-bar-fill.revscore-tier--empty {
  width: 0 !important;
  opacity: 0;
}

.compare-revhero-bar-fill.revscore-tier--platinum {
  background: linear-gradient(90deg, rgba(120, 165, 220, 0.4) 0%, rgba(210, 235, 255, 0.95) 100%);
  box-shadow: 0 0 18px rgba(160, 205, 255, 0.35);
}

.compare-revhero-bar-fill.revscore-tier--gold {
  background: linear-gradient(90deg, rgba(200, 145, 60, 0.45) 0%, rgba(255, 225, 170, 0.95) 100%);
}

.compare-revhero-bar-fill.revscore-tier--silver {
  background: linear-gradient(90deg, rgba(120, 130, 155, 0.45) 0%, rgba(215, 222, 235, 0.92) 100%);
}

.compare-revhero-bar-fill.revscore-tier--bronze {
  background: linear-gradient(90deg, rgba(160, 105, 55, 0.5) 0%, rgba(235, 185, 135, 0.9) 100%);
}

.compare-revhero-bar-fill.revscore-tier--dark-bronze {
  background: linear-gradient(90deg, rgba(85, 60, 42, 0.55) 0%, rgba(195, 155, 115, 0.88) 100%);
}

.compare-revhero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-top: 0.65rem;
}

.compare-revhero-votes {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(150, 165, 188, 0.92);
}

.compare-best-overall {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(12, 14, 18, 0.95);
  background: linear-gradient(180deg, rgba(230, 238, 255, 0.98) 0%, rgba(140, 185, 245, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 12px rgba(60, 120, 200, 0.25);
}

.compare-best-overall--triple {
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  padding: 0.34rem 0.75rem;
  background: linear-gradient(180deg, rgba(255, 248, 230, 0.98) 0%, rgba(230, 190, 120, 0.98) 100%);
  border-color: rgba(255, 220, 160, 0.55);
  box-shadow:
    0 2px 14px rgba(200, 150, 80, 0.35),
    0 0 24px rgba(255, 200, 120, 0.2);
}

.compare-revhero--empty {
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.compare-revhero-empty {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(200, 210, 228, 0.92);
}

.compare-revhero-hint {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(139, 150, 168, 0.9);
  max-width: 16rem;
}

.compare-footer-note {
  margin: 2rem auto 0;
  max-width: 28rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(110, 125, 148, 0.75);
}

.compare-roadmap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.compare-roadmap-title {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(130, 142, 162, 0.88);
  text-align: center;
}

.compare-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 720px) {
  .compare-roadmap-grid {
    grid-template-columns: 1fr;
  }
}

.compare-roadmap-card {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(12, 15, 22, 0.4);
}

.compare-roadmap-card-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(110, 176, 255, 0.85);
}

.compare-roadmap-card-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(155, 168, 188, 0.92);
}
