/* One source of content: column labels accompany each value on small screens. */
.mobile-table-label { display: none; }

@media (max-width: 767px) {
  .model-table-wrap,
  .comparison-table-wrapper {
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  table[data-mobile-cards] {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    border-spacing: 0;
  }

  /* Keep column headers available to assistive technology. */
  table[data-mobile-cards] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  table[data-mobile-cards] tbody {
    display: grid;
    gap: 20px;
    min-width: 0;
  }

  table[data-mobile-cards] tbody tr {
    display: block;
    min-width: 0;
    border: 1px solid var(--clr-border, rgba(127, 127, 127, .25));
    border-radius: 12px;
    overflow: hidden;
  }

  table[data-mobile-cards] tbody tr > :is(td, th):nth-child(n) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 18px 20px;
    border: 0;
    border-radius: 0;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: .9375rem;
    line-height: 1.6;
  }

  table[data-mobile-cards] tbody tr > :first-child {
    padding: 18px 20px;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    background: var(--clr-surface-subtle, rgba(127, 127, 127, .08));
    border-bottom: 1px solid var(--clr-border, rgba(127, 127, 127, .25));
  }

  table[data-mobile-cards] tbody tr > :nth-child(n + 3) {
    border-top: 1px solid var(--clr-border, rgba(127, 127, 127, .25));
  }

  table[data-mobile-cards] .mobile-table-label {
    display: block;
    margin: 0 0 6px;
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: normal;
    text-transform: none;
    color: inherit;
  }
}
