/* Comparison pages (/compare). Built on help.css; wide tables scroll inside their own box, never the page. */
.help-intro > .compare-asof { margin-top: 24px; padding: 14px 18px; max-width: 68ch; background: var(--bg2); border: 1px solid var(--line-strong); border-left: 3px solid var(--accent-hi); border-radius: 0 8px 8px 0; color: var(--dim); font-size: 15px; line-height: 1.65; }
.help-intro > .compare-asof strong { color: var(--text); }
.compare-table { border: 1px solid var(--line-strong); border-radius: 12px; overflow-x: auto; background: var(--bg); }
.compare-table:focus-visible { outline-offset: 2px; }
.compare-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.compare-table caption { text-align: left; padding: 18px 20px; color: var(--text); font-size: 17px; font-weight: 600; background: var(--bg2); }
.compare-table th, .compare-table td { padding: 16px 20px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { font-weight: 600; color: var(--text); background: var(--bg2); }
.compare-table thead th.compare-ape { color: var(--accent-hi); }
.compare-table tbody th { width: 22%; font-weight: 600; color: var(--text); }
.compare-table td { color: var(--dim); }
.compare-table td a, .compare-table th a { font-weight: 600; }
.help-section > .compare-hint { display: none; margin-top: 10px; color: var(--faint); font-size: 14px; }
.help-section > .compare-note { margin-top: 14px; color: var(--faint); font-size: 15px; line-height: 1.65; max-width: 68ch; }
.compare-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare-card { display: grid; align-content: start; gap: 8px; padding: 22px 24px; background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--dim); }
.compare-card:hover { background: var(--card-hover); border-color: var(--control); text-decoration: none; }
.compare-card strong { color: var(--text); font-size: 18px; line-height: 1.4; }
.compare-card span { font-size: 15px; line-height: 1.65; }
.compare-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 24px; }
.compare-sources, .compare-list { margin: 0; padding-left: 22px; }
/* Speed and gaming: the lead line, the source links in table cells, and the wide overview. */
.help-intro > .compare-lede { color: var(--text); font-size: 20px; line-height: 1.55; font-weight: 600; letter-spacing: -.01em; max-width: 52ch; }
.compare-table .src { display: inline-block; margin-left: 4px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.compare-table td .src::before { content: "· "; color: var(--faint); font-weight: 400; }
.compare-table td.compare-strong { color: var(--text); }
.compare-table .num { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.compare-wide table { min-width: 1400px; table-layout: fixed; font-size: 15px; line-height: 1.55; }
.compare-wide thead th:first-child { width: 150px; }
.compare-wide td:nth-child(2) { background: #17142a; color: var(--text); }
.compare-wide th, .compare-wide td { padding: 14px 16px; }
.compare-wide tbody th { width: 150px; }
.compare-wide thead th:first-child, .compare-wide tbody th { position: sticky; left: 0; z-index: 1; background: var(--bg2); box-shadow: 1px 0 0 var(--line); }
.compare-wide thead th a { color: var(--text); }
.compare-wide thead th.compare-ape { color: var(--accent-hi); }
.compare-results table { min-width: 560px; }
.compare-results td { font-variant-numeric: tabular-nums; }
.help-section > .compare-wide-hint { margin-top: 10px; color: var(--faint); font-size: 14px; }
.compare-table tr.compare-group th { width: auto; padding-top: 12px; padding-bottom: 12px; background: var(--bg2); color: var(--accent-hi); font-size: 14px; letter-spacing: .02em; }
.compare-method { margin-top: 18px; color: var(--faint); font-size: 15px; line-height: 1.65; max-width: 68ch; }
.help-section > .compare-method { margin-bottom: 0; }
.compare-sources li { margin: 8px 0; padding-left: 4px; color: var(--dim); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
/* The one comparison: stat tiles, APE Viewer against most competitors, and the latency results. */
.compare-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
.compare-stats li { display: grid; align-content: start; gap: 2px; padding: 18px 20px; background: var(--bg2); border: 1px solid var(--line-strong); border-radius: 10px; min-width: 0; }
.compare-stats strong { color: var(--accent-hi); font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.compare-stats span { color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.5; }
.compare-stats small { color: var(--faint); font-size: 13px; line-height: 1.5; }
.compare-latency table { min-width: 0; }
.compare-latency td { color: var(--text); }
.compare-vs table { min-width: 0; table-layout: fixed; }
.compare-vs thead th:first-child, .compare-vs tbody th { width: 26%; }
.compare-vs thead th.compare-ape { background: #17142a; }
.compare-vs td.compare-ape-cell { background: #17142a; color: var(--text); }
.compare-vs td.compare-ape-cell::before { content: "\2713"; margin-right: 8px; color: var(--accent-hi); font-weight: 700; }
.compare-vs tr.compare-group th { width: auto; }
.compare-vs .nowrap { white-space: nowrap; }
@media (max-width: 760px) {
  .compare-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-stats li { padding: 14px 16px; }
  .compare-stats strong { font-size: 24px; }
}
/* On phones each row of the comparison is a card: the feature, then APE Viewer, then most competitors. */
@media (max-width: 600px) {
  .compare-vs table, .compare-vs tbody, .compare-vs tr, .compare-vs th, .compare-vs td { display: block; width: auto; }
  .compare-vs caption { display: block; }
  .compare-vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare-vs tbody th { width: auto; padding-bottom: 6px; }
  .compare-vs td { padding-top: 10px; border-top: 0; }
  .compare-vs td::after { content: none; }
  .compare-vs td[data-label]::before { display: block; margin: 0 0 2px; color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: .02em; content: attr(data-label); }
  .compare-vs td.compare-ape-cell::before { content: "\2713  " attr(data-label); color: var(--accent-hi); margin-right: 0; white-space: pre; }
  .compare-vs tbody tr { border-top: 1px solid var(--line); }
  .compare-vs tbody tr th, .compare-vs tbody tr td { border-top: 0; }
}
@media (max-width: 760px) {
  .compare-table table { font-size: 15px; }
  .compare-table caption { padding: 14px 16px; font-size: 16px; }
  .compare-table th, .compare-table td { padding: 14px 16px; }
  .help-section > .compare-hint { display: block; }
  .compare-cards { grid-template-columns: 1fr; }
  .compare-cta .btn { width: 100%; }
}
