/* CaseOpenItemsComponent (app/components/case_open_items_component.rb): a warning set apart above a sheet's form, TAG next steps track T4. A frame in the warn tone pair (the same pair a callout
   and a badge use, checked in both modes), its heading and sentence, then the open items as a list with a badge in front of each (the word "Still open", so a tone is never the only signal),
   then the sentence that says the person may go on. It sits in the flow of the sheet, never over it.

   Numbered 11 (the track's number; 10 is the globals and 20 the utilities). Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb), so
   it reads on the light shell and the console, in light and in dark, and mirrors in a right-to-left language. Nothing pinned to an edge, no height in vh, and everything that holds words may shrink
   and wrap, so a language 40% longer never widens the page (WCAG 1.4.10). */

.case-open-items {
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
  max-inline-size: 66ch;
  padding: 0.7rem 1rem;
  border: 1px solid var(--tone-warn-line);
  border-inline-start-width: 4px;
  border-radius: var(--radius-md);
  background: var(--tone-warn-bg);
  color: var(--tone-warn-fg);
}

.case-open-items__title {
  margin-block: 0;
  font-size: var(--text-base);
  overflow-wrap: anywhere;
}

.case-open-items__lede,
.case-open-items__note {
  margin-block: 0;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.case-open-items__list {
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-open-items__item {
  display: grid;
  gap: 0.125rem;
  min-inline-size: 0;
}

.case-open-items__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-2);
  min-inline-size: 0;
}

.case-open-items__name {
  flex: 1 1 12rem;
  min-inline-size: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.case-open-items__name bdi {
  unicode-bidi: isolate;
}

.case-open-items__meta {
  min-inline-size: 0;
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
