/* The morning on simple CARE's "My students" page (Care::Simple::MorningHeaderComponent, Care::Simple::TodayComponent, Care::Simple::WaitingComponent, Care::Simple::StudentLineComponent, and the quiet
   line in Care::Simple::ListComponent; the module care_simple). The head says the day and how many are open on one line; Today and Waiting on the student are lists of rows, one for each student, each with
   the student and their level, the words, one grey line, and one button that sits at the end of the row and drops under the words when there is no room (a phone, a longer language). The rest of the
   students are one quiet line that opens a table.

   A row is separated by a hairline and not boxed, so a page of eight is calm; what is late is said in a badge with its words, never by color alone. Tokens only and logical properties only, so it reads 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). Numbered 64v to follow 64u in the link order. */

.care-simple-facts-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  min-inline-size: 0;
}

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

.care-simple-student__name {
  margin: 0;
  min-inline-size: 0;
  font-size: var(--text-md);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.care-simple-student__name a {
  color: var(--fg1);
  text-decoration: none;
}

.care-simple-student__name a:hover {
  text-decoration: underline;
}

.care-simple-student__no-level {
  color: var(--fg2);
  font-size: var(--text-sm);
}

.care-simple-morning__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  min-inline-size: 0;
}

.care-simple-morning__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-4);
  border-block-end: 1px solid var(--rule);
  min-inline-size: 0;
}

.care-simple-morning__row:last-child {
  border-block-end: 0;
}

.care-simple-morning__what {
  display: grid;
  flex: 1 1 20rem;
  gap: var(--space-1);
  min-inline-size: 0;
}

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

.care-simple-morning__words,
.care-simple-morning__context {
  margin-block: 0;
  overflow-wrap: anywhere;
  min-inline-size: 0;
}

.care-simple-morning__words {
  color: var(--fg1);
}

.care-simple-morning__words--none {
  color: var(--fg2);
}

.care-simple-morning__context {
  color: var(--fg2);
  font-size: var(--text-sm);
}

.care-simple-morning__act {
  display: flex;
  flex: none;
  min-inline-size: 0;
}

/* The rest of the students: one line that says how many, and "Show them" opens the table under it. The summary is the line, so the marker goes; while it is open the line says "Hide them". */
.care-simple-quiet {
  display: grid;
  gap: var(--space-3);
  padding-block-start: var(--space-3);
  border-block-start: 1px solid var(--rule);
  min-inline-size: 0;
}

.care-simple-quiet__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  min-block-size: var(--target-min);
  color: var(--fg2);
  cursor: pointer;
  list-style: none;
}

.care-simple-quiet__summary::-webkit-details-marker {
  display: none;
}

.care-simple-quiet__summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.care-simple-quiet__show,
.care-simple-quiet__hide {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
}

.care-simple-quiet__hide,
.care-simple-quiet[open] .care-simple-quiet__show {
  display: none;
}

.care-simple-quiet[open] .care-simple-quiet__hide {
  display: inline;
}
