:root{--paper:#f6f0e5;--card:#fffcf5;--ply:#e6d3b1;--ink:#2b211b;--muted:#5c4e43;--rule:#d5c5a8;--teal:#0b5f73;--teal-soft:#dcedf0;--clash:#a3174a;--clash-soft:#f9e1ea;--keep:#5b5a12;--keep-soft:#efedc9;
--display:"Lucida Sans Unicode","Lucida Sans","Lucida Grande",sans-serif;--text:Cambria,Georgia,serif}
[hidden]{display:none!important}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:18px/1.55 var(--text)}
h1,h2,h3{font-family:var(--display);line-height:1.2;margin:0 0 .5em;font-weight:400;letter-spacing:-.01em}
h1{font-size:clamp(1.9rem,3vw,2.7rem)}
h2{font-size:clamp(1.35rem,2.1vw,1.85rem)}
h3{font-size:1.1rem}
p{margin:0 0 .8em}
a{color:var(--teal)}
.js-only{display:none}
.js .js-only{display:grid}

/* header: lift button panel */
.lobby{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"lock nav ask";align-items:center;gap:12px 32px;padding:10px 28px;background:var(--card);border-bottom:8px solid var(--ply)}
.lobby .caqa-lockup{grid-area:lock}
.word{font:400 1.18rem/1 var(--display)}
.panel{grid-area:nav;justify-self:center;display:flex;gap:8px}
.panel a{display:flex;align-items:center;gap:9px;min-height:48px;padding:4px 16px 4px 5px;border:1px solid var(--rule);border-radius:99px;color:var(--ink);text-decoration:none;font:.95rem var(--display);background:var(--paper)}
.lift{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--card);border:3px double var(--muted);font:700 .95rem var(--text)}
.panel a[aria-current=page]{background:var(--ink);color:#fff;border-color:var(--ink)}
.panel a[aria-current=page] .lift{background:#ffd98a;border-color:#a66c00;color:var(--ink)}
.ask{grid-area:ask;display:inline-flex;align-items:center;min-height:46px;padding:0 18px;border:2px solid var(--ink);border-radius:4px;color:var(--ink);font:.95rem var(--display);text-decoration:none;box-shadow:4px 4px 0 var(--ply)}

.tag{display:inline-block;font:.74rem/1.4 var(--display);padding:3px 8px;border:1px solid var(--ink);background:var(--card)}
.tags{display:flex;flex-wrap:wrap;gap:6px}

/* atrium: the exploded stack with annotations in its corners */
.atrium{padding:14px 20px 28px;overflow:hidden}
.atrium-in{max-width:1400px;margin:0 auto;display:grid;grid-template-columns:350px minmax(0,1fr) 370px;grid-template-areas:"title draw record" "list draw record";grid-template-rows:auto 1fr;gap:12px 14px;align-items:start}
.titleblock{grid-area:title;padding-top:8px}
.titleblock h1{font-size:clamp(1.8rem,2.5vw,2.35rem)}
.drawing{grid-area:draw;align-self:start}
.flists{grid-area:list}
.record{grid-area:record;background:var(--card);border:1px solid var(--ink);padding:16px 18px 18px;box-shadow:8px 8px 0 var(--ply);position:relative}
.record::before{content:"";position:absolute;left:50%;top:-9px;width:16px;height:16px;border-radius:50%;background:var(--paper);border:2px solid var(--ink)}
.record h2{font-size:1.35rem;margin-bottom:.35em}
.rec-no{font:700 .86rem var(--text);color:var(--teal);margin:4px 0 4px}
.rec-facts{display:grid;grid-template-columns:76px 1fr;gap:2px 8px;margin:0 0 10px;font-size:.96rem;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:8px 0}
.rec-facts dt{color:var(--muted);font-style:italic}.rec-facts dd{margin:0}
.why{font-size:1rem;margin-bottom:10px}
.desk-set{grid-template-columns:1fr 1fr;gap:8px}
.js .desk-set{display:grid}
.desk-btn,.wave-btn{font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--muted);border-radius:4px;min-height:52px;padding:5px 8px;cursor:pointer;line-height:1.2;text-align:left}
.desk-btn b,.wave-btn b{display:block;font:700 .98rem var(--display)}
.desk-btn span,.wave-btn span{font-size:.86rem;color:var(--muted)}
.desk-btn[aria-pressed=true],.wave-btn[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.desk-btn[aria-pressed=true] span,.wave-btn[aria-pressed=true] span{color:#f0e6d6}
.result{margin-top:12px;padding:10px 12px;border:2px solid var(--teal);background:var(--teal-soft);font-size:1rem}
.result p{margin:0}
.result.stop{border:3px double var(--clash);background:var(--clash-soft)}
.result.hold{border:2px dashed var(--keep);background:var(--keep-soft)}
.wave-set{grid-template-columns:repeat(3,1fr);gap:6px;margin:6px 0 12px}
.js .wave-set{display:grid}
.legend{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;font-size:.92rem}
.legend li{display:flex;align-items:center;gap:8px}
.k{width:26px;height:15px;border:1px solid var(--ink);flex:none}
.k-keep{background:repeating-linear-gradient(45deg,var(--keep) 0 3px,var(--keep-soft) 3px 6px)}
.k-taken{background:#b98f58}
.k-move{height:0;border:0;border-top:4px dashed var(--teal)}
.k-no{border:3px double var(--clash);background:var(--clash-soft)}
.flists h2{font-size:1.05rem;margin:14px 0 6px;border-top:2px solid var(--ink);padding-top:10px}
.flists dl{margin:0;font-size:.95rem}
.flists dt{font:700 .85rem var(--display);margin-top:6px}
.flists dd{margin:0}

.stack{display:block;width:100%;height:auto;max-height:760px}
.stack .plate{fill:#efe0c2;stroke:#2b211b;stroke-width:1.5}
.stack .edge-l{fill:#b79a6b;stroke:#2b211b;stroke-width:1}
.stack .edge-r{fill:#d2b788;stroke:#2b211b;stroke-width:1}
.stack .desk{fill:#fffcf5;stroke:#6e5b47;stroke-width:1}
.stack .desk.taken{fill:#b98f58}
.stack .desk.source{fill:#fffcf5;stroke:#0b5f73;stroke-width:3;stroke-dasharray:5 3}
.stack .desk.chosen{fill:#0b5f73;stroke:#0b5f73}
.stack .bay{stroke:#5b5a12;stroke-width:2;opacity:.93}
.stack .shaft line{stroke:#9a8567;stroke-width:1.5;stroke-dasharray:3 6}
.stack text{font-family:var(--display);fill:#2b211b}
.stack .flabel{font-size:18px}
.stack .dcode{font-size:12.5px;paint-order:stroke;stroke:#fffcf5;stroke-width:4px;stroke-linejoin:round}
.stack .tg rect{fill:#fffcf5;stroke:#2b211b}
.stack .tg text{font-size:12.5px}
.stack .tg.mvt rect{fill:#0b5f73;stroke:#fff}
.stack .tg.mvt text{fill:#fff}
.stack .baytag rect{fill:#fffcf5;stroke:#5b5a12;stroke-width:1.5}
.stack .baytag text{font-size:13.5px}
.stack .flow{stroke-width:4;stroke-linecap:round;stroke-dasharray:10 8}
.stack .mv{stroke:#0b5f73}
.stack .no{stroke:#a3174a;stroke-dasharray:3 8}
.stack .cross circle{fill:#fffcf5;stroke:#a3174a;stroke-width:3}
.stack .cross path{stroke:#a3174a;stroke-width:3.500;fill:none}
@media (prefers-reduced-motion:no-preference){.stack .mv{animation:march 1.4s linear 6}}
@keyframes march{to{stroke-dashoffset:-36}}

/* sections */
.sheet{padding:56px 24px;border-top:1px solid var(--rule)}
.sheet-in{max-width:1180px;margin:0 auto}
.two{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start}
.intro{max-width:70ch;font-size:1.14rem}
.pair{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.pair li{padding:16px 20px;background:var(--card)}
.pair .good{border:2px solid var(--teal)}
.pair .bad{border:4px double var(--clash)}
.pair p{margin:0}
.stages{list-style:none;padding:0;margin:26px 0 0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;align-items:end}
.stages li{background:var(--card);border:1px solid var(--ink);border-left-width:0;padding:16px}
.stages li:first-child{border-left-width:1px}
.stages li:nth-child(1){min-height:170px}.stages li:nth-child(2){min-height:192px}.stages li:nth-child(3){min-height:214px}.stages li:nth-child(4){min-height:236px;background:var(--ply)}
.stages span{font:700 1.6rem var(--text);color:var(--teal);display:block;margin-bottom:6px}
.stages li:nth-child(4) span{color:var(--ink)}
.doors{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.doors a{display:block;height:100%;padding:18px 20px 22px;background:var(--card);border:1px solid var(--ink);border-top:34px solid var(--ply);color:var(--ink);text-decoration:none}
.doors b{display:block;font:400 1.4rem var(--display);color:var(--teal);margin-bottom:6px}

.page-top{padding:46px max(24px,calc(50% - 590px)) 36px;background:var(--ply)}
.page-top h1{max-width:24ch}
.page-top p{max-width:66ch}
.directory{list-style:none;padding:0;margin:0;border:2px solid var(--ink);background:var(--card)}
.directory li{display:grid;grid-template-columns:76px 1fr 300px;gap:18px;align-items:center;border-bottom:1px solid var(--rule);padding:14px 18px 14px 0}
.directory li:last-child{border-bottom:0}
.directory h3{margin:0 0 4px}
.directory p{margin:0}
.lvl{justify-self:center;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:3px double var(--ink);font-weight:700}
.ex{font-size:.96rem;border-left:3px solid var(--teal);padding-left:12px}
.ex span{display:block;font:.72rem var(--display);color:var(--muted)}
.alt{background:var(--card)}
.alt h2{max-width:28ch}
.rule-label{font:700 .95rem var(--text);color:var(--clash);margin-bottom:6px}
.table-box{position:relative}
.grid{width:100%;border-collapse:collapse;border:2px solid var(--ink);table-layout:fixed}
.grid th,.grid td{border:1px solid var(--rule);padding:12px 10px;text-align:left;overflow-wrap:break-word}
.grid thead th{background:var(--ink);color:#fff;font:400 .95rem var(--display)}
.grid td.held{background:#ecdab8}
.grid td.free{background:var(--paper);color:var(--muted);font-style:italic}
.refused-line{display:flex;gap:10px;margin-top:14px;padding:12px 14px;border:4px double var(--clash);background:var(--clash-soft)}
.roles dt{font:400 1.12rem var(--display);padding-top:10px;border-top:2px solid var(--ink)}
.roles dd{margin:4px 0 18px}
.note{font-style:italic;color:var(--muted)}
.plain{padding:0;margin:0;list-style:none}
.plain li{padding:10px 0;border-bottom:1px solid var(--rule)}
.plain.num{list-style:decimal;padding-left:1.4em}

.beats{list-style:none;padding:0;margin:0 0 20px}
.beat{display:grid;grid-template-columns:1.25fr 1fr;gap:36px;padding:28px 0;border-bottom:2px solid var(--ink)}
.beat:first-child{padding-top:0}
.when{font:700 .95rem var(--text);color:var(--teal);margin:0 0 4px}
.outcome{padding:10px 14px;border:2px solid var(--teal);background:var(--teal-soft)}
.beat.stop .outcome{border:4px double var(--clash);background:var(--clash-soft)}
.beat.hold .outcome{border:2px dashed var(--keep);background:var(--keep-soft)}
.beat figure{margin:0;align-self:center}
.beat figcaption{font:.76rem var(--display);color:var(--muted);margin-bottom:8px}
.strip{list-style:none;padding:12px;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:10px;background:var(--ply)}
.strip li{min-height:82px;padding:10px;background:var(--card);border:1px solid var(--muted)}
.strip b{display:block;font:700 .95rem var(--display)}
.strip .held{background:#fffcf5;border:2px solid var(--ink);box-shadow:inset 0 8px 0 #b98f58}
.strip .free{border-style:dashed}
.strip .keep{background:var(--keep-soft);border:2px solid var(--keep);border-top-width:8px}
.strip .clash{background:var(--clash-soft);border:4px double var(--clash)}
.btn{display:inline-flex;align-items:center;min-height:48px;padding:8px 22px;background:var(--teal);color:#fff;border:2px solid var(--teal);border-radius:4px;font:.98rem var(--display);text-decoration:none}
.faqs{max-width:880px}
details{background:var(--card);border:1px solid var(--rule);border-left:8px solid var(--ply);margin-bottom:8px}
summary{cursor:pointer;min-height:50px;padding:13px 16px;font:400 1rem var(--display)}
details p{padding:0 16px 4px}
.enquire{background:var(--ink);color:#fff}
.enquire p{max-width:66ch}
.enquire .btn{background:#ffd98a;border-color:#ffd98a;color:var(--ink)}
.plinth{padding:28px;background:var(--card);border-top:14px solid var(--ply);display:grid;gap:10px}
.plinth .caqa-lockup{justify-self:start}
.plinth ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 22px}
.plinth li a{display:inline-flex;align-items:center;min-height:44px}
.plinth p{margin:0;color:var(--muted)}

@media (max-width:1180px){
.atrium-in{grid-template-columns:minmax(0,1fr) 360px;grid-template-areas:"title record" "draw record" "draw list"}
}
@media (max-width:900px){
.lobby{grid-template-columns:1fr auto;grid-template-areas:"lock ask" "nav nav";padding:8px 12px;gap:8px}
.lobby .caqa-lockup{gap:8px}
.lobby .caqa-lockup img{height:30px}
.word{font-size:1rem}
.ask{padding:0 10px;font-size:.78rem;min-height:44px;max-width:150px;line-height:1.2;text-align:center;box-shadow:3px 3px 0 var(--ply)}
.panel{justify-self:stretch;display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.panel a{flex-direction:column;gap:2px;padding:5px 2px;border-radius:10px;font-size:.76rem}
.lift{width:28px;height:28px;font-size:.82rem}
.atrium{padding:12px 12px 24px}
.atrium-in{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "record" "list" "draw";gap:16px}
.titleblock h1{font-size:1.6rem}
.titleblock{padding:0}
.record{margin-right:6px}
.drawing{border-top:2px solid var(--ink);padding-top:8px}
.stack{width:100%}
.stack .flabel{font-size:24px}
.stack .dcode{font-size:17px}
.stack .tg text{font-size:15px}
.two,.doors,.beat{grid-template-columns:1fr}
.two{gap:28px}
.beat{gap:14px}
.stages{grid-template-columns:1fr}
.stages li{min-height:0!important;border-left-width:1px;border-bottom-width:0}
.stages li:last-child{border-bottom-width:1px}
.directory li{grid-template-columns:62px 1fr;gap:6px 10px;padding-right:12px}
.directory .ex{grid-column:2}
.grid{font-size:.86rem}
.grid th,.grid td{padding:8px 5px}
.grid thead th{font-size:.76rem}
.sheet{padding:38px 16px}
.page-top{padding:28px 16px 22px}
.plinth{padding:22px 16px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.stack .mv{animation:none}}
.stack .desk.inbay{fill:#fffcf5;stroke:#5b5a12;stroke-width:2;fill-opacity:.82}
.stack .cross .pz{display:none}
.stack .held .cross .xx{display:none}
.stack .held .cross .pz{display:inline}
.stack .held .cross circle,.stack .held .cross path{stroke:#5b5a12}
.stack .held .no{stroke:#5b5a12;stroke-dasharray:12 6}
