/* ShapeScale blog components: .ss-compare (comparison tables) and .ss-quote (testimonial cards)
   Location at ship: Site settings > Custom code > Head (inside <style>), or a hosted CSS file linked there.
   Both components live inside a rich text Code Embed (<div data-rt-embed-type="true">), which Webflow
   renders as <div class="w-embed">. Every selector is prefixed with .ss-compare / .ss-quote and repeated
   under .w-richtext so it outranks the legacy ".w-richtext table" rules (phone-wrap CSS) without !important wars. */

.ss-compare,
.ss-quote {
  --ss-ink: #25282a;
  --ss-text: #33373a;
  --ss-muted: #5c6166;
  --ss-line: #e7e9eb;
  --ss-line-soft: #f0f1f2;
  --ss-surface: #ffffff;
  --ss-surface-alt: #f7f8f8;
  --ss-teal: #2e8f8c;          /* outlines and accents on white, 3.9:1 */
  --ss-teal-text: #0f6b64;     /* teal text on the tint, 5.8:1 */
  --ss-teal-tint: #eef7f7;
  --ss-link: #3f63e0;
  --ss-radius: 1.25rem;
}

/* ---------- .ss-compare ---------- */
.w-richtext .ss-compare,
.ss-compare {
  margin: 2rem 0;
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  background: var(--ss-surface);
  color: var(--ss-text);
  overflow: hidden;
}
.ss-compare__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ss-line) transparent;
}
.w-richtext .ss-compare table.ss-compare__table,
.ss-compare table.ss-compare__table {
  display: table;
  width: 100%;
  min-width: 44rem;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ss-text);
  font-variant-numeric: tabular-nums;
}
.ss-compare--wide table.ss-compare__table { min-width: 52rem; }
.w-richtext .ss-compare .ss-compare__table thead { display: table-header-group; }
.w-richtext .ss-compare .ss-compare__table tbody { display: table-row-group; }
.w-richtext .ss-compare .ss-compare__table tr { display: table-row; margin: 0; padding: 0; border: 0; background: none; }
.w-richtext .ss-compare .ss-compare__table th,
.w-richtext .ss-compare .ss-compare__table td,
.ss-compare .ss-compare__table th,
.ss-compare .ss-compare__table td {
  display: table-cell;
  width: auto;
  text-align: left !important;
  vertical-align: top;
  padding: 0.85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--ss-line-soft);
  background: transparent;
  color: inherit;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.w-richtext .ss-compare .ss-compare__table td::before,
.w-richtext .ss-compare .ss-compare__table th::before { content: none; display: none; }
.w-richtext .ss-compare .ss-compare__table thead th,
.ss-compare .ss-compare__table thead th {
  vertical-align: bottom;
  background: transparent;
  color: var(--ss-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  padding-top: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ss-line);
  white-space: normal;
}
.w-richtext .ss-compare .ss-compare__table tbody th,
.ss-compare .ss-compare__table tbody th {
  color: var(--ss-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.w-richtext .ss-compare .ss-compare__table tbody tr:last-child > *,
.ss-compare .ss-compare__table tbody tr:last-child > * { border-bottom: 0; }

/* Sticky first column when the table scrolls sideways (tablet widths) */
.w-richtext .ss-compare .ss-compare__table tr > :first-child,
.ss-compare .ss-compare__table tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--ss-surface);
  min-width: 9rem;
}

@media (hover: hover) and (pointer: fine) {
  .w-richtext .ss-compare .ss-compare__table tbody tr:hover > * { background-color: var(--ss-surface-alt); }
  .w-richtext .ss-compare .ss-compare__table tbody tr:hover > .is-ss,
  .w-richtext .ss-compare .ss-compare__table tbody tr.is-ss:hover > * { background-color: var(--ss-teal-tint); }
}

