.sy-frames h2{font-size:1.25rem;margin:1rem 0}.sy-step-count,.sy-axis-names{font-size:1rem;font-weight:600}.sy-equation{font-size:1.35rem;line-height:1.8;margin:1rem 0;overflow-wrap:anywhere}.sy-svg svg,.sy-graph svg{display:block;width:100%;height:auto}.sy-svg{overflow:auto}.sy-table-wrap{overflow-x:auto;margin:1rem 0}.sy-table-wrap table{border-collapse:collapse;width:100%;font-size:1rem;background:#fffef9}.sy-table-wrap th,.sy-table-wrap td{border:1px solid #b5c7c2;padding:.7rem;text-align:left;min-width:4rem}.sy-table-wrap th{background:#e8edf4}.sy-fields{display:flex;gap:1rem;flex-wrap:wrap}.sy-field{display:grid;gap:.5rem;margin:1rem 0;font-size:1rem}.sy-field input,.sy-field textarea,.sy-field select{width:100%;max-width:32rem;padding:.75rem;border:1px solid #64867a;border-radius:8px;font:inherit;min-height:44px}.sy-fields .sy-field{flex:1 1 7rem;max-width:12rem}.sy-result{margin-top:1.25rem}.sy-error:not(:empty){color:#8d2d22;background:#fff0ed;padding:.75rem;border-left:4px solid #b24531}.sy-graph{margin:1rem 0}.sy-histogram{height:180px;display:flex;align-items:flex-end;border-bottom:2px solid #374f57;margin:2rem 1rem}.sy-histogram>div{flex:1;background:#b6a4d6;border:1px solid #6950a6;position:relative;min-height:1px}.sy-histogram span{position:absolute;top:-1.75rem;width:100%;text-align:center;font-size:1rem}.sy-frames .nu-actions{gap:.65rem;flex-wrap:wrap}.sy-live-function .sy-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.sy-live-field{border:1px solid #b8ccc4;border-radius:12px;background:#fffef9;padding:1rem;min-width:0}.sy-live-field>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;font-size:1rem;font-weight:800}.sy-live-field output{min-width:3.25rem;padding:.25rem .55rem;border-radius:999px;background:#e7f3ef;color:#145e50;text-align:center;font-size:1.1rem}.sy-live-field>input[type=range]{width:100%;min-height:44px;accent-color:#6950a6;cursor:pointer}.sy-live-number{display:grid;grid-template-columns:auto minmax(5rem,8rem);align-items:center;justify-content:end;gap:.65rem;font-size:.875rem;color:#526b62}.sy-live-number input{width:100%;padding:.55rem .65rem;border:1px solid #64867a;border-radius:8px;font:inherit;min-height:42px}.sy-live-function .sy-graph{max-width:840px;margin-inline:auto}.sy-live-function .sy-table-wrap{max-width:840px;margin-inline:auto}@media(max-width:620px){.sy-live-function .sy-fields{grid-template-columns:1fr}.sy-live-number{justify-content:stretch}}
/* Keep the older Space picture rules from shrinking secondary diagram labels. */
.nu-unit-space .sy-svg svg:not([data-authored]) text{font-size:28px}
/* A small learner-controlled Monty Hall demonstration. */
.md-stage{font-size:1.1rem;font-weight:700;line-height:1.6;margin:0 0 1.25rem}.md-stage:focus{outline:2px solid #315b9b;outline-offset:5px;border-radius:4px}.md-doors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:1.25rem 0}.md-door-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;min-width:0}.md-door{width:100%;min-height:150px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;border:3px solid #315b9b;border-radius:10px;background:#e3ecf9;color:#193b45;padding:12px 4px;font:inherit}.md-door-card button{cursor:pointer}.md-door-card button:hover{background:#cddff3}.md-door-card button:focus-visible{outline:3px solid #af5c17;outline-offset:3px}.md-selected .md-door{border-color:#af5c17;box-shadow:0 0 0 2px #f2d6b4}.md-open{background:#fffef9}.md-door svg{width:80px;max-width:90%;height:58px}.md-number{font-size:2.5rem;font-weight:800}.md-goat{font-size:2.25rem;line-height:1.3}.md-door-note{min-height:2.5em;font-size:.9rem;line-height:1.3}.md-actions{display:flex;gap:12px;flex-wrap:wrap}.md-actions button{flex:1 1 130px}@media(max-width:480px){.md-door{min-height:118px}.md-doors{gap:8px}.md-door-note{font-size:.85rem}.md-door-card>strong{font-size:.95rem}}
.md-case-list{display:grid;gap:22px}.md-case{border:1px solid #b5c7c2;border-radius:12px;padding:16px;background:#fffef9}.md-case h3{margin:0 0 16px;font-size:1.1rem;line-height:1.5}.md-case-doors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.md-case-doors>div{display:grid;gap:8px;padding:12px 3px;background:#e3ecf9;border-radius:7px;text-align:center;font-size:1rem;border:2px solid transparent}.md-case-doors .md-first{border-color:#af5c17}.md-case p{margin:16px 0 0;line-height:1.6}
.sy-enter{animation:sy-fade .35s ease-out}@keyframes sy-fade{from{opacity:.35}to{opacity:1}}.sy-play{font-weight:700}@media (prefers-reduced-motion:reduce){.sy-enter{animation:none}}
.sy-loading{min-height:12rem;display:grid;place-items:center;color:#5b6f76;background:#f3f6f4;border-radius:12px}
.sy-rise-run path{fill:none;stroke:#c65d13;stroke-width:5;stroke-linecap:round}.sy-rise-run path.sy-rise{stroke:#196b5c}.sy-rise-run circle{fill:#fff;stroke:#173e45;stroke-width:3}.sy-rise-run text{font-size:17px;font-weight:800;paint-order:stroke;stroke:#fffef9;stroke-width:5px;stroke-linejoin:round}.sy-run-label{fill:#9a4912;text-anchor:middle}.sy-rise-label{fill:#145e50;text-anchor:start}.sy-gradient-readout{max-width:840px;margin:.5rem auto 1rem;padding:.75rem 1rem;border-left:4px solid #196b5c;background:#edf6f1}
