/* Reboot Vitality: B2 batch 2 (conditions + audience) SITE ADDITIONS, loaded by the Condition, PTSD, Hub, Veterans and Assessment
   templates through pageCss (PORT-PLAN §0: never public/css/site.css, never an edit to a vendored board sheet). Each rule styles
   something the contract requires that the approved boards did not draw, or carries one approved rule to a page type whose board
   sheet lacks it; tokens only (tokens.css), no @keyframes, no motion. */

/* 1. The crisis line shell. VERBATIM from the approved ptsd-template/src/ptsd.css (lines 7-14 + its 390 rule): the condition
      board's sheet (condition.css) and the phase-hub sheet lack it, but contract §4 puts copy.ts crisisLine in the hero and beside
      the form on anxiety, depression and TBI (condition template), and formNotEmergency beside every condition form. */
[data-variant="I"] .rvp-crisis { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; max-width: 46ch; padding: 12px 16px 12px 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); font-size: 15px; line-height: 1.45; color: var(--fg); }
[data-variant="I"] .rvp-crisis a,
[data-variant="A"] .rvp-crisis a { font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
[data-variant="I"] .rvp-crisis-ic,
[data-variant="A"] .rvp-crisis-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); }
[data-variant="I"] .rvp-crisis-ic svg,
[data-variant="A"] .rvp-crisis-ic svg { width: 14px; }
[data-variant="A"] .rvp-crisis { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; max-width: 46ch; padding: 12px 16px 12px 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent); font-size: 15px; line-height: 1.45; color: var(--fg); }
@media (max-width: 767.98px) {
  [data-variant="I"] .rvp-crisis, [data-variant="A"] .rvp-crisis { margin-top: 16px; font-size: 14px; padding: 10px 12px 10px 10px; }
}

/* 2. The hero trust chips (contract hero.trust_chips[2-3], verified facts only): the approved booking-rail assurance chip
      (A.css .v1-assure li) at hero scale. */
[data-variant="I"] .rvc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
[data-variant="I"] .rvc-chips li { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 9%, transparent); }

/* 3. copy.ts formPrivacyNote under every booking host (contract §4, FACT-161). */
.rvc-form-note { margin: 14px 6px 0; font-size: 13px; line-height: 1.5; color: var(--fg-muted); }

/* 4. The condition orbit: a treatment of the page inside its phase panel (contract howWeTreat.treatments[]: H3 + body + the link
      UP), set under the phase line on the panel's own ink. */
.rvc-treat { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(237, 236, 236, .12); }
.rvc-treat-h { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.15; color: var(--fg-on-ink); }
.rvc-treat .v1b-phase-copy { margin-top: 8px; }
.rvc-treat .v1b-textlink { margin-top: 12px; }
.rvc-treat-auth { padding-top: 0; padding-bottom: 48px; }
.rvc-treat-auth .rv-authority { color: var(--fg-on-ink-muted); }
.rvc-treat-auth .rv-authority a { color: var(--fg-on-ink); }

/* 5. Slot-5 / evidence / table extras (contract keys the boards drew without): the mechanism sections, the folded (absorbed)
      block, each source's caveat, the table closer, the red-flag card's "today" lines, the physician band's section heads. */
[data-variant="I"] .rvc-mech { margin-top: 40px; }
.rvc-absorbed { margin-top: 64px; padding-top: 48px; border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.rvc-absorbed .rvi-prose { margin-top: 24px; }
[data-variant="I"] .rvc-ev-caveat { margin-top: 10px; font-size: 15px; font-style: italic; color: var(--fg-muted); }
[data-variant="I"] .rvc-closer { margin-top: 24px; }
/* GATE 2 FX: the foot lines sit on the ink flag card; var(--fg) rendered them 1:1 (invisible safety copy on all 10 condition pages). */
[data-variant="I"] .rvc-today { list-style: none; margin-top: 14px; display: grid; gap: 6px; font-size: 15px; color: var(--fg-on-ink-muted); }
.rvc-doc-h { margin-top: 22px; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; }

/* 6. The proof band with no bound review (contract §5 proofFallback): the link to every review, on ink. */
.rvc-proof-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; color: var(--fg-on-ink); font-weight: 600; }
.rvc-proof-all svg { width: 18px; }

/* 7. Hub rows: the child's note (contract hub children[].note: the stem-cell row's sister-company line), the folded block. */
[data-variant="I"] .rvh-row-note { display: block; margin-top: 10px; font-size: 14px; font-style: italic; color: var(--fg-muted); }

/* 8. The veterans review band's visually-hidden H2 (contract §3.21 row 7 proofHeading, hidden as approved): base.css
      .rv-visually-hidden carries margin -1px, which put the clipped 1px heading at x=15, inside the 16px gutter check 34 measures
      (scripts/check-section-width.mjs reads the band's first heading). Zero margin: still invisible, still read by screen readers. */
.rvv-proof .rv-visually-hidden { margin: 0; }

/* 9. The method orbit: a phase panel with none of the page's treatments links to the booking rail straight under its phase line
      (the home panel's link follows its services menu, whose margin the board relies on). */
.v1b-orbit-panel > .v1b-phase-copy + .v1b-textlink { margin-top: 18px; }
