/* Shared crystal palette and Numberland-style three-panel workspace. */
body[data-pattern-place]{max-width:none;margin:0;background:#dceaf2;color:#203e55;font:18px/1.55 Georgia,serif}
html:has(body[data-pattern-place]){background:#dceaf2}
body[data-pattern-place] main.ice-workspace{display:grid;grid-template-columns:270px minmax(0,1fr) 350px;gap:1.1rem;align-items:stretch;max-width:none;margin:0;padding:1.3rem 1rem 2rem;min-width:0}
.ice-sidebar{min-width:0;padding:1rem;background:linear-gradient(145deg,#f6fcff,#e9f3fa);border:1px solid #92b4cb;border-radius:12px;box-shadow:0 5px 18px #365b7212}
.ice-sidebar h1{font-size:2.3rem;color:#254f70;line-height:1.1;margin:.4rem 0 1rem}
.ice-sidebar h2,.ice-sidebar h3{color:#254f70;font-size:1.25rem}
.ice-sidebar p{color:#28475e;font-size:1rem}
body[data-pattern-place] .junction-header{background:none;border:0;border-radius:0;padding:0;margin:0;text-align:left}
body[data-pattern-place] .junction-header h1{color:#254f70;font-size:2.3rem}
.ice-destinations{display:flex;flex-direction:column;gap:.5rem;margin:1.2rem 0}
.ice-destinations a{padding:.55rem .7rem;background:#f8fdff;color:#285a7e;border:1px solid #92b4cb;border-radius:6px;text-decoration:none;font:600 .95rem/1.4 system-ui,sans-serif}
.ice-destinations a[aria-current=page]{background:#356d94;color:#fff;border-color:#356d94}
body[data-pattern-place] a{color:#285a7e}
body[data-pattern-place] .site-nav,body[data-pattern-place] footer{background:#203e55;color:#ecf7ff}
body[data-pattern-place] .site-nav a{color:#ecf7ff}
.ice-map-centre{min-width:0;margin:0}
.ice-map-centre h2{margin:.3rem 0 .7rem}
body[data-pattern-place] .map-scroll{border-color:#92b4cb}
body[data-pattern-place] .map-marker{color:#254f70!important;background:#f5fcfff0;border-color:#7aa5c2}
body[data-pattern-place] .cards{display:flex;flex-direction:column}
body[data-pattern-place] .cards a{border:1px solid #92b4cb;background:#f8fdff;color:#285a7e}
body[data-pattern-place] .ice-junction-centre{min-width:0;position:relative;min-height:780px;background:#dceaf2 url('/patternlands/pascal-junction/pascal-junction-background.png') center/cover no-repeat;border:1px solid #92b4cb;border-radius:14px;display:flex;align-items:flex-end;padding:1rem}
body[data-pattern-place] .workspace{display:block;width:100%;border:0;min-width:0}
body[data-pattern-place] .triangle-scroll{padding:.5rem;background:#f0f9ffdb;border:1px solid #92b4cb;border-radius:10px}
body[data-pattern-place] #pascal-triangle{min-width:600px}
body[data-pattern-place] #pascal-triangle text{fill:#203e55}
body[data-pattern-place] #pascal-triangle .cell rect{fill:#e2f0fa;stroke:#7aa5c2}
body[data-pattern-place] #pascal-triangle .cell.selected rect,body[data-pattern-place] #pascal-triangle .cell.sequence rect{fill:#b7d9ef;stroke:#356d94}
body[data-pattern-place] #pascal-triangle .cell.parent rect{fill:#cfdfef;stroke:#557ba6}
body[data-pattern-place] #pascal-triangle .user-coloured rect,body[data-pattern-place] #pascal-triangle .odd rect{fill:#6da9cf;stroke:#356d94}
body[data-pattern-place] #pascal-triangle .even rect{fill:none;stroke:#7aa5c2}
body[data-pattern-place] .hint{color:#28475e;background:#f0f9ffdb;border-radius:6px}
.ice-instructions :is(.intro,.controls,.learning-controls,.modes,.discovery-panel){padding:.5rem 0;background:none;border:0}
body[data-pattern-place] .discovery-panel p,body[data-pattern-place] .learning-controls label,body[data-pattern-place] .learning-controls p{color:#28475e}
body[data-pattern-place] .modes{display:grid;grid-template-columns:1fr 1fr}
body[data-pattern-place] button{background:#b9dce9;color:#203e55;border:1px solid #6394b4;box-shadow:0 3px 0 #6394b4}
body[data-pattern-place] button:active{translate:0 2px;box-shadow:inset 0 2px 4px #365b7244}
body[data-pattern-place] .modes button{background:#f8fdff;box-shadow:none}
body[data-pattern-place] .modes button[aria-pressed=true]{background:#356d94;color:white}
body[data-pattern-place] input,body[data-pattern-place] select{background:#fff;color:#203e55;border:1px solid #7aa5c2;color-scheme:light}
body[data-pattern-place] .signpost{background:#edf6fc;border-color:#92b4cb;box-shadow:none;padding:.8rem}
body[data-pattern-place] .signpost p,body[data-pattern-place] .intro p{color:#28475e}
body[data-pattern-place] :is(a,button,input,select):focus-visible{outline:3px solid #6c55ac;outline-offset:3px}
@media(max-width:1200px){body[data-pattern-place] main.ice-workspace{grid-template-columns:240px minmax(0,1fr)}.ice-instructions{grid-column:2}.ice-introduction{grid-row:1 / span 2}}
@media(max-width:720px){body[data-pattern-place] main.ice-workspace{display:flex;flex-direction:column;padding:1rem}.ice-junction-centre{min-height:650px}.ice-sidebar{width:100%}}