/* Simple CARE's case page (packs/care/app/components/care/simple/page_component.rb; the module care_simple). Two columns: the work in the wide one (the header, the next step, the rest of the plan, the
   note row, the timeline) and the reference beside it (the usual steps and who has been reached, what is known of the student). The columns sit side by side from 56rem of the page's own width,
   measured on the page itself and not on the window, so the page reads the same on the case page and in its preview; below that the side column follows the main one, and the reading order is the
   file's at every width (placement is the grid's and never `order`). Each part draws its own look in its own rules below this one.

   Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb), 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, nothing sets a height, and everything that holds words may shrink and wrap, so a language 40% longer never widens the page (WCAG 1.4.10). */

.care-simple {
  container: care-simple / inline-size;
  min-inline-size: 0;
}

.care-simple__columns,
.care-simple__main,
.care-simple__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--density-block);
  align-content: start;
  min-inline-size: 0;
}

.care-simple__side:not(:has(*)) {
  display: none;
}

@container care-simple (min-width: 56rem) {
  .care-simple__columns {
    grid-template-columns: minmax(0, 1fr) clamp(18rem, 32cqi, 26rem);
    align-items: start;
  }
}

/* ── About ───────────────────────────────────────────────────────────── */

/* The two ways to reach the student sit at the top of the card, each a button that names who it reaches. */
.care-simple-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  min-inline-size: 0;
}

.care-simple-about__sent,
.care-simple-about__none {
  margin-block: 0;
  overflow-wrap: anywhere;
}

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