/* Restrictions (K4, the TAG build): the case page's Restrictions panel (CaseRestrictionsComponent, which is otherwise a `case-work` section from 62-case-work.css) and the person page's notices
   (RestrictionNoticesComponent, a `person-panel`). The panel's entries keep the case-work list's rhythm and add a row for Read and Release, which wraps; a notice is a short stack of lines.

   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-restriction-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: var(--density-gap);
  min-inline-size: 0;
}

.case-restriction .case-work-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--density-gap);
}

.restriction-notices__list {
  display: grid;
  gap: var(--density-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  min-inline-size: 0;
}

.restriction-notice {
  display: grid;
  gap: calc(var(--density-gap) / 2);
  min-inline-size: 0;
}

.restriction-notice + .restriction-notice {
  padding-block-start: var(--density-gap);
  border-block-start: 1px solid var(--rule);
}

.restriction-notice__text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--density-gap);
  margin-block: 0;
  font-size: var(--person-data);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.restriction-notice__meta {
  margin-block: 0;
  color: var(--fg2);
  font-size: var(--person-meta);
  overflow-wrap: anywhere;
}

/* The heading keeps its word whole at 320 px: the Issue button wraps under it instead of breaking "Restrictions" in two. */
.case-restrictions .case-work-head > .person-page-heading {
  min-inline-size: min-content;
}
