/* Directory tables: /companies/, /investors/, /people/.
   The compact table from the event pages (functions/lib/events-people-table.js),
   as a shared sheet. Colours and fonts are theme tokens only. */

.dt-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .9rem; }
.dt-tabs button { font: 600 .82rem var(--font-sans); color: var(--text-light); background: none; border: 0; border-radius: 999px; padding: .38rem .8rem; cursor: pointer; }
.dt-tabs button span { color: var(--text-lighter); font-weight: 500; margin-left: .15rem; }
.dt-tabs button:hover { color: var(--white); }
.dt-tabs button.is-on { background: var(--border-light); color: var(--white); }

/* The filter selects belong to the full list only. */
.dir-toolbar-right[hidden] { display: none; }

.dt-wrap { background: var(--surface-card); border: 1px solid var(--border-light); border-radius: 14px; padding: .15rem .9rem .3rem; }
.dt-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.dt-table th { text-align: left; font-weight: 500; font-size: .74rem; color: var(--text-lighter); padding: .65rem .5rem; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
.dt-table th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.dt-table th button:hover { color: var(--white); }
.dt-table th i::after { content: ""; margin-left: .25rem; font-style: normal; }
.dt-table th.is-asc i::after { content: "▴"; }
.dt-table th.is-desc i::after { content: "▾"; }
.dt-table td { padding: .5rem .5rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; color: var(--text-light); }
.dt-table tbody tr:last-child td { border-bottom: 0; }
.dt-table tbody tr[data-href] { cursor: pointer; }
.dt-table tbody tr[data-href]:hover td { background: var(--surface-tray); }
.dt-table tr[hidden] { display: none; }
.dt-table a { color: inherit; text-decoration: none; }
.dt-table a:hover { color: var(--blue); }

.dt-main { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.dt-logo { width: 28px; height: 28px; flex: none; border-radius: 7px; overflow: hidden; display: grid; place-items: center; background: var(--logo-tile-bg); border: 1px solid var(--logo-tile-border); font: 700 .66rem var(--font-display); color: var(--text-light); }
.dt-logo img { width: 100%; height: 100%; object-fit: contain; }
.dt-logo.is-round { border-radius: 50%; }
.dt-logo.is-round img { object-fit: cover; }
.dt-who { display: grid; min-width: 0; }
.dt-name { font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-sub { font-size: .76rem; color: var(--text-lighter); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-m { display: none; }

.dt-rank { width: 3.4rem; white-space: nowrap; font: 600 .78rem var(--font-mono); color: var(--text-lighter); }
.dt-table td.dt-num, .dt-table th.dt-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dt-table td.dt-num { color: var(--white); }
.dt-nowrap { white-space: nowrap; }
.dt-none { color: var(--text-faint); }

.dt-sig { width: 8.5rem; white-space: nowrap; }
.dt-table td.dt-sig b { font: 600 .8rem var(--font-mono); color: var(--white); }
.dt-bar { display: inline-block; width: 52px; height: 5px; border-radius: 3px; background: var(--border-light); margin-right: .45rem; vertical-align: middle; overflow: hidden; }
.dt-bar i { display: block; height: 100%; background: var(--blue); }

.dt-group td { padding: 1.1rem .5rem .45rem; font-weight: 600; color: var(--white); border-bottom: 1px solid var(--border-mid); }
.dt-group td span { font-weight: 400; color: var(--text-lighter); margin-left: .5rem; }
.dt-empty { margin: .9rem .5rem; font-size: .82rem; color: var(--text-lighter); }

@media (max-width: 760px) {
    .dt-wrap { padding: 0 .55rem; }
    .dt-table .dt-hide-m { display: none; }
    .dt-m { display: inline; }
    .dt-bar { display: none; }
    .dt-sig { width: auto; }
    .dt-main { max-width: 58vw; }
}
