/* Compare, rebuilt in the Marketing studio's language (23 Nov 2026).
   Space Grotesk, one black-and-lime hero, and measures that read as a
   tidy three-column grid on a desktop but stack into label-over-two-
   values cards on a phone, so a comparison never becomes a sideways
   scrolling table. Goes with templates/compare.html and
   templates/compare_pick.html; tokens come from theme.css. */

.cx-page { max-width: 960px; margin: 0 auto; }

/* ─── hero: the one black-and-lime moment ─── */
.cx-hero { background: var(--black); color: var(--white); border-radius: 18px; padding: 24px; margin: 6px 0 20px; }
.cx-kicker { margin: 0 0 8px; color: var(--lime); font-size: var(--font-size-label); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.cx-title { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.9rem; line-height: 1.14; color: var(--white); font-weight: 700; overflow-wrap: break-word; }
.cx-title .cx-vs { color: var(--lime); font-weight: 600; white-space: nowrap; }
.cx-sub { margin: 10px 0 0; color: #D6D6D6; font-size: var(--font-size-small); line-height: 1.5; max-width: 56ch; }
.cx-cars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.cx-card { background: #161616; border: 1px solid #262626; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cx-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cx-idx { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); color: var(--black); font-weight: 700; font-size: 0.76rem; font-family: "Space Grotesk", sans-serif; }
.cx-car-name { color: var(--white); font-weight: 600; font-size: 0.95rem; text-decoration: none; word-break: break-word; }
.cx-car-name:hover { color: var(--lime); }
.cx-seller { color: #AAAAAA; font-size: var(--font-size-label); }

/* ─── measures ─── */
.cx-measures { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); margin-bottom: 20px; }
.cx-colhead { display: grid; grid-template-columns: 1.4fr 1fr 1fr; background: var(--paper); border-bottom: 1px solid var(--line); }
.cx-colhead span { padding: 11px 14px; font-size: var(--font-size-label); font-weight: 700; color: var(--ink); min-width: 0; }
.cx-colhead .cx-spacer { color: var(--grey); }
.cx-colname { display: flex; align-items: center; gap: 6px; word-break: break-word; }
.cx-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-top: 1px solid var(--line); }
.cx-label { padding: 12px 14px; font-weight: 600; font-size: var(--font-size-small); display: flex; flex-direction: column; gap: 3px; justify-content: center; min-width: 0; }
.cx-note { font-weight: 400; color: var(--grey); font-size: var(--font-size-label); line-height: 1.4; }
.cx-val { padding: 12px 14px; font-size: var(--font-size-small); display: flex; align-items: center; gap: 6px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; min-width: 0; word-break: break-word; }
.cx-win { background: rgba(192, 255, 114, 0.26); font-weight: 700; }
.cx-tick { color: var(--lime-deep); font-weight: 700; flex: 0 0 auto; }

/* the one row no other car site in Kenya can produce */
.cx-row--star { background: #F4FCE4; }
.cx-row--star .cx-label { border-left: 3px solid var(--lime); }
.cx-star-tag { display: inline-block; align-self: flex-start; background: var(--lime); color: var(--black); font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--radius-pill); padding: 1px 8px; }
.cx-row--star .cx-win { background: rgba(143, 212, 55, 0.32); }

/* ─── verdict ─── */
.cx-summary { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 18px; }
.cx-tally { margin: 0; font-size: var(--font-size-body); line-height: 1.5; }
.cx-fine { margin: 10px 0 0; color: var(--grey); font-size: var(--font-size-label); line-height: 1.5; }

/* ─── actions ─── */
.cx-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.cx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: var(--radius-md); background: var(--black); color: var(--white); text-decoration: none; font-weight: 600; text-align: center; }
.cx-btn:hover { background: #262626; color: var(--white); }

/* ─── compare_pick ─── */
.cx-pick-search { margin-top: 18px; position: relative; }
.cx-pick-search form { display: flex; gap: 8px; }
.cx-pick-search input { flex: 1; min-width: 0; min-height: 48px; border-radius: var(--radius-md); border: 1px solid #333; background: #161616; color: var(--white); padding: 0 14px; font: inherit; }
.cx-pick-search input::placeholder { color: #8A8A8A; }
.cx-pick-search .cx-search-btn { min-height: 48px; padding: 0 18px; border: 0; border-radius: var(--radius-md); background: var(--lime); color: var(--black); font: inherit; font-weight: 700; cursor: pointer; }
.cx-pick-search .public-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; }
.cx-pick-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 20px 0 10px; }
.cx-pick-head h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; }
.cx-pick-head span { color: var(--grey); font-size: var(--font-size-small); }
.cx-pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.cx-pick-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-decoration: none; color: var(--ink); min-height: 64px; }
.cx-pick-row:hover { border-color: var(--ink); }
.cx-pick-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cx-pick-name { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cx-pick-meta { color: var(--grey); font-size: var(--font-size-label); }
.cx-pick-go { flex: 0 0 auto; color: var(--lime-deep); font-weight: 700; font-size: var(--font-size-small); }
.cx-empty { color: var(--grey); font-size: var(--font-size-small); background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; line-height: 1.5; }
.cx-empty a { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  .cx-hero { padding: 18px; border-radius: 16px; }
  .cx-title { font-size: 1.4rem; }
  .cx-cars { grid-template-columns: 1fr; gap: 8px; }
  .cx-colhead, .cx-row { grid-template-columns: 1fr 1fr; }
  .cx-colhead .cx-spacer { display: none; }
  .cx-label { grid-column: 1 / -1; border-bottom: 1px solid var(--line); background: var(--paper); }
  .cx-val { border-left: 0; }
  .cx-val + .cx-val { border-left: 1px solid var(--line); }
}
