/* CaseloadComponent (app/components/caseload_component.rb; TAG build, K5). The offices to choose from are LinkCardsComponent's (CaseloadOfficesComponent). The caseload is one section of the page
   (PageSectionComponent, 42-page-section.css) holding entry cards (EntryListComponent, 43-entry-list.css), one per case, so what is here is only what those do not draw: the scope links at the end of the
   heading row (FilterBarComponent's chips, 37-table-and-empty-state.css), the heading of an owner's group under "By owner", and the words that say which review set the next review. Nothing is colored by a
   level or a priority: there is none here.

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

.caseload-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-block-size: var(--density-chip);
  color: inherit;
  text-decoration: none;
}

.caseload-back:hover {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (pointer: coarse) {
  .caseload-back {
    min-block-size: var(--target-min);
  }
}

[data-native] .caseload-back {
  min-block-size: var(--target-min);
}

.caseload__scopes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-inline-size: 0;
}

.caseload__scopes-label {
  color: var(--fg2);
  font-size: var(--text-sm);
}

/* Under "By owner" each owner is a group: their name with how many cases they hold, quiet after it, over their cases. */
.caseload__group {
  display: grid;
  gap: var(--space-2);
  min-inline-size: 0;
}

.caseload__owner {
  margin: 0;
  overflow-wrap: anywhere;
}

.caseload__owner bdi {
  unicode-bidi: isolate;
}

.caseload__owner-count {
  color: var(--fg2);
  font-weight: 400;
}

/* Which review set the next review, said after its day, in the quiet color. */
.caseload__source {
  color: var(--fg2);
}

/* A case has up to six short facts. The entry's own grid gives each fact 9.5rem, which is one to a row on a phone and made a case seven rows tall; from 8rem two sit side by side at 375 CSS px
   and fall to one at 320, and on a wide screen the six share the row as before. */
.caseload .entry__facts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
}
