:root{--maroon:#782b1b;--dark:#542015;--gold:#fec81e;--ink:#242733;--muted:#586372;--border:#e3e6ea;--bg:#faf8f3;--shadow:0 4px 22px rgba(19,32,55,.055);font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}button,input,select,a{ -webkit-tap-highlight-color:transparent}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:3px}input,select{width:100%;min-height:44px;border:1px solid #cbd1d9;border-radius:9px;padding:10px 11px;background:white;color:var(--ink)}input[aria-invalid=true]{border-color:#b22b32}h1,h2,p{margin-top:0}h2{font-size:1.23rem;letter-spacing:-.025em;line-height:1.3;margin:5px 0 0}.site-header{color:white;background:linear-gradient(125deg,var(--dark),var(--maroon) 70%,#91422e);border-bottom:5px solid var(--gold)}.header-inner{max-width:1300px;margin:auto;min-height:162px;padding:31px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand-row{display:flex;align-items:center;gap:20px}.brand-icon{border:1px solid #ffffff59;border-radius:16px;width:65px;height:65px;display:grid;place-items:center;flex-shrink:0}.brand-icon svg{width:45px;height:45px}.eyebrow,.section-kicker{font-size:.69rem;font-weight:800;letter-spacing:.14em}.eyebrow{color:var(--gold)}h1{font-size:clamp(1.8rem,3vw,2.4rem);margin:3px 0 2px;letter-spacing:-.035em;line-height:1.12}.site-header p{color:#f9e9e8;margin:7px 0 0;font-size:.96rem}.header-pill{border:1px solid #ffffff4d;border-radius:40px;padding:8px 14px;font-size:.76rem;white-space:nowrap;color:#fff4e0}.page-shell{max-width:1300px;margin:30px auto 40px;padding:0 24px}.intro{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:27px}.intro h2{font-size:1.8rem;margin:8px 0}.intro p{color:var(--muted);max-width:760px;margin:0;font-size:.96rem}.section-kicker{color:var(--maroon)}.how-link{color:var(--maroon);font-size:.85rem;font-weight:700;white-space:nowrap;text-underline-offset:4px}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);gap:21px;align-items:start}.control-stack,.visual-stack{display:flex;flex-direction:column;gap:20px;min-width:0}.card{border:1px solid var(--border);border-radius:17px;background:white;box-shadow:var(--shadow)}.inputs-card,.rule-card,.graph-card,.calculation-card,.history-card{padding:22px}.card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.small-square{font-size:2rem;line-height:1;color:var(--maroon)}.corner-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 13px;margin-top:23px}.corner-grid label{display:flex;align-items:center;gap:6px;font-size:.77rem;font-weight:650;margin-bottom:7px}.corner-grid label b{display:grid;place-items:center;width:23px;height:23px;background:#f8eee9;color:var(--maroon);border-radius:5px;font-size:.72rem}.corner-grid input{font-size:1.12rem;font-weight:650;font-variant-numeric:tabular-nums}.field-help{color:var(--muted);font-size:.77rem;line-height:1.55;margin:12px 0}.error{color:#a31b2b;font-size:.83rem}.button{min-height:43px;border:1px solid transparent;border-radius:9px;padding:10px 15px;font-weight:740;font-size:.84rem;transition:background .12s,transform .12s}.button:active:not(:disabled){transform:translateY(1px)}.button-primary{background:var(--maroon);color:white}.button-primary:hover:not(:disabled){background:var(--dark)}.button-secondary{background:#fff8df;border-color:#e8cb73;color:var(--dark)}.button-secondary:hover:not(:disabled){background:#ffefb3}.button-quiet{background:white;border-color:#cfd4dd;color:#3f4856}.button-quiet:hover:not(:disabled){background:#f4f5f7}.button-full{width:100%;display:flex;align-items:center;justify-content:space-between}.example-row{margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}.example-row label{display:block;font-size:.78rem;font-weight:750;margin-bottom:7px}.example-row select{font-size:.8rem}.example-row button{width:100%;margin-top:10px}.rule-card{background:#fffdf7;border-color:#eadfc1}.rule-card h2{font-size:1.12rem;margin-top:9px}.rule-card ol{padding-left:21px;color:var(--muted);font-size:.84rem}.rule-card li{margin:15px 0;padding-left:3px}.rule-card strong{color:var(--ink)}.formula{border:1px solid #e9dfc9;border-radius:9px;padding:13px;text-align:center;background:white;font-size:.82rem;line-height:1.9;color:var(--dark);font-family:ui-monospace,monospace}.formula span{color:#a67c00}.rule-card .field-help{margin-bottom:0}.badge{border-radius:40px;background:#f7f0e9;color:#704435;padding:6px 11px;white-space:nowrap;font-size:.75rem;font-weight:700}.legend{display:flex;flex-wrap:wrap;gap:20px;margin:20px 0 12px;font-size:.75rem;color:var(--muted)}.legend span{display:flex;align-items:center;gap:6px}.line{width:19px;height:3px;display:inline-block;border-radius:3px}.original{background:#aaa3a0}.current{background:var(--maroon)}.dot{display:inline-block;width:9px;height:9px;background:var(--gold);border:1px solid #94700e;border-radius:50%}.graph-frame{border:1px solid #dce1e5;border-radius:11px;overflow:hidden;position:relative;background:#fff}.graph-frame svg{display:block;width:100%;height:auto;max-height:540px}.graph-watermark{position:absolute;right:14px;bottom:10px;font-size:.58rem;font-weight:750;letter-spacing:.14em;color:#a5a7ac}.view-controls{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.76rem;color:var(--muted);margin:14px 0 20px}.view-controls label{display:flex;align-items:center;gap:7px;cursor:pointer}.view-controls input{width:16px;height:16px;min-height:16px;accent-color:var(--maroon);margin:0}.playback{display:flex;gap:8px}.playback #play{min-width:100px}.playback #next{flex:1}.timeline{display:flex;align-items:center;gap:13px;margin-top:19px;font-size:.75rem;font-weight:650}.timeline label,.timeline output{white-space:nowrap}.timeline input{padding:0;min-height:24px;accent-color:var(--maroon);border:none}.timeline output{color:var(--muted);font-variant-numeric:tabular-nums;min-width:42px;text-align:right}.speed-row{display:flex;align-items:center;gap:12px;font-size:.74rem;color:var(--muted);margin:9px 0 14px}.speed-row select{font-size:.74rem;padding:4px 8px;min-height:31px;width:94px}.status{background:#f7f2ed;border:1px solid #e9dfd7;border-radius:8px;padding:11px 13px;font-size:.8rem;color:#674535;min-height:44px}.status.complete{background:#e9f6ee;border-color:#b6dcc6;color:#175b33;font-weight:650}.clockwise{font-size:.72rem;color:var(--muted);white-space:nowrap}.calculations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.calculation{min-width:0;background:#faf8f4;border:1px solid #eae4dc;border-radius:9px;padding:12px}.calculation>span{font-size:.66rem;font-weight:800;letter-spacing:.09em;color:#7f685d}.equation{font-size:.76rem;color:var(--muted);margin:8px 0 4px;overflow-wrap:anywhere}.calculation strong{font-size:1.1rem;color:var(--maroon);overflow-wrap:anywhere}.history-card{margin-top:22px}.history-card .field-help{margin:8px 0 15px}.table-scroll{max-height:340px;overflow:auto;border:1px solid var(--border);border-radius:9px}table{border-collapse:collapse;width:100%;text-align:right;font-size:.82rem;font-variant-numeric:tabular-nums}thead{position:sticky;top:0;background:#f6f4ef;z-index:1}th,td{padding:11px 16px;border-bottom:1px solid var(--border)}thead th{font-size:.72rem;color:var(--muted);white-space:nowrap}th:first-child{text-align:left}tbody th{font-weight:600}tbody td{max-width:230px;overflow-wrap:anywhere;min-width:100px}tbody tr:last-child>*{border-bottom:none}tbody tr.selected{background:#fcf0e9;box-shadow:inset 3px 0 var(--maroon)}tbody tr:hover{background:#fff9e7}tbody button{border:0;background:none;padding:4px 0;color:var(--maroon);font-weight:750;text-align:left;white-space:nowrap}.history-foot{font-size:.76rem;color:var(--muted);margin:14px 0 0}.explore-note{display:flex;gap:18px;align-items:center;max-width:760px;margin:27px auto;color:var(--muted);font-size:.85rem}.explore-note>span{font-size:2.4rem;color:#b88d15}.explore-note p{margin:0}.explore-note strong{color:var(--ink)}.page-footer{background:white;border-top:4px solid var(--gold);padding:24px;color:var(--muted)}.footer-inner{max-width:920px;margin:auto;display:flex;justify-content:center;align-items:center;gap:36px}.university-link{display:block;flex:0 0 200px;line-height:0}.university-link img{width:200px;max-width:100%;height:auto}.footer-copy{max-width:440px;font-size:.78rem;line-height:1.65}.footer-copy p{margin:8px 0}.footer-title{font-size:1.15rem;font-weight:800;color:var(--maroon)}.author-credit{color:var(--ink);font-size:.88rem}.author-credit a{color:var(--maroon);font-weight:750;text-underline-offset:3px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(max-width:1080px){.workspace{grid-template-columns:300px minmax(0,1fr)}.inputs-card,.rule-card,.graph-card,.calculation-card,.history-card{padding:17px}.playback{flex-wrap:wrap}.playback #finish{flex:1}.calculations{grid-template-columns:repeat(2,minmax(0,1fr))}.header-pill{display:none}}@media(max-width:800px){.workspace{grid-template-columns:minmax(0,1fr)}.control-stack{display:grid;grid-template-columns:1fr 1fr;align-items:start}.intro h2{font-size:1.6rem}.how-link{display:none}.corner-grid{margin-top:16px}.calculations{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:580px){.header-inner{padding:25px 18px;min-height:0}.brand-row{gap:12px}.brand-icon{width:51px;height:51px}.brand-icon svg{width:36px;height:36px}.eyebrow{font-size:.57rem}h1{font-size:1.8rem}.site-header p{font-size:.81rem}.page-shell{margin-top:23px;padding:0 13px}.intro p{font-size:.87rem}.intro h2{font-size:1.5rem}.control-stack{display:flex}.rule-card{order:2}.rule-card ol{margin-bottom:0}.card-heading h2{font-size:1.08rem}.badge{font-size:.64rem;padding:6px 8px}.legend{gap:12px;font-size:.64rem}.graph-card{padding:13px}.view-controls{font-size:.68rem;gap:9px}.playback{gap:6px}.playback .button{font-size:.76rem;padding:9px 11px}.playback #play{min-width:88px}.playback #finish{flex:auto}.timeline{gap:8px;font-size:.69rem}.calculations{grid-template-columns:repeat(2,minmax(0,1fr))}.history-card .card-heading{flex-direction:column}.history-card .card-heading .button{margin-bottom:15px}.footer-inner{flex-direction:column;gap:10px}.university-link{flex-basis:auto}.university-link img{width:180px}.footer-copy{text-align:center}.explore-note{padding:0 8px}.clockwise{font-size:.66rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Student practice and investigations. */
.random-button{margin:3px 0 9px;justify-content:center}.mode-picker{border:0;padding:0;margin:20px 0 8px;display:grid;grid-template-columns:1fr 1fr;gap:9px}.mode-picker legend{font-size:.77rem;font-weight:750;margin-bottom:9px}.mode-picker label{border:1px solid #d4d6da;border-radius:10px;padding:11px;display:flex;align-items:flex-start;gap:9px;cursor:pointer;min-width:0}.mode-picker label:has(input:checked){border-color:var(--maroon);background:#fcf1eb}.mode-picker input{accent-color:var(--maroon);width:16px;height:16px;min-height:16px;margin:2px 0 0;flex-shrink:0}.mode-picker strong{display:block;font-size:.77rem;line-height:1.4}.mode-picker small{display:block;color:var(--muted);font-size:.7rem;margin-top:4px}.practice-panel{background:#fffaf0;border:1px solid #ead6a0;border-radius:11px;padding:15px;margin:0 0 16px}.practice-panel h3{font-size:.98rem;margin:0}.practice-panel .field-help{margin:8px 0}.practice-panel .calculations{margin-top:12px}.practice-panel .calculation{background:white;padding:10px}.practice-panel label{display:block;overflow-wrap:anywhere;font-size:.78rem;font-weight:700;color:var(--dark);margin-bottom:9px}.practice-panel input{font-size:1rem;min-width:0}.practice-feedback{border:1px solid #e7c8c8;padding:11px 13px;border-radius:8px;font-size:.8rem;margin:0 0 14px;background:#fff3f1}.practice-feedback.success{border-color:#b6dcc6;background:#e9f6ee;color:#175b33}.investigation-card{margin:24px 0;padding:24px;background:#fffdf7;border-color:#eadfc1}.investigation-card h3{font-size:1.25rem;color:var(--dark);margin:21px 0 9px}.investigation-card #idea-prompt{font-size:.95rem;max-width:870px;color:var(--ink);margin-bottom:13px}.idea-challenge{color:var(--muted);font-size:.88rem;max-width:870px;border-left:3px solid var(--gold);padding-left:12px}.idea-controls{display:flex;justify-content:space-between;gap:12px;margin-top:21px}.investigation-card a{color:var(--maroon);text-underline-offset:3px}.example-row select{max-width:100%;text-overflow:ellipsis}.practice-panel input[aria-invalid=true]{background:#fff2f0;border:2px solid #b22b32}@media(max-width:580px){.mode-picker{grid-template-columns:1fr}.investigation-card{padding:18px}.investigation-card h3{font-size:1.12rem}.investigation-card #idea-prompt{font-size:.88rem}.idea-controls .button{font-size:.75rem;padding:10px}.mode-picker small{font-size:.72rem}}

.starting-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:600px;margin:18px 0}.starting-values>div{padding:12px 15px;background:#fff;border:1px solid #e9dfc9;border-radius:9px;min-width:0}.starting-values span{display:block;color:var(--muted);font-size:.72rem;font-weight:700}.starting-values strong{display:block;font-size:1.45rem;font-variant-numeric:tabular-nums;color:var(--dark);overflow-wrap:anywhere}@media(max-width:580px){.starting-values{gap:8px}.starting-values>div{padding:10px}.starting-values strong{font-size:1.14rem}}
