.blog-rich-text > h2 {
  margin-top: 3.75rem;
  padding: 1rem 1.1rem;
  color: #211825;
  background: #f3eafa;
  border: 1px solid #e2d9e7;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(39, 27, 45, 0.04);
  line-height: 1.25;
}

.blog-rich-text > h3 {
  margin-top: 2.5rem;
  padding-bottom: 0.55rem;
  color: #211825;
  border-bottom: 1px solid #ded9e1;
}

.blog-rich-text .comparison-table,
.blog-rich-text .construction-table,
.blog-rich-text .investing-table,
.blog-rich-text .table-wrapper,
.blog-rich-text .article-table-wrap {
  width: 100%;
  margin: 2.25rem 0;
  overflow: visible;
}

.blog-rich-text table {
  width: 100%;
  box-sizing: border-box;
  margin: 2.25rem 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #ded9e1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(39, 27, 45, 0.05);
}

.blog-rich-text .comparison-table table,
.blog-rich-text .construction-table table,
.blog-rich-text .investing-table table,
.blog-rich-text .table-wrapper table,
.blog-rich-text .article-table-wrap table {
  margin: 0;
}

.blog-rich-text table th,
.blog-rich-text table td {
  box-sizing: border-box;
  padding: 16px 18px;
  border-right: 1px solid #ded9e1;
  border-bottom: 1px solid #ded9e1;
  color: #211825;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.blog-rich-text table th {
  background: #eee2f7;
  color: #211825;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.blog-rich-text table td:first-child {
  color: #211825;
  font-weight: 700;
  background: #fff;
}

.blog-rich-text table th:last-child,
.blog-rich-text table td:last-child {
  border-right: 0;
}

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


@media screen and (max-width: 820px) {
  .blog-rich-text > h2 {
    margin-top: 3rem;
    padding: 0.9rem 1rem;
    font-size: 1.45rem;
  }

  .blog-rich-text > h3 {
    margin-top: 2rem;
  }

  .blog-rich-text .comparison-table,
  .blog-rich-text .construction-table,
  .blog-rich-text .investing-table,
  .blog-rich-text .table-wrapper,
  .blog-rich-text .article-table-wrap,
  .blog-rich-text table {
    margin: 1.75rem 0;
  }

  .blog-rich-text table,
  .blog-rich-text table thead,
  .blog-rich-text table tbody,
  .blog-rich-text table tr,
  .blog-rich-text table th,
  .blog-rich-text table td {
    display: block;
    width: 100%;
  }

  .blog-rich-text table {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .blog-rich-text .comparison-table table,
  .blog-rich-text .construction-table table,
  .blog-rich-text .investing-table table,
  .blog-rich-text .table-wrapper table,
  .blog-rich-text .article-table-wrap table {
    margin: 0;
  }

  .blog-rich-text table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .blog-rich-text table tbody {
    display: grid;
    gap: 18px;
  }

  .blog-rich-text table tr {
    overflow: hidden;
    border: 1px solid #ded9e1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(39, 27, 45, 0.06);
  }


  .blog-rich-text table td {
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid #e6e2e8;
    color: #211825;
    background: #fff;
  }

  .blog-rich-text table td:last-child {
    border-bottom: 0;
  }

  .blog-rich-text table td:first-child {
    padding: 14px;
    color: #211825;
    background: #eee2f7;
    font-size: 1.05rem;
  }


  .blog-rich-text table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: #211825;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
  }
}
