/* walkthrough: the shell the Contract Builder and the letter builder share (walkthrough.js). The page is a .dr (it borrows the
   deal room's strip, variables and full-height column). Brian 2026-10-30, Typeform's calm: below the strip a thin white bar,
   then two halves split by a draggable divider: one question at a time on the left, the paper as a print preview on the right,
   white paper with dark ink in both colour schemes. One accent per page (plum unless the page says otherwise); --gtext and
   --gacc are its text and line shades, lighter in dark mode. */
.wt{--g:#6b21a8;--g2:#7e22ce;--gsoft:#faf5ff;--gink:#581c87;--gtext:#6b21a8;--gacc:#6b21a8;--amber:#8A4B00;--wt-page:720px;color-scheme:light dark}
@media (prefers-color-scheme: dark){.wt{--gtext:#d8b4fe;--gacc:#c084fc;--gsoft:#2a1b3d;--amber:#F0C98A}}
.wt button:focus-visible,.wt summary:focus-visible,.wt select:focus-visible,.wt-split:focus-visible{outline:2px solid var(--gacc);outline-offset:2px}

/* strip: the deal room's rows, plus the two links at either end */
.wt .wt-nav{flex:0 0 auto;display:inline-flex;align-items:center;min-height:36px;padding:0 2px;font:600 .82rem/1 var(--sans);color:var(--muted);white-space:nowrap}
.wt .wt-nav:hover{color:var(--gtext)}
.wt .ds-k{flex-wrap:nowrap;gap:4px 14px}

/* bar: one quiet line */
.wt-bar{flex:0 0 auto;display:flex;align-items:stretch;gap:0 18px;min-height:48px;padding:0 20px;background:var(--surface);border-bottom:1px solid var(--card-line);white-space:nowrap;overflow-x:auto;scrollbar-width:none}
.wt-bar > *{align-self:center}
.wt-bt{font:600 15px/1 var(--sans);color:var(--gtext)}
.wt-for{display:inline-flex;align-items:center;gap:4px;font:14px/1 var(--sans);color:var(--sub)}
.wt-selw{position:relative;display:inline-flex;align-items:center}
.wt-selw select{appearance:none;-webkit-appearance:none;min-height:36px;margin:0;padding:0 24px 0 4px;font:500 15px/1 var(--sans);color:var(--ink);background:transparent;border:0;border-radius:6px;cursor:pointer}
.wt-selw select:hover{color:var(--gtext)}
.wt-selw select option{color:var(--ink);background:var(--surface)}
.wt-selw svg{position:absolute;right:4px;color:var(--sub);pointer-events:none}
.wt-sub{min-width:0;overflow:hidden;text-overflow:ellipsis;font:14px/1 var(--sans);color:var(--sub)}
.wt-bar .wt-tabs{align-self:stretch;display:flex;gap:2px}
.wt-tab{display:inline-flex;align-items:center;min-height:36px;padding:0 10px;font:500 15px/1 var(--sans);color:var(--ink-2);background:none;border:0;box-shadow:inset 0 -2px 0 transparent;cursor:pointer;transition:color .15s,box-shadow .15s}
.wt-tab:hover{color:var(--ink)}
.wt-tab.on{color:var(--gtext);box-shadow:inset 0 -2px 0 var(--gacc)}
.wt .wt-tab:focus-visible{outline-offset:-6px;border-radius:8px}
.wt-sp{flex:1}
/* a quiet text button */
.wt-q{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 8px;font:500 15px/1 var(--sans);color:var(--ink-2);background:none;border:0;border-radius:6px;cursor:pointer;transition:color .15s}
.wt-q:hover{color:var(--gtext)}

/* two halves, each scrolling on its own */
.wt-cols{--wts:50%;flex:1 1 auto;min-height:0;display:flex}
.wt-left{flex:0 0 calc(var(--wts) - 4.5px);min-width:0;display:flex;flex-direction:column;background:var(--surface)}
.wt-flow{flex:1 1 auto;min-height:0;overflow:auto;padding:56px 40px 48px;scrollbar-gutter:stable}
.wt-split{position:relative;flex:0 0 9px;cursor:col-resize;touch-action:none;background:var(--pane)}
.wt-split::before{content:"";position:absolute;top:0;bottom:0;left:4px;width:1px;background:var(--card-line);transition:background-color .15s}
.wt-split::after{content:"";position:absolute;top:50%;left:2.5px;width:4px;height:36px;margin-top:-18px;border-radius:2px;background:var(--gacc);opacity:0;transition:opacity .15s}
.wt-split:hover::before,body.dragging .wt-split::before{background:var(--gacc)}
.wt-split:hover::after,.wt-split:focus-visible::after,body.dragging .wt-split::after{opacity:1}
.wt-right{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;background:var(--pane)}
.wt-sheet{flex:1 1 auto;min-height:0;overflow:auto;padding:64px 20px 56px;scrollbar-gutter:stable}

/* pager: where you are, up and down, and a thin progress line along the very bottom */
.wt-pager{position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:14px;height:64px;padding:0 24px 3px 40px;background:var(--surface)}
.wt-pager[hidden]{display:none}
.wt-pn{font:500 14px/1 var(--sans);color:var(--sub);font-variant-numeric:tabular-nums;white-space:nowrap}
.wt-chevs{display:flex;gap:1px}
.wt-chev{display:grid;place-items:center;width:40px;height:40px;padding:0;color:#fff;background:var(--g);border:0;cursor:pointer;transition:background-color .15s,opacity .15s}
.wt-chev:first-child{border-radius:6px 0 0 6px}
.wt-chev:last-child{border-radius:0 6px 6px 0}
.wt-chev:hover:not(:disabled){background:var(--gink)}
.wt-chev:disabled{opacity:.35;cursor:default}
.wt-prog{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--line)}
.wt-prog i{display:block;width:0;height:100%;background:var(--gacc);transition:width .3s ease}

/* one question */
.wt-step{max-width:600px;margin:0 auto}
.wt-step.in-up{animation:wt-up .2s ease-out}
.wt-step.in-down{animation:wt-down .2s ease-out}
.wt-step.in-fade{animation:wt-fade .2s ease-out}
@keyframes wt-up{from{opacity:0;transform:translateY(14px)}}
@keyframes wt-down{from{opacity:0;transform:translateY(-14px)}}
@keyframes wt-fade{from{opacity:0}}
.wt-qn{display:flex;align-items:center;gap:6px;margin:0 0 12px;font:600 14px/1 var(--sans);color:var(--gtext)}
.wt-qt{margin:0 0 10px;font:600 26px/1.25 var(--sans);letter-spacing:-.01em;color:var(--ink)}
.wt-qh{margin:0 0 32px;font:400 15px/1.5 var(--sans);color:var(--sub)}
.wt-qh .wt-chip{margin:0 0 0 4px}
.wt-gap{margin-top:16px}

/* fields: no box, a bottom rule that takes the accent */
.wt-fld{margin:0 0 30px}
.wt-fw{display:block}
.wt-fl{display:flex;align-items:center;gap:8px;margin:0 0 2px;font:500 14px/1.4 var(--sans);color:var(--sub)}
.wt-fl .wt-chip{margin:0}
.wt .wt-in{display:block;width:100%;min-height:48px;margin:0;padding:8px 0;font:400 22px/1.3 var(--sans);color:var(--ink);background:transparent;border:0;border-bottom:2px solid var(--line-2);border-radius:0;outline:0;transition:border-color .15s;-moz-appearance:textfield}
.wt .wt-in::-webkit-outer-spin-button,.wt .wt-in::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.wt .wt-in::placeholder{color:var(--sub);opacity:1}
.wt .wt-in:focus{border-bottom-color:var(--gacc)}
.wt .wt-in-s{min-height:40px;padding:6px 0;font-size:16px;line-height:1.4}
.wt .wt-ta{min-height:112px;resize:vertical;font-size:20px;line-height:1.45}
.wt-adorn{display:flex;align-items:baseline;gap:6px;max-width:340px;border-bottom:2px solid var(--line-2);transition:border-color .15s}
.wt-adorn:focus-within{border-bottom-color:var(--gacc)}
.wt-adorn.wt-short{max-width:240px}
.wt .wt-adorn .wt-in{flex:1 1 auto;min-width:0;border-bottom:0}
.wt-u{flex:0 0 auto;font:400 22px/1.3 var(--sans);color:var(--sub);white-space:nowrap}
.wt-sent{margin:0;font:400 22px/2 var(--sans);color:var(--ink)}
.wt-adorn.wt-inl{display:inline-flex;max-width:none;gap:2px;vertical-align:baseline}
.wt .wt-inl .wt-in{flex:0 0 auto;width:3.6ch;min-height:0;padding:0 2px;line-height:1.3;text-align:center}
.wt-bal{display:flex;align-items:baseline;gap:12px;font:15px/1.5 var(--sans);color:var(--sub)}
.wt-bal b{font:600 18px/1.3 var(--sans);color:var(--ink);font-variant-numeric:tabular-nums}
.wt-fv{padding:6px 0 0;font:16px/1.45 var(--sans);color:var(--ink)}

/* sources, chips, flags */
.wt-srcl{margin:10px 0 0;font:14px/1.55 var(--sans);color:var(--sub)}
.wt-chip{display:inline-block;margin-right:6px;padding:1px 6px;font:500 12px/1.5 var(--sans);color:var(--ink-2);background:var(--pane);border:1px solid var(--card-line);border-radius:4px;white-space:nowrap;vertical-align:1px}
.wt-chip[title]{cursor:help}
.wt-lv{display:contents}
.wt-flag,.wt-ok{display:block;margin:8px 0 0;font:500 14px/1.5 var(--sans)}
.wt-flag{color:var(--amber)}
.wt-ok{color:var(--hit)}

/* switches */
.wt-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;margin-top:22px}
.wt-confirm .wt-flag{margin:0}
.wt-tog{position:relative;display:inline-flex;align-items:center;gap:12px;min-height:44px;font:500 16px/1.3 var(--sans);color:var(--ink);cursor:pointer;user-select:none}
.wt-tog input{position:absolute;left:0;top:50%;width:48px;height:28px;margin:-14px 0 0;opacity:0;cursor:pointer}
.wt-sw{position:relative;flex:0 0 48px;height:28px;border-radius:14px;background:var(--line-2);transition:background-color .2s}
.wt-sw::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.25);transition:transform .2s}
.wt-tog input:checked + .wt-sw{background:var(--gacc)}
.wt-tog input:checked + .wt-sw::after{transform:translateX(20px)}
.wt-tog input:focus-visible + .wt-sw{outline:2px solid var(--gacc);outline-offset:2px}
.wt-tog .wt-chip{margin:0}

