/* Comparison pages (compare/*.html): the side-by-side table, and the two
   "when it fits" columns. Tokens and type come from assets/site.css. */

.vs-wrap { margin-top: 8px; }
.vs { width: 100%; border-collapse: collapse; table-layout: fixed; }
.vs th, .vs td { padding: 16px 0 18px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.vs thead th { padding-top: 0; border-top: 0; font-size: 13px; line-height: 1.35; font-weight: 600; letter-spacing: 0.016em; color: var(--ink-2); }
.vs th[scope="row"] { width: 22%; padding-right: 20px; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.vs td { width: 39%; padding-right: 24px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.vs td.ours { color: var(--ink); }
.vs thead .ours { color: var(--link); }
.vs tbody tr:first-child > * { border-top: 2px solid var(--ink); }
.vs sup, .ledger sup { line-height: 0; }
.vs td sup a, .ledger sup a { font-size: 12px; text-decoration: none; }

/* Phones: each row is a block, its cells labelled. */
@media (max-width: 719px) {
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; width: auto; }
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .vs tr { padding: 18px 0 6px; border-top: 1px solid var(--rule); }
  .vs tbody tr:first-child { border-top: 2px solid var(--ink); }
  .vs th, .vs td, .vs tbody tr:first-child > * { padding: 0 0 12px; border-top: 0; }
  .vs th[scope="row"] { width: auto; padding: 0 0 10px; font-size: 19px; }
  .vs td::before { content: attr(data-k); display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.016em; color: var(--ink-2); }
  .vs td.ours::before { color: var(--link); }
}

.fit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 834px) { .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fit-col { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-stage); background: var(--snow); box-shadow: inset 0 0 0 1px var(--rule); }
.fit-col.ours { box-shadow: inset 0 0 0 2px var(--link); }
.fit-col h3 { margin-bottom: 10px; font-size: clamp(24px, 0.6vw + 18px, 30px); line-height: 1.12; letter-spacing: -0.018em; }
.fit-col.ours h3 { color: var(--link); }
.fit-col li { padding: 15px 0 16px; border-top: 1px solid var(--rule); color: var(--ink-2); }

/* The sources list is in assets/site.css: the SAP page has one too. */
