/* Group Home brand: deep clinical teal-blue (calm, dependable). Token overrides only.
   #0e6589 on white = 6.4:1 (AA); dark-mode brand #4fb3dc on #161b26 ≈ 7.6:1. */
:root {
  --brand: #0e6589; --brand-hover: #0b5170; --brand-text: #0b5170; --brand-soft: #edf6fa; --brand-soft-2: #cde6f1; --brand-line: #a9d3e5;
  --accent: #6941c6;
}
:root[data-theme="dark"] { --brand: #4fb3dc; --brand-hover: #84cbe8; --brand-text: #84cbe8; --brand-soft: #0d2a38; --brand-soft-2: #13405a; --brand-line: #1d5470; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --brand: #4fb3dc; --brand-hover: #84cbe8; --brand-text: #84cbe8; --brand-soft: #0d2a38; --brand-soft-2: #13405a; --brand-line: #1d5470; }
}

/* Release 1: timelines, wrapped manual signature links, public signing page. */
.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline li { padding: 6px 0; border-bottom: 1px solid var(--line-2, #e5e7eb); }
code.wrap { display: block; word-break: break-all; white-space: normal; margin-top: 6px; }
.sign-doc { width: 100%; max-height: 70vh; border: 1px solid var(--line-2, #e5e7eb); }
.sign-doc-img { max-width: 100%; height: auto; }

/* Release 2: mobile checklists and shift documentation (Req 32.8). One column, every control full width, long
   words wrap, so a checklist can be opened, completed and submitted at 360 px without horizontal scrolling. */
.stack { display: flex; flex-direction: column; gap: 6px; }
.mobile-check { max-width: 100%; overflow-wrap: anywhere; }
.mobile-check fieldset { min-width: 0; max-width: 100%; }
.mobile-check input:not([type="radio"]):not([type="checkbox"]), .mobile-check select, .mobile-check textarea { width: 100%; max-width: 100%; }
.mobile-check .inline label { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.btn.full { width: 100%; }
.check-list { display: flex; flex-wrap: wrap; gap: 4px 16px; min-width: 0; }
@media (max-width: 480px) {
  .mobile-check, .mobile-check .card { padding: 14px 12px; }
  .mobile-check fieldset { padding: 10px; }
}
