/* viz.css — Styles for inline data visualizations (.viz-figure, .viz-interactive) */ /* ============================================================ Static figures (Matplotlib SVG) ============================================================ */ .viz-figure { margin: 2rem 0; break-inside: avoid; } .viz-figure svg { width: 100%; height: auto; display: block; } /* Force labels and text glyphs to use currentColor instead of default/hardcoded black */ .viz-figure svg g[id^="text_"] path, .viz-figure svg g[id^="text_"] use { fill: currentColor !important; } /* Ensure axis lines and ticks also follow currentColor */ .viz-figure svg g[id^="axes_"] path, .viz-figure svg g[id^="xtick_"] line, .viz-figure svg g[id^="ytick_"] line, .viz-figure svg g[id^="xtick_"] use, .viz-figure svg g[id^="ytick_"] use { stroke: currentColor !important; } /* Catch explicit styles on axes paths */ .viz-figure svg g[id^="patch_"] path[style*="stroke: #000000"] { stroke: currentColor !important; } /* ============================================================ Interactive figures (Vega-Lite via vega-embed) ============================================================ */ .viz-interactive { margin: 2rem 0; break-inside: avoid; } .vega-container { width: 100%; overflow: hidden; } /* vega-embed injects a