/* ObligationHintsComponent (app/components/obligation_hints_component.rb). A panel (PanelComponent): a status line, then each open question as a
   block (its label small and quiet, the question, the sentence that raised it, the duty in a native disclosure and the answer behind another), then
   the answered questions behind one more disclosure, and the caveat in the panel's foot. The check form is one small button that the page's
   script presses for a person and hides; without the script, the person presses it.

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

/* THE FRAME TAKES NO ROOM UNTIL IT HAS SOMETHING. The panel's place is an empty Turbo Frame that loads after the page, and it stays empty when the check is not on for the office or this reader may not
   ask. A page that lays its panels out in a grid or a column with gaps gives an empty child its row and its gap, so an empty frame left a blank strip between two panels; with nothing in it the
   frame is not drawn. */
.obligation-hints-frame {
  display: block;
  min-inline-size: 0;
}

.obligation-hints-frame:not(:has(*)) {
  display: none;
}

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

.obligation-hints-check {
  margin-block-end: var(--density-gap);
}

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

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

.obligation-hint:first-child {
  padding-block-start: 0;
  border-block-start: 0;
}

.obligation-hint p {
  margin-block: 0;
  overflow-wrap: anywhere;
}

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

.obligation-hint-question,
.obligation-hint-referred {
  font-weight: 600;
}

.obligation-hint-why,
.obligation-hint-answered,
.obligation-hint-covered,
.obligation-hints-covered-link,
.obligation-hint-guidance p {
  color: var(--fg2);
  font-size: var(--text-sm);
}

/* Where the question is acted on (ref2 N3): "Refer Alder to CARE", one link a person, wrapping at 320px. */
.obligation-hint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.obligation-hint-guidance summary,
.obligation-hints-covered summary,
.obligation-hints-answered summary {
  min-block-size: 24px;
  cursor: pointer;
  font-size: var(--text-sm);
}

.obligation-hints-covered,
.obligation-hints-answered {
  margin-block-start: var(--density-gap);
}

.obligation-hints-covered .obligation-hints-list,
.obligation-hints-answered .obligation-hints-list {
  margin-block-start: var(--density-gap);
}

/* 22 Oct 2026: a question the record's incident already has in hand is folded, with how it stands there; the way to the incident ends the list. */
.obligation-hints-covered-link {
  margin-block: var(--density-gap) 0;
}

.obligation-hints-caveat {
  margin-block: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
