.rps-comparison-wrap {
  width: 100%;
  overflow: visible;
}

.rps-comparison {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-family: var(--text-default-font-family);
  color: var(--xvia-black);
  background: #ffffff;
}

.rps-comparison caption {
  text-align: left;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.rps-comparison th,
.rps-comparison td {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(18, 18, 18, 0.18);
  text-align: left;
  vertical-align: top;
}

.rps-comparison thead th {
  font-family: var(--heading-font-family);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--xvia-black);
  color: #ffffff;
}

.rps-comparison tbody th {
  font-family: var(--technical-font-family);
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.rps-comparison tbody tr:nth-child(even) {
  background: rgba(46, 46, 46, 0.05);
}

.rps-doc-scope-note {
  max-width: 68ch;
  margin: 0.75rem 0 1rem;
}

@media (max-width: 768px) {
  .rps-comparison,
  .rps-comparison tbody,
  .rps-comparison tr,
  .rps-comparison th,
  .rps-comparison td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .rps-comparison caption {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .rps-comparison thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .rps-comparison tbody tr {
    margin-bottom: 1rem;
    border: 1px solid rgba(18, 18, 18, 0.22);
    background: #ffffff;
  }

  .rps-comparison tbody tr:nth-child(even) {
    background: #ffffff;
  }

  .rps-comparison tbody th {
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 2px solid var(--xvia-blue);
    background: var(--xvia-black);
    color: #ffffff;
    white-space: normal;
  }

  .rps-comparison tbody td {
    display: grid;
    grid-template-columns: minmax(7.5rem, 34%) 1fr;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 0;
    border-bottom: 1px solid rgba(18, 18, 18, 0.12);
  }

  .rps-comparison tbody td:last-child {
    border-bottom: 0;
  }

  .rps-comparison tbody td::before {
    content: attr(data-label);
    font-family: var(--technical-font-family);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
}
