/* tso2's own (4 and 5 Oct 2026): the footer's group (Mute · Speech bubbles · Comment · Ask), the deck's modal
   (Comment, the chat with the team) and Knock on the door (the two actions at the end of Two ways in and their
   panel). After flow.css: the type floors and story mode's sizes of these pieces live here too. */

/* ---------------------------------------------------------------- the footer's group: Mute · Speech bubbles · Comment · Ask
   (Julian, 5 Oct 2026: one group at the bottom left, one look, side by side after the label). Mute and Speech
   bubbles are switches drawn as an icon (the speaker or the crossed-out speaker; the bubble or the crossed-out
   bubble); Comment and Ask carry their names where there is room. Ask opens the chat with the team in the deck's
   modal (talk.js). The group takes the free space before the faces and the number; on the stage its height and
   type follow the window (screen pixels, --zf), capped so the footer's line never moves. */
.foot>.fpills{display:inline-flex;align-items:center;gap:6px;margin:0 auto 0 -10px;flex:none;opacity:1}
.foot:has(.fbpres:not([hidden]))>.fpills{margin-right:0}
.foot .fpills>*{--ph:24px;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;height:var(--ph);
  margin:calc((var(--ph) - 12px) / -2) 0!important;padding:0 .85em 0 .65em;border:1px solid var(--line);border-radius:calc(var(--ph) / 2);
  background:rgba(255,255,255,.78);color:var(--blue);font:600 12px/1 "Fira Sans",Arial,sans-serif;letter-spacing:.2px;text-transform:none;white-space:nowrap;
  cursor:pointer;text-decoration:none;opacity:.9;touch-action:manipulation;transition:opacity .2s,background-color .2s,border-color .2s,box-shadow .2s}
