/* Simple CARE's note row, "Add a note" (packs/care/app/components/care/simple/composer_component.rb): the heading and the kinds of note as pills, each a link that opens the write-up sheet (64k) with
   that kind chosen. On a narrow column the pills wrap under the heading.

   Tokens only and logical properties only (test/styles/tokens_test.rb, test/styles/components_test.rb), in light and in dark, mirrored in a right-to-left language; nothing sets a width or a
   height, so the row reflows to 320 CSS px (WCAG 1.4.10). */

.panel.care-composer--folded {
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  align-items: stretch;
}

.care-composer--folded .person-panel-head {
  align-items: center;
  border-block-end: 0;
  border-inline-end: 1px solid var(--rule);
}

.care-composer--folded .person-panel-body {
  align-content: center;
}

@container care-simple (max-width: 36rem) {
  .panel.care-composer--folded {
    grid-template-columns: minmax(0, 1fr);
  }

  .care-composer--folded .person-panel-head {
    border-block-end: 1px solid var(--rule);
    border-inline-end: 0;
  }
}

.care-composer__kinds {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  min-inline-size: 0;
}

.care-composer__kind-link {
  border-radius: 999px;
}
