/* Comparison "vs" pages (POP-117). Row×column comparison table + when-to-use grid.
   Reuses styles.css tokens + .center/.eyebrow/.faq-item/.block. No inline CSS. */

.cmp-wrap { max-width: 880px; }
.cmp-sec { padding-top: 0; }

/* Scroll container so the table never overflows the page on mobile */
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }

.cmp-table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; background: #fff; border: var(--bd); border-radius: 14px; overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; font-size: 15px; font-weight: 600; color: var(--g700); border-bottom: 1.5px solid var(--ink); vertical-align: top; }
.cmp-table thead th { background: var(--ink); color: var(--paper); font-family: var(--disp); font-weight: 800; font-size: 15px; }
.cmp-table tbody th { background: var(--paper2); color: var(--ink); font-weight: 700; width: 30%; }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }

/* Highlighted PopScript column */
.cmp-table .cmp-pop { background: rgba(203, 242, 78, .18); color: var(--ink); }
.cmp-table thead th.cmp-pop { background: var(--ink); color: var(--lime); }

/* Yes / no marks */
.cmp-yes { color: var(--coral); font-weight: 800; margin-right: 6px; }
.cmp-no { color: var(--g400); font-weight: 800; margin-right: 6px; }

/* When-to-use-which */
.cmp-when { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp-col { background: #fff; border: var(--bd); border-radius: 16px; padding: 24px; box-shadow: var(--sh); }
.cmp-col h3 { font-family: var(--disp); font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.cmp-col p { color: var(--g700); font-size: 15px; font-weight: 600; line-height: 1.6; margin: 0; }

/* See also links */
.cmp-seealso { max-width: 760px; margin: 0 auto; color: var(--g700); font-size: 16px; line-height: 1.7; text-align: center; }
.cmp-seealso a { color: var(--coral); font-weight: 600; }

@media (max-width: 720px) {
    .cmp-when { grid-template-columns: 1fr; }
}
