/* Recent comparison tables become labeled cards on narrow screens. */
@media (max-width: 680px) {
  .cv-transport-table,
  .ca-table,
  .beach-table {
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
  }

  .cv-transport-table table,
  .ca-table table,
  .beach-table table {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto;
  }

  .cv-transport-table thead,
  .ca-table thead,
  .beach-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .cv-transport-table tbody,
  .ca-table tbody,
  .beach-table tbody {
    display: grid;
    gap: .7rem;
  }

  .cv-transport-table tr,
  .ca-table tr,
  .beach-table tr {
    display: block;
    overflow: hidden;
    border: 1px solid #d9cdbb;
    border-radius: .55rem;
    background: #fffdf8;
  }

  .cv-transport-table td,
  .ca-table td,
  .beach-table td {
    display: grid;
    grid-template-columns: minmax(6rem, 38%) minmax(0, 1fr);
    gap: .45rem;
    padding: .55rem .65rem;
    text-align: left !important;
    white-space: normal;
    overflow-wrap: anywhere;
    border: 0;
    border-top: 1px solid #e7dfd2;
  }

  .cv-transport-table td::before,
  .ca-table td::before,
  .beach-table td::before {
    content: attr(data-label);
    color: #34445a;
    font-weight: 650;
  }

  .cv-transport-table td:first-child,
  .ca-table td:first-child,
  .beach-table td:first-child {
    display: block;
    border-top: 0;
    background: #f4ede3;
    font-weight: 700;
  }

  .cv-transport-table td:first-child::before,
  .ca-table td:first-child::before,
  .beach-table td:first-child::before {
    content: none;
  }

  .cv-transport-table caption,
  .ca-table caption,
  .beach-table caption {
    display: block;
    text-align: left;
    padding: .45rem 0 .65rem;
    font-weight: 650;
  }
}
