:where(.table) {
  caption-side: bottom;
    font-size: var(--text-xs);
  inline-size: var(--size-full);

  caption {
    color: var(--color-text-subtle);
    margin-block-start: var(--size-4);
  }

  thead {
    color: var(--color-text);
  }

  tbody tr {
    border-block-start-width: var(--border);
  }

  tr:hover:not(.table-row--keep-color) {
    background-color: rgb(from var(--color-border-light) r g b / .5);
  }

  th {
  font-size: var(--text-xs);
    font-weight: var(--font-medium);
    line-height: 1.2;
    text-align: start;
  }

  th.text-right {
    text-align: end;
  }

  th.text-center {
    text-align: center;
  }

  th.text-left {
    text-align: start;
  }

  th, td {
    padding-block: var(--size-1);
    padding-inline: var(--size-2);
  }

  tfoot {
    background-color: rgb(from var(--color-border-light) r g b / .5);
    border-block-start-width: var(--border);
    font-weight: var(--font-medium);
  }
}

.table th > :is(a, span, div) {
  font-size: inherit;
  line-height: inherit;
}
