/* The work helper (WorkHelperComponent, WorkHelperResultComponent; UF). A panel (PanelComponent's look) with a pill in its head, a sentence on what the helper does, its one button, and the
   region its answer fills: a status line, the proposals as a plain list (a label, a line of when, the helper's sentence, and the link that acts), and the sentence that they are suggestions.

   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). */

.work-helper {
  min-inline-size: 0;
}

.work-helper__lede {
  margin-block: 0 var(--density-gap);
  color: var(--fg2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.work-helper__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--density-gap);
}

.work-helper__result:empty {
  display: none;
}

.work-helper-result {
  display: grid;
  gap: var(--density-gap);
  margin-block-start: var(--density-gap);
  min-inline-size: 0;
}

.work-helper-result__status {
  margin-block: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.work-helper-result__heading {
  margin-block: 0;
  font-size: var(--text-sm);
}

.work-helper-result__list {
  display: grid;
  gap: var(--density-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-helper-result__item {
  display: grid;
  gap: calc(var(--density-gap) / 2);
  padding-block-end: var(--density-gap);
  border-block-end: 1px solid var(--rule);
  min-inline-size: 0;
}

.work-helper-result__item:last-child {
  border-block-end: 0;
  padding-block-end: 0;
}

.work-helper-result__label,
.work-helper-result__meta,
.work-helper-result__why,
.work-helper-result__caveat {
  margin-block: 0;
  overflow-wrap: anywhere;
}

.work-helper-result__label {
  font-weight: 600;
}

.work-helper-result__meta,
.work-helper-result__part,
.work-helper-result__caveat {
  color: var(--fg2);
  font-size: var(--text-sm);
}

.work-helper-result__item .btn {
  justify-self: start;
}
