/* Köpüklü sistem P&ID'si ve hesabı (js/viz/foam-pid.js) */
.cviz[data-viz="foam-pid"]::after { content: "selvi.org · NFPA 11 · P&ID"; content: "selvi.org · NFPA 11 · P&ID" / ""; }
.cviz[data-viz="foam-calc"]::after { content: "selvi.org · NFPA 11 · hesap"; content: "selvi.org · NFPA 11 · hesap" / ""; }
.fpz-note { margin: 12px 0 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.55; }
.fpz-svg { margin-top: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fpz { display: block; width: 100%; height: auto; }
@media (max-width: 560px) { .fpz { min-width: 640px; } }
.fpz-t { font-family: var(--font-sans); font-size: 18px; fill: var(--muted-foreground); }
.fpz-tag { font-family: var(--font-mono); font-size: 18px; fill: var(--foreground); }
.fpz-mut { fill: var(--subtle-foreground); }
.fpz-in { fill: oklch(0.2 0.01 62); font-weight: 600; }
.fpz-s { fill: oklch(0.2 0.005 270); stroke: oklch(0.92 0.005 270 / 0.85); stroke-width: 2; stroke-linejoin: round; }
.fpz-l { fill: none; stroke: oklch(0.92 0.005 270 / 0.85); stroke-width: 2; stroke-linecap: round; }
.fpz-conc { fill: var(--accent); fill-opacity: 0.75; stroke: none; transition: opacity .6s; }
.fpz-foam { fill: var(--c-ok); fill-opacity: 0.55; transition: height .8s, y .8s; }
.fpz-line { fill: none; stroke: oklch(1 0 0 / 0.16); stroke-width: 5; stroke-linejoin: round; }
.fpz-line.on { stroke-opacity: 0.45; }
.fpz-line.f-w.on { stroke: var(--c-water); }
.fpz-line.f-c.on { stroke: var(--accent); }
.fpz-line.f-s.on { stroke: var(--c-ok); }
.fpz-line.f-p { stroke-width: 2; stroke-dasharray: 10 4 2 4; }
.fpz-line.f-p.on { stroke: oklch(0.92 0.005 270); stroke-opacity: 0.8; }
.fpz-line.run { stroke-opacity: 1; stroke-dasharray: 16 10; animation: fpz-akis 0.9s linear infinite; }
@keyframes fpz-akis { to { stroke-dashoffset: -26; } }
.fpz-sym { cursor: pointer; outline: none; }
.fpz-sym:hover .fpz-tag, .fpz-sym:focus-visible .fpz-tag { fill: var(--accent); }
.fpz-sym:focus-visible .fpz-s { stroke: var(--accent); }
.fpz-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-foreground); }
.fpz-leg span::before { content: ""; display: inline-block; width: 18px; height: 4px; margin-right: 6px; vertical-align: middle; border-radius: 2px; background: currentColor; }
.fpz-leg .w::before { background: var(--c-water); }
.fpz-leg .c::before { background: var(--accent); }
.fpz-leg .s::before { background: var(--c-ok); }
.fpz-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fpz-steps button { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--c-line); background: oklch(1 0 0 / 0.03); color: var(--muted-foreground); font-size: 13px; cursor: pointer; }
.fpz-steps button.on { color: var(--foreground); border-color: oklch(0.80 0.15 62 / 0.55); background: var(--accent-soft); }
.fpz-steps .fpz-play { color: var(--accent); }
.fpz-steps button:focus-visible { outline: 2px solid var(--ring, var(--accent)); outline-offset: 2px; }
.fpz-tagout { margin-top: 8px; }
.fcz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 14px; }
.fcz-k { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border, oklch(1 0 0 / 0.08)); background: oklch(1 0 0 / 0.025); }
.fcz-k span { display: block; font-size: 12.5px; color: var(--muted-foreground); }
.fcz-k b { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 16px; font-weight: 500; color: var(--foreground); }
.fcz-k small { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--subtle-foreground); }
.fcz-k.v { border-color: oklch(0.80 0.15 62 / 0.45); background: var(--accent-soft); }
.cviz-stage.is-still .fpz-line.run { animation: none; }
@media (prefers-reduced-motion: reduce) { .fpz-line.run { animation: none; stroke-dasharray: none; } }
