body{max-width:1280px}.junction-header{text-align:center;margin:1rem 0 1.8rem}.junction-header h1{color:#e5c100;font-size:clamp(2rem,5vw,3.2rem);margin:.25rem 0}.junction-header p{color:#c8c3b6}.eyebrow{font-size:.8rem;letter-spacing:.13em;text-transform:uppercase;margin-top:1rem}.junction{border:1px solid #62583c;border-radius:8px;overflow:hidden;background:#22251f}.modes{display:flex;flex-wrap:wrap;gap:.6rem;padding:1rem;background:#171a16}button,select,input{font:inherit}button,select{color:#eee4c9;background:#303329;border:1px solid #797357;border-radius:5px;padding:.6rem .8rem;min-height:44px}button{cursor:pointer}button:hover,button[aria-pressed=true]{border-color:#ebd078;color:#ffe082}button[aria-pressed=true]{background:#41432e}button:disabled{opacity:.45;cursor:default}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #ffe082;outline-offset:3px}.intro{padding:1rem 1.3rem}.intro h2,.signpost h2{font-size:1.3rem;color:#ecd077;margin:0 0 .4rem;border:0;padding:0}.intro p{color:#ccc6b7;max-width:800px}.controls{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;padding:.2rem 1.3rem 1rem}.controls label{display:inline-block;margin-right:.4rem}#fib-controls,#triangle-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}#diagonal{accent-color:#e5c100;min-height:44px;max-width:180px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;border-top:1px solid #62583c}.workspace>div{min-width:0}.triangle-scroll{overflow:auto;padding:1rem .5rem;background:#1c221b}#pascal-triangle{display:block;width:100%;min-width:640px}#pascal-triangle.pattern{min-width:0}#pascal-triangle text{fill:#e9e4ce;font-family:Georgia,serif;font-size:15px;text-anchor:middle;pointer-events:none}#pascal-triangle .cell{cursor:pointer;outline:none}#pascal-triangle .cell rect{fill:#30392b;stroke:#647057;stroke-width:1.5}#pascal-triangle .cell:hover rect,#pascal-triangle .cell:focus rect{stroke:#fff0b6;stroke-width:3}#pascal-triangle .cell.selected rect{stroke:#fff0b6;stroke-width:3;fill:#645a2c}#pascal-triangle .cell.parent rect{stroke:#83c4df;stroke-width:3;fill:#2d5261}#pascal-triangle .cell.sequence rect{stroke:#e5c100;stroke-width:2;fill:#645a2c}#pascal-triangle .cell.fib rect{stroke:#9ddad6;stroke-width:3;fill:#315957}#pascal-triangle .row-label{fill:#99a08e;font-size:12px}#pascal-triangle .odd rect{fill:#e2c366;stroke:#e2c366}#pascal-triangle .even rect{fill:none;stroke:#606953}.hint{padding:.6rem 1rem;color:#bfc1ae;font-size:.82rem}.discovery-panel{border-left:1px solid #62583c;padding:1.1rem}.discovery-panel h3{color:#eed27e;margin:0 0 .65rem;font-size:1.2rem}.discovery-panel p{color:#e0d9c8;overflow-wrap:anywhere}.discovery-panel .hint{padding:0;margin-top:.8rem;color:#bfc1ae}#dots{width:100%;margin:.7rem 0}#dots circle{fill:#d9c36a}#dots .new-row{fill:#86ccd6;stroke:#c5f1f6;stroke-width:1.5}.odd-key{color:#e2c366;margin-right:1rem}.even-key{color:#b7c3b0}.signpost{display:flex;gap:1rem;align-items:center;border:1px dashed #8f7b43;padding:1.2rem;margin-top:1.5rem;border-radius:6px;background:#25251f}.signpost>span{font-size:2rem;color:#c9b464}.signpost p{color:#bdb7a9;font-size:.92rem}[hidden]{display:none!important}@media(max-width:900px){.workspace{grid-template-columns:1fr}.discovery-panel{border-left:0;border-top:1px solid #62583c}.modes button{flex:1 1 40%;font-size:.88rem}.controls{gap:.5rem}#dots{max-width:330px;display:block;margin:.7rem auto}body{padding-left:.8rem;padding-right:.8rem}}@media print{.controls,.modes{display:none}.workspace{display:block}#pascal-triangle{min-width:0}}

/* Visitor-built discovery states: neither parity nor missing answers are prefilled. */
.learning-controls{padding:1rem 1.3rem;border-top:1px solid #62583c;display:flex;flex-wrap:wrap;align-items:center;gap:.7rem}.learning-controls label{display:block;color:#eee4c9}.learning-controls input{display:block;background:#171a16;color:#fff1cc;border:1px solid #a99b70;border-radius:4px;padding:.6rem;max-width:180px;min-height:44px}.learning-controls p{flex-basis:100%;color:#ded5bd;margin:.2rem 0}#odd-controls{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}#pascal-triangle .missing rect{stroke:#e8d187;stroke-dasharray:5 3}#pascal-triangle .uncoloured rect{fill:#20271e;stroke:#8c977f;stroke-dasharray:3 2}#pascal-triangle .user-coloured rect{fill:#e2c366;stroke:#fff2c3;stroke-width:2}#pascal-triangle .user-coloured text{fill:#201e16}#pascal-triangle .error-mark{display:none;fill:#fff!important;font-weight:bold}#pascal-triangle .incorrect .error-mark{display:block}#pascal-triangle .incorrect rect{stroke:#fff;stroke-width:3}#pascal-triangle .user-coloured.incorrect .error-mark{fill:#201e16!important}

/* Pascal Junction artwork frames the readable activity panels. */
html{min-height:100%;background:#dfedf6 url('pascal-junction-background.png') center top/cover no-repeat fixed}body{background:transparent;max-width:1280px;min-height:100vh;padding-bottom:2rem}.junction-header{background:rgba(248,252,255,.94);border:1px solid #7199b5;border-radius:8px;padding:1.25rem}.junction-header h1{color:#174569}.junction-header p,.junction-header a{color:#244e69}.junction,.signpost{box-shadow:0 8px 28px rgba(20,50,75,.2)}.site-nav,footer{background:rgba(25,39,49,.96);padding:1rem;border-radius:6px}@media(max-width:600px){html{background-attachment:scroll}.junction-header{padding:1rem}.junction-header p{font-size:.95rem}}@media print{html{background:white}.junction-header{background:white}}
