/* Driver statements (0479-0482).
 *
 * Two class names, both new, both checked against every stylesheet and every module in this app
 * and the portal before being used. Everything else on these screens is the driver app's own
 * vocabulary -- .panel, .money-card, .rows, .row, .row-body, .meta-chip, .check-row, .button-ghost
 * -- so the compact burgundy design dresses them along with the rest and there is no second design
 * to keep in step.
 *
 * What is left is the two things a statement has that nothing else in this app has: a man's own
 * account of what happened, and the sentence he is putting his name under.
 *
 * Every colour is one of this app's own tokens, so both themes resolve as a set. The first draft
 * reached for var(--surface-2, var(--card-2)) and var(--muted-text, var(--muted)): four names, none
 * of which this app defines, which would have silently taken the fallback of a fallback and painted
 * a quoted paragraph on no background at all. The tokens are --bg-sunken, --text-muted, --accent
 * and --line. */

/* HIS OWN WORDS, OR THE OFFICE'S FINDINGS, SET APART FROM OUR DESCRIPTION OF THEM. These are the
   paragraphs an examiner reads closely, and a paragraph that looks like the rest of the page gets
   skimmed instead. */
.said {
  margin: 8px 0 4px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--bg-sunken);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;    /* he typed his own paragraphs; they are kept as he typed them */
  overflow-wrap: anywhere;  /* a registration with no spaces in it must not widen the phone */
}

/* The sentence he signs. Quieter than his own words, because it is the form's language and not
   his, but never small print: he is agreeing to it. 15px is the body size in this app, and the
   only differences from body text are the rule down the side and the italic. */
.declaration {
  margin: 10px 0;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
}

/* The case stage is independent of the signed statement's acknowledgement. */
.driver-case-state { margin: 10px 0 4px; }
.driver-case-section-head,
.driver-case-action-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.driver-case-section-head h2 { margin: 0; }
.driver-case-action-list { display: grid; gap: 12px; margin-top: 14px; }
.driver-case-action {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-sunken);
  overflow-wrap: anywhere;
}
.driver-case-action h3 { font-size: 17px; line-height: 1.4; margin: 12px 0 8px; }
.driver-case-action .eyebrow { margin: 0; }
.driver-case-action .button { margin-top: 12px; min-height: 44px; white-space: normal; }
.driver-case-action-meta { display: grid; gap: 5px; color: var(--text-muted); font-size: 14px; line-height: 1.45; }
.driver-case-training-status { margin: 12px 0 4px; line-height: 1.5; }
.driver-case-action-note,
.driver-case-event-description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.driver-case-event-description { display: block; margin-top: 8px; }
.driver-case-linked-training .rows { margin: 14px 0; }
.driver-case-linked-training .row { min-width: 0; flex-wrap: wrap; gap: 10px; }
.driver-case-linked-training .row-body { min-width: 0; overflow-wrap: anywhere; }
.driver-case-linked-training .button { white-space: normal; min-height: 44px; }
.driver-case-training-source { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; color: var(--accent); font-weight: 600; }
.driver-case-decision { padding: 10px 12px; border-radius: 10px; background: var(--bg-sunken); line-height: 1.5; }
@media (max-width: 420px) {
  .driver-case-action { padding: 13px; }
  .driver-case-action-top .meta-chip { max-width: 100%; white-space: normal; }
  .driver-case-linked-training [data-start-training],
  .driver-case-linked-training [data-read-training] { width: 100%; }
}
