:root{--paper:#f5f3f9;--sheet:#ffffff;--ink:#221a33;--muted:#524a66;--plum:#4c2468;--line:#cdc6dc;--mark:#f6c453;--markink:#2b1d00;--pass:#0d5f50;--passbg:#e2f2ee;--held:#962c18;--heldbg:#fbe9e4;--clue:#e4dff0;
--disp:Garamond,"EB Garamond",Georgia,serif;--text:Tahoma,Geneva,"DejaVu Sans",sans-serif}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--text);font-size:15.5px;line-height:1.6;font-variant-numeric:lining-nums tabular-nums}
a{color:var(--plum)}
h1,h2,h3{font-family:var(--disp);line-height:1.12;margin:0 0 .5em;font-weight:700}
h1{font-size:clamp(30px,3.4vw,50px)}
h2{font-size:clamp(23px,2.4vw,32px)}
h3{font-size:21px}
.code{font-family:var(--text);font-size:.8em;font-weight:700;white-space:nowrap}

/* header: nav drawn as a four square word entry with clue numbers */
.top{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;padding:14px 40px;background:var(--sheet);border-bottom:4px double var(--ink)}
.word{font-family:var(--disp);font-size:24px;font-weight:700}
.entry ol{list-style:none;margin:0 auto;padding:0;display:flex;width:max-content;border:2px solid var(--ink)}
.entry li+li{border-left:2px solid var(--ink)}
.entry a{display:flex;align-items:flex-end;justify-content:center;position:relative;min-width:118px;height:52px;padding:0 14px 7px;color:var(--ink);text-decoration:none;background:var(--sheet)}
.entry a b{position:absolute;left:5px;top:2px;font-size:11px;line-height:1.3}
.entry a:hover{background:var(--clue)}
.entry a[aria-current=page]{background:var(--mark);color:var(--markink);font-weight:700}
.ask{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;font-weight:700;border-bottom:3px solid var(--plum);text-decoration:none}

main{display:block}
main>section,main>ol,main>.next{max-width:1240px;margin-left:auto;margin-right:auto;padding-left:32px;padding-right:32px}
main>section{padding-top:56px;padding-bottom:8px}
.status{display:inline-block;margin:0 0 8px;font-size:13px;font-weight:700;color:var(--plum);border:1px solid var(--plum);padding:1px 10px}

