/* IncidentSheetPeopleComponent (app/components/incident_sheet_people_component.rb): the people on a new incident, inside the sheet's "Who was there". The list comes first, a row a
   person (the name, then how they were involved and Remove, wrapping under it on a phone); the tools under it are the "add me" buttons, the Directory search with its results, and the
   description of someone nobody identified, each field and its button on one line that wraps.

   Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb), so it reads on the light shell
   and the console, in light and in dark, and mirrors in a right-to-left language. Nothing pinned to an edge, no height in vh, and everything that holds
   words may shrink and wrap, so a language 40% longer never widens the page (WCAG 1.4.10). */

.incident-sheet-people,
.incident-sheet-people__tools {
  display: grid;
  gap: var(--density-gap);
  min-inline-size: 0;
}

.incident-sheet-people__list,
.incident-sheet-people__results {
  display: grid;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.incident-sheet-people__list:empty,
.incident-sheet-people__results:empty {
  display: none;
}

.incident-sheet-people__row,
.incident-sheet-people__result {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2) var(--space-4);
  min-inline-size: 0;
  padding-block: var(--space-3);
  border-block-end: 1px solid var(--rule);
}

.incident-sheet-people__row .field {
  flex: 1 1 12rem;
  min-inline-size: 0;
}

.incident-sheet-people__name,
.incident-sheet-people__result-name {
  flex: 1 1 100%;
  min-inline-size: 0;
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.incident-sheet-people__result-name {
  flex-basis: 12rem;
  align-self: center;
}

.incident-sheet-people__result-kind {
  color: var(--fg2);
  font-size: var(--text-sm);
  font-weight: 400;
}

.incident-sheet-people__empty,
.incident-sheet-people__later {
  margin: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
}

.incident-sheet-people__me,
.incident-sheet-people__search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2) var(--space-4);
  min-inline-size: 0;
}

.incident-sheet-people__search,
.incident-sheet-people__describe {
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
}

.incident-sheet-people__search-row .field {
  flex: 1 1 14rem;
  min-inline-size: 0;
}
