/* /compare (compare-page-1130): the table of what each concert trip service includes, by its own pages.
   Colours are tokens only (styles.css, generated from design/theme). Wide screens: a real table, the six services as
   columns. Up to 900px: each row becomes a card, the row name its heading and each cell labelled with its service
   (data-label), so the page never scrolls sideways at a phone width. */

.legal-content.compare-page {
  max-width: 1080px;
}

.compare-page .compare-lede {
  max-width: 70ch;
  font-size: 16px;
}

.compare-wrap {
  margin: 24px 0 8px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.45;
}

.compare-table th,
.compare-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-color);
  overflow-wrap: anywhere;
}

.compare-table thead th {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--border-color);
}

.compare-table thead td:first-child,
.compare-table tbody th {
  color: var(--text-primary);
  font-weight: 700;
  width: 136px;
}

.compare-table td {
  color: var(--text-secondary);
}

.compare-sources {
  overflow-wrap: anywhere;
}

.compare-sources .compare-url {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
}

.compare-sources strong {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: auto;
  }

  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .compare-table tbody tr {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 4px 14px 6px;
    background: var(--bg-surface);
  }

  .compare-table tbody th {
    width: auto;
    font-size: 16px;
    padding: 10px 0 8px;
  }

  .compare-table td {
    padding: 8px 0;
  }

  .compare-table td:last-child {
    border-bottom: none;
  }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
  }
}
