/* =====================================================================
   Single Comparison (single-comparison.php)
   Builds on the theme's hero, .tool-section-title, .pricing-table,
   .verdict-box and .feature-checklist. Tool A uses the brand green,
   Tool B the secondary cyan.
   ===================================================================== */

.cmpx { --side-a: var(--accent-dark); --side-a-tint: var(--accent-tint); --side-a-bar: var(--accent); --side-b: var(--accent2-dark); --side-b-tint: var(--accent2-tint); --side-b-bar: var(--accent2); }
.cmpx-side-a { --side: var(--side-a); --side-tint: var(--side-a-tint); --side-bar: var(--side-a-bar); }
.cmpx-side-b { --side: var(--side-b); --side-tint: var(--side-b-tint); --side-bar: var(--side-b-bar); }

/* Hero */
.cmpx-hero-copy { max-width: 760px !important; }
.cmpx-breadcrumb { justify-content: center; margin-bottom: 26px; }
.cmpx-breadcrumb-current { opacity: 1 !important; color: var(--ink-soft); }
.cmpx-hero-row { margin: 0 0 26px; align-items: flex-start; }
.cmpx-hero-row .cmp-vs-badge-lg { align-self: center; margin-top: -20px; }
.cmpx-hero-row .cmp-hero-tool { max-width: 220px; gap: 6px; }
.cmpx-hero-sub { font-size: 13px; color: var(--ink-faint); line-height: 1.4; }
.cmpx-title { font-size: clamp(32px, 4.6vw, 48px); }
.cmpx-byline { margin: 18px 0 0; font-size: 13px; color: var(--ink-faint); }

/* Content column */
.cmpx-content { max-width: 900px; }
.cmpx-prose { font-size: 16px; line-height: 1.75; color: var(--ink); }
.cmpx-prose p { margin: 0 0 16px; }
.cmpx-prose p:last-child { margin-bottom: 0; }
.cmpx-intro { margin-top: 36px; }
.cmpx-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-faint); }
.cmpx-kicker { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }

/* Quick answer */
.cmpx-qa { border-left: 4px solid var(--accent); background: var(--bg-1); border-radius: 0 16px 16px 0; padding: 20px 24px; margin: 8px 0 28px; }
.cmpx-qa h2 { font-size: 20px; font-weight: 600; margin: 6px 0 8px; }
.cmpx-qa p { margin: 0; font-size: 16px; line-height: 1.7; }

/* Verdict card */
.cmpx-verdict { border: 1px solid var(--ink); border-radius: 18px; overflow: hidden; }
.cmpx-verdict-top { background: var(--ink); color: #fff; padding: 14px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.cmpx-verdict-top b { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.cmpx-verdict-top span { font-size: 15px; font-weight: 600; }
.cmpx-verdict-body { padding: 20px 22px 8px; }
.cmpx-scores, .cmpx-pick, .cmpx-cols, .cmpx-ratings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmpx-scores { margin-bottom: 18px; }
.cmpx-score { background: var(--side-tint); border-radius: 14px; padding: 14px 16px; }
.cmpx-score-name { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.cmpx-score-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--side); line-height: 1.2; }
.cmpx-score-value small { font-size: 14px; color: var(--ink-faint); font-weight: 600; }
.cmpx-score-bar { height: 8px; background: rgba(0, 0, 0, .07); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.cmpx-score-bar i { display: block; height: 100%; border-radius: 99px; background: var(--side-bar); }
.cmpx-pick > div { font-size: 15px; line-height: 1.6; padding-bottom: 14px; }
.cmpx-pick strong { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--side); margin-bottom: 4px; }

/* Tables */
.cmpx-table { min-width: 560px; }
.cmpx-table td { vertical-align: top; line-height: 1.5; }
.cmpx-table th.cmpx-side-a, .cmpx-table th.cmpx-side-b { color: var(--side); }
.cmpx-chip { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; background: var(--side-tint); color: var(--side); }
.cmpx-chip--tie { background: var(--bg-2); color: var(--ink-soft); }
.cmpx-status { font-weight: 700; }
.cmpx-status--yes { color: var(--green); }
.cmpx-status--no { color: var(--accent-warm-dark); }
.cmpx-status--partial { color: var(--cat-amber); font-weight: 600; }

/* How they work */
.cmpx-col { border: 1px solid var(--border); border-top: 4px solid var(--side-bar); border-radius: 14px; padding: 18px 20px; }
.cmpx-col h3 { font-size: 16px; font-weight: 700; color: var(--side); margin: 0 0 10px; }
.cmpx-col ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.cmpx-col li { margin-bottom: 6px; }

/* Ratings */
.cmpx-rating { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; color: var(--ink); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
a.cmpx-rating:hover { border-color: var(--side-bar); transform: translateY(-2px); }
.cmpx-rating-name { font-weight: 700; font-size: 15px; color: var(--side); }
.cmpx-rating-value { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.1; }
.cmpx-rating-value i { font-style: normal; font-size: 15px; color: var(--ink-faint); font-weight: 600; }
.cmpx-rating-stars { color: var(--gold); font-size: 19px; letter-spacing: 2px; }
.cmpx-rating-count { font-size: 13.5px; color: var(--ink-soft); }
a.cmpx-rating .cmpx-rating-count { text-decoration: underline; text-underline-offset: 3px; }

/* Use case + final verdict */
.cmpx-case h3 { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink); }
.cmpx-checklist { grid-template-columns: 1fr; }
.cmpx-final { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.cmpx-final .cmpx-cta { margin-top: 18px; display: inline-flex; }

/* Numbered reasons */
.cmpx-reasons { counter-reset: cmpx-r; list-style: none; padding: 0; margin: 0; }
.cmpx-reasons li { counter-increment: cmpx-r; position: relative; padding: 14px 0 14px 50px; border-bottom: 1px solid var(--border-soft); font-size: 15.5px; line-height: 1.65; }
.cmpx-reasons li:last-child { border-bottom: none; }
.cmpx-reasons li::before { content: counter(cmpx-r); position: absolute; left: 0; top: 13px; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }

/* FAQ */
.cmpx-faq { border-top: 1px solid var(--border); }
.cmpx-faq details { border-bottom: 1px solid var(--border); }
.cmpx-faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 700; font-size: 16px; position: relative; }
.cmpx-faq summary::-webkit-details-marker { display: none; }
.cmpx-faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 22px; font-weight: 500; color: var(--accent-dark); }
.cmpx-faq details[open] summary::after { content: "\2212"; }
.cmpx-faq details p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }

@media (max-width: 700px) {
  .cmpx-scores, .cmpx-pick, .cmpx-cols, .cmpx-ratings { grid-template-columns: 1fr; }
  .cmpx-hero-row { gap: 14px; }
  .cmpx-hero-row .cmp-hero-tool { max-width: 140px; }
  .cmpx-hero-sub { display: none; }
  .cmpx-verdict-body { padding: 16px 16px 4px; }
}

/* Small logo beside the name on rating cards */
.cmpx-rating-name { display: flex; align-items: center; gap: 8px; }
.cmpx-rating-name .cmp-logo-img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }
