/* Members and Discord roles: a table of people (or roles) by scope. On a narrow screen each
   row stacks into its own block and every cell names its column. */
.scope-wrap { overflow-x: auto; }
.scope-grid tbody th { color: var(--ink); font-size: inherit; }
.scope-grid .plain-list { list-style: none; margin: 0; padding: 0; }
.scope-grid details > summary { cursor: pointer; color: var(--accent-text); }
.scope-grid details > * + * { margin-top: 0.4rem; }

@media (max-width: 52rem) {
  /* Off screen instead of hidden, so screen readers still get the column names. */
  .scope-grid thead { position: absolute; left: -999rem; }
  .scope-grid, .scope-grid tbody, .scope-grid tr, .scope-grid th, .scope-grid td { display: block; }
  .scope-grid tr { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
  .scope-grid tr:last-child { border-bottom: 0; }
  .scope-grid th, .scope-grid td { border-bottom: 0; }
  .scope-grid td::before { content: attr(data-label); display: block; font-weight: 600; color: var(--muted); }
}
