/**
 * Sitewide content tables — Tatvic palette (black + #7500FF).
 * Header: first column solid black, remaining columns solid purple.
 */
:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table,
.tatvic-content-table {
  --tatvic-table-black: #000000;
  --tatvic-table-purple: var(--tp-common-blue, #7500ff);
  --tatvic-table-muted: #5a5566;
  --tatvic-table-stripe: #faf8fd;
  --tatvic-table-hover: #f3ebff;
  --tatvic-table-line: #e2ddeb;
  width: 100%;
  max-width: 920px;
  margin: 40px auto;
  border-collapse: collapse;
  border: 2px solid var(--tatvic-table-black);
  font-family: inherit;
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table thead th,
.tatvic-content-table thead th,
:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table:not(:has(thead)) > tbody > tr:first-child > :is(th, td),
.tatvic-content-table:not(:has(thead)) > tbody > tr:first-child > :is(th, td) {
  position: static;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff !important;
  background: var(--tatvic-table-purple, #7500ff) !important;
  padding: 18px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  vertical-align: middle;
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table thead th :is(h1, h2, h3, h4, h5, h6, p, a),
.tatvic-content-table thead th :is(h1, h2, h3, h4, h5, h6, p, a),
:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table:not(:has(thead)) > tbody > tr:first-child > :is(th, td) :is(h1, h2, h3, h4, h5, h6, p, a),
.tatvic-content-table:not(:has(thead)) > tbody > tr:first-child > :is(th, td) :is(h1, h2, h3, h4, h5, h6, p, a) {
  color: #ffffff !important;
  font-size: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  background: transparent !important;
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table thead th :is(h1, h2, h3, h4, h5, h6)::after,
.tatvic-content-table thead th :is(h1, h2, h3, h4, h5, h6)::after,
:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table:not(:has(thead)) > tbody > tr:first-child :is(h1, h2, h3, h4, h5, h6)::after,
.tatvic-content-table:not(:has(thead)) > tbody > tr:first-child :is(h1, h2, h3, h4, h5, h6)::after {
  display: none !important;
  content: none !important;
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table thead th:first-child,
.tatvic-content-table thead th:first-child,
:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table:not(:has(thead)) > tbody > tr:first-child > :is(th, td):first-child,
.tatvic-content-table:not(:has(thead)) > tbody > tr:first-child > :is(th, td):first-child {
  background: var(--tatvic-table-black, #000000) !important;
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table thead th:last-child,
.tatvic-content-table thead th:last-child,
:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table:not(:has(thead)) > tbody > tr:first-child > :is(th, td):last-child,
.tatvic-content-table:not(:has(thead)) > tbody > tr:first-child > :is(th, td):last-child {
  border-right: none;
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table td,
.tatvic-content-table td {
  font-size: 16px;
  line-height: 1.55;
  color: var(--tatvic-table-black, #000000);
  font-weight: 400;
  padding: 18px 24px;
  vertical-align: top;
  border-top: 1px solid var(--tatvic-table-line, #e2ddeb);
  border-right: 1px solid var(--tatvic-table-line, #e2ddeb);
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table td:last-child,
.tatvic-content-table td:last-child {
  border-right: none;
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table td:first-child,
.tatvic-content-table td:first-child {
  color: var(--tatvic-table-muted, #5a5566);
  border-right: 2px solid var(--tatvic-table-black, #000000);
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table tbody tr:nth-child(even),
.tatvic-content-table tbody tr:nth-child(even) {
  background: var(--tatvic-table-stripe, #faf8fd);
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table tbody tr:nth-child(odd),
.tatvic-content-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table tbody tr:hover,
.tatvic-content-table tbody tr:hover {
  background: var(--tatvic-table-hover, #f3ebff);
}

:is(
  .blog-post-content,
  .entry-content,
  .content,
  .cs-details__body,
  .wp-block-table,
  .press-release-content,
  .webinar-section,
  .editor-styles-wrapper,
  .mce-content-body
) table tbody tr:last-child td,
.tatvic-content-table tbody tr:last-child td {
  border-bottom: 1px solid var(--tatvic-table-black, #000000);
}

figure.flat-header table th,
figure.flat-header .tatvic-content-table th {
  background: var(--tatvic-table-black, #000000);
}

.blog-post-content table strong,
.blog-post-content table b,
.entry-content table strong,
.entry-content table b,
.editor-styles-wrapper table strong,
.editor-styles-wrapper table b,
.mce-content-body table strong,
.mce-content-body table b,
.wp-block-table strong,
.wp-block-table b,
.tatvic-content-table strong,
.tatvic-content-table b {
  font-weight: 700 !important;
}

@media (max-width: 680px) {
  :is(
    .blog-post-content,
    .entry-content,
    .content,
    .cs-details__body,
    .wp-block-table,
    .press-release-content,
    .webinar-section
  ) table,
  .tatvic-content-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
