/* CaseStagesComponent and CaseAnswersComponent (K2, the TAG build): a case's stages as an ordered list, the current one marked by a word (a badge) and a heavier
   border on its start edge, never by a color alone; and the forms answered on a case, each its own block, the older answers behind a disclosure. They sit in the
   case page's hairline panels (68-case-page-layout.css) and use the case work's list and line classes (62-case-work.css).

   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-stages__list {
  display: grid;
  gap: var(--density-gap);
  margin: 0;
  padding-inline-start: var(--density-block);
  min-inline-size: 0;
}

.case-stages__stage {
  display: grid;
  gap: calc(var(--density-gap) / 2);
  padding-block: var(--density-gap);
  padding-inline-start: var(--density-row);
  border-inline-start: 2px solid var(--rule);
  min-inline-size: 0;
}

.case-stages__stage--current {
  border-inline-start: 4px solid var(--rule-strong);
}

.case-stages__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--density-gap);
  margin-block: 0;
  min-inline-size: 0;
}

.case-stages__name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.case-stages__form {
  overflow-wrap: anywhere;
}

.case-answers__form {
  display: grid;
  gap: var(--density-gap);
  padding-block-end: var(--density-row);
  border-block-end: 1px solid var(--rule);
  min-inline-size: 0;
}

.case-answers__form:last-of-type {
  border-block-end: 0;
}

.case-answers__older > summary {
  cursor: pointer;
  min-block-size: 24px;
  overflow-wrap: anywhere;
}
