/* Head-to-head comparison pages. Loaded only on /compare/* — the rest of the
 * site never pays for these rules.
 *
 * The table is the load-bearing element and it is the thing most likely to
 * break on a phone, so it scrolls inside its own container rather than forcing
 * the page body sideways. The two bike columns stay equal width at every size,
 * because an unequal split reads as a thumb on the scale. */

.cmp-scores {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 8px;
}
.cmp-score {
  display: flex; flex-direction: column; gap: 3px; text-decoration: none;
  border: 1px solid var(--line, #e5e7eb); border-radius: 14px; padding: 16px 14px;
  background: var(--card, #fff); color: inherit;
}
.cmp-score:hover { border-color: var(--green, #12684A); }
.cmp-score__num { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--ink, #111827); }
.cmp-score__of { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--mute, #6b7280); }
.cmp-score__name { font-weight: 700; margin-top: 8px; color: var(--ink, #111827); }
.cmp-score__price { font-size: 15px; color: var(--mute, #6b7280); }
.cmp-score__cta { font-size: 13px; font-weight: 600; color: var(--green, #12684A); margin-top: 8px; }

.cmp-diffs { margin: 0; padding-left: 20px; }
.cmp-diffs li { margin: 0 0 10px; line-height: 1.55; }

.cmp-fors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cmp-for h3, .cmp-pc h3 { font-size: 16px; margin: 0 0 6px; }
.cmp-for p { margin: 0; line-height: 1.55; }
.cmp-pc__h { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mute, #6b7280); margin: 12px 0 4px; }
.cmp-pros, .cmp-cons { margin: 0; padding-left: 18px; }
.cmp-pros li, .cmp-cons li { margin: 0 0 6px; line-height: 1.5; font-size: 14.5px; }

/* Wide content scrolls itself. The page body must never scroll horizontally. */
.cmp-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.cmp-table th, .cmp-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line, #e5e7eb); }
.cmp-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute, #6b7280); }
.cmp-table tbody th { font-weight: 500; color: var(--mute, #6b7280); width: 34%; }
.cmp-val { font-weight: 600; color: var(--ink, #111827); width: 33%; }
/* The winning value is marked with weight and a rule, never with colour alone —
 * colour-only emphasis is invisible to a good share of readers. */
.cmp-win { font-weight: 800; box-shadow: inset 3px 0 0 var(--green, #12684A); }
.cmp-na { color: var(--mute, #6b7280); font-weight: 400; font-style: italic; }
.cmp-note { font-size: 13px; color: var(--mute, #6b7280); margin-top: 10px; line-height: 1.5; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .cmp-scores, .cmp-fors { grid-template-columns: 1fr; }
  .cmp-score__num { font-size: 32px; }
}

/* Lead sentence for a closely-matched pair, where the close match is the
   finding rather than a shortfall in the comparison. */
.cmp-lead { margin: 0 0 12px; line-height: 1.6; }
