@layer components {
  /* ─── Role matrix ───────────────────────── */

  /* What a firm's three roles may do, side by side. Wide on a phone, so it
     scrolls inside the card rather than the page. */
  .role-matrix__wrap {
    overflow-x: auto;
  }

  .role-matrix__table {
    border-collapse: collapse;
    font-size: 0.9375rem;
    inline-size: 100%;
    min-inline-size: 32rem;

    th,
    td {
      border-block-end: 1px solid var(--color-border-subtle);
      padding-block: 0.75rem;
      text-align: center;
    }

    tbody th {
      color: var(--color-ink-secondary);
      font-weight: 400;
      text-align: start;
    }

    tbody tr:last-child :is(th, td) {
      border-block-end: none;
    }
  }

  .role-matrix__role {
    font-weight: 400;
  }

  .role-matrix__name {
    color: var(--color-ink);
    display: block;
    font-weight: 700;
  }

  .role-matrix__nickname {
    color: var(--color-ink-muted);
    display: block;
    font-size: 0.8125rem;
  }

  .role-matrix__scope {
    color: var(--color-brand);
    font-weight: 600;
  }

  .role-matrix__yes {
    color: var(--color-brand);
  }

  .role-matrix__no {
    color: var(--color-ink-faint);
  }
}
