/* Reuse the product palette and public controls; comparisons need readable editorial rows, not a separate visual system. */
.comparison-page { max-width: 1040px; }
.comparison-intro { padding-block: 48px; }
.comparison-home { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 16px; color: var(--muted); text-underline-offset: 4px; }
.comparison-intro h1 { max-width: 900px; font-size: clamp(32px, 4.5vw, 48px); overflow-wrap: anywhere; }
.comparison-lede { max-width: 760px; margin: 24px 0 16px; color: var(--muted); font-size: 18px; }
.comparison-date { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.comparison-page a:not(.button) { text-underline-offset: 4px; }
.comparison-section { padding-block: 32px; border-top: 1px solid var(--line); }
.comparison-section h2, .comparison-page .final-cta h2 { font-size: clamp(24px, 3vw, 30px); }
.comparison-section > h2 { margin-bottom: 24px; }
.comparison-prose p { max-width: 780px; margin: 16px 0 0; color: var(--muted); }
.comparison-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
/* Preserve an accessible caption without repeating the section title visually. */
.comparison-table caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.comparison-table th, .comparison-table td { padding: 20px 16px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.comparison-table thead th { background: var(--panel); font-weight: 600; }
.comparison-table th:first-child { width: 22%; }
.comparison-table tbody th { padding-left: 0; font-weight: 500; }
.comparison-table td { color: var(--muted); }
.comparison-citation { color: var(--accent-text); white-space: nowrap; }
.comparison-fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.comparison-fit ul { padding-left: 20px; margin: 16px 0 0; color: var(--muted); }
.comparison-fit li + li { margin-top: 12px; }
.comparison-sources { color: var(--muted); font-size: 14px; }
.comparison-sources h2 { color: var(--text); }
.comparison-sources p { max-width: 780px; }
.comparison-sources ol { padding-left: 20px; }
.comparison-sources li { padding-block: 6px; scroll-margin-top: 96px; }

@media (max-width: 640px) {
    .comparison-intro { padding-block: 32px; }
    .comparison-lede { font-size: 16px; }
    /* Each mobile row names both products, keeping comparisons readable without sideways page scrolling. */
    .comparison-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .comparison-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Match the desktop first-column selector so its 22% width cannot squeeze mobile row headings. */
    .comparison-table tbody th:first-child { grid-column: 1 / -1; width: auto; border: 0; padding: 20px 0 8px; }
    .comparison-table td { padding: 8px 12px 20px 0; font-size: 14px; }
    .comparison-table td:last-child { padding-right: 0; padding-left: 12px; }
    .comparison-table td::before { content: attr(data-label); display: block; margin-bottom: 8px; color: var(--text); font-weight: 600; }
    .comparison-fit { grid-template-columns: 1fr; gap: 24px; }
}
