/* "Walk me through it": the player (assets/walk.js). Nothing here applies without .walk-root. */


/* the caption bar: above the tab bar on a phone, along the bottom beside the side rail on a desktop */
.walk{position:fixed;z-index:70;left:var(--rail,0px);right:0;bottom:calc(var(--tab-h,66px) + env(safe-area-inset-bottom));
  display:grid;gap:6px;padding:14px var(--gut) 14px;background:var(--ink);color:var(--ground);border-radius:18px 18px 0 0;box-shadow:0 -10px 30px -12px rgba(0,0,0,.45)}
html.walk-sheet .walk{bottom:0;padding-bottom:calc(14px + env(safe-area-inset-bottom))}
.walk-top{margin:0;font:600 13px/1.2 var(--body);letter-spacing:.08em;text-transform:uppercase;color:var(--adv-k)}
.walk-title{margin:0;font:800 clamp(20px,.6vw + 17px,28px)/1.1 var(--display);font-stretch:106%;text-wrap:balance}
.walk-text{margin:0;font:400 16px/1.45 var(--body);opacity:.92;max-width:78ch}
.walk-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.walk-tools button{min-height:44px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:inherit;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.35);font:600 14px/1 var(--body)}
.walk-tools button[aria-pressed="true"]{background:rgba(255,255,255,.16);box-shadow:inset 0 0 0 1.5px currentColor}
.walk-tools .walk-end{margin-left:auto;box-shadow:none;background:none;text-decoration:underline;text-underline-offset:3px;font-weight:500;opacity:.85;padding:0 6px}
.walk-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:6px}
.walk-foot button{min-height:48px;min-width:96px;padding:0 20px;border:0;border-radius:999px;font:700 16px/1 var(--body)}
.walk-back{background:transparent;color:inherit;box-shadow:inset 0 0 0 1.5px currentColor}
.walk-next{background:var(--red);color:#fff;flex:1 1 auto}
.walk-foot button:disabled{opacity:.4;cursor:default}
.walk :focus-visible{outline:3px solid #fff;outline-offset:2px}
@media (min-width:900px){
  .walk{bottom:0;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"top tools" "title tools" "text foot";column-gap:32px;align-items:center;padding:16px var(--gut) 18px}
  .walk-top{grid-area:top}.walk-title{grid-area:title}.walk-text{grid-area:text}.walk-foot{grid-area:foot;margin-top:0;flex-wrap:nowrap}.walk-tools{grid-area:tools;justify-content:flex-end}
  .walk-next{flex:none;min-width:140px}
}

/* the pulsing outline */
.walk-ring{position:fixed;z-index:65;pointer-events:none;box-sizing:border-box;border:3px solid var(--red);border-radius:14px;
  box-shadow:0 0 0 2px #fff,0 0 0 0 rgba(217,34,49,.55);animation:walkPulse 1.7s ease-out infinite}
@keyframes walkPulse{0%{box-shadow:0 0 0 2px #fff,0 0 0 0 rgba(217,34,49,.55)}70%,100%{box-shadow:0 0 0 2px #fff,0 0 0 16px rgba(217,34,49,0)}}
/* reduced motion: a steady, thicker outline; the app's own ?motion=reduce (.rm) does the same */
@media (prefers-reduced-motion:reduce){.walk-ring{animation:none;border-width:4px}}
.rm .walk-ring{animation:none;border-width:4px}

/* in the hub's frame (?embed=1) the outline is quiet: a thin line and a soft halo, no pulse; the hub shows the words */
.walk-root.embed .walk-ring{border-width:2px;border-radius:12px;box-shadow:0 0 0 4px rgba(217,34,49,.14);animation:none}

/* room for the caption: content, the Ask input and sheets scroll clear of it */
html.walking main{padding-bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 96px + var(--walk-h,0px))}
html.walking .compose{bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px + var(--walk-h,0px))}
html.walking .sheet{padding-bottom:calc(env(safe-area-inset-bottom) + 40px + var(--walk-h,0px))}
@media (min-width:900px){
  html.walking main{padding-bottom:calc(72px + var(--walk-h,0px))}
  html.walking .compose{bottom:calc(16px + var(--walk-h,0px))}
}