/* opening: headline as a proof masthead over a left to right solution tree */
main>section.proof{max-width:1400px;padding-top:16px;padding-bottom:0}
.mast{text-align:center}
.mast h1{margin:0}
.mast .sub{margin:4px 0 0;color:var(--muted)}
.mast .status{margin-bottom:4px}
.mini{display:none}
.tree{display:grid;grid-template-columns:minmax(190px,1fr) 304px 88px 172px minmax(220px,1.1fr);gap:0 18px;align-items:center;margin-top:14px;padding:18px 22px;background:var(--sheet);border:1px solid var(--line);box-shadow:6px 6px 0 var(--clue)}
.tree h2{font-size:20px;margin-bottom:8px}
.fork{height:100%;min-height:360px;margin:0 -18px;width:calc(100% + 36px);justify-self:start}
.fork .line{fill:none;stroke:var(--ink);stroke-width:3;vector-effect:non-scaling-stroke}
.fork g.off .line{stroke:#8a8399;stroke-width:2;stroke-dasharray:4 6}
.fork circle{fill:var(--ink)}
.slip{align-self:stretch;border-right:1px dashed var(--line);padding-right:16px;font-size:14px}
.slip h3{font-size:18px;margin-top:18px}
.cluelist{font-weight:700}
.howto,.nojs{color:var(--muted);font-size:13.5px}
.js .nojs{display:none}
.root{text-align:center}

.grid{display:grid;grid-template-columns:repeat(4,1fr);border:3px solid var(--ink);background:var(--sheet);margin:0 auto}
.grid .cell{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;border:0;border-right:1px solid #8d85a1;border-bottom:1px solid #8d85a1;background:transparent;font-family:var(--disp);color:var(--ink);padding:0;margin:0}
.grid .cell:nth-child(4n){border-right:0}
.grid .cell:nth-child(n+13){border-bottom:0}
.grid .cell:nth-child(4n+2){border-right:3px solid var(--ink)}
.grid .cell:nth-child(n+5):nth-child(-n+8){border-bottom:3px solid var(--ink)}
.grid .cell.given{background:var(--clue);font-weight:700}
.grid .cell:not(.given) .v{color:#46395f}
.grid .cell.differs{background:var(--mark)}
.grid .cell.differs .v{color:var(--markink);font-weight:700}
.grid .cell.differs::after{content:"";position:absolute;top:0;right:0;border-style:solid;border-width:0 13px 13px 0;border-color:transparent var(--held) transparent transparent}
.editor{width:296px}
.editor .cell{font-size:40px}
button.cell{cursor:pointer}
button.cell:hover{box-shadow:inset 0 0 0 3px var(--plum)}
.grid button.cell:focus-visible{outline:3px solid #1a5fd0;outline-offset:-4px}
.small{width:164px}
.small .cell{font-size:22px}
.leaves{display:grid;gap:16px;justify-items:start}
.leaf{text-align:center;min-height:196px;width:164px}
.leaf h2{margin-bottom:4px}
.leaf .closed{width:164px;height:164px;margin:0 auto;display:flex;align-items:center;justify-content:center;border:2px dashed #8a8399;padding:12px;font-size:13.5px;color:var(--muted);line-height:1.45}

.presets,.keys{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:12px}
button{font-family:var(--text);font-size:14px}
.presets button,.keys button{min-height:44px;padding:0 10px;border:1px solid var(--ink);background:var(--sheet);color:var(--ink);cursor:pointer}
.presets button[aria-pressed=true],.keys button[aria-pressed=true]{background:var(--ink);color:#fff}
.presets button{font-size:13px;padding:0 9px}
.keys{justify-content:flex-start;margin:0 0 10px}

.verdict{align-self:stretch;display:flex;flex-direction:column;justify-content:center;border:2px solid var(--held);background:var(--heldbg);padding:14px 16px}
.verdict h2{font-size:18px}
.verdict .big{font-family:var(--disp);font-size:34px;font-weight:700;line-height:1.05;margin:0;color:var(--held)}
.verdict p{margin:6px 0}
.verdict .gate{display:inline-block;font-weight:700;border:2px solid var(--held);color:var(--held);padding:2px 10px;background:var(--sheet)}
.verdict[data-state=ready]{border-color:var(--pass);background:var(--passbg)}
.verdict[data-state=ready] .big,.verdict[data-state=ready] .gate{color:var(--pass);border-color:var(--pass)}
.keyline{font-size:14px;border-top:1px solid var(--line);padding-top:8px}
.send{min-height:44px;border:0;background:var(--plum);color:#fff;font-weight:700;cursor:pointer;padding:6px 12px}
.sendmsg{font-size:14px;font-weight:700}
.sendmsg:empty{display:none}
.legend{font-size:13px;color:var(--muted);margin:14px 0 0;text-align:center}
.swatch{display:inline-block;width:14px;height:14px;vertical-align:-2px;background:var(--mark);border:1px solid var(--ink);box-shadow:inset -5px 5px 0 -2px var(--held)}
.swatch.given{background:var(--clue);box-shadow:none;margin-left:12px}

table{width:100%;border-collapse:collapse;background:var(--sheet)}
th,td{text-align:left;vertical-align:top;padding:12px 14px;border-bottom:1px solid var(--line)}
thead th{border-bottom:3px solid var(--ink);font-size:13.5px}
.three .num{display:inline-block;min-width:2.2em;font-family:var(--disp);font-size:34px;line-height:1}
.lead{max-width:70ch}
.note{max-width:78ch;border-left:5px solid var(--mark);padding:4px 0 4px 14px;margin-top:20px}

.leaders{columns:2;column-gap:56px;margin:0}
.leaders div{break-inside:avoid;padding:10px 0;border-bottom:2px dotted #9d94b3}
.leaders dt{font-family:var(--disp);font-size:23px;font-weight:700}
.leaders dd{margin:0}

.lines{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.lines p{margin:0;padding-top:28px;border-top:2px solid var(--ink)}
.lines strong{display:block;font-family:var(--disp);font-size:22px}

main>section.routes{padding-bottom:56px}
.routes ul{list-style:none;padding:0;margin:0;border-top:2px solid var(--ink)}
.routes li{border-bottom:1px solid var(--line)}
.routes a{display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:center;min-height:56px;text-decoration:none;color:var(--ink);padding:8px 6px}
.routes a:hover{background:var(--clue)}
.routes b{font-family:var(--disp);font-size:21px;color:var(--plum)}

/* inner pages */
main>section.page-head{padding-top:40px;padding-bottom:0;text-align:center}
.nw{white-space:nowrap}
.page-head h1{max-width:820px;margin:6px auto 12px}
.page-head p:last-child{max-width:68ch;margin-left:auto;margin-right:auto}
.rule blockquote{margin:0 0 16px;padding:26px 30px;background:var(--ink);color:#fff;font-family:var(--disp);font-size:clamp(24px,3vw,38px);line-height:1.2}
.rule blockquote p{margin:0}
.two{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.two>div{background:var(--sheet);border:1px solid var(--line);border-top:5px solid var(--plum);padding:18px 22px}
.two ul{padding-left:18px;margin:0}
.ticks{list-style:square;padding-left:20px;max-width:80ch}
main>.next{padding-top:36px;padding-bottom:56px}
.next a,.go{display:inline-flex;align-items:center;min-height:48px;padding:8px 20px;background:var(--plum);color:#fff;text-decoration:none;font-weight:700}

main>ol.galley{list-style:none;counter-reset:s;margin-top:34px}
.galley li{counter-increment:s;display:grid;grid-template-columns:70px 1fr minmax(0,420px);gap:24px;align-items:start;padding:26px 0;border-top:2px solid var(--ink)}
.galley li::before{content:counter(s);display:flex;align-items:center;justify-content:center;width:56px;height:56px;border:2px solid var(--ink);background:var(--sheet);font-family:var(--disp);font-size:30px;font-weight:700}
.galley figure{margin:0;text-align:center}
.galley figcaption{font-size:13.5px;color:var(--muted);margin-top:8px}
.pair{display:flex;gap:16px;justify-content:center}
.tag{display:inline-block;font-weight:700;border:2px solid var(--ink);padding:4px 10px;background:var(--sheet)}
.held .tag{border-color:var(--held);color:var(--held);background:var(--heldbg)}
.pass .tag{border-color:var(--pass);color:var(--pass);background:var(--passbg)}
.diff caption{text-align:left;font-weight:700;padding-bottom:6px}
.diff th,.diff td{padding:7px 14px}

.agenda{max-width:76ch;padding:0;list-style-position:inside}
.agenda li{padding:12px 0;border-bottom:2px dotted #9d94b3}
details{background:var(--sheet);border:1px solid var(--line);margin-bottom:8px;max-width:900px}
summary{cursor:pointer;min-height:48px;padding:12px 16px;font-weight:700}
details p{margin:0;padding:0 16px 14px}
main>section.enquire{margin-top:48px;margin-bottom:56px;max-width:1176px;background:var(--sheet);border:2px solid var(--ink);padding-top:28px;padding-bottom:18px}

.foot{display:flex;flex-wrap:wrap;gap:24px;justify-content:space-between;padding:28px 40px;background:var(--sheet);border-top:4px double var(--ink);font-size:14px}
.foot p{max-width:56ch}
.foot ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:auto auto;gap:0 28px}
.foot ul a{display:inline-flex;align-items:center;min-height:44px}

@media (max-width:1240px){
.tree{grid-template-columns:304px 60px 172px minmax(210px,1fr)}
.slip{grid-column:1/-1;order:9;border-right:0;border-top:1px dashed var(--line);padding:12px 0 0;margin-top:14px}
}
@media (max-width:900px){
.top{grid-template-columns:1fr auto;gap:10px 12px;padding:10px 16px}
.entry{grid-column:1/-1;grid-row:2}
.entry ol{width:100%}
.entry li{flex:1}
.entry a{min-width:0;padding:0 3px 6px;font-size:13.5px}
.ask{grid-column:2;grid-row:1;font-size:13.5px}
.word{font-size:20px}
.caqa-lockup{gap:8px}
.caqa-lockup img{height:28px}
main>section,main>ol,main>.next{padding-left:16px;padding-right:16px}
main>section.proof{padding-top:12px}
.mast{text-align:left}
.mast .sub{font-size:14px;line-height:1.45}
.mini{display:block;margin:12px 0 0;padding:8px 12px;font-weight:700;border-left:6px solid var(--held);background:var(--heldbg)}
.mini[data-state=ready]{border-color:var(--pass);background:var(--passbg)}
.tree{display:flex;flex-direction:column;align-items:stretch;padding:14px 10px;margin-top:10px}
.root{order:1}
.leaves{order:2;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px;border-top:3px solid var(--ink);padding-top:12px}
.verdict{order:3;margin-top:16px}
.slip{order:4}
.fork{display:none}
.editor{width:min(280px,100%)}
.leaves{justify-items:center}
.leaf{min-width:0;width:auto}
.leaf .small,.leaf .closed{width:min(156px,100%)}
.leaf .closed{height:auto;aspect-ratio:1;font-size:12.5px}
.legend{text-align:left}
.leaders{columns:1}
.lines,.two{grid-template-columns:1fr}
.page-head{text-align:left!important}
.page-head h1,.page-head p{margin-left:0!important;margin-right:0!important}
.galley li{grid-template-columns:48px 1fr;gap:12px}
.galley li::before{width:44px;height:44px;font-size:24px}
.galley figure{grid-column:1/-1}
.pair .small{width:min(156px,44vw)}
.three table,.three tbody,.three tr,.three th,.three td,table.stack,table.stack tbody,table.stack tr,table.stack th,table.stack td{display:block;width:100%}
.three thead,table.stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.three table,table.stack{position:relative;background:transparent}
.three tr,table.stack tr{background:var(--sheet);border:1px solid var(--line);border-top:3px solid var(--ink);margin-bottom:12px}
.three td,table.stack td{border:0;padding:4px 14px 8px}
.three th[scope=row],table.stack th[scope=row]{border:0;padding-bottom:4px}
td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;color:var(--plum)}
main>section.enquire{margin-left:16px;margin-right:16px}
.foot{padding:24px 16px}
}
.forkart{display:block;margin:18px auto 0;max-width:100%;height:auto}
