/* Flow Analysis guide figures (CT-M1 U1). Loaded by documentation/page.html after documentation.css.
 *
 * The markup comes from services/flow_analysis_figures.py (trusted Python, fixed allow-list of keys). Tokens
 * only: semantic --pw-* aliases, so the dark theme follows automatically; no literal colour values. Meaning is
 * never carried by colour alone: gateways carry an X, + or O mark, the unsupported panel is dashed and
 * labelled, the read-only field is dashed, and every figure has a visible caption as its text alternative.
 * Sizes inside the SVG are in viewBox units, which scale with the figure.
 */
.doc-figure { margin: 0 0 var(--pw-space-6); padding: var(--pw-space-4); background: var(--pw-color-surface); border: 1px solid var(--pw-color-border); border-radius: var(--pw-radius-lg); }
.doc-figure-svg { display: block; width: 100%; height: auto; max-width: 100%; }
.doc-figure-caption { margin: var(--pw-space-3) 0 0; font-size: var(--pw-font-size-sm); line-height: var(--pw-line-height-normal); color: var(--pw-color-text-secondary); }

.doc-figure-svg .fa-fig-text { fill: var(--pw-color-text); font-family: inherit; font-size: 13px; }
.doc-figure-svg .fa-fig-small { font-size: 12px; fill: var(--pw-color-text-secondary); }
.doc-figure-svg .fa-fig-bold { font-weight: var(--pw-font-weight-semibold); fill: var(--pw-color-text); }
.doc-figure-svg .fa-fig-anchor-start { text-anchor: start; }
.doc-figure-svg .fa-fig-anchor-middle { text-anchor: middle; }
.doc-figure-svg .fa-fig-anchor-end { text-anchor: end; }
.doc-figure-svg .fa-fig-callout { fill: var(--pw-color-primary); }

.doc-figure-svg .fa-fig-node { fill: var(--pw-color-surface-subtle); stroke: var(--pw-color-border-strong); stroke-width: 1.5; }
.doc-figure-svg .fa-fig-event { fill: var(--pw-color-surface-subtle); stroke: var(--pw-color-border-strong); stroke-width: 1.5; }
.doc-figure-svg .fa-fig-end { fill: var(--pw-color-surface-subtle); stroke: var(--pw-color-text); stroke-width: 3.5; }
.doc-figure-svg .fa-fig-gateway { fill: var(--pw-color-surface-subtle); stroke: var(--pw-color-border-strong); stroke-width: 1.5; }
.doc-figure-svg .fa-fig-xmark { fill: none; stroke: var(--pw-color-text); stroke-width: 2.5; stroke-linecap: round; }
.doc-figure-svg .fa-fig-ormark { fill: none; stroke: var(--pw-color-text); stroke-width: 2; }
.doc-figure-svg .fa-fig-badge { fill: var(--pw-color-primary-subtle); stroke: var(--pw-color-primary-border); stroke-width: 1; }
.doc-figure-svg .fa-fig-prob { fill: var(--pw-color-info-subtle); stroke: var(--pw-color-info-border); }
.doc-figure-svg .fa-fig-seg { stroke: var(--pw-color-border-strong); stroke-width: 1; }
.doc-figure-svg .fa-fig-seg-pt { fill: var(--pw-color-primary-subtle); }
.doc-figure-svg .fa-fig-seg-wait { fill: var(--pw-color-warning-subtle); stroke-dasharray: 5 3; }
.doc-figure-svg .fa-fig-field { fill: var(--pw-color-surface); stroke: var(--pw-color-border-strong); stroke-width: 1.5; }
.doc-figure-svg .fa-fig-readonly { fill: var(--pw-color-surface-sunken); stroke-dasharray: 5 3; }
.doc-figure-svg .fa-fig-panel { fill: var(--pw-color-surface); stroke: var(--pw-color-border-strong); stroke-width: 1.5; }
.doc-figure-svg .fa-fig-panel-no { stroke: var(--pw-color-danger); stroke-dasharray: 7 4; }

.doc-figure-svg .fa-fig-flow { fill: none; stroke: var(--pw-color-text-muted); stroke-width: 1.75; stroke-linejoin: round; }
.doc-figure-svg .fa-fig-rework { stroke-dasharray: 6 4; }
.doc-figure-svg .fa-fig-head { fill: var(--pw-color-text-muted); }
.doc-figure-svg .fa-fig-callout-line { fill: none; stroke: var(--pw-color-primary); stroke-width: 1.5; }
.doc-figure-svg .fa-fig-head-callout { fill: var(--pw-color-primary); }
