/* Read-mode figures: static by default, optional exploration on demand. */
.math-graph-lab{margin:32px 0;padding:24px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);min-width:0}
.article-body .math-graph-lab h3{margin:0 0 12px}
.math-graph-lab figure{margin:20px 0}
.math-graph-static{display:block;width:100%;height:auto;max-height:420px}
.math-graph-lab figcaption,.math-graph-lab .graph-hint{font-size:15px;line-height:1.6;color:var(--muted);margin:12px 0}
.math-graph-lab button{font:inherit;min-height:44px;padding:10px 18px;background:var(--green);color:white;border:0;border-radius:8px;cursor:pointer}
.math-graph-lab button:hover{background:var(--green-hover)}
.math-graph-lab button:disabled{opacity:.65;cursor:wait}
.math-graph-lab :focus-visible{outline:3px solid var(--green);outline-offset:4px}
.math-graph-lab [hidden]{display:none!important}
.math-graph-board{position:relative;height:360px;width:100%;overflow:hidden;touch-action:pan-y}
.math-graph-square{height:auto;aspect-ratio:1;max-width:440px;margin:auto}
.math-graph-board .JXGtext{font-family:inherit}
.math-graph-lab .graph-legend{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:15px;margin:18px 0}
.math-graph-lab .graph-legend span::before{content:"";display:inline-block;width:22px;border-top:3px solid #24713d;margin-right:8px;vertical-align:middle}
.math-graph-lab .graph-legend span+span::before{border-color:#875219;border-top-style:dashed}
.math-graph-lab .graph-controls{border-top:1px solid var(--line);padding-top:16px}
.math-graph-lab label{font-weight:600;display:block}
.math-graph-lab input{display:block;width:100%;min-height:44px;accent-color:var(--green);cursor:pointer}
.math-graph-lab .graph-readout{font-variant-numeric:tabular-nums;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:480px){.math-graph-lab{padding:16px}.math-graph-board:not(.math-graph-square){height:300px}}
@media print{.math-graph-lab [data-static-graph][hidden]{display:block!important}.math-graph-lab [data-graph-panel],.math-graph-lab button,.math-graph-lab [role=status],.math-graph-lab>.graph-hint{display:none!important}}
