/* Styles des schémas générés par assets/js/circuit.js.
   La page fournit : --cz-ink, --cz-bg, --cz-volt, --cz-amp, --cz-pot, --cz-muted (et éventuellement --cz-math, --cz-mono). */
.cz{display:block;width:100%;height:auto;font-family:var(--cz-math,"STIX Two Text","Cambria Math",Cambria,"Times New Roman",serif);overflow:visible}
.cz-w{fill:none;stroke:var(--cz-ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:stroke .25s,stroke-width .25s,opacity .25s}
.cz-r{fill:var(--cz-bg);stroke:var(--cz-ink);stroke-width:2;transition:fill .25s,stroke .25s}
.cz-src{fill:var(--cz-bg);stroke:var(--cz-ink);stroke-width:2;transition:fill .25s,stroke .25s}
.cz-gap{fill:none;stroke:var(--cz-bg);stroke-width:5}
.cz-u{fill:none;stroke:var(--cz-volt);stroke-width:1.8;stroke-linecap:round}
.cz-uh{fill:var(--cz-volt)}
.cz-i{fill:none;stroke:var(--cz-amp);stroke-width:2.1;stroke-linecap:round}
.cz-ih{fill:var(--cz-amp)}
.cz-l{font-style:italic;font-size:17px;fill:var(--cz-ink)}
.cz-s{font-size:11.5px}
.cz-lu{fill:var(--cz-volt)}
.cz-li{fill:var(--cz-amp)}
.cz-lp{fill:var(--cz-pot)}
.cz-n{font-style:italic;font-weight:600;font-size:17px;fill:var(--cz-ink)}
.cz-dot{fill:var(--cz-ink)}
.cz-term{fill:var(--cz-bg);stroke:var(--cz-ink);stroke-width:2}
.cz-g{stroke:var(--cz-ink);stroke-width:1.6;fill:none;stroke-linecap:round}
.cz-meter{font-family:var(--cz-mono,ui-monospace,SFMono-Regular,Menlo,monospace);font-style:normal;font-weight:600;font-size:14px;fill:var(--cz-ink)}
.cz-tiny{font-family:var(--cz-mono,ui-monospace,SFMono-Regular,Menlo,monospace);font-style:normal;font-size:11px;fill:var(--cz-muted)}
.cz-muted .cz-w,.cz-muted.cz-w{stroke:var(--cz-muted);stroke-dasharray:4 4}
.cz-hl .cz-r,.cz-hl .cz-src{fill:var(--cz-pot-soft,var(--cz-bg));stroke:var(--cz-pot)}
.cz-hl.cz-w{stroke:var(--cz-pot);stroke-width:4}
.cz-ghost{opacity:.28}

/* schémas scannés (PNG noir sur blanc) : fond blanc en clair, inversés en sombre */
img.scan{display:block;max-width:100%;height:auto;margin:0 auto;border-radius:6px;background:#fff}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) img.scan{filter:invert(.9) hue-rotate(180deg);background:#fff}}
:root[data-theme="dark"] img.scan{filter:invert(.9) hue-rotate(180deg);background:#fff}