.foot .fpills>.mutefoot,.foot .fpills>.bubfoot{width:calc(var(--ph) * 1.36);padding:0}
.foot .fpills svg.i{flex:none;width:15px;height:15px}
.mutefoot svg.i:last-child,.bubfoot svg.i:last-child{display:none}
html[data-sound=off] .mutefoot svg.i:first-child,body.nobub .bubfoot svg.i:first-child{display:none}
html[data-sound=off] .mutefoot svg.i:last-child,body.nobub .bubfoot svg.i:last-child{display:block}
/* the browser holds the sound back until a click (narration.js soundPill): the Mute pill pulses */
html[data-sound-wait] .mutefoot{animation:mutewait 1.6s ease-in-out infinite}
@keyframes mutewait{0%,100%{box-shadow:0 0 0 0 rgba(0,166,226,.7)}60%{box-shadow:0 0 0 9px rgba(0,166,226,0)}}
@media (prefers-reduced-motion:reduce){html[data-sound-wait] .mutefoot{animation:none;box-shadow:0 0 0 2px var(--cyan,#00A6E2)}}
.foot .fpills>:hover,.foot .fpills>:focus-visible{opacity:1;background:#fff;border-color:var(--blue);box-shadow:0 4px 12px rgba(0,30,70,.14)}
.foot .fpills>:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.blue .foot .fpills>*,.photo .foot .fpills>*,.tone-dark .foot .fpills>*,.L-gate .foot .fpills>*{color:#fff;background:rgba(8,24,46,.32);border-color:rgba(255,255,255,.45);text-shadow:none}
.blue .foot .fpills>:hover,.blue .foot .fpills>:focus-visible,.photo .foot .fpills>:hover,.photo .foot .fpills>:focus-visible,
.tone-dark .foot .fpills>:hover,.tone-dark .foot .fpills>:focus-visible,.L-gate .foot .fpills>:hover,.L-gate .foot .fpills>:focus-visible{
  background:rgba(8,24,46,.55);border-color:#fff;box-shadow:0 4px 14px rgba(0,10,30,.3)}
.tone-light .foot .fpills>*{color:var(--blue);background:rgba(255,255,255,.78);border-color:var(--line)}
.thumb .fpills,.present[data-live=screen] .frame .fpills{display:none!important}
/* the stage: about 25 px high on screen at Julian's 920 x 515 window, 24 canvas pixels on a large one */
.stagewrap>.frame>.deck .foot .fpills{gap:max(6px,calc(5px / var(--zf)))}
.stagewrap>.frame>.deck .foot .fpills>*{--ph:clamp(24px,calc(26px / var(--zf)),34px);font-size:max(12px,calc(12px / var(--zf)))}
.stagewrap>.frame>.deck .foot .fpills svg.i{width:max(15px,calc(15px / var(--zf)));height:max(15px,calc(15px / var(--zf)))}
.story .foot>.fpills{margin:0 auto 0 -6px;gap:8px}
.story .foot .fpills>*{--ph:36px;font-size:13px;padding:0 12px 0 10px}
.story .foot .fpills>.mutefoot,.story .foot .fpills>.bubfoot{width:40px;padding:0}
.story .foot .fpills>::after{content:"";position:absolute;inset:-4px}
/* on a scene (the text's column is narrow) a long label gives way (an ellipsis) before the group or the number
   leave the column; up to a wide window Comment and Ask show their icons, their names stay the accessible names */
.stagewrap>.frame>.deck .L-video .foot>span:first-child{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@container stage (max-width:1700px){
  .stagewrap>.frame>.deck .L-video .foot .fpills .lbl{display:none}
  .stagewrap>.frame>.deck .L-video .foot .fpills>.fbfoot,.stagewrap>.frame>.deck .L-video .foot .fpills>.askfoot{width:calc(var(--ph) * 1.36);padding:0}
  .stagewrap>.frame>.deck .L-video .foot{gap:16px}
}
/* a narrow phone: Comment and Ask show their icons (their names stay the accessible names), so the label and the
   number keep their room */
@media (max-width:420px){
  .story .foot .fpills .lbl{display:none}
  .story .foot .fpills>.fbfoot,.story .foot .fpills>.askfoot{width:40px;padding:0}
  .story .L-video .foot{gap:16px}
}
@media (prefers-reduced-motion:reduce){.foot .fpills>*{transition:none}}

/* ---------------------------------------------------------------- the deck's modal (modal.js): Comment (small),
   Ask and Chat with the team (large, the talk slide's frame inside). A card on a soft blur, centered; on a phone a
   sheet from the bottom, the large one the full height. */
.tm{position:fixed;left:0;top:0;width:100%;height:100%;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;
  font-family:"Fira Sans",Arial,sans-serif}
.tm-back{position:absolute;inset:0;background:rgba(4,14,28,.42);-webkit-backdrop-filter:blur(8px) saturate(1.1);backdrop-filter:blur(8px) saturate(1.1);opacity:0;
  transition:opacity .3s var(--ease)}
.tm-card{position:relative;display:flex;flex-direction:column;box-sizing:border-box;width:100%;max-width:560px;max-height:100%;overflow:auto;overscroll-behavior:contain;
  background:#fff;color:var(--ink);border-radius:16px;box-shadow:0 2px 6px rgba(0,20,50,.08),0 28px 70px rgba(0,20,50,.32);padding:24px 28px 22px;
  transform:translateY(18px) scale(.97);opacity:0;transition:transform .42s var(--ease),opacity .28s var(--ease)}
.tm.on .tm-back{opacity:1}
.tm.on .tm-card{transform:none;opacity:1}
.tm-grip{display:none}
.tm-head{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}
.tm-titles{min-width:0}
.tm-titles::before{content:"";display:block;width:36px;height:5px;background:var(--cyan);margin-bottom:12px}
.tm-title{margin:0;font-size:22px;font-weight:900;text-transform:uppercase;letter-spacing:.4px;color:var(--blue);line-height:1.1}
.tm-sub{margin:6px 0 0;font-size:13px;color:var(--grey);line-height:1.35;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tm-sub[hidden]{display:none}
.tm-sub .tm-switch{all:unset;cursor:pointer;color:var(--cyan-deep);text-decoration:underline;text-underline-offset:2px}
.tm-sub .tm-switch:focus-visible{outline:2px solid var(--cyan-deep);outline-offset:2px;border-radius:2px}
.tm-x{flex:none;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:transparent;color:var(--grey);
  cursor:pointer;margin:-6px -10px 0 0;transition:background-color .15s,color .15s}
.tm-x:hover{background:var(--pale);color:var(--ink)}
.tm-x svg.i{width:20px;height:20px}
.tm-x:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.tm-body{min-height:0}
/* the large one: the call's 16:9 frame and its row as on the talk slide, as wide as the window's height allows */
.tm-l .tm-card{max-width:none;width:min(1040px,100%,calc((100dvh - 32px - 188px) * 16 / 9 + 56px));padding:20px 28px 22px;overflow:hidden}
.tm-l .tm-head{margin-bottom:14px}
.tm-l .tm-body{flex:1 1 auto;display:flex;flex-direction:column;min-height:0}
.tm .talkin{--ts:1;flex:none;height:auto;font-size:14px}
.tm .talkin .tvid{width:100%;aspect-ratio:16/9}
/* a short window (Julian's 920 x 515): a slimmer header, more of the frame */
@media (max-height:620px) and (min-width:601px){
  .tm{padding:10px}
  .tm-l .tm-card{width:min(1040px,100%,calc((100dvh - 20px - 140px) * 16 / 9 + 40px));padding:12px 20px 14px}
  .tm-l .tm-titles::before{width:28px;height:4px;margin-bottom:8px}
  .tm-l .tm-head{margin-bottom:10px}
  .tm-l .tm-title{font-size:18px}
  .tm-l .tm-sub{margin-top:3px;font-size:12.5px}
  .tm-l .talkin .tctl{padding-top:10px}
}
/* a phone held sideways: the large one takes the window */
@media (max-height:460px) and (min-width:601px){
  .tm-l{padding:0}
  .tm-l .tm-card{width:100%;height:100%;max-height:none;border-radius:0;padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left))}
  .tm-l .tm-titles::before{display:none}
  .tm-l .tm-head{margin-bottom:6px;align-items:center}
  .tm-l .tm-sub{display:none}
  .tm-l .talkin{flex:1 1 auto;min-height:0}
  .tm-l .talkin .tvid{flex:1 1 auto;min-height:0;aspect-ratio:auto}
  .tm-l .talkin .tctl{padding-top:8px}
}
/* a phone: a sheet from the bottom; the large one the full height, the frame takes what the header and the row leave */
@media (max-width:600px){
  .tm{align-items:flex-end;padding:0}
  .tm-card{max-width:none;border-radius:18px 18px 0 0;padding:10px 18px 0;transform:translateY(100%);opacity:1;transition:transform .38s var(--ease)}
  .tm-grip{display:block;flex:none;width:40px;height:4px;border-radius:2px;background:var(--line);margin:0 auto 14px}
  .tm-head{margin-bottom:14px}
  .tm-title{font-size:19px}
  .tm-l .tm-card{width:100%;height:100%;max-height:none;border-radius:0;padding:calc(10px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom))}
  .tm-l .tm-grip{display:none}
  .tm-l .talkin{flex:1 1 auto;min-height:0}
  .tm-l .talkin .tvid{flex:1 1 auto;min-height:0;aspect-ratio:auto}
  .tm-l .talkin .tctl{flex-wrap:wrap;padding-top:12px}
  .tm-l .talkin .tmsg.tready{padding:0 6%}
}
@media (prefers-reduced-motion:reduce){.tm-back,.tm-card{transition:none}.tm-card{transform:none}}

/* ---------------------------------------------------------------- Knock on the door: the use case and the
   line to the front door for a tool from the stack (canvas pixels on the stage) after the slide's content */
.knock{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;align-self:flex-start;width:max-content;max-width:100%;margin-top:18px;padding:10px 16px 12px 16px;
  border:1px solid var(--line);border-radius:20px;background:var(--pale);font-family:"Fira Sans",Arial,sans-serif}
.knock .kk{display:inline-flex;align-items:center;gap:8px;margin-right:4px;font:700 12px/1 "Fira Sans",Arial,sans-serif;letter-spacing:2.4px;text-transform:uppercase;color:var(--blue);white-space:nowrap}
.knock .kk svg.i{width:18px;height:18px;color:var(--cyan-deep)}
.kbtn{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 16px 0 12px;border:1.5px solid var(--blue);border-radius:19px;background:#fff;color:var(--blue);
  font:600 14px/1.15 "Fira Sans",Arial,sans-serif;text-align:left;cursor:pointer;touch-action:manipulation;transition:background-color .18s,color .18s,transform .18s var(--ease),box-shadow .18s}
.kbtn svg.i{flex:none;width:18px;height:18px}
.kbtn:hover,.kbtn:focus-visible{background:var(--blue);color:#fff;box-shadow:0 6px 16px rgba(0,67,136,.22)}
.kbtn:active{transform:scale(.97)}
.kbtn:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.kline{flex:1 1 100%;display:flex;align-items:flex-start;gap:8px;margin:0;font:400 14px/1.4 "Fira Sans",Arial,sans-serif;color:#2b3440}
.kline svg.i{flex:none;width:18px;height:18px;color:var(--cyan-deep)}
.kline b{font-weight:700;color:var(--blue)}
.kline a{color:var(--cyan-deep);font-weight:600;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.kline a:focus-visible{outline:3px solid var(--cyan);outline-offset:2px;border-radius:3px}
.stagewrap>.frame>.deck .kline{font-size:max(14px,calc(10.5px / var(--zf)))}
.stagewrap>.frame>.deck .knock .kk{font-size:max(12px,calc(10.5px / var(--zf)))}
.stagewrap>.frame>.deck .kbtn{font-size:max(14px,calc(10.5px / var(--zf)))}
.story .knock{width:auto;border-radius:16px;padding:14px;flex-direction:column;align-items:stretch;gap:10px}
.story .kbtn{min-height:48px;border-radius:24px;padding:8px 16px 8px 14px;font-size:15px}

/* the panel: the Comment panel's card (centered on the stage, a sheet on a phone) */
.kwrap{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px;font-family:"Fira Sans",Arial,sans-serif}
.kback{position:absolute;inset:0;background:rgba(4,14,28,.42);-webkit-backdrop-filter:blur(8px) saturate(1.1);backdrop-filter:blur(8px) saturate(1.1);animation:kfade .3s var(--ease)}
@keyframes kfade{from{opacity:0}to{opacity:1}}
.kcard{position:relative;display:flex;flex-direction:column;width:100%;max-width:560px;max-height:100%;overflow:auto;overscroll-behavior:contain;background:#fff;color:var(--ink);border-radius:16px;
  box-shadow:0 2px 6px rgba(0,20,50,.08),0 28px 70px rgba(0,20,50,.32);padding:24px 28px 22px;animation:kin .42s var(--ease)}
@keyframes kin{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@keyframes squp{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.kcard{animation:none}.kbtn{transition:none}}
.kgrip{display:none}
.khead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.khead .kk{display:inline-flex;align-items:center;gap:7px;margin:0 0 10px;font:700 11.5px/1 "Fira Sans",Arial,sans-serif;letter-spacing:2.4px;text-transform:uppercase;color:var(--cyan-deep)}
.khead .kk svg.i{width:17px;height:17px}
.kcard h2{margin:0;font-size:22px;font-weight:900;text-transform:uppercase;letter-spacing:.4px;color:var(--blue);line-height:1.12}
.kx{flex:none;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:transparent;color:var(--grey);cursor:pointer;margin:-6px -10px 0 0}
.kx:hover{background:var(--pale);color:var(--ink)}
.kx svg.i{width:20px;height:20px}
.klead{margin:0 0 16px;font-size:16px;line-height:1.45;color:#2b3440}
.ksteps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;counter-reset:none}
.ksteps li{display:flex;gap:14px;align-items:flex-start;font-size:16px;line-height:1.45}
.kn{flex:none;width:28px;height:28px;border-radius:50%;border:2px solid var(--blue);color:var(--blue);font:800 14px/24px "Fira Sans",Arial,sans-serif;text-align:center}
.knote{margin:18px 0 0;padding:10px 14px;border-radius:10px;background:var(--pale);font-size:14px;line-height:1.45;color:#2b3440}
.kact{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:18px}
.ksend{height:44px;min-width:128px;padding:0 26px;border:0;border-radius:22px;background:var(--blue);color:#fff;font:700 13px/1 "Fira Sans",Arial,sans-serif;letter-spacing:1.6px;text-transform:uppercase;cursor:pointer;
  box-shadow:0 6px 16px rgba(0,67,136,.25);transition:background-color .18s,transform .18s var(--ease),box-shadow .18s}
.ksend:hover{background:#00366e;transform:translateY(-1px)}
.ksend:disabled{opacity:.6;cursor:progress;transform:none}
.ksend:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
@media (max-width:600px){
  .kwrap{align-items:flex-end;padding:0}
  .kcard{max-width:none;max-height:92vh;border-radius:18px 18px 0 0;padding:10px 18px calc(16px + env(safe-area-inset-bottom));animation-name:squp}
  .kgrip{display:block;flex:none;width:40px;height:4px;border-radius:2px;background:var(--line);margin:0 auto 14px}
  .kcard h2{font-size:19px}
  .ksend{width:100%;height:48px;border-radius:24px}
}
@media (prefers-reduced-motion:reduce){.kback{animation:none}}
