/* Tour do Workspace com menos de 730px de tela: a tela do notebook, reduzida.
   Whenever a screen has less than 730px (a phone, a tablet, or beside the side list on a small
   laptop), js/tour.js marks its frame with data-scaled and sets --tour-k (available width / 730).
   The screen keeps the layout it has at 730px wide (two panes side by side, the board with its
   columns) and is scaled to fit, so it shows whole, as on a computer. Its text becomes too small
   to read, so one caption per step, at reading size, sits under it. Guided tours (Extensão) are
   not scaled. */
.tour-caption{display:none}

.product-tour:not([data-guided-tour]) .tour-illustration[data-scaled]{overflow:hidden}
.product-tour:not([data-guided-tour]) .tour-illustration[data-scaled]>.tour-demo[data-scene]{
 width:730px;height:585px;
 transform:scale(var(--tour-k));transform-origin:0 0;
 margin:0 calc(730px * (var(--tour-k) - 1)) calc(585px * (var(--tour-k) - 1)) 0;
 border-radius:calc(var(--screen-radius) / var(--tour-k));
}
/* The flow canvas sizes its type by the screen's width, as it does at 730px on a computer. */
.product-tour:not([data-guided-tour]) .tour-illustration[data-scaled] .ps-frame{font-size:clamp(11px,1.48cqw,14px)}

/* Every caption of the tool sits in the same cell, so the block keeps the height of its longest
   caption and the page does not move between steps. */
.product-tour:not([data-guided-tour]) .tour-player:has(.tour-illustration[data-scaled]) .tour-caption{display:grid;margin:12px 4px 0;font-size:15px;line-height:1.45;color:var(--on-ground-soft);text-wrap:pretty}
.product-tour:not([data-guided-tour]) .tour-caption>span{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .25s ease,visibility 0s linear .25s}
.product-tour:not([data-guided-tour]) .tour-player:has(.tour-demo[data-step="0"]) .tour-caption>[data-step="0"],
.product-tour:not([data-guided-tour]) .tour-player:has(.tour-demo[data-step="1"]) .tour-caption>[data-step="1"],
.product-tour:not([data-guided-tour]) .tour-player:has(.tour-demo[data-step="2"]) .tour-caption>[data-step="2"],
.product-tour:not([data-guided-tour]) .tour-player:has(.tour-demo[data-step="3"]) .tour-caption>[data-step="3"],
.product-tour:not([data-guided-tour]) .tour-player:has(.tour-demo[data-step="4"]) .tour-caption>[data-step="4"]{opacity:1;visibility:visible;transition:opacity .25s ease,visibility 0s}
@media(prefers-reduced-motion:reduce){
 .product-tour .tour-caption>span{transition:none!important}
}

/* Beside the side list (from 801px), a scaled screen and its caption are shorter than the list,
   whose height changes with the steps of the open tool. The column keeps the list's tallest
   height (12 tools and a 4-step tool), so changing tools or steps never moves the page. */
@media(min-width:801px){
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-main:has(.tour-illustration[data-scaled]){min-height:592px}
}

/* Celular (até 800px), Workspace: the tool list is an accordion, as approved in the mockup.
   The open tool keeps its screen right under its name; its steps become bars under the screen,
   with the caption below them; the next rows follow. js/tour.js orders the screen after the open
   row and announces the next tool during the last step. */
.tour-soon{display:none}
@media(max-width:800px){
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-layout{display:flex;flex-direction:column;align-items:stretch;gap:0;overflow-anchor:none}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-intro{order:-1;margin-bottom:12px}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-intro>p[data-tool-headline]{display:none}
 .product-tour.product-tour-embedded:not([data-guided-tour]) :is(.tour-nav,.tour-nav [role=tablist]){display:contents}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-nav [role=tab]{position:relative;grid-column:auto;width:100%;min-height:52px;margin:0;padding:12px 14px;gap:12px;border:0;border-bottom:1px solid var(--ground-line);border-radius:0;background:none;color:var(--on-ground);font-size:16px;font-weight:500;justify-content:flex-start;text-align:left;white-space:nowrap}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-nav [role=tab]>.i:first-child{width:18px;height:18px;flex:none}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-nav [role=tab]>.i:last-child{display:block;flex:none;width:16px;height:16px;margin-left:auto;color:var(--on-ground-faint);transform:rotate(90deg)}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-nav [role=tab][aria-selected=true]{border-radius:12px;border-bottom-color:transparent;background:var(--prompt-wine);color:#fff}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-nav [role=tab][aria-selected=true]>.i:last-child{display:none}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-main{margin:8px 0 22px}

 /* The open row says what comes next and fills up during the last step. */
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-nav [role=tab].tour-announce .tour-soon{display:inline-block;min-width:0;margin-left:auto;padding-left:12px;overflow:hidden;color:rgba(255,255,255,.78);font-size:12px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-nav [role=tab].tour-announce::after{content:"";position:absolute;left:14px;right:14px;bottom:7px;height:2px;border-radius:2px;background:rgba(255,255,255,.6);transform-origin:left;animation:tour-bar-fill 5.4s linear both}

 /* Steps: bars under the screen, the caption under them. Labels stay for screen readers. */
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player{display:flex;flex-direction:column}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player>.tour-illustration{order:1}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player>.tour-steps{order:2;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;margin:8px 4px 0;padding:0;border:0;background:none}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player>.tour-caption{order:3;margin-top:4px}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player>.tour-steps>button{position:relative;display:block;min-width:0;min-height:26px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;cursor:pointer}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player>.tour-steps>button>b{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player>.tour-steps>button::before,
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player>.tour-steps>button::after{content:"";position:absolute;left:0;right:0;top:50%;height:3px;margin-top:-1.5px;border-radius:2px}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player>.tour-steps>button::before{background:var(--ground-line)}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player>.tour-steps>button::after{background:var(--prompt-wine);transform-origin:left;transform:scaleX(0)}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player>.tour-steps>button:is([aria-pressed=true],:has(~[aria-pressed=true]))::after{transform:scaleX(1)}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-panel[data-tour-playing=true] .tour-player>.tour-steps>button[aria-pressed=true]::after{animation:tour-bar-fill 5.4s linear both}
 .product-tour.product-tour-embedded:not([data-guided-tour]) .tour-player>.tour-steps>button:focus-visible{outline:2px solid var(--on-ground);outline-offset:2px}
}
@keyframes tour-bar-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.product-tour .tour-player>.tour-steps>button::after,.product-tour [role=tab].tour-announce::after{animation:none!important}}
html[data-motion=paused] .product-tour .tour-player>.tour-steps>button::after{animation:none!important}