/* Highlight a column: put .is-ss on that column's th and every td */
.w-richtext .ss-compare .ss-compare__table .is-ss,
.ss-compare .ss-compare__table .is-ss {
  background: var(--ss-teal-tint);
  box-shadow: inset 2px 0 0 var(--ss-teal), inset -2px 0 0 var(--ss-teal);
}
.w-richtext .ss-compare .ss-compare__table thead .is-ss,
.ss-compare .ss-compare__table thead .is-ss {
  color: var(--ss-teal-text);
  box-shadow: inset 2px 0 0 var(--ss-teal), inset -2px 0 0 var(--ss-teal), inset 0 2px 0 var(--ss-teal);
}
.w-richtext .ss-compare .ss-compare__table tbody tr:last-child .is-ss,
.ss-compare .ss-compare__table tbody tr:last-child .is-ss {
  box-shadow: inset 2px 0 0 var(--ss-teal), inset -2px 0 0 var(--ss-teal), inset 0 -2px 0 var(--ss-teal);
}

/* Highlight a row: put .is-ss on the tr */
.w-richtext .ss-compare .ss-compare__table tr.is-ss > *,
.ss-compare .ss-compare__table tr.is-ss > * {
  background: var(--ss-teal-tint);
  box-shadow: inset 0 2px 0 var(--ss-teal), inset 0 -2px 0 var(--ss-teal);
  border-bottom-color: transparent;
}
.w-richtext .ss-compare .ss-compare__table tr.is-ss > :first-child,
.ss-compare .ss-compare__table tr.is-ss > :first-child {
  color: var(--ss-teal-text);
  box-shadow: inset 0 2px 0 var(--ss-teal), inset 0 -2px 0 var(--ss-teal), inset 2px 0 0 var(--ss-teal);
}
.w-richtext .ss-compare .ss-compare__table tr.is-ss > :last-child,
.ss-compare .ss-compare__table tr.is-ss > :last-child {
  box-shadow: inset 0 2px 0 var(--ss-teal), inset 0 -2px 0 var(--ss-teal), inset -2px 0 0 var(--ss-teal);
}

.w-richtext .ss-compare .ss-compare__source,
.ss-compare .ss-compare__source {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid var(--ss-line);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ss-muted);
}
.ss-compare a { color: var(--ss-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.ss-compare a:hover { text-decoration-thickness: 2px; }
.ss-compare a:focus-visible,
.ss-quote a:focus-visible { outline: 2px solid var(--ss-teal); outline-offset: 2px; border-radius: 2px; }
.ss-compare__scroll:focus-visible { outline: 2px solid var(--ss-teal); outline-offset: -2px; }

/* ---------- phone: no sideways scrolling, rows become cards ---------- */
@media (max-width: 767px) {
  .w-richtext .ss-compare,
  .ss-compare {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    margin: 1.5rem 0;
  }
  .ss-compare__scroll { overflow: visible; }
  .w-richtext .ss-compare table.ss-compare__table,
  .ss-compare table.ss-compare__table { display: block; min-width: 0; width: 100%; font-size: 0.9375rem; }
  .w-richtext .ss-compare .ss-compare__table thead {
    display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .w-richtext .ss-compare .ss-compare__table tbody { display: block; }
  .w-richtext .ss-compare .ss-compare__table tr,
  .ss-compare .ss-compare__table tr {
    display: block;
    margin: 0 0 0.75rem;
    padding: 1rem 1rem 0.35rem;
    border: 1px solid var(--ss-line);
    border-radius: 0.875rem;
    background: var(--ss-surface);
  }
  .w-richtext .ss-compare .ss-compare__table th,
  .w-richtext .ss-compare .ss-compare__table td,
  .ss-compare .ss-compare__table th,
  .ss-compare .ss-compare__table td {
    display: block;
    position: static;
    min-width: 0;
    padding: 0.6rem 0;
    border: 0;
    border-top: 1px solid var(--ss-line-soft);
    background: transparent;
    box-shadow: none;
    overflow-wrap: anywhere;
  }
  .w-richtext .ss-compare .ss-compare__table tr > :first-child,
  .ss-compare .ss-compare__table tr > :first-child {
    border-top: 0;
    padding: 0 0 0.7rem;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ss-ink);
    background: transparent;
  }
  .w-richtext .ss-compare .ss-compare__table td[data-label]::before,
  .ss-compare .ss-compare__table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ss-muted);
  }
  /* highlighted row card */
  .w-richtext .ss-compare .ss-compare__table tr.is-ss,
  .ss-compare .ss-compare__table tr.is-ss {
    background: var(--ss-teal-tint);
    border-color: transparent;
    box-shadow: inset 0 0 0 1.5px var(--ss-teal);
  }
  .w-richtext .ss-compare .ss-compare__table tr.is-ss > *,
  .ss-compare .ss-compare__table tr.is-ss > * { background: transparent; box-shadow: none; }
  .w-richtext .ss-compare .ss-compare__table tr.is-ss > :first-child { color: var(--ss-teal-text); }
  /* criteria variant: highlighted column cell becomes an outlined box inside each card */
  .w-richtext .ss-compare .ss-compare__table td.is-ss,
  .ss-compare .ss-compare__table td.is-ss {
    margin: 0.1rem 0 0.6rem;
    padding: 0.75rem 0.85rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--ss-teal-tint);
    box-shadow: inset 0 0 0 1.5px var(--ss-teal);
  }
  .w-richtext .ss-compare .ss-compare__table td.is-ss + td { border-top: 0; }
  .w-richtext .ss-compare .ss-compare__table td.is-ss::before { color: var(--ss-teal-text); }
  .w-richtext .ss-compare .ss-compare__source,
  .ss-compare .ss-compare__source { padding: 0.25rem 0.15rem 0; border-top: 0; }
}

