/* Home 15: comparison table only. */
.compare-wrap {
  max-height: min(72vh, 780px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.compare {
  border-collapse: separate;
  border-spacing: 0;
}

.compare th,
.compare td {
  border-inline-end: 1px solid var(--line);
}

.compare thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  padding: 10px 12px;
  vertical-align: middle;
  box-shadow: 0 1px 0 var(--line);
}

.compare thead th:first-child,
.compare th[scope="row"] {
  position: sticky;
  inset-inline-start: 0;
  width: 150px;
  min-width: 150px;
  background: #fff;
  box-shadow: -1px 0 0 var(--line);
}

.compare thead th:first-child {
  z-index: 4;
  inset-block-start: 0;
}

.compare th[scope="row"] {
  z-index: 1;
  text-align: start;
}

.compare thead a {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.compare thead small {
  font-size: .76rem;
  line-height: 1.25;
}

.compare tbody tr:nth-child(odd) th[scope="row"] {
  background: #fafcfd;
}

.compare tfoot td:first-child {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: #fff;
}

@media (min-width: 761px) {
  .compare {
    min-width: 980px;
  }
}

@media (max-width: 760px) {
  .compare {
    min-width: 960px;
  }

  .compare thead th,
  .compare td {
    padding: 10px 9px;
    font-size: .9rem;
  }

  .compare thead th:first-child,
  .compare th[scope="row"] {
    width: 118px;
    min-width: 118px;
  }

  .compare thead a {
    font-size: .95rem;
  }

  .compare .chip {
    padding: 4px 8px;
  }
}

/* 24.11.2026 external review (Tal): no scroll box inside the page; phones get one card per model */
.cmp-cards{display:none}
@media (min-width: 1061px) {
  .compare-wrap { max-height: none; overflow: visible; }
  .compare thead th, .compare thead th:first-child { inset-block-start: var(--cmp-top, 0px); }
}
@media (max-width: 760px) {
  .compare-wrap, .scroll-hint { display: none; }
  .cmp-cards { display: grid; gap: 14px; }
  .cmp-card { background: #fff; border: 1.5px solid #d2e5ec; border-radius: 18px; padding: 16px; box-shadow: 0 8px 20px -14px rgba(2,54,78,.18); }
  .cmp-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
  .cmp-card h3 a { color: var(--navy); text-decoration: none; }
  .cmp-card > .muted { margin: 2px 0 10px; font-size: .85rem; }
  .cmp-card dl { margin: 0 0 12px; }
  .cmp-card dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #eaf3f7; }
  .cmp-card dt { font-size: .85rem; font-weight: 700; color: #5a727e; flex: 0 0 auto; }
  .cmp-card dd { margin: 0; text-align: end; font-size: .92rem; }
  .cmp-card .button { width: 100%; text-align: center; }
}
