/* Comparison pages (/compare/*, /best-crypto-gex-tools). Builds on blog.css + landing.css
   (status icon colours and .cmp-legend live in landing.css, shared with the landing strip). */

.cmp-leads { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.cmp-lead { border: 1px solid var(--border-color); border-radius: 14px; padding: 1.1rem 1.25rem; background: var(--bg-card); }
.cmp-lead--us { border: 2px solid var(--primary-color); }
.cmp-lead h2 { font-size: 1.05rem; margin: 0 0 0.75rem; }
.cmp-lead ul { list-style: none; margin: 0; padding: 0; }
.cmp-lead li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.55rem; line-height: 1.45; }
.cmp-lead li > svg, .cmp-lead li > i { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 0.15rem; }
.cmp-lead--us li > svg { color: var(--primary-light); }

.cmp-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0 0 1.5rem; }
.cmp-price { background: var(--bg-surface); border-radius: 12px; padding: 0.9rem 1.1rem; }
.cmp-price .cmp-price-label { font-size: 0.85rem; color: var(--text-secondary); }
.cmp-price .cmp-price-amount { font-size: 1.9rem; font-weight: 700; line-height: 1.2; }
.cmp-price .cmp-price-amount small { font-size: 0.9rem; font-weight: 400; color: var(--text-secondary); }
.cmp-price .cmp-price-note { font-size: 0.85rem; color: var(--text-secondary); }

.cmp-table table td, .cmp-table table th { vertical-align: top; }
.cmp-cell { display: flex; gap: 0.5rem; align-items: flex-start; line-height: 1.45; }
.cmp-cell > svg, .cmp-cell > i { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 0.12rem; }
.cmp-table td.cmp-win { background: rgba(40, 167, 69, 0.12); }
.cmp-edge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.cmp-edge--us { background: rgba(102, 126, 234, 0.2); color: var(--primary-light); }
.cmp-edge--them { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-color); }
.cmp-edge--tie { color: var(--text-secondary); }

/* Overview matrix: icon cells, the text sits in the title tooltip and in the per-tool sections below. */
.cmp-matrix table td, .cmp-matrix table th { text-align: center; padding: 0.6rem 0.5rem; }
.cmp-matrix table th[scope="row"] { text-align: left; white-space: nowrap; }
.cmp-matrix td svg { width: 20px; height: 20px; }
.cmp-matrix tr.cmp-us th, .cmp-matrix tr.cmp-us td { background: rgba(102, 126, 234, 0.1); }
.cmp-bestfor { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin: 1.25rem 0 0.5rem; }
.cmp-bestfor a { display: block; border: 1px solid var(--border-color); border-radius: 12px; padding: 0.85rem 1rem; text-decoration: none; color: inherit; background: var(--bg-card); }
.cmp-bestfor a:hover { border-color: var(--primary-color); }
.cmp-bestfor .cmp-bf-label { font-size: 0.8rem; color: var(--text-secondary); display: flex; gap: 0.4rem; align-items: center; }
.cmp-bestfor .cmp-bf-label svg { width: 16px; height: 16px; }
.cmp-bestfor .cmp-bf-name { font-weight: 600; font-size: 1.05rem; margin-top: 0.2rem; }
.cmp-bestfor .cmp-bf--us { border: 2px solid var(--primary-color); }
/* blog.css makes tables display:block (so they scroll); give the scroll to the wrapper instead so the matrix spans the column. */
.cmp-matrix { overflow-x: auto; }
.cmp-matrix table { display: table; width: 100%; margin: 0.5rem 0; }
