/* ---- Rich text tables ---- */

.rich-text-blog .w-embed:has(table) {
  overflow-x: auto;
}

.rich-text-blog table {
  width: 100%;
  min-width: 700px;
  table-layout: fixed;
  border-collapse: collapse;
}

.rich-text-blog th,
.rich-text-blog td {
  width: auto;
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  line-height: 1.4;
  word-wrap: break-word;
  border-bottom: 1px solid var(--neutral--neutrals-800);
}

.rich-text-blog th {
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
}

.rich-text-blog td {
  font-size: 14px;
}

.rich-text-blog tbody tr:last-child td {
  border-bottom: none;
}

/* Edge-to-edge scroll on mobile: the wrapper breaks out of the
   content padding, then re-adds it as internal padding so the
   table still starts and ends aligned with the body text. */
@media (max-width: 768px) {
  .rich-text-blog .w-embed:has(table) {
    width: calc(100% + var(--_sizes---global-padding) * 2);
    margin-left: calc(var(--_sizes---global-padding) * -1);
    margin-right: calc(var(--_sizes---global-padding) * -1);
    padding-left: var(--_sizes---global-padding);
    padding-right: var(--_sizes---global-padding);
  }
}

.rich-text-blog .w-embed.is-scrollable::before {
  content: '\2194\00a0\00a0Scroll to see the full table';
  position: sticky;
  left: 0;
  display: block;
  width: max-content;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--_color-themes---text-color--text-secondary);
}
