/* Dataset coverage: shared by the server-rendered tables and the island. */
.cor-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 1.5rem; }
.cor-heading .display { font-size: clamp(2rem, 4vw, 3.4rem); margin-block: .4rem; }
.cor-heading .lede { margin: 0; }
.cor-updated { flex-shrink: 0; text-align: right; }
.cor-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; padding: 1.2rem; background: var(--paper-alt, #f2f1ee); border: 1px solid var(--line, #d8d5cf); }
.cor-filters label { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; font-weight: 600; min-width: 0; }
.cor-filters input, .cor-filters select { width: 100%; min-width: 0; height: 2.65rem; padding: .45rem .6rem; font: inherit; background: var(--paper, #fff); color: var(--ink, #231f20); border: 1px solid #b7b2aa; border-radius: 0; }
.cor-profile-filter, .cor-scope-filter { grid-column: span 2; }
.cor-filter-actions { display: flex; align-items: end; gap: .8rem; }
.cor-filter-actions button { min-height: 2.65rem; padding: .5rem .9rem; background: var(--ink, #231f20); color: white; border: 1px solid var(--ink, #231f20); cursor: pointer; font: inherit; white-space: nowrap; }
.cor-filter-actions a { padding-block: .65rem; font-size: .85rem; }
.cor-scope { margin-block: .6rem 1.5rem; }
.cor-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line, #d8d5cf); }
.cor-stats > div { padding: 1.2rem 1rem; border-right: 1px solid var(--line, #d8d5cf); }
.cor-stats > div:first-child { padding-left: 0; }
.cor-stats > div:last-child { border: 0; }
.cor-stats dt { font-size: .85rem; }
.cor-stats dd { margin: .35rem 0 0; font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cor-stats small { display: block; margin-top: .5rem; font-size: .75rem; font-weight: 400; line-height: 1.5; }
.cor-definition { max-width: 95ch; margin-block: .8rem 1.75rem; }
.cor-views { display: flex; gap: .25rem; border-bottom: 1px solid var(--line, #d8d5cf); overflow-x: auto; }
.cor-views button, .cor-views a { display: block; border: 0; border-bottom: 3px solid transparent; padding: .8rem 1.1rem; color: var(--ink, #231f20); font: inherit; white-space: nowrap; background: transparent; text-decoration: none; cursor: pointer; }
.cor-views .is-active { border-bottom-color: var(--ink, #231f20); font-weight: 600; }
.cor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-block: 1rem; }
.cor-toolbar p { margin: 0; }
.cor-search { min-height: 2.5rem; padding: .5rem .7rem; border: 1px solid #b7b2aa; font: inherit; max-width: 100%; }
.cor-table { width: 100%; }
.cor-table th, .cor-table td { padding: .85rem .75rem; }
.cor-table thead th { text-transform: none; letter-spacing: normal; font-family: var(--font-body); font-size: .8rem; }
.cor-table tbody th { min-width: 10rem; max-width: 26rem; overflow-wrap: anywhere; white-space: normal; font-weight: 500; text-transform: none; letter-spacing: normal; font-family: inherit; font-size: .9rem; }
.cor-table tbody th .cor-secondary { text-transform: none; letter-spacing: normal; }
.cor-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cor-table td { min-width: 6rem; }
.cor-secondary { display: block; font-size: .75rem; font-weight: 400; line-height: 1.6; margin-top: .15rem; color: var(--muted, #645f59); }
.cor-sort { border: 0; background: transparent; color: inherit; padding: 0; font: inherit; cursor: pointer; text-align: inherit; }
.cor-pagination { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-block: 1rem; }
.cor-pagination button { padding: .5rem .85rem; background: transparent; border: 1px solid #b7b2aa; font: inherit; cursor: pointer; }
.cor-pagination button:disabled { opacity: .4; cursor: default; }
.cor-details { border-top: 1px solid var(--line, #d8d5cf); padding-block: 1rem; margin-top: 1rem; }
.cor-details summary { cursor: pointer; font-size: .9rem; font-weight: 600; }
.cor-empty { padding: 2rem 1rem; text-align: center; }
.cor-empty strong { display: block; margin-bottom: .5rem; }
.cor-status { font-size: .8rem; }
.cor-page-note { color: var(--muted, #645f59); }
.corpus-page :is(button, a, input, select):focus-visible { outline: 2px solid var(--ink, #231f20); outline-offset: 3px; }
@media (max-width: 800px) {
  .cor-heading { align-items: start; flex-direction: column; gap: .7rem; }
  .cor-updated { text-align: left; margin: 0; }
  .cor-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .8rem; }
  .cor-profile-filter { grid-column: span 1; }
  .cor-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cor-stats > div { padding: 1rem .7rem; border-bottom: 1px solid var(--line, #d8d5cf); }
  .cor-stats > div:nth-child(odd) { padding-left: 0; }
  .cor-stats > div:nth-child(even) { border-right: 0; }
  .cor-stats > div:nth-child(3) { border-bottom: 0; }
  .cor-views button, .cor-views a { padding: .8rem; }
  .cor-table th, .cor-table td { padding: .7rem .5rem; }
  .cor-summary-table tr > :nth-child(2), .cor-summary-table tr > :nth-child(5) { display: none; }
  .cor-summary-table { table-layout: fixed; }
  .cor-summary-table tr > :first-child { width: 42%; }
  .cor-summary-table tbody th { min-width: 0; font-size: .8rem; }
  .cor-summary-table thead th { font-size: .7rem; }
  .cor-summary-table td { min-width: 0; font-size: .85rem; }
  .cor-summary-table .cor-secondary { font-size: .65rem; }
}
