/* www/public/css/compare.css — home page "Why Solo B1 vs the alternatives" cost table and its sources list.
   Desktop: a normal table. Phones (< 720px): each row stacks into a card and td::before prints the column
   name from data-label. RTL-safe: logical properties only. */

/* Vs alternatives table */
.compare-wrap {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 0 var(--color-border);
  overflow: hidden;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 14px 16px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
.compare thead th {
  background: var(--color-surface-sunken);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-text-2);
}
.compare tbody th {
  font-weight: 900;
  min-width: 140px;
}
.compare tbody tr:last-child > * {
  border-bottom: 0;
}
.compare .is-us {
  background: var(--color-success-bg);
}
.compare .is-us th {
  color: var(--color-cta-lip);
}
.compare .is-risk {
  background: #fdf0ea;
}
.compare .fit {
  font-weight: 800;
}
.compare .fit-yes {
  color: var(--color-cta-lip);
}
.compare .fit-no {
  color: var(--color-text-2);
}
.compare sup {
  font-size: 11px;
  margin-inline-start: 2px;
}
/* Phones: each row becomes a card; td::before shows its column name. */
@media (max-width: 719px) {
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .compare tr,
  .compare th,
  .compare td {
    display: block;
  }
  .compare tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
  }
  .compare tbody th,
  .compare td {
    padding: 4px 0;
    border: 0;
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-text-2);
  }
  .compare .is-us td::before {
    color: var(--color-cta-lip); /* never grey on the green "Solo B1" row */
  }
}
.sources {
  max-width: 860px;
  margin: 18px auto 0;
  padding-inline-start: 1.4em;
  font-size: 13px;
  color: var(--color-text-2);
  overflow-wrap: anywhere;
}
.sources a {
  color: inherit;
  text-decoration: underline;
}
