/* The head of simple CARE's case page and the sheet that sets its level of care (Care::Simple::HeaderComponent, Care::Simple::LevelSheetComponent; the module care_simple): the student's name, their class,
   who has the case, and the level as a chip with its button; and, on the sheet, the level now, the earlier levels and the line of why. Numbered 64b to follow 64a (the page) and come before 64c in the link order.

   Every level looks the same: the chip is a word in one tone and no rule here names a level, so nothing can rank, color or sort by one (CaseAssessmentsComponent says why). Tokens only and logical properties only,
   so it reads on the console in light and in dark and mirrors in a right-to-left language. Nothing is pinned to an edge and nothing sets a height. Everything that holds words may shrink and breaks a long word,
   so a language 40% longer never widens the page (WCAG 1.4.10), and the chip and its button wrap onto the next line on a phone. */

.care-simple-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  min-inline-size: 0;
}

/* A name or a class line takes the row; who has the case and its level share the next one, and wrap on a phone. */
.care-simple-header__name,
.care-simple-header__class {
  flex-basis: 100%;
}

.care-simple-header__name {
  margin-block: 0;
  font-size: var(--text-xl);
  overflow-wrap: anywhere;
}

.care-simple-header__class,
.care-simple-header__holder {
  margin-block: 0;
  color: var(--fg2);
  overflow-wrap: anywhere;
}

.care-simple-header__holder {
  color: var(--fg1);
  font-weight: 600;
}

.care-simple-header__level {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-block: 0;
  min-inline-size: 0;
}

.care-simple-level {
  display: grid;
  gap: var(--space-4);
  min-inline-size: 0;
}

.care-simple-level__now {
  margin-block: 0;
  color: var(--fg1);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.care-simple-level__past {
  display: grid;
  gap: var(--space-2);
  margin-block: 0;
  padding-inline-start: var(--space-5);
  color: var(--fg2);
  overflow-wrap: anywhere;
}

/* Why the student is here: the case's one line, with the way to read the referral beside it (below it on a narrow column). */
.care-simple-why {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  min-inline-size: 0;
}

.care-simple-why__words {
  flex: 1 1 20rem;
  margin-block: 0;
  min-inline-size: 0;
  color: var(--fg1);
  overflow-wrap: anywhere;
}

.care-simple-why__label {
  color: var(--fg2);
  font-weight: 600;
}
