/* workpeople.js: the Work page's People section — the people grid (a card
 * per person: face, name, role line, counts; grouped by workstream when the
 * venture names more than six) and the link to Who owns what; a card opens
 * the person's plate in the Work Graph. Tokens only. */

.work-people { display: grid; gap: var(--sv-space-2); margin-top: var(--sv-space-4); }
.work-people[hidden] { display: none; }
.work-people .board-head { margin: 0 0 var(--sv-space-2); }
.work-people-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sv-space-2); }
.work-owners-link { min-height: 44px; display: inline-flex; align-items: center; }

/* ---- the grid and its cards ---- */
.work-people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: var(--sv-space-2); }
.work-people-groups { display: grid; gap: var(--sv-space-3); }
.work-people-groups .board-head { margin: 0; }
.work-pcard { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 44px; padding: var(--sv-space-3); border: var(--sv-hairline-w) solid var(--sv-hairline); border-radius: var(--sv-radius); background: var(--sv-surface-raised); color: inherit; font: inherit; text-align: left; }
.work-pcard:hover { border-color: var(--sv-hairline-strong); background: var(--ws-hover); }
.work-pcard-name { font-size: var(--ui-text); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.work-pcard-role { color: var(--sv-ink-tertiary); font-size: var(--ui-meta); line-height: 1.35; overflow-wrap: anywhere; }
.work-pcard-counts { display: flex; flex-wrap: wrap; gap: 2px var(--sv-space-2); color: var(--sv-ink-tertiary); font-size: var(--ui-meta); font-variant-numeric: tabular-nums; }
.work-pcard-count b { color: var(--sv-ink); font-weight: 600; }
.work-pcard-count-sep { flex: none; color: var(--sv-hairline-strong); }

/* ---- the face: a photo when Core has the address, else tinted initials ---- */
.work-face { position: relative; display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: color-mix(in srgb, hsl(var(--hue, 210) 55% 45%) 22%, var(--sv-surface-raised)); color: var(--sv-ink); font-size: 0.875rem; font-weight: 600; line-height: 1; }
.work-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }



/* ---- phone: the grid is one column, the cards stack their words ---- */
@media (max-width: 640px) {
  .work-people-grid { grid-template-columns: minmax(0, 1fr); }
  .work-pcard { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px var(--sv-space-3); }
  .work-pcard .work-face { width: 40px; height: 40px; }
  .work-pcard-name { flex: 1 1 calc(100% - 56px); }
  .work-pcard-role { flex-basis: 100%; }
  .work-pcard-counts { flex-basis: 100%; }
}
