/* Shared by published tables and the Markdown build; labels are in the HTML. */
.article .prose { container-type: inline-size; container-name: article-content; }
.prose .article-table {
  width: 100%;
  min-width: 0;
  margin: 1rem 0 1.7rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: var(--surface);
  font-size: .94rem;
  line-height: 1.55;
}
.prose .article-table th, .prose .article-table td {
  padding: .8rem .9rem;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}
.prose .article-table th:first-child, .prose .article-table td:first-child { width: 25%; }
.prose .article-table thead th { font-size: .84rem; }
.prose .article-table thead th:first-child { border-top-left-radius: .85rem; }
.prose .article-table thead th:last-child { border-top-right-radius: .85rem; }
.prose .article-table tbody th { background: transparent; color: var(--accent-deep); font-size: inherit; font-weight: 700; }
.prose .article-table tbody tr:last-child > * { border-bottom: 0; }
.article-table__label { display: none; }
.article-table-scroll:has(.article-table) { margin: 0; border: 0; border-radius: 0; background: transparent; }

@container article-content (max-width: 44rem) {
  .prose .article-table--responsive { display: block; border: 0; border-radius: 0; background: transparent; table-layout: auto; }
  .prose .article-table--responsive thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .prose .article-table--responsive tbody { display: block; }
  .prose .article-table--responsive tbody tr { display: block; margin-bottom: .9rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
  .prose .article-table--responsive tbody tr:last-child { margin-bottom: 0; }
  .prose .article-table--responsive tbody th,
  .prose .article-table--responsive tbody td { display: block; width: 100%; padding: .75rem 1rem; border: 0; border-bottom: 1px solid var(--line); }
  .prose .article-table--responsive tbody tr > :first-child { width: 100%; }
  .prose .article-table--responsive tbody th { border-radius: .85rem .85rem 0 0; background: var(--panel-soft); font-size: 1rem; }
  .prose .article-table--responsive tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
  .prose .article-table--responsive tbody tr > :last-child { border-bottom: 0; }
  .article-table--responsive .article-table__label { display: block; margin-bottom: .3rem; color: var(--muted); font-size: .78rem; font-weight: 600; line-height: 1.4; }
}

@media print {
  .prose .article-table--responsive { display: table; border: 1px solid var(--line); }
  .prose .article-table--responsive thead { position: static; display: table-header-group; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .prose .article-table--responsive tbody { display: table-row-group; }
  .prose .article-table--responsive tbody tr { display: table-row; }
  .prose .article-table--responsive tbody th, .prose .article-table--responsive tbody td { display: table-cell; width: auto; }
  .article-table--responsive .article-table__label { display: none; }
}
