/* CAQA CashFloat: two figures and one drawer seen from above. */
:root{
  --counter:#f1f3ee; --white:#ffffff; --ink:#1f2c31; --mute:#45555b; --steel:#d5dde0; --steel-deep:#8c9ba1;
  --teal:#0b625d; --teal-soft:#ddefec; --amber:#f2b233; --amber-soft:#fcefcd; --brick:#9d2f1b; --brick-soft:#fae3dd; --plum:#66356f; --plum-soft:#f0e5f2;
  --display:"Franklin Gothic Medium","Franklin Gothic","Arial Narrow",Arial,sans-serif; --text:Calibri,Carlito,"Segoe UI",sans-serif; --fig:Bahnschrift,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--counter);color:var(--ink);font:17.5px/1.5 var(--text)}
h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.15;margin:0 0 .5em}
h2{font-size:clamp(1.5rem,2.6vw,2.05rem)}
h3{font-size:1.25rem}
p{margin:0 0 .8em}
a{color:var(--teal)}
.wrap{max-width:1240px;margin:0 auto;padding:0 28px}

/* header: register keys */
.top{background:var(--white);border-bottom:2px solid var(--ink)}
.top-in{max-width:1240px;margin:0 auto;padding:10px 28px 12px;display:flex;align-items:center;gap:18px}
.pword{font:400 1.35rem var(--display)}
.top nav{order:2;margin-left:auto}
.keys{list-style:none;display:flex;gap:8px;margin:0;padding:0}
.keys a{display:flex;align-items:center;justify-content:center;min-width:96px;min-height:46px;padding:4px 14px;background:var(--counter);color:var(--ink);text-decoration:none;font:400 1rem var(--display);border:1px solid var(--steel-deep);border-bottom-width:6px;border-radius:8px}
.keys a:hover{background:var(--steel)}
.keys a[aria-current="page"]{background:var(--ink);color:#fff;border-color:var(--ink);border-bottom:2px solid var(--amber);transform:translateY(4px)}
.ask{order:3;display:inline-flex;align-items:center;min-height:46px;padding:6px 18px;background:var(--amber);color:var(--ink);font:400 1.02rem var(--display);text-decoration:none;border:1px solid #8a5f06;border-bottom-width:6px;border-radius:8px}
.ask:hover{background:#ffc44a}

.status{margin:0;font-size:.88rem;color:var(--mute)}
.status b{display:inline-block;margin-right:8px;padding:0 9px;border-radius:20px;border:2px solid var(--plum);color:var(--plum);font:400 .8rem/1.7 var(--display);text-transform:uppercase;letter-spacing:.07em}

/* opening: the worked result, then the drawer */
.reckon{padding:14px 0 28px}
.title-row{text-align:center;margin-bottom:12px}
.title-row h1{font-size:clamp(1.8rem,3vw,2.45rem);margin:0 0 4px}
.sum{display:grid;grid-template-columns:1fr 60px 1fr 60px 1fr;align-items:stretch}
.term{background:var(--white);border:2px solid var(--ink);border-radius:6px;padding:8px 10px;text-align:center;display:flex;flex-direction:column}
.t-label{font:400 1rem var(--display);text-transform:uppercase;letter-spacing:.05em}
.term strong{font:600 clamp(2.2rem,4.4vw,3.5rem)/1.1 var(--fig);font-variant-numeric:tabular-nums}
.t-how{font-size:.86rem;color:var(--mute)}
.op{align-self:center;text-align:center;font:600 1.6rem var(--fig);color:var(--mute)}
.var[data-tone="short"]{background:var(--brick-soft);border-color:var(--brick);border-style:dashed;border-width:3px}
.var[data-tone="over"]{background:var(--amber-soft);border-color:#8a5f06;border-style:double;border-width:6px}
.var[data-tone="zero"]{background:var(--teal-soft);border-color:var(--teal);border-width:4px}
.var[data-tone="bad"]{background:#fff;border-style:dotted;border-width:4px}
.plain-words{text-align:center;margin:9px auto 11px;max-width:92ch}

.drawer{background:linear-gradient(#e6ecee,#cbd5d9);border:3px solid var(--ink);border-radius:10px 10px 26px 26px;padding:6px 12px 14px;box-shadow:inset 0 0 0 5px #eef2f3}
.drawer-name{margin:2px 0 6px;text-align:center;font:400 .98rem var(--display)}
.notes{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.coins{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:10px}
.slot{background:var(--white);border:1px solid var(--steel-deep);border-radius:6px;box-shadow:inset 0 4px 8px #1f2c3122;display:grid;justify-items:center;gap:4px;padding:7px 6px 8px;min-width:0}
.slot label{font:600 1.25rem var(--fig)}
.stack{display:flex;flex-direction:column-reverse;justify-content:flex-start;gap:2px;height:64px;width:100%;max-width:150px}
.stack i{display:block;height:4px;border-radius:1px;background:#4f7f7a;border-left:12px solid #2f5955;flex:none}
.stack i[hidden]{display:none}
.coin{border-radius:6px 6px 40px 40px}
.coin .stack{height:30px;flex-direction:row;flex-wrap:wrap;align-content:flex-end;justify-content:center;max-width:110px}
.coin .stack i{width:15px;height:13px;border-radius:50%;border:2px solid #7a5a12;background:#e8c366}
.coin .stack i[hidden]{display:none}
.step{display:flex;align-items:stretch;gap:2px;max-width:100%}
.step button{width:44px;min-height:44px;flex:none;font:600 1.3rem var(--fig);background:var(--counter);border:1px solid var(--steel-deep);border-radius:5px;cursor:pointer;color:var(--ink)}
.step button:hover{background:var(--steel)}
.step input{width:54px;min-width:0;text-align:center;font:600 1.15rem var(--fig);border:2px solid var(--ink);border-radius:5px;color:var(--ink);background:#fff;-moz-appearance:textfield;appearance:textfield}
.step input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.coin .step button{width:38px}
.coin .step input{width:44px}
.sub{font:400 .95rem var(--fig);font-variant-numeric:tabular-nums}

/* how expected is built */
.build{background:var(--white);padding:52px 0;border-top:1px solid var(--steel-deep)}
.build-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:40px;align-items:start}
table.lines{width:100%;border-collapse:collapse}
.lines caption{text-align:left;font-size:.9rem;color:var(--mute);padding-bottom:10px}
.lines th,.lines td{padding:11px 8px;border-bottom:1px solid var(--steel);text-align:left;vertical-align:middle}
.lines thead td{border-bottom:2px solid var(--ink)}
.lines thead th{border-bottom:2px solid var(--ink);font-family:var(--display);font-weight:400}
.lines tbody th{font-weight:400}
.ref{display:inline-block;min-width:46px;font:600 .9rem var(--fig)}
.amt{font:600 1.1rem var(--fig);white-space:nowrap;font-variant-numeric:tabular-nums}
.amt.out{color:var(--brick)}
.amt.in{color:var(--teal)}
.barcell{width:210px}
.barcell svg{display:block;width:200px;height:14px}
.barcell .axis{stroke:#1f2c31;stroke-width:1.5}
.barcell .in{fill:#0b625d}
.barcell .out{fill:#fff;stroke:#9d2f1b;stroke-width:2}
.barcell .ghost{fill:none;stroke:#66356f;stroke-width:2;stroke-dasharray:4 3}
.excl{background:var(--plum-soft)}
.excl s{color:var(--mute);font-weight:400}
.chip{display:inline-block;margin-left:6px;padding:0 8px;border:1.5px dashed var(--plum);color:var(--plum);font:400 .82rem/1.7 var(--display);white-space:nowrap}
.lines tfoot th,.lines tfoot td{border-top:3px double var(--ink);border-bottom:0;font:400 1.2rem var(--display)}
.slipbox{background:var(--counter);border:1px solid var(--steel-deep);border-top:8px solid var(--plum);padding:20px 22px;display:flex;flex-direction:column;gap:10px}
.slipbox h2{margin:0}
.slipbox p{margin:0}
.slipbox label{font:400 1rem var(--display);margin-top:6px}
.slipbox input{min-height:46px;padding:8px 10px;border:2px solid var(--ink);border-radius:5px;font:inherit;width:100%}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:8px 20px;background:var(--teal);color:#fff;border:2px solid var(--teal);border-radius:7px;font:400 1.08rem var(--display);cursor:pointer;text-decoration:none;text-align:center}
.btn:hover{filter:brightness(.88)}
.btn.plum{background:var(--plum);border-color:var(--plum)}
.btn.ghost{background:transparent;color:var(--teal)}
.btn.amber{background:var(--amber);border-color:var(--amber);color:var(--ink)}
.btn.big{min-height:60px;font-size:1.2rem}
.result{padding:12px 14px;background:#fff;border:2px solid var(--steel-deep);border-radius:6px}
.result[data-tone="no"]{border-color:var(--plum);background:var(--plum-soft);border-width:3px}
.result[data-tone="hold"]{border-color:var(--brick);border-style:dashed;background:var(--brick-soft)}
.result[data-tone="ok"]{border-color:var(--teal);background:var(--teal-soft);border-width:3px}
.r-head{font:400 1.2rem var(--display);margin:0 0 4px!important}

.seal{padding:52px 0}
.shifts{display:grid;grid-template-columns:1fr 130px 1fr;align-items:stretch}
.shift{padding:22px 24px;background:var(--white)}
.shift.closed{background:repeating-linear-gradient(135deg,#f0e5f2 0 10px,#f8f2f9 10px 20px);border:2px dashed var(--plum);border-right:0}
.shift.open{border:2px solid var(--teal);border-left:0}
.wax{display:flex;align-items:center;justify-content:center;position:relative}
.wax::before{content:"";position:absolute;top:0;bottom:0;left:50%;border-left:6px solid var(--ink);margin-left:-3px}
.wax span{position:relative;width:112px;height:112px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;font:400 1.05rem/1.25 var(--display);border:5px double var(--amber)}
.who{background:var(--ink);color:#fff;padding:52px 0}
.who a{color:#fff}
.who-grid,.rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px}
.routes{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.routes a{display:grid;grid-template-columns:120px 1fr;gap:14px;align-items:center;min-height:64px;padding:10px 18px;border:1px solid #8c9ba1;border-bottom-width:5px;border-radius:9px;text-decoration:none}
.routes b{font:400 1.25rem var(--display);color:var(--amber)}
.routes a:hover{background:#2e4047}
.who a:focus-visible,.foot a:focus-visible{outline-color:var(--teal)}
.who a:focus-visible{outline-color:var(--amber)}

/* inner pages */
.pagehead{background:var(--white);padding:40px 0 28px;border-bottom:6px solid var(--steel);text-align:center}
.pagehead h1{font-size:clamp(2rem,4.4vw,3.2rem);margin:0 auto .3em;max-width:24ch}
.lead{max-width:64ch;margin:0 auto 14px;font-size:1.14rem}
.trays,.roles,.limits,.lanes,.flow,.outcomes,.enq{padding:48px 0}
.comps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0;padding:14px;background:var(--steel);border:3px solid var(--ink);border-radius:10px 10px 28px 28px}
.comps div{background:#fff;border-radius:6px;padding:16px;box-shadow:inset 0 4px 8px #1f2c3122}
.comps .wide{grid-column:span 2}
.comps dt{font:400 1.35rem var(--display)}
.comps dd{margin:6px 0 0}
.rule{background:var(--teal);color:#fff;padding:48px 0}
.rule-grid{grid-template-columns:200px 1fr}
.rule .big{font:400 clamp(1.6rem,3.4vw,2.5rem)/1.25 var(--display)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:18px}
.role{background:#fff;padding:22px;border-left:10px solid var(--teal)}
.role+.role{border-left:10px double var(--amber)}
.limits{background:var(--white)}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.limits .three>div{border-top:4px solid var(--ink);padding-top:12px}
.limits ul,.role ul{padding-left:20px;margin:0}
.tl{display:grid;grid-template-columns:1fr 1.5fr;background:#fff;border:2px solid var(--ink)}
.tl-col{padding:20px 24px}
.tl-col.before{border-right:10px double var(--ink);background:var(--plum-soft)}
.tl ol{list-style:none;margin:0;padding:0}
.tl li{padding:10px 0;border-top:1px solid var(--steel-deep);display:grid;grid-template-columns:62px 1fr;gap:8px}
.tl li b{font-family:var(--fig)}
.flow{background:#fff}
.moves{list-style:none;margin:0;padding:0;counter-reset:m}
.moves li{counter-increment:m;display:grid;grid-template-columns:64px 230px minmax(0,1fr);gap:18px;align-items:start;padding:18px 0;border-bottom:1px solid var(--steel)}
.moves li::before{content:counter(m);width:52px;height:46px;display:flex;align-items:center;justify-content:center;font:600 1.3rem var(--fig);border:1px solid var(--steel-deep);border-bottom-width:6px;border-radius:8px;background:var(--counter)}
.moves h3,.moves p{margin:0}
.outcomes .three{margin-bottom:22px}
.oc{padding:20px;background:#fff;border:3px solid var(--plum);border-radius:8px}
.oc.hold{border:3px dashed var(--brick)}
.oc.ok{border:3px solid var(--teal);background:var(--teal-soft)}
.enq{padding-top:32px}
.enq-card{display:flex;justify-content:space-between;align-items:center;gap:28px;background:var(--ink);color:#fff;border-radius:12px;padding:28px 32px;margin-bottom:44px}
.enq-card p{margin:0;max-width:56ch}
.enq-card h2{margin-bottom:8px}
.enq-card .btn{flex:none}
.enq-card a:focus-visible{outline-color:#fff}
.avail{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 44px}
.avail div{background:#fff;border:1px solid var(--steel-deep);border-bottom-width:6px;border-radius:9px;padding:16px 18px}
.avail dt{font:400 1.2rem var(--display)}
.avail dd{margin:6px 0 0}
.faq{columns:2;column-gap:20px}
.faq details{break-inside:avoid;background:#fff;border-left:6px solid var(--teal);margin-bottom:12px;padding:0 16px}
.faq summary{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font:400 1.12rem var(--display)}
.faq summary::after{content:"+";font:600 1.4rem var(--fig)}
.faq details[open] summary::after{content:"\2212"}

.foot{background:var(--white);border-top:2px solid var(--ink);padding:26px 0 30px;font-size:.93rem}
.foot ul{list-style:none;margin:8px 0;padding:0;display:flex;flex-wrap:wrap;gap:0 22px}
.foot li a{display:inline-flex;align-items:center;min-height:44px}
.foot p{margin:0;color:var(--mute);max-width:90ch}

@media (prefers-reduced-motion:no-preference){.stack i{transition:opacity .2s}}

@media (max-width:1000px){
  .build-grid,.who-grid,.rule-grid{grid-template-columns:minmax(0,1fr)}
  .notes{grid-template-columns:repeat(3,1fr)}
  .coins{grid-template-columns:repeat(3,1fr)}
  .comps{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:720px){
  .wrap{padding:0 16px}
  .top-in{flex-wrap:wrap;padding:8px 12px 12px;gap:8px}
  .top .caqa-lockup{gap:8px}
  .top .caqa-lockup img{height:28px;width:auto}
  .pword{font-size:1.1rem}
  .ask{order:1;margin-left:auto;padding:4px 10px;font-size:.92rem}
  .top nav{order:3;width:100%;margin:0}
  .keys{gap:6px}
  .keys li{flex:1}
  .keys a{min-width:0;padding:2px;font-size:.92rem}
  .title-row{text-align:left}
  .title-row h1{font-size:1.65rem}
  /* phone: the three figures stack, words, then movements and drawer */
  .sum{grid-template-columns:minmax(0,1fr);gap:6px}
  .op{display:none}
  .term{display:grid;grid-template-columns:1fr auto;align-items:center;text-align:left;padding:8px 12px}
  .term strong{font-size:1.85rem;grid-column:2;grid-row:1/span 2}
  .t-label{font-size:.95rem}
  .t-how{grid-column:1}
  .plain-words{text-align:left}
  .drawer{padding:6px 8px 14px}
  .notes,.coins{grid-template-columns:minmax(0,1fr);gap:6px}
  .coins{margin-top:6px}
  .slot,.coin{border-radius:6px;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;justify-items:start;padding:6px 8px;gap:2px 6px}
  .slot .stack{display:none}
  .slot .step{justify-self:center}
  .sub{justify-self:end;min-width:62px;text-align:right}
  .coin .step button{width:44px}
  .coin .step input{width:54px}
  .lines thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .lines,.lines caption,.lines tbody,.lines tfoot,.lines tr,.lines th,.lines td{display:block}
  .lines tr{padding:10px 8px;border-bottom:2px solid var(--steel)}
  .lines th,.lines td{border:0;padding:2px 0}
  .lines td[data-l]{display:flex;justify-content:space-between;gap:12px}
  .lines td[data-l]::before{content:attr(data-l);font:400 .9rem var(--text);color:var(--mute);white-space:normal}
  .lines .barcell,.lines tfoot td:not([data-l]),.lines tbody+tfoot td:empty{display:none}
  .lines tfoot th,.lines tfoot td{border:0}
  .shifts{grid-template-columns:minmax(0,1fr)}
  .shift.closed{border-right:2px dashed var(--plum)}
  .shift.open{border-left:2px solid var(--teal)}
  .wax{height:130px}
  .routes a{grid-template-columns:minmax(0,1fr);gap:0}
  .comps,.two,.three,.tl,.avail{grid-template-columns:minmax(0,1fr)}
  .comps .wide{grid-column:auto}
  .comps{padding:8px}
  .tl-col.before{border-right:0;border-bottom:10px double var(--ink)}
  .moves li{grid-template-columns:52px minmax(0,1fr);gap:6px 12px}
  .moves li::before{width:44px;grid-row:span 2}
  .moves p{grid-column:2}
  .enq-card{flex-direction:column;align-items:stretch;padding:20px}
  .faq{columns:1}
}
