#path.exception-flow--ordered{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));align-items:start;gap:1rem;min-width:0}
#path.exception-flow--ordered .flow-node{width:auto;min-width:0;max-width:100%;overflow-wrap:anywhere;text-align:left}
.exception-flow-role{display:block;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#52616c;margin-bottom:.4rem}
.exception-flow-card p{margin:.6rem 0}.exception-flow-card details{font-size:.85rem}.exception-flow-card details ul{padding-left:1.2rem}
.exception-flow-next{color:#52616c}.exception-flow-sequence-note,.exception-flow-unavailable{grid-column:1/-1;max-width:100%;overflow-wrap:anywhere}
@media(max-width:480px){#path.exception-flow--ordered{grid-template-columns:minmax(0,1fr)}}

.exception-flow-alternatives{grid-column:1/-1;min-width:0;border:1px solid #c4d2dc;border-radius:.7rem;padding:1rem}.exception-flow-alternative-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}.exception-flow-conditions{padding-left:1.2rem;font-size:.9rem}

.exception-flow-entry{grid-column:1/-1;min-width:0;overflow-wrap:anywhere;border-left:3px solid #42718a;padding:.6rem 1rem;background:#f0f5f8}.exception-flow-entry ul{padding-left:1.2rem}

/* Linear segments own their tracks; full-span entry/fork siblings cannot reserve empty card columns. */
.exception-flow-linear-cards{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem;min-width:0}

/* R24 source-scope text wraps without clipping or hiding source conditions. */
#r24EntryScope,#r24EntryScope p,#r24EntryScope ul,#r24EntryScope ol,#r24EntryScope li{min-width:0;overflow-wrap:anywhere}

/* Source case-scope clauses remain visible and wrap at narrow viewports. */
#r25PolicyEntryScope,#r25PolicyEntryScope p,#r25PolicyEntryScope ul,#r25PolicyEntryScope li{min-width:0;overflow-wrap:anywhere}

/* The selected entry conditions stay readable without clipping at narrow widths. */
#r26EntryScope,#r26EntryScope p,#r26EntryScope ul,#r26EntryScope li{min-width:0;overflow-wrap:anywhere}

/* Selected source predicates and contextual research stay readable without clipping. */
#r27EntryScope,#r27EntryScope p,#r27EntryScope ul,#r27EntryScope li,.r27-source-context,.r27-source-context p,.r27-source-context li,.r27-context-limit{min-width:0;max-width:100%;overflow-wrap:anywhere}
.r27-source-context,.r27-context-limit{margin-top:.8rem;padding:.7rem;border-left:3px solid #718695;background:#f5f8fa}.r27-source-context ul{padding-left:1.1rem}.r27-source-context li+li{margin-top:.8rem}.r27-context-state{font-size:.9rem}

/* Long preserved branch review notes wrap without clipping or rewriting source text. */
.branch-card>p.muted{overflow-wrap:anywhere}
