/* Article tables only. Content, image and publishing pipelines are unchanged. */
.article-content table {
  width: 100%;
  max-width: 100%;
  margin-block: 1rem;
  border-collapse: collapse;
  border: 1px solid #d5dfe9;
  color: #182b43;
  font-size: 1rem;
  line-height: 1.85;
  text-align: start;
  table-layout: auto;
}

.article-content table :is(th, td) {
  min-width: 7rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #d5dfe9;
  vertical-align: top;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.85;
}

.article-content table th,
.article-content table > tbody:first-child > tr:first-child > :is(th, td),
.article-content table > tr:first-child > :is(th, td) {
  background: #edf3f8;
  color: #142b45;
  font-weight: 700;
}

.article-content table > tbody > tr:nth-child(even) > td {
  background: #f8fafc;
}

.article-content table :is(th, td) :is(p, ul, ol) {
  margin-block: 0;
}

/* Existing article wrappers retain native table semantics and horizontal scroll. */
.article-content :is(.table-responsive, .table-wrap, .kh-table-wrap),
.article-content div[style*="overflow-x"] {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  .article-content table {
    font-size: 1rem;
    line-height: 1.9;
  }

  .article-content table :is(th, td) {
    min-width: 6rem;
    padding: 0.75rem;
    line-height: 1.9;
  }
}