/* choice cards */
.wt-cards{display:flex;flex-direction:column;gap:10px}
.wt-opt{display:flex;align-items:flex-start;gap:14px;width:100%;min-height:56px;margin:0;padding:15px 16px;font:inherit;text-align:left;color:var(--ink);background:var(--surface);border:1px solid var(--line-2);border-radius:8px;cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s,background-color .15s}
.wt-opt:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--gacc) 45%,var(--line-2));box-shadow:0 4px 14px rgba(15,23,42,.08)}
.wt-opt.on{background:var(--gsoft);border-color:var(--gacc);box-shadow:inset 0 0 0 1px var(--gacc)}
.wt-opt:disabled{opacity:.55;cursor:default;transform:none;box-shadow:none}
.wt-key{flex:0 0 26px;display:grid;place-items:center;height:26px;font:600 14px/1 var(--sans);color:var(--ink-2);background:var(--surface);border:1px solid var(--line-2);border-radius:5px;transition:background-color .15s,color .15s,border-color .15s}
.wt-opt.on .wt-key{color:#fff;background:var(--g);border-color:var(--g)}
.wt-ot{display:flex;flex-direction:column;gap:3px;min-width:0;padding-top:2px}
.wt-ol{font:600 16px/1.35 var(--sans)}
.wt-od{font:400 14px/1.45 var(--sans);color:var(--sub)}

/* OK and the Enter hint; the big button a last step ends on */
.wt-okrow{display:flex;align-items:center;gap:14px;margin-top:36px}
.wt-okb,.wt-btn,.wt-big{display:inline-flex;align-items:center;gap:8px;font-family:var(--sans);font-weight:600;line-height:1;color:#fff;background:var(--g);border:0;cursor:pointer;transition:background-color .15s}
.wt-okb:hover,.wt-btn:hover,.wt-big:hover{background:var(--gink)}
.wt-okb{height:44px;padding:0 18px;font-size:15px;border-radius:6px}
.wt-btn{min-height:40px;padding:0 16px;font-size:15px;border-radius:6px}
.wt-big{height:52px;padding:0 26px;font-size:16px;border-radius:8px;box-shadow:0 1px 2px rgba(15,23,42,.18)}
.wt-okb:disabled,.wt-big:disabled{opacity:.45;cursor:default}
.wt-okb:disabled:hover,.wt-big:disabled:hover{background:var(--g)}
.wt-hint{font:14px/1 var(--sans);color:var(--sub)}
.wt-hint b{font-weight:600;color:var(--ink-2)}

/* Why would I? */
.wt-why{margin-top:22px}
.wt-why summary{display:inline-flex;align-items:center;gap:6px;min-height:36px;font:500 15px/1 var(--sans);color:var(--gtext);list-style:none;cursor:pointer;border-radius:4px}
.wt-why summary::-webkit-details-marker{display:none}
.wt-why summary:hover{text-decoration:underline;text-underline-offset:3px}
.wt-why summary svg{transition:transform .2s}
.wt-why[open] summary svg{transform:rotate(180deg)}
.wt-whyb{padding-top:6px}
.wt-whyb p{margin:0 0 12px;font:15px/1.5 var(--sans);color:var(--ink-2)}
.wt-whyb b{font-weight:600;color:var(--ink)}

/* a review step: headed lists of label + detail, a checklist that jumps back to a question, the big button row */
.wt-rv{margin:0 0 40px}
.wt-rh{margin:0 0 12px;font:600 17px/1.35 var(--sans);color:var(--ink)}
.wt-deps{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.wt-deps li{display:flex;flex-direction:column;gap:3px;padding:14px 0;border-bottom:1px solid var(--line)}
.wt-deps b{font:600 15px/1.4 var(--sans);color:var(--ink)}
.wt-deps span{font:14px/1.5 var(--sans);color:var(--sub)}
.wt-checks{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.wt-ck{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;margin:0;padding:8px 0;font:15px/1.4 var(--sans);text-align:left;color:var(--ink);background:none;border:0;border-bottom:1px solid var(--line);cursor:pointer}
.wt-ck:hover .wt-ckl{color:var(--gtext)}
.wt-ckl{flex:1 1 auto;min-width:0}
.wt-cks{font:500 14px/1.3 var(--sans);white-space:nowrap}
.wt-cks.ok{color:var(--hit)}
.wt-cks.no{color:var(--amber)}
.wt-ck svg{flex:0 0 auto;color:var(--sub)}
.wt-genrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.wt-vers{width:100%;border-collapse:collapse;font:15px/1.45 var(--sans);color:var(--ink)}
.wt-vers th{padding:10px 12px 10px 0;font:500 14px/1.3 var(--sans);text-align:left;color:var(--sub);border-bottom:1px solid var(--line-2)}
.wt-vers td{padding:14px 12px 14px 0;vertical-align:top;border-bottom:1px solid var(--line)}

/* zoom: a pill at the top right of the paper's half */
.wt-zoom{position:absolute;top:12px;right:28px;z-index:2;display:flex;align-items:center;gap:2px;padding:2px;background:var(--surface);border:1px solid var(--card-line);border-radius:999px;box-shadow:0 1px 2px rgba(15,23,42,.06),0 4px 14px rgba(15,23,42,.08)}
.wt-zoom button{min-width:36px;height:36px;padding:0 10px;font:500 15px/1 var(--sans);font-variant-numeric:tabular-nums;color:var(--ink-2);background:none;border:0;border-radius:999px;cursor:pointer}
.wt-zoom button:hover:not(:disabled){color:var(--ink);background:var(--pane)}
.wt-zoom button:disabled{opacity:.4;cursor:default}
.wt-zoom button.on{color:var(--gtext);background:var(--gsoft)}
.wt-zoom #wtZl{min-width:60px}

/* the paper: white, dark ink, whatever the colour scheme; --wt-page wide at 100%, scaled by zoom */
.wt .wt-doc{width:var(--wt-page);margin:0 auto;padding:60px;font:15.5px/1.65 Georgia,"Times New Roman",Times,serif;color:#111;background:#fff;border-radius:2px;box-shadow:0 1px 2px rgba(15,23,42,.06),0 10px 30px rgba(15,23,42,.10);color-scheme:light}
@media (prefers-color-scheme: dark){.wt .wt-doc{box-shadow:0 1px 2px rgba(0,0,0,.4),0 12px 36px rgba(0,0,0,.5)}}
.wt .wt-doc h1{margin:0 0 24px;font:700 15px/1.4 Georgia,"Times New Roman",Times,serif;letter-spacing:.02em;text-align:center;color:#111;transition:opacity .25s ease}

/* under 900px the halves stack and the page scrolls */
@media (max-width:900px){
  .dr.wt{height:auto;min-height:100vh}
  .wt-bar{padding:0 16px}
  .wt-cols{flex-direction:column}
  .wt-left{flex:none}
  .wt-flow{overflow:visible;padding:40px 16px 32px}
  .wt-pager{position:sticky;bottom:0;z-index:3;padding:0 16px 3px;border-top:1px solid var(--line)}
  .wt-split{display:none}
  .wt-right{flex:none;border-top:1px solid var(--card-line)}
  .wt-sheet{flex:none;padding:64px 16px 40px}
  .wt-zoom{right:16px}
}
@media (prefers-reduced-motion: reduce){
  .wt-step{animation:none!important}
  .wt *,.wt *::after{transition:none!important}
}
