/* The comparison table (_compare_table.html), on /compare and the home page. Uses the
   page's own color variables. */
.compare table {
  width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border);
  font-size: .95rem; line-height: 1.5; table-layout: fixed;  /* the three answer columns share equally */
}
.compare thead th:first-child { width: 28%; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare thead th {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; opacity: .75;
}
.compare thead th.ours { color: var(--rose); opacity: 1; }
.compare tbody th { font-weight: 400; }
.compare td { opacity: .8; }
.compare .ours { background: #fbf3ee; }
.compare td.ours { opacity: 1; font-weight: 400; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Phones: one card per row, each answer labeled. */
@media (max-width: 640px) {
  .compare table, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare table { border: 0; background: none; }
  .compare tbody tr { background: var(--white); border: 1px solid var(--border); margin-bottom: 12px; }
  .compare tbody th {
    border: 0; padding: 14px 16px 10px; width: 100%;
    font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; line-height: 1.25;
  }
  .compare td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 9px 16px; border: 0; border-top: 1px solid var(--border); text-align: right;
  }
  .compare td::before {
    content: attr(data-label); flex: none; text-align: left;
    font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7;
  }
  .compare td.ours::before { color: var(--rose); opacity: 1; }
}
