/* Molo Compare Table */
.molo-compare-table__header {
  margin-bottom: clamp(28px, 4vw, 48px);
  max-width: 62ch;
}

/* section+element+class specificity so Avada's global heading styles
   (.fusion-body .post-content h2 …) can't restyle the headline */
section.molo-compare-table h2.molo-compare-table__headline {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  text-wrap: balance;
}

.molo-compare-table__intro {
  margin: .9em 0 0;
  line-height: 1.6;
}

/* the table always scrolls sideways on narrow screens — never breaks the page */
.molo-compare-table__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.molo-compare-table__table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  border: 1px solid var(--molo-line);
  font-size: .97rem;
  line-height: 1.55;
}

/* screen-reader-only caption (fallback if the theme doesn't define it) */
.molo-compare-table .screen-reader-text {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.molo-compare-table__table thead th {
  background: var(--molo-navy);
  color: var(--molo-paper);
  text-align: left;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 18px 22px;
  border: 1px solid var(--molo-navy);
}

.molo-compare-table__table tbody th,
.molo-compare-table__table tbody td {
  padding: 18px 22px;
  border: 1px solid var(--molo-line);
  text-align: left;
  vertical-align: top;
}

.molo-compare-table__table tbody th[scope="row"] {
  width: 19%;
  color: var(--molo-navy);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.molo-compare-table__table tbody tr:nth-child(even) {
  background: var(--molo-paper-dim);
}
.molo-theme-dim .molo-compare-table__table tbody tr:nth-child(odd) {
  background: var(--molo-paper);
}
.molo-theme-dim .molo-compare-table__table tbody tr:nth-child(even) {
  background: var(--molo-paper-dim);
}

.molo-compare-table__footnote {
  margin: 20px 0 0;
  font-style: italic;
  opacity: .85;
}
