/* E9 « Famille » (B_Famille): the header, white cards of people and the leave
   action. */
.family-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-wrap: anywhere;
}

.family-header__profile {
  display: flex;
  align-items: center;
  align-self: flex-end;
  min-height: var(--target-min);
  font-size: var(--text-md);
  font-weight: 500;
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-card);
}

.card h2 { padding-top: var(--space-sm); }

.card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-line);
}

.card__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  min-width: 0;
  overflow-wrap: anywhere;
}

.card__name { font-weight: 500; }

.card__detail {
  font-size: var(--text-md);
  line-height: 1.4;
  color: var(--color-muted);
}

.pill {
  flex: none;
  padding: 5px 10px;
  font-size: var(--text-sm);
  background: var(--color-ochre);
  border-radius: var(--radius-pill);
}

.leave {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.button-danger {
  width: 100%;
  min-height: 46px;
  font-size: var(--text-button);
  color: var(--color-danger);
  background: transparent;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.leave__note {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.card__side {
  flex: none;
  margin: 0;
}

.card__action {
  min-height: var(--target-min);
  padding: 0 var(--space-xs);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--color-blue);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.level-select {
  min-height: var(--target-min);
  padding: 0 var(--space-sm);
  font-size: var(--text-md);
  background: var(--color-yellow);
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-control);
}

/* The dashed button that unfolds the invitation form. */
.invite__summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: var(--space-sm);
  font-size: var(--text-button);
  color: var(--color-blue);
  list-style: none;
  border: 1px dashed var(--color-ink);
  border-radius: var(--radius-control);
  cursor: pointer;
}

.invite__summary::-webkit-details-marker { display: none; }

.invite__form { padding-top: var(--space-md); }

/* On a white card a field needs an edge to be seen. */
.field--framed { border: 1px solid var(--color-ink); }

.invite-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  overflow-wrap: anywhere;
}
