/* The PDF reflow page and the comparison pages (/pdf-reflow/, /compare/): tables, questions and the line that says
   where the facts come from. Its own file, so pages cached with site.css or guide.css (a week) don't need it.
   Uses site.css's tokens. On a phone a table's rows become cards: this site doesn't scroll sideways. */
.compare { border-radius: 20px; border: 1px solid var(--hairline-2); background: var(--card); overflow: hidden; }
.compare table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.55; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--hairline-2); color: var(--ink-2); font-weight: 400; }
.compare thead th { font: 600 14px/1.4 var(--sans); color: var(--secondary); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
/* Five columns in the reading column: a little smaller. */
.compare.dense table { font-size: 15px; }
.compare.dense th, .compare.dense td { padding: 12px 13px; }
.compare.dense tbody th { width: 19%; }
.compare td a, .guide .sources a { color: var(--periwinkle); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.guide h3 { font-size: 22px; line-height: 1.3; margin-top: 8px; }
.guide .sources { font-size: 15px; line-height: 1.6; color: var(--secondary); }
.guide section ol:not(.steps) { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 700px) {
  .compare { border: 0; background: none; border-radius: 0; overflow: visible; }
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tbody tr { border-radius: 16px; border: 1px solid var(--hairline-2); background: var(--card); padding: 14px 16px; margin-bottom: 12px; }
  .compare tbody th { width: auto; padding: 0 0 8px; border: 0; font-size: 17px; }
  .compare td { padding: 6px 0; border: 0; }
  .compare td[data-label]::before { content: attr(data-label); display: block; font: 600 13px/1.4 var(--sans); color: var(--secondary); margin-bottom: 2px; }
}
