/* Comparison page (/compare): the rules this page needs and no other page does.
   Tokens only (ds/autogeny/tokens.css). Linked after site.css. */

/* The comparison is a ResultTable whose cells are sentences, as the privacy
   page's services table: the cells take the body face (the component's td is
   mono, for figures) and every row aligns to the top. The minimum widths keep
   each sentence column readable; below them the table scrolls inside its frame. */
.cmp-table th, .cmp-table td { vertical-align: top; padding: var(--space-4) var(--space-3); }
.cmp-table thead th { white-space: normal; }
.cmp-table td { min-width: 9.5rem; font-family: var(--font-body); font-size: 15px; line-height: 23px; font-variant-numeric: normal; }
.cmp-table tbody th[scope="row"] { min-width: 8.5rem; }
.cmp-table .ag-measure { font-family: var(--font-display); font-size: 16px; line-height: 23px; font-weight: 600; }
/* The mono label each cell shows on a narrow screen, where the column heads are gone. */
.cmp-table td[data-label]::before { display: none; }

/* Prose without one-word last lines. */
main p { text-wrap: pretty; }

/* Below 960 px the six columns would squeeze each sentence into a thin column,
   so each row becomes a block: its name, then each cell under a mono label (the
   column head, from data-label), as failure-classes.css does. The column heads
   stay in the markup for screen readers. From 600 px the short cells sit two
   abreast so a row stays short. */
@media (max-width: 959px) {
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; }
  .cmp-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .cmp-table tbody tr { padding: var(--space-4); border-bottom: 1px solid var(--rule); }
  .cmp-table th, .cmp-table td { padding: 0; border-bottom: 0; min-width: 0; }
  .ag-table-wrap .cmp-table tbody th[scope="row"] { position: static; background: transparent; min-width: 0; }
  .cmp-table .ag-measure { font-size: 18px; line-height: 24px; }
  .cmp-table td { margin-top: var(--space-3); }
  .cmp-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
}
@media (min-width: 600px) and (max-width: 959px) {
  .cmp-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
  .cmp-table tbody th[scope="row"] { grid-column: 1 / -1; }
}
