/*
 * WHO IS THIS PERSON. Three stacked bands — the header, the fact table, the one
 * door out — separated by hairlines the component renders as `Divider`s, so the
 * sheet owns only the rhythm between them.
 *
 * The identity column is the shrinking side: the avatar is a fixed rung and the
 * name is the thing that has to wrap, so `flex: 1; min-width: 0` sits there and
 * nowhere else.
 */
@layer theme, base, lotics, components, utilities;
@layer lotics.tokens, lotics.reset, lotics.components;

@layer lotics.components {
  .lotics-member-profile-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    /* A `View` never shrank, and this card is laid out inside a popover whose
       width it is given — it holds its size rather than squashing the name. */
    flex-shrink: 0;
    gap: var(--lotics-space-10);
  }

  /* Centred: a top-aligned two-line name beside a 72px circle reads as a caption
     that slipped. */
  .lotics-member-profile-card__header {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    gap: var(--lotics-space-12);
  }

  .lotics-member-profile-card__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    gap: var(--lotics-space-2);
  }

  /* The pill sits on its own line and needs a real gutter under the identity
     text, where the column's 1px rhythm would read as a collision. */
  .lotics-member-profile-card__status {
    margin-top: var(--lotics-space-4);
  }
}