/* ---------- .ss-quote ---------- */
.w-richtext .ss-quote,
.ss-quote {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0;
  margin: 2rem 0;
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  background: var(--ss-surface);
  overflow: hidden;
}
.ss-quote__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 11rem;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  background: var(--ss-surface-alt);
}
.ss-quote__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  background: var(--ss-teal-tint);
  color: var(--ss-teal-text);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.ss-quote__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.35rem 1.5rem 1.25rem;
}
.w-richtext .ss-quote .ss-quote__text,
.ss-quote .ss-quote__text {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-style: normal;
  color: var(--ss-ink);
  text-wrap: pretty;
}
.w-richtext .ss-quote .ss-quote__text p,
.ss-quote .ss-quote__text p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.w-richtext .ss-quote .ss-quote__by,
.ss-quote__by {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--ss-line);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.ss-quote__name { color: var(--ss-ink); font-weight: 600; font-size: 0.9375rem; }
.ss-quote__role { color: var(--ss-muted); }
.w-richtext .ss-quote a.ss-quote__source,
.ss-quote a.ss-quote__source {
  margin-left: auto;
  color: var(--ss-muted);
  font-size: 0.75rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.ss-quote a.ss-quote__source:hover { color: var(--ss-link); }

@media (max-width: 479px) {
  .w-richtext .ss-quote,
  .ss-quote { grid-template-columns: 4.5rem minmax(0, 1fr); grid-template-rows: auto auto; }
  .ss-quote__photo,
  .ss-quote__initials {
    grid-row: 1; grid-column: 1;
    width: 3.5rem; height: 3.5rem; min-height: 0;
    margin: 1.1rem 0 0 1rem;
    border-radius: 999px;
    font-size: 1.1rem;
  }
  .ss-quote__body { display: contents; }
  .w-richtext .ss-quote .ss-quote__text,
  .ss-quote .ss-quote__text { grid-row: 2; grid-column: 1 / -1; padding: 0.9rem 1.1rem 0; font-size: 1rem; }
  .w-richtext .ss-quote .ss-quote__by,
  .ss-quote__by {
    grid-row: 1; grid-column: 2;
    margin: 0; padding: 1.1rem 1rem 0 0.25rem; border-top: 0;
    flex-direction: column; align-items: flex-start; gap: 0.1rem; align-self: center;
  }
  .w-richtext .ss-quote a.ss-quote__source,
  .ss-quote a.ss-quote__source { margin-left: 0; }
  .ss-quote::after { content: ""; grid-row: 3; height: 1.1rem; }
}

/* ---------- dark mode (the blog follows the OS setting) ---------- */
@media (prefers-color-scheme: dark) {
  .ss-compare,
  .ss-quote {
    --ss-ink: #f2f2f4;
    --ss-text: #dcdde0;
    --ss-muted: #a7aab1;        /* 7.3:1 on the panel */
    --ss-line: #ffffff1f;
    --ss-line-soft: #ffffff14;
    --ss-surface: #1b1c1f;
    --ss-surface-alt: #222327;
    --ss-teal: #72c7c5;
    --ss-teal-text: #8fd6d4;
    --ss-teal-tint: #1f2f30;
    --ss-link: #9db4ff;
  }
  @media (max-width: 767px) {
    .w-richtext .ss-compare,
    .ss-compare { background: transparent; }
  }
}


/* ---------- uniform cell background (light and dark) ----------
   One fill for every cell: no zebra, no first-column fill, no ShapeScale tint,
   no hover fill. Also covers native rich-text tables (figure[data-rt-type="table"]),
   which the Evolt review uses, so phone-wrap zebra cannot leak through. */
.w-richtext .ss-compare .ss-compare__table th,
.w-richtext .ss-compare .ss-compare__table td,
.ss-compare .ss-compare__table th,
.ss-compare .ss-compare__table td,
.w-richtext .ss-compare .ss-compare__table thead th,
.ss-compare .ss-compare__table thead th,
.w-richtext .ss-compare .ss-compare__table tbody th,
.ss-compare .ss-compare__table tbody th,
.w-richtext .ss-compare .ss-compare__table tr > :first-child,
.ss-compare .ss-compare__table tr > :first-child,
.w-richtext .ss-compare .ss-compare__table .is-ss,
.ss-compare .ss-compare__table .is-ss,
.w-richtext .ss-compare .ss-compare__table thead .is-ss,
.ss-compare .ss-compare__table thead .is-ss,
.w-richtext .ss-compare .ss-compare__table tbody tr:last-child .is-ss,
.ss-compare .ss-compare__table tbody tr:last-child .is-ss,
.w-richtext .ss-compare .ss-compare__table tr.is-ss > *,
.ss-compare .ss-compare__table tr.is-ss > *,
.w-richtext .ss-compare .ss-compare__table tr.is-ss > :first-child,
.ss-compare .ss-compare__table tr.is-ss > :first-child,
.w-richtext .ss-compare .ss-compare__table tr.is-ss > :last-child,
.ss-compare .ss-compare__table tr.is-ss > :last-child,
.w-richtext .ss-compare .ss-compare__table tbody tr:nth-child(even) td,
.w-richtext .ss-compare .ss-compare__table tbody tr:nth-child(even) th,
.w-richtext .ss-compare .ss-compare__table tbody tr:nth-child(odd) td,
.w-richtext .ss-compare .ss-compare__table tbody tr:nth-child(odd) th,
.w-richtext .ss-compare .ss-compare__table tbody tr:hover > *,
.w-richtext .ss-compare .ss-compare__table tbody tr:hover > .is-ss,
.w-richtext .ss-compare .ss-compare__table tbody tr.is-ss:hover > * {
  background: var(--ss-surface);
  background-color: var(--ss-surface);
  box-shadow: none;
}

@media (max-width: 767px) {
  .w-richtext .ss-compare .ss-compare__table tr,
  .ss-compare .ss-compare__table tr,
  .w-richtext .ss-compare .ss-compare__table th,
  .w-richtext .ss-compare .ss-compare__table td,
  .ss-compare .ss-compare__table th,
  .ss-compare .ss-compare__table td,
  .w-richtext .ss-compare .ss-compare__table tr > :first-child,
  .ss-compare .ss-compare__table tr > :first-child,
  .w-richtext .ss-compare .ss-compare__table tr.is-ss,
  .ss-compare .ss-compare__table tr.is-ss,
  .w-richtext .ss-compare .ss-compare__table tr.is-ss > *,
  .ss-compare .ss-compare__table tr.is-ss > *,
  .w-richtext .ss-compare .ss-compare__table td.is-ss,
  .ss-compare .ss-compare__table td.is-ss,
  .w-richtext .ss-compare .ss-compare__table tbody tr:nth-child(even) td,
  .w-richtext .ss-compare .ss-compare__table tbody tr:nth-child(even) th,
  .w-richtext .ss-compare .ss-compare__table tbody tr:nth-child(odd) td,
  .w-richtext .ss-compare .ss-compare__table tbody tr:nth-child(odd) th {
    background: var(--ss-surface);
    background-color: var(--ss-surface);
    box-shadow: none;
  }
}

.w-richtext figure[data-rt-type="table"] {
  --ss-ink: #25282a;
  --ss-text: #33373a;
  --ss-muted: #5c6166;
  --ss-line: #e7e9eb;
  --ss-line-soft: #f0f1f2;
  --ss-surface: #ffffff;
  --ss-surface-alt: #ffffff;
  --ss-teal: #2e8f8c;
  --ss-teal-text: #0f6b64;
  --ss-teal-tint: #ffffff;
  --ss-link: #3f63e0;
}

.w-richtext figure[data-rt-type="table"] table,
.w-richtext figure[data-rt-type="table"] table thead th,
.w-richtext figure[data-rt-type="table"] table tbody th,
.w-richtext figure[data-rt-type="table"] table td,
.w-richtext figure[data-rt-type="table"] table tbody tr:nth-child(even) td,
.w-richtext figure[data-rt-type="table"] table tbody tr:nth-child(even) th,
.w-richtext figure[data-rt-type="table"] table tbody tr:nth-child(odd) td,
.w-richtext figure[data-rt-type="table"] table tbody tr:nth-child(odd) th,
.w-richtext figure[data-rt-type="table"] table tbody tr:last-child td,
.w-richtext figure[data-rt-type="table"] table tbody tr:last-child th,
.w-richtext figure[data-rt-type="table"] table tbody tr > :first-child,
.w-richtext figure[data-rt-type="table"] table tbody tr > *:first-child,
.w-richtext figure[data-rt-type="table"] table tbody tr > *:last-child {
  background: var(--ss-surface);
  background-color: var(--ss-surface);
}

@media (max-width: 767px) {
  .w-richtext figure[data-rt-type="table"],
  .w-richtext figure[data-rt-type="table"] table,
  .w-richtext figure[data-rt-type="table"] table tbody tr,
  .w-richtext figure[data-rt-type="table"] table tbody th,
  .w-richtext figure[data-rt-type="table"] table td,
  .w-richtext figure[data-rt-type="table"] table tbody tr:nth-child(even) td,
  .w-richtext figure[data-rt-type="table"] table tbody tr:nth-child(even) th,
  .w-richtext figure[data-rt-type="table"] table tbody tr:nth-child(odd) td,
  .w-richtext figure[data-rt-type="table"] table tbody tr:nth-child(odd) th,
  .w-richtext figure[data-rt-type="table"] table tbody tr:last-child td,
  .w-richtext figure[data-rt-type="table"] table tbody tr:last-child th,
  .w-richtext figure[data-rt-type="table"] table tbody tr > :first-child {
    background: var(--ss-surface);
    background-color: var(--ss-surface);
  }
}

@media (prefers-color-scheme: dark) {
  .w-richtext figure[data-rt-type="table"] {
    --ss-ink: #f2f2f4;
    --ss-text: #dcdde0;
    --ss-muted: #a7aab1;
    --ss-line: #ffffff1f;
    --ss-line-soft: #ffffff14;
    --ss-surface: #1b1c1f;
    --ss-surface-alt: #1b1c1f;
    --ss-teal: #72c7c5;
    --ss-teal-text: #8fd6d4;
    --ss-teal-tint: #1b1c1f;
    --ss-link: #9db4ff;
  }
}
