/* Page Compta OS : comparaison à filets entre une IA simple et Compta OS. */

.compare {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare th,
.compare td {
  padding: 1.25rem 2rem 1.25rem 0;
  border-top: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  padding-block: 0 1rem;
  border-top: 0;
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 650;
  color: var(--ink);
}

.compare thead th:first-child {
  width: 26%;
}

.compare tbody th {
  font-size: var(--step--1);
  line-height: 1.6;
  font-weight: 600;
  color: var(--ink);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 1px solid var(--line-strong);
}

.compare td {
  color: var(--ink-2);
}

.compare td:last-child {
  color: var(--ink);
}

.compare__tag {
  display: none;
}

@media (max-width: 48rem) {
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
  }

  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .compare tbody tr {
    padding-block: 1.25rem;
    border-top: 1px solid var(--line-strong);
  }

  .compare tbody tr:last-child {
    border-bottom: 1px solid var(--line-strong);
  }

  .compare tbody th,
  .compare td,
  .compare tbody tr:last-child th,
  .compare tbody tr:last-child td {
    padding: 0;
    border: 0;
  }

  .compare td {
    margin-top: 0.5rem;
  }

  .compare__tag {
    display: inline;
    font-weight: 600;
    color: var(--ink);
  }
}
