/* Compare page (scope site-compare-1): the comparison table and its phone layout. Linked only from
   compare/index.html, after site.css, whose tokens, type and card style it reuses; it defines no colour of its own.
   Wide screens get one table with the GearDomain column marked by a strip of tape. Below 1080 px the same table
   shows each category as a card: the column headers stay in the markup for screen readers (visually hidden, with
   explicit table roles in the HTML, because display: block drops a table's semantics in some browsers), and each
   cell shows its vendor name from data-label through ::before, with empty alt text so it is not read twice. */

.compare-checked { margin-top: 18px; max-width: 46em; font-size: 16px; color: var(--muted); text-wrap: pretty; }

.compare-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 15.5px; line-height: 1.45; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--line); text-wrap: pretty; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }

/* Column headers stay in view under the sticky site header while the rows scroll past. */
.compare-table thead th { position: sticky; top: 68px; z-index: 2; padding-top: 16px; padding-bottom: 14px; background: var(--bg2); font: 600 11.500px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.compare-table thead th:first-child { border-top-left-radius: calc(var(--r) - 1px); }
.compare-table thead th:last-child { border-top-right-radius: calc(var(--r) - 1px); }
.compare-table .compare-corner { width: 14%; }
.compare-table .compare-ours { width: 22%; }
.compare-tape { display: inline-block; padding: 6px 13px 5px; color: var(--tape-ink); background: var(--tape); transform: rotate(-1.4deg); clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 25%, 100% 50%, calc(100% - 4px) 75%, 100% 100%, 0 100%, 4px 75%, 0 50%, 4px 25%); }

.compare-table tbody th { font-size: 16.500px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; color: var(--text); }
.compare-table td { color: var(--muted); }
.compare-table td[data-vendor="geardomain"] { color: var(--text); background: var(--bg); box-shadow: inset 3px 0 0 var(--kraft); }
.compare-table td.compare-np { font: 500 13px/1.6 var(--mono); letter-spacing: .02em; color: var(--muted); }

.compare-legend { margin-top: 18px; max-width: 52em; font-size: 15px; color: var(--muted); }

.compare-why .h3 { margin-top: 0; }
.compare-page .band .band-head { margin-bottom: 0; }
.compare-page .band .lede { margin-top: 18px; }

.compare-sources { padding-bottom: clamp(24px, 4vw, 48px); }

.compare-sources-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -.035em; }
.compare-sources > .container > p { margin-top: 14px; max-width: 46em; font-size: 16px; color: var(--muted); }
.compare-sources-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 28px 0 8px; }
.compare-sources-grid h3 { font: 600 11.500px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.compare-sources-grid li { margin-top: 12px; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.compare-sources-grid li span { display: block; margin-top: 2px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }

/* Phones and tablets: one card per category. */
@media (max-width: 1079px) {
  .compare-wrap { border: 0; border-radius: 0; background: none; box-shadow: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .compare-table thead th { position: static; }
  .compare-table tbody { display: grid; gap: 14px; }
  .compare-table tbody tr { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
  .compare-table tbody th { padding: 18px 20px 14px; border-bottom: 0; font-size: 20px; }
  .compare-table td { position: relative; padding: 13px 20px 13px 152px; border-bottom: 0; border-top: 1px solid var(--line); }
  .compare-table td::before { content: attr(data-label); content: attr(data-label) / ""; position: absolute; left: 20px; top: 15px; width: 120px; font: 600 11.500px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .compare-table td[data-vendor="geardomain"] { box-shadow: inset 4px 0 0 var(--kraft); }
  .compare-table td[data-vendor="geardomain"]::before { color: var(--text); }
  .compare-sources-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .compare-table td { padding: 12px 18px 13px; }
  .compare-table td::before { position: static; display: block; width: auto; margin-bottom: 3px; }
  .compare-table tbody th { padding: 16px 18px 12px; font-size: 19px; }
}
@media print {
  .compare-table thead th { position: static; }
}
