/* Operations-research lessons: the model blocks (.orx) and the growth tables (.org) inside the reading column of
   tutorial.css. Static first: everything is readable before or.js runs; the script adds the editor and the controls. */
.orx{margin:1rem 0;padding:.75rem 1rem;border:1px solid #d0d7de;border-radius:6px;background:#fff}
.orx-figure{margin:0 0 .75rem}
.orx-poster,.orx-canvas,.orx-video video{display:block;width:100%;max-width:640px;height:auto;aspect-ratio:16/9;margin:0 auto;border:1px solid #d0d7de;border-radius:4px;background:#fff;box-sizing:border-box}
.orx-poster[hidden],.orx-canvas[hidden]{display:none}
.orx-static,.orx-output,.orx-view pre{margin:0;font:14px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.orx-static,.orx-view pre{padding:.6rem .75rem;background:#f6f8fa;border:1px solid #d0d7de;border-radius:6px}
.orx-label{display:block;font:600 .8rem/1.3 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em;color:#59636e;margin:0 0 .35rem}
.orx-model{display:block;box-sizing:border-box;width:100%;padding:.6rem .75rem;background:#f6f8fa;border:1px solid #d0d7de;border-radius:6px;font:14px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;tab-size:2;resize:vertical}
.orx-controls{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;margin:0 0 .75rem}
.orx-controls[hidden]{display:none}
.orx-slider{display:flex;align-items:center;gap:.5rem;min-height:40px}
.orx-slider span{font-weight:600}
.orx-slider input{width:12rem;max-width:45vw}
.orx-slider output{min-width:3ch;font-variant-numeric:tabular-nums}
.orx-bar,.orx-answer{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin:.6rem 0}
.orx button{font:inherit;padding:.35rem .9rem;min-height:40px;border:1px solid #9ca3af;border-radius:6px;background:#f6f8fa;color:#1b1f24}
.orx .orx-run,.orx .orx-check{background:#1b1f24;color:#fff;border-color:#1b1f24}
.orx button:disabled{opacity:.5}
.orx-status{color:#57606a}
.orx[data-state=live] .orx-status{color:#116329;font-weight:600}
.orx[data-state=failed] .orx-status{color:#b3261e;font-weight:600}
.orx-message{margin:.4rem 0;padding:.35rem .6rem;border-radius:6px;background:#fde7e9;color:#8a1c1c}
.orx-output{margin:.6rem 0 0;padding:.5rem .75rem;border-left:3px solid #0b57d0;background:#f6f8fa}
.orx-output:empty{display:none}
.orx-stats{margin:.5rem 0 0;color:#33383f;font-size:.95em;font-variant-numeric:tabular-nums}
.orx-view,.orx-video{margin:.6rem 0 0}
.orx-view summary,.orx-video summary{cursor:pointer;color:#0b57d0;min-height:32px}
.orx-exercise{margin-top:.8rem;padding:.6rem .8rem;border:1px dashed #9a6700;border-radius:6px;background:#fffbe6}
.orx-exercise[data-done=true]{border-color:#116329;background:#f1f8f3}
.orx-question{margin:0}
.orx-verdict p{margin:0}.orx-verdict ul{margin:.3rem 0 0;padding-left:1.2rem}
.orx-verdict-title{font-weight:600}
.orx-verdict[data-pass=true] .orx-verdict-title{color:#116329}
.orx-verdict[data-pass=false] .orx-verdict-title{color:#b3261e}
.orx-hint{color:#59636e}
.orx button:focus-visible,.orx-model:focus-visible,.orx summary:focus-visible,.orx input:focus-visible{outline:3px solid #0b57d0;outline-offset:2px}
.org{position:relative;margin:1rem 0;padding:.75rem 1rem;border:1px solid #d0d7de;border-radius:6px;background:#fff;overflow-x:auto}
.org figcaption{font-weight:600;margin:0 0 .5rem}
.org-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.org-table th,.org-table td{padding:.25rem .5rem;text-align:right;border-bottom:1px solid #eaeef2;white-space:nowrap}
.org-table thead th{font-size:.85rem;color:#59636e}
.org-table td:last-child,.org-table th:last-child{text-align:left}
.org-barcell{width:40%;min-width:5rem}
.org-bar{display:block;width:100%;height:.6rem}
.org-bar rect{fill:#0b57d0}
.org-far .org-bar rect{fill:#9a6700}
.org-far td,.org-far th{background:#fffbe6}
.org-count{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em}
.org-note,.org-solver{margin:.5rem 0 0;color:#33383f;font-size:.95em;white-space:normal}
.org-solver{font-weight:600}
.org-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media (max-width:30rem){.orx,.org{padding:.6rem}.org-barcell{display:none}}
/* Narrow screens: the 640 by 360 picture would shrink to about 0.56 and its 11 px labels to 6 px. It keeps at least
   480 px (labels about 8 px or more) and the figure scrolls sideways; a hint says so. */
@media (max-width:560px){
  .orx{padding:.6rem .6rem}
  .orx-figure{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-bottom:.4rem}
  .orx-poster,.orx-canvas{width:480px;max-width:none;margin:0}
  .orx-figure::after{content:"Swipe sideways to see the whole picture.";display:block;position:sticky;left:0;font:.75rem/1.4 system-ui,sans-serif;color:#59636e;margin-top:.25rem}
}

/* Native MathML and the font stack of web/math/blackboard/board.css. No downloads. */
.sv-math{display:inline-block;max-width:100%;overflow-x:auto;vertical-align:middle}
.sv-math math{font-family:"STIX Two Math","Cambria Math","Latin Modern Math",Georgia,serif;color:inherit}
.sv-math-display{display:block;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;padding:.5em 0;margin:.5em 0}
.sv-math-display math{width:max-content;min-width:100%;margin:0}
