/* Flat diagrams built with Anatomy path helpers and Felt Matter typography. Shared plate and control styles live in /article.css. */
.candidate-figure { margin: 1.25rem 0 2.75rem; }
.diagram-svg { display: block; width: 100%; margin: .8rem 0; overflow: hidden; }
.node-box { fill: var(--paper); stroke: var(--muted); stroke-width: 1.25; }
.flow-node[data-active] .node-box { fill: var(--image-frame); stroke: var(--ink); }
.node-label { fill: var(--ink); font: 450 18px var(--text-font); text-anchor: middle; }
.node-value { fill: var(--muted); font: 17px var(--text-font); text-anchor: middle; font-variant-numeric: tabular-nums; }
.flow-note { fill: var(--muted); font: 16px var(--text-font); text-anchor: middle; }
.flow-node[data-muted] { opacity: .65; }
.flow-node[data-felt] .node-box { fill: rgb(255 0 0 / 14%); stroke: var(--felt); stroke-width: 2; }
.flow-node[data-felt] .node-label, .flow-node[data-felt] .node-value { fill: var(--felt); }
.flow-node[data-felt] .node-label { font-weight: 600; }
.felt-legend { display: flex; align-items: center; gap: .4rem; margin: -.2rem 0 .5rem; color: var(--muted); font-size: .55rem; line-height: 1.5; }
.felt-legend::before { content: ''; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--felt); }
.signal-track { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.signal-track[data-tone="mid"] { stroke: var(--muted); stroke-dasharray: 4 5; }
.signal-pulse { fill: var(--ink); stroke: none; }
[data-track-group][data-disabled] { display: none; }
[data-cut-link][data-disconnected] .signal-track { stroke: var(--muted); stroke-dasharray: 4 5; }
.partition-guide:not([data-active]) { display: none; }
.partition-guide > path { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 5; }
.partition-guide circle { fill: var(--paper); stroke: var(--muted); stroke-width: 1; }
.study-summary summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.candidate-figure .figure-state { margin: .65rem 0 0; font-size: .65rem; color: var(--muted); line-height: 1.6; font-variant-numeric: tabular-nums; }
.candidate-figure[data-candidate="predictive"] .figure-range { flex-basis: 100%; }
.study-summary { margin: 1.25rem 0 2rem; padding: .85rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); scroll-margin-top: 1.5rem; }
.study-summary summary { cursor: pointer; color: var(--ink); font-size: .8rem; }
.study-summary summary::marker { color: var(--muted); }
.study-summary[open] summary { margin-bottom: 1rem; }
.study-summary h3 { font-size: .75rem; line-height: 1.5; margin: 1.2rem 0 .4rem; font-weight: 500; }
.study-summary p { font-size: .75rem; margin: 0 0 .85rem; }
.study-summary .study-source { font-size: .65rem; color: var(--muted); margin-bottom: 0; }
.figure-credit { font-size: .6rem; color: var(--muted); }
@media (max-width: 560px) {
  .candidate-figure { margin-bottom: 2.25rem; }
  .node-label, .node-value { font-size: 23px; }
  .flow-note { font-size: 19px; }
  .candidate-figure .figure-state { font-size: .7rem; }
  .felt-legend { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .candidate-figure [data-demo] { display: none; } }
