/* ============================================================
   RAR PHYSIOLOGY · Dynamics · Page 1 — P-V loop engine styles.
   Interactive-specific only; shared atoms (.mov-btn/.mov-metrics/
   .mov-readout) live in mechanics.css. Segmented toggles are local.
   ============================================================ */

.rar-topic-content .dov-pv-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.rar-topic-content .dov-seg { display: inline-flex; border: 1px solid var(--line, rgba(15, 23, 42, 0.12)); border-radius: 999px; overflow: hidden; background: var(--surface-soft, rgba(255, 255, 255, 0.58)); }
.rar-topic-content .dov-seg-btn { appearance: none; border: 0; background: transparent; color: var(--muted-strong, #475467); font-size: 12.5px; font-weight: 700; padding: 7px 14px; cursor: pointer; transition: background 0.14s ease, color 0.14s ease; }
.rar-topic-content .dov-seg-btn.is-on { background: var(--accent, #0a84ff); color: #fff; }

.rar-topic-content .dov-pv-stage { border: 1px solid var(--line, rgba(15, 23, 42, 0.08)); border-radius: var(--radius-sm, 14px); background: #fff; padding: 8px; }
.rar-topic-content .dov-pv-svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; }

.rar-topic-content .dov-pv-frame { fill: none; stroke: var(--line, rgba(15, 23, 42, 0.14)); stroke-width: 1; }
.rar-topic-content .dov-pv-grid { stroke: rgba(15, 23, 42, 0.06); stroke-width: 1; }
.rar-topic-content .dov-pv-num { fill: var(--muted, #667085); font-size: 9.5px; font-weight: 600; }
.rar-topic-content .dov-pv-axlabel { fill: var(--muted-strong, #475467); font-size: 10.5px; font-weight: 700; }
.rar-topic-content .dov-pv-vlabel { fill: var(--muted-strong, #475467); font-size: 9.5px; font-weight: 800; }

/* static (no-flow) backbone = Cstat reference */
.rar-topic-content .dov-pv-static { fill: none; stroke: #64748b; stroke-width: 2; stroke-dasharray: 5 3; }
.rar-topic-content .dov-pv-cstatlbl { fill: #475467; font-size: 10px; font-weight: 800; }

/* the loop limbs */
.rar-topic-content .dov-pv-limb { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rar-topic-content .dov-pv-in { stroke: #c0392b; }     /* inflation */
.rar-topic-content .dov-pv-def { stroke: #0a84ff; }    /* deflation */
.rar-topic-content .dov-pv-limblbl { font-size: 9.5px; font-weight: 800; }
.rar-topic-content .dov-pv-inlbl { fill: #c0392b; }
.rar-topic-content .dov-pv-deflbl { fill: #0a84ff; text-anchor: end; }

/* loop area (energy) + Cdyn chord */
.rar-topic-content .dov-pv-area { fill: rgba(255, 159, 10, 0.22); opacity: 0; }
.rar-topic-content .dov-pv-cdyn { stroke: #7a4fd0; stroke-width: 1.6; stroke-dasharray: 4 3; opacity: 0; }

.rar-topic-content .dov-pv-head { fill: #111318; stroke: #fff; stroke-width: 1.5; opacity: 0; }

/* work-of-breathing mode (Page 6): shaded areas + proportion bar */
.rar-topic-content .dov-pv-warea { stroke: none; transition: opacity 0.2s ease; }
.rar-topic-content .dov-pv-elastic { fill: rgba(10, 132, 255, 0.28); }
.rar-topic-content .dov-pv-viscous { fill: rgba(217, 133, 0, 0.42); }
.rar-topic-content .dov-pv-warea-lbl { font-size: 10px; font-weight: 850; }
.rar-topic-content .dov-pv-elastic-lbl { fill: #0066cc; }
.rar-topic-content .dov-pv-viscous-lbl { fill: #a35e00; }
.rar-topic-content .dov-wob-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin-top: 12px; border: 1px solid var(--line, rgba(15, 23, 42, 0.12)); }
.rar-topic-content .dov-wob-seg { transition: width 0.25s ease; }
.rar-topic-content .dov-wob-seg--el { background: #0a84ff; }
.rar-topic-content .dov-wob-seg--vi { background: #e0a020; }
.rar-topic-content .dov-wob-barkey { display: flex; gap: 18px; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--text, #111318); }
.rar-topic-content .dov-wob-barkey i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.rar-topic-content .dov-wob-i--el { background: #0a84ff; }
.rar-topic-content .dov-wob-i--vi { background: #e0a020; }

/* causal insight list */
.rar-topic-content .dov-insights { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rar-topic-content .dov-insights li {
    padding: 10px 13px; border: 1px solid var(--line, rgba(15, 23, 42, 0.1)); border-radius: 12px;
    background: var(--surface-soft, rgba(255, 255, 255, 0.6));
    font-size: 13px; line-height: 1.5; color: var(--text, #111318);
}
.rar-topic-content .dov-insights li strong { font-weight: 800; }
