/* Editor tables inside blog-article (template 19) and current-news (template 4) bodies. */
.blog-content__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.25;
  color: #fff;
  margin: 24px 0;
}

.blog-content__body table th,
.blog-content__body table td {
  border: 2px solid #5a00e6;
  padding: 14px 12px;
  vertical-align: middle;
  text-align: left;
  background: #2f007a;
  color: #fff;
  word-break: break-word;
}

.blog-content__body table td:nth-child(4n+2) { background: #2f007a; }
.blog-content__body table td:nth-child(4n+3) { background: #4a00b8; }
.blog-content__body table td:nth-child(4n+4) { background: #6a00ff; }
.blog-content__body table td:nth-child(4n+5) { background: #2b006d; }

.blog-content__body table th:first-child,
.blog-content__body table td:first-child {
  background: #3f0099;
  font-weight: 700;
  width: 20%;
}

.blog-content__body table thead th,
.blog-content__body table thead td,
.blog-content__body table tr:first-child th,
.blog-content__body table:not(:has(th)) tr:first-child td {
  background: #5a00e6;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.blog-content__body table th *,
.blog-content__body table td * {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  background: transparent !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.blog-content__body table th p,
.blog-content__body table th span,
.blog-content__body table td:first-child p,
.blog-content__body table td:first-child span {
  font-weight: 700 !important;
}

.blog-content__body table td:not(:first-child) p,
.blog-content__body table td:not(:first-child) span {
  font-weight: 400 !important;
}

@media (max-width: 900px) {
  .blog-content__body table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
  }
  .blog-content__body table th,
  .blog-content__body table td {
    padding: 12px 10px;
  }
}
