/*
 * Tagging people with @ in a comment (shared/_mention_field, Mentioning): the box, the list that opens after @
 * and the badge each person becomes, in the box and in the text saved (users/_mention)
 */
lexxy-editor.mention-field .lexxy-editor__content {
  min-height: 4.5rem;
}

.mention {
  display: inline-block;
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--color-primary-subtle);
  color: var(--color-primary-text);
  font-weight: 600;
  white-space: nowrap;
}

/* The list after @: wider than Lexxy's 20ch, for a name and its role */
.mention-field .lexxy-prompt-menu {
  min-inline-size: min(18rem, 100%);
  max-inline-size: min(22rem, 100%);
  max-block-size: none;
}

.mention-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;

  > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
}

.mention-option__role {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

/* A comment saved with people tagged: the paragraphs Lexxy writes, as tight as a plain one */
.note-text .lexxy-content p {
  margin: 0;
}
