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

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

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

  tbody tr:first-child {
    border-block-start-width: 0;
  }
  thead tr th, thead tr td {
    background-color: var(--color-border-light);
  }
  thead tr th:first-child, thead tr td:first-child {
    border-radius: var(--rounded-lg) 0 0 var(--rounded-lg);
  }
  thead tr th:last-child, thead tr td:last-child {
    border-radius: 0 var(--rounded-lg) var(--rounded-lg) 0;
  }

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

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

  th {
    font-weight: var(--font-medium);
    text-align: start;
  }

  th, td {
    padding: 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);
  }
}
