body:is(.wp-singular, .singular) .site-main .entry-content {
  --sbrd-et-edge: color-mix(in srgb, var(--border) 94%, var(--accent) 6%);
  --sbrd-et-grid: color-mix(in srgb, var(--border) 82%, transparent);
  --sbrd-et-head: color-mix(in srgb, var(--bg-card-h) 96%, var(--accent) 4%);
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(table, thead, tbody, tfoot, tr, th, td) {
  border: 0 none transparent;
  border-image: none;
  box-sizing: border-box;
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(table) {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  color: var(--text);
  font-size: clamp(0.88rem, 0.82rem + 0.12vw, 0.94rem);
  line-height: 1.52;
  font-variant-numeric: tabular-nums;
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(th, td) {
  border: 0;
  border-right: 1px solid var(--sbrd-et-grid);
  border-bottom: 1px solid var(--sbrd-et-grid);
  padding: 0.5rem 0.75rem;
  vertical-align: top;
  text-align: left;
  overflow-wrap: break-word;
  word-break: normal;
  background-clip: padding-box;
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(th:last-child, td:last-child) {
  border-right: 0;
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(tbody tr:last-child th, tbody tr:last-child td) {
  border-bottom: 0;
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(thead th) {
  background: var(--sbrd-et-head);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(table:not(:has(thead)) tbody tr:first-child td) {
  font-weight: 650;
  letter-spacing: 0.02em;
  background: var(--sbrd-et-head);
  color: var(--text);
  border-bottom: 1px solid var(--sbrd-et-edge);
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(tbody td) {
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(tbody th) {
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(tbody tr:nth-child(even) td),
body:is(.wp-singular, .singular) .site-main .entry-content :where(tbody tr:nth-child(even) th) {
  background: color-mix(in srgb, var(--bg-card-h) 72%, transparent);
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(.wp-block-table.is-style-stripes tbody tr:nth-child(odd) td),
body:is(.wp-singular, .singular) .site-main .entry-content :where(.wp-block-table.is-style-stripes tbody tr:nth-child(odd) th) {
  background: color-mix(in srgb, var(--bg-card-h) 65%, transparent);
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(.wp-block-table.is-style-stripes tbody tr:nth-child(even) td),
body:is(.wp-singular, .singular) .site-main .entry-content :where(.wp-block-table.is-style-stripes tbody tr:nth-child(even) th) {
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(td strong, th strong) {
  color: var(--text-heading, var(--text));
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(caption) {
  caption-side: top;
  padding: 0.5rem 0.65rem 0.35rem;
  color: var(--text-sec);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(.wp-block-table figcaption, figure:has(> table) > figcaption) {
  margin: 0;
  padding: 0.45rem 0.65rem 0.55rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-muted);
  border-top: 1px solid var(--sbrd-et-grid);
  background: color-mix(in srgb, var(--bg-surface) 60%, transparent);
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(:is(td, th) table) {
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0.35rem 0;
  font-size: 0.9em;
  line-height: 1.45;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  border-radius: 0;
  box-shadow: 0 0 0 1px var(--sbrd-et-grid);
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(:is(td, th) table :is(th, td)) {
  min-width: 2.25rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.92em;
}

body:is(.wp-singular, .singular) .site-main .entry-content :where(.wp-block-freeform :is(td, th) table) {
  min-width: 0;
  width: auto;
  max-width: 100%;
}

body:is(.wp-singular, .singular) .site-main .entry-content > table,
body:is(.wp-singular, .singular) .site-main .entry-content :is(
    .wp-block-table,
    figure.wp-block-table,
    figure:has(> table),
    .wp-block-html:has(> table),
    .wp-block-freeform:has(table),
    .wp-block-group:has(> table),
    .wp-block-group__inner-container:has(> table),
    .wp-block-column:has(> table)
  ) {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: clip;
  border-radius: 0;
  border: 1px solid var(--sbrd-et-edge);
  background: var(--bg-card);
  box-shadow: none;
  scrollbar-color: color-mix(in srgb, var(--accent) 35%, var(--border)) color-mix(in srgb, var(--bg-card) 90%, transparent);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

body:is(.wp-singular, .singular) .site-main .entry-content > table,
body:is(.wp-singular, .singular) .site-main .entry-content :is(.wp-block-table, figure.wp-block-table, figure:has(> table)) > table,
body:is(.wp-singular, .singular) .site-main .entry-content :is(.wp-block-html, .wp-block-group, .wp-block-group__inner-container, .wp-block-column) > table,
body:is(.wp-singular, .singular) .site-main .entry-content .wp-block-freeform table {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

@media (hover: hover) and (pointer: fine) {
  body:is(.wp-singular, .singular) .site-main .entry-content :where(tbody tr:hover td),
  body:is(.wp-singular, .singular) .site-main .entry-content :where(tbody tr:hover th) {
    background: color-mix(in srgb, var(--accent) 6%, var(--bg-card-h));
  }
}

@media (max-width: 767.98px) {
  body:is(.wp-singular, .singular) .site-main .entry-content > table,
  body:is(.wp-singular, .singular) .site-main .entry-content :is(
      .wp-block-table,
      figure.wp-block-table,
      figure:has(> table),
      .wp-block-html:has(> table),
      .wp-block-freeform:has(table),
      .wp-block-group:has(> table),
      .wp-block-group__inner-container:has(> table),
      .wp-block-column:has(> table)
    ) {
    margin-inline: 0;
    border-radius: 0;
  }

  body:is(.wp-singular, .singular) .site-main .entry-content :where(table) {
    font-size: 0.86rem;
  }

  body:is(.wp-singular, .singular) .site-main .entry-content :where(th, td) {
    padding: 0.42rem 0.55rem;
  }
}

body:is(.wp-singular, .singular) .site-main .entry-content > table::-webkit-scrollbar,
body:is(.wp-singular, .singular) .site-main .entry-content :is(
    .wp-block-table,
    figure.wp-block-table,
    figure:has(> table),
    .wp-block-html:has(> table),
    .wp-block-freeform:has(table),
    .wp-block-group:has(> table),
    .wp-block-group__inner-container:has(> table),
    .wp-block-column:has(> table)
  )::-webkit-scrollbar {
  height: 6px;
}

body:is(.wp-singular, .singular) .site-main .entry-content > table::-webkit-scrollbar-track,
body:is(.wp-singular, .singular) .site-main .entry-content :is(
    .wp-block-table,
    figure.wp-block-table,
    figure:has(> table),
    .wp-block-html:has(> table),
    .wp-block-freeform:has(table),
    .wp-block-group:has(> table),
    .wp-block-group__inner-container:has(> table),
    .wp-block-column:has(> table)
  )::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  border-radius: 0;
}

body:is(.wp-singular, .singular) .site-main .entry-content > table::-webkit-scrollbar-thumb,
body:is(.wp-singular, .singular) .site-main .entry-content :is(
    .wp-block-table,
    figure.wp-block-table,
    figure:has(> table),
    .wp-block-html:has(> table),
    .wp-block-freeform:has(table),
    .wp-block-group:has(> table),
    .wp-block-group__inner-container:has(> table),
    .wp-block-column:has(> table)
  )::-webkit-scrollbar-thumb {
  border-radius: 0;
  background: color-mix(in srgb, var(--accent) 40%, var(--border));
}
