/* Comparison page. Bands with a background run edge to edge; their content
   keeps to the same measure as the nav and footer. */

.compare-hero { width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 96px 0 104px; }
.compare-hero h1 { max-width: 820px; font-size: clamp(43px, 7vw, 88px); line-height: 1.02; }
.compare-hero > p:not(.eyebrow) { max-width: 680px; margin-top: 28px; color: var(--text-2); font-size: clamp(17px, 2vw, 21px); line-height: 1.5; }
.compare-jump { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 32px; color: var(--accent); font-size: 14px; font-weight: 600; }

.compare-table-section { background: var(--bg-1); padding: 76px max(var(--gutter), calc((100% - var(--page)) / 2)) 70px; }
.compare-section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.compare-section-head h2, .compare-pdf h2, .compare-next h2, .compare-close h2 { font-size: clamp(32px, 4.1vw, 54px); line-height: 1.12; }
.compare-section-head > p { max-width: 400px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.compare-table-scroll { width: 100%; overflow-x: auto; }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
.compare-table th, .compare-table td { padding: 18px 22px 18px 0; vertical-align: top; }
.compare-table thead th { padding-bottom: 14px; border-bottom: 1px solid var(--line-2); color: var(--text-3); font-size: 12px; font-weight: 600; }
.compare-table tbody tr { border-bottom: 1px solid var(--line); }
.compare-table tbody tr:last-child { border-bottom: 0; }
.compare-table tbody th { width: 22%; color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.4; }
.compare-table td { width: 39%; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.compare-table td:nth-child(2) { color: var(--text); }
.compare-table-note { max-width: 730px; margin-top: 22px; color: var(--text-3); font-size: 12px; line-height: 1.55; }

/* Where each statement about another browser can be checked. */
.compare-sources { max-width: 730px; margin-top: 14px; border-top: 1px solid var(--line); }
.compare-sources summary { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-2); font-size: 13px; cursor: pointer; list-style: none; }
.compare-sources summary::-webkit-details-marker { display: none; }
.compare-sources summary::before { content: ""; flex: none; width: 6px; height: 6px; margin-left: 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 0.2s var(--ease); }
.compare-sources[open] summary::before { transform: rotate(45deg); }
.compare-sources summary:hover { color: var(--text); }
.compare-sources ul { list-style: none; columns: 2; column-gap: 32px; padding-bottom: 6px; }
.compare-sources li { break-inside: avoid; }
.compare-sources li a { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.compare-pdf { display: grid; grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr); align-items: center; gap: 6%; width: min(var(--page), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 112px 0; }
.compare-pdf-copy { max-width: 400px; }
.compare-pdf-copy > p:not(.eyebrow) { margin-top: 24px; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.compare-pdf-copy > p.compare-limit { padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 14px; }

.compare-next { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: 10%; padding: 100px max(var(--gutter), calc((100% - var(--page)) / 2)); background: var(--bg-1); }
.compare-next-lead > p:not(.eyebrow) { max-width: 590px; margin-top: 25px; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.compare-next-detail { align-self: end; }
.compare-next-detail p { padding: 15px 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.compare-next-detail p + p { border-top: 1px solid var(--line); }
.compare-next-detail strong { color: var(--text); }
.compare-next-detail a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; color: var(--accent); font-size: 13px; }

.compare-close { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 110px 0 124px; text-align: center; }
.compare-close p:not(.eyebrow) { margin: 23px 0 27px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.compare-close a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-weight: 600; font-size: 14px; }

@media (max-width: 760px) {
  .compare-hero { padding-top: 56px; padding-bottom: 72px; }
  .compare-section-head, .compare-pdf, .compare-next { display: block; }
  .compare-section-head > p { margin-top: 18px; max-width: none; }
  .compare-pdf { padding-top: 80px; padding-bottom: 80px; }
  .compare-pdf .capture-figure { margin-top: 35px; }
  .compare-next { padding-top: 76px; padding-bottom: 78px; }
  .compare-next-detail { margin-top: 30px; }
  .compare-close { padding-top: 80px; padding-bottom: 90px; }
  .compare-sources ul { columns: 1; }
  .compare-sources li a { min-height: 44px; }
}

@media (max-width: 600px) {
  .compare-table-scroll { overflow: visible; }
  .compare-table { display: block; min-width: 0; }
  .compare-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .compare-table tbody, .compare-table tbody tr, .compare-table tbody th, .compare-table tbody td { display: block; width: 100%; }
  .compare-table tbody tr { padding: 21px 0 23px; }
  .compare-table tbody th { padding: 0 0 16px; font-size: 17px; }
  .compare-table tbody td { padding: 0; font-size: 14.5px; }
  .compare-table tbody td + td { margin-top: 15px; }
  .compare-table tbody td::before { display: block; margin-bottom: 3px; color: var(--text-3); font-size: 12px; font-weight: 600; }
  .compare-table tbody td:nth-child(2)::before { content: "Glasswing"; }
  .compare-table tbody td:nth-child(3)::before { content: "Elsewhere"; }
}
