/* The comparison table: BuffApe beside the others. Used by the landing's compare section and the
   compare page. Dawn: a check or plain words, never red; status colors stay off marketing
   comparisons, so BuffApe's checks are the accent's text color. Only tokens. */

.vs {
  max-width: 1000px;
  margin: var(--space-12) auto 0;
}
.vs table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  text-align: start;
}
.vs col.label {
  width: 22%;
}
.vs th,
.vs td {
  padding: var(--space-5) var(--space-6);
  vertical-align: top;
  border-top: var(--border) solid var(--line);
  font-size: 15px;
  line-height: var(--leading-ui);
  text-align: start;
}
.vs thead th,
.vs thead td {
  border-top: 0;
  padding-block: var(--space-5);
  vertical-align: bottom;
}
.vs thead th {
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.vs tbody th {
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
}
.vs td {
  color: var(--text-muted);
}
/* BuffApe's column: one raised card down the table */
.vs .us {
  background: var(--surface);
  border-inline: var(--border) solid var(--accent-line);
  color: var(--text-strong);
}
.vs thead .us {
  border-top: var(--border) solid var(--accent-line);
  border-radius: var(--radius-window) var(--radius-window) 0 0;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: var(--weight-semibold);
}
.vs thead .us img {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-inline-end: var(--space-2);
  vertical-align: -8px;
}
.vs tbody tr:last-child .us {
  border-bottom: var(--border) solid var(--accent-line);
  border-radius: 0 0 var(--radius-window) var(--radius-window);
}
.vs tbody .us {
  border-top-color: var(--line);
}
.vs td.us {
  display: table-cell;
}
.vs td.us > .icon {
  float: left;
  width: 18px;
  height: 18px;
  margin: 2px var(--space-3) 0 0;
  color: var(--accent-text);
  stroke-width: 2.4;
}
.vs td.us > span {
  display: block;
  overflow: hidden;
}
.vs .badge {
  margin-inline-start: var(--space-1);
  vertical-align: 1px;
}
/* One quiet line for what we didn't find */
.vs .none {
  color: var(--text-subtle);
}
.vs-more {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
  text-align: center;
}

/* Phones: one card per row, the columns named inside it, so nothing scrolls sideways */
@media (max-width: 720px) {
  .vs table,
  .vs tbody,
  .vs tr,
  .vs th,
  .vs td {
    display: block;
    width: auto;
  }
  .vs thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .vs tbody tr {
    padding-block: var(--space-6);
    border-top: var(--border) solid var(--line);
  }
  .vs tbody th,
  .vs tbody td {
    padding: 0;
    border: 0;
  }
  .vs tbody th {
    font-size: 17px;
  }
  .vs td::before {
    content: attr(data-col);
    display: block;
    margin-bottom: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--size-label);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--text-subtle);
  }
  .vs td.us {
    display: block;
    margin-top: var(--space-4);
    padding: var(--space-4);
    border: var(--border) solid var(--accent-line);
    border-radius: var(--radius-card);
  }
  .vs tbody tr:last-child .us {
    border-radius: var(--radius-card);
  }
  .vs td.us::before {
    color: var(--accent-text);
  }
  .vs td:not(.us) {
    margin-top: var(--space-4);
    padding-inline: var(--space-4);
  }
}
