/* /compare/ builds on the /chrome-new-tab/ page system: same paper, ink, type and rows. */

@media (min-width: 980px) {
  .hero--compare {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: end;
  }
  .hero--compare .display {
    font-size: clamp(60px, 6.4vw, 120px);
  }
}
.hero--compare .kicker {
  max-width: 46ch;
}
.hero-facts {
  margin: 0;
  border-top: 2px solid var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
.hero-facts div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
  gap: 4px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
}
.hero-facts dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}
.hero-facts dd {
  margin: 0;
}

/* The tables: one hard rule on top, VeryWWW's column in ink, the row names stay put while it scrolls. */
.matrix {
  padding: clamp(64px, 8vw, 128px) var(--gutter) 0;
}
.matrix-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 18px clamp(28px, 4vw, 72px);
  align-items: end;
  padding-bottom: 32px;
}
.matrix-head .meta {
  grid-column: 1 / -1;
  color: var(--ink-soft);
}
.matrix-head h2 {
  font-size: clamp(40px, 4.6vw, 80px);
}
.matrix-head p:not(.meta) {
  max-width: 56ch;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}
.legend {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}
.legend b {
  color: var(--ink);
  font-weight: 600;
}
.table-wrap {
  overflow-x: auto;
  border-top: 2px solid var(--ink);
  overscroll-behavior-x: contain;
}
.table-wrap:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.compare {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.45;
}
#saving .compare {
  min-width: 760px;
}
.compare caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.compare th,
.compare td {
  padding: 14px 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th,
.compare thead td {
  padding-top: 18px;
  vertical-align: bottom;
  border-bottom: 1px solid var(--ink);
  font-family: Archivo, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.compare tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 168px;
  min-width: 148px;
  background: var(--paper);
  font-weight: 600;
  box-shadow: 1px 0 0 var(--line);
}
.compare thead td {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper);
}
.compare .is-us {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: #f6f5f02e;
}
.compare thead .is-us {
  border-bottom-color: var(--ink);
}
.compare .k-unlisted {
  color: var(--ink-soft);
}
.compare .is-us.k-no {
  color: #f6f5f0c7;
}

/* One by one: the index rows, with the two choices side by side. */
.versus .row h2 {
  font-size: clamp(30px, 3vw, 50px);
}
.choose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0;
}
.choose div {
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.choose div:last-child {
  border-top-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 16px 18px 20px;
}
.choose dt {
  font-family: Archivo, sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.choose dd {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.55;
}

.sources-section {
  padding: 0 var(--gutter) clamp(72px, 10vw, 140px);
}
.sources-section h2 {
  font-size: clamp(36px, 3.6vw, 60px);
  margin-bottom: 18px;
}
.sources-section > p {
  max-width: 60ch;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.sources {
  margin: 0;
  border-top: 1px solid var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.sources div {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 4px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.sources dt {
  font-weight: 600;
}
.sources dd {
  margin: 0;
}
.sources a {
  overflow-wrap: anywhere;
}

@media (max-width: 979px) {
  .hero--compare {
    padding-bottom: clamp(52px, 6.4vw, 104px);
  }
  .matrix-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .choose {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .hero-facts div,
  .sources div,
  .choose {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero--compare .display {
    font-size: clamp(44px, 15vw, 80px);
  }
  .compare tbody th {
    width: 120px;
    min-width: 120px;
  }
  .compare {
    font-size: 14px;
  }
}
