/* »Za vsako vlogo«: the owner's question, the tools it reached into and the answer, as one picture on the page ground.
   Styles only: the draft's markup, copy, tabs and role data stay as they are. vloge.js says which tools the answer used and where their rows are.
   The draft repaints its page every few seconds and removes anything added to it, so the lines live outside it and state is kept on <html>. */

/* no cards: the text and the answer stand on the ground */
#vloge [data-fx="vl"]{position:relative;padding-top:34px;--vl-s:44px}
#vloge [data-fx="vl"]>div:first-child{background:none!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
#vloge [data-fx="vl"]>div:first-child,#vloge [data-fx="vl"]>div:first-child>div:last-child{display:contents!important}
#vloge [data-fx="vl"]>.na-on-dark{background:none!important;overflow:visible!important;border-radius:0!important;padding:0!important;align-items:flex-start!important}
/* the lime light now lies under the answer */
#vloge [data-fx="vl"]>.na-on-dark>div:first-child{inset:auto 7% -30px 7%!important;height:84px;border-radius:50%;background:radial-gradient(closest-side,rgba(190,242,100,.62),rgba(190,242,100,.28) 55%,rgba(190,242,100,0))!important}
/* the answer */
#vloge [data-fx="vl"]>.na-on-dark>div:last-child{background:#fff!important;border-radius:16px!important;padding:20px!important;box-shadow:0 0 0 1px rgba(21,22,20,.08),0 2px 4px rgba(11,12,11,.05),0 28px 44px -22px rgba(11,12,11,.3),0 70px 90px -50px rgba(11,12,11,.28)!important}
#vloge .vl-r{background:#FAFAF8!important;box-shadow:0 0 0 1px rgba(21,22,20,.07)!important}
/* the question is the nearest thing in the picture: larger, and standing on the top edge of the answer it gets */
#vloge .vl-q{position:absolute!important;z-index:4;right:0;bottom:calc(100% - 14px);margin:0!important;max-width:min(88%,470px)!important;padding:13px 18px!important;font-size:16px!important;line-height:1.45!important;border-radius:18px 18px 5px 18px!important;box-shadow:0 2px 4px rgba(11,12,11,.14),0 22px 30px -16px rgba(11,12,11,.5);translate:calc(var(--vl-px,0)*8px) calc(var(--vl-py,0)*5px)}

/* the lines, outside the draft's page */
.vlL{position:absolute;z-index:3;pointer-events:none;overflow:visible;display:none}
.vlL path{fill:none;stroke:#151614;stroke-width:1.2;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;transition:stroke-dashoffset .35s cubic-bezier(.3,.7,.3,1) .62s,stroke .25s,stroke-width .25s}
.vlL path[data-j="2"]{transition-delay:.71s,0s,0s}.vlL path[data-j="3"]{transition-delay:.8s,0s,0s}.vlL path[data-j="4"]{transition-delay:.89s,0s,0s}
.vlL circle{fill:#151614;transform-box:fill-box;transform-origin:center;transition:transform .4s cubic-bezier(.16,1,.3,1) 1.1s,fill .25s}
html[data-fxw~="vl"] .vlL path{stroke-dashoffset:1}
html[data-fxw~="vl"] .vlL circle{transform:scale(0)}
@keyframes vlDraw{from{stroke-dashoffset:1}}
@keyframes vlDot{from{transform:scale(0)}}
.vlL.vlL-sw path{animation:vlDraw .24s cubic-bezier(.3,.7,.3,1) .14s both}
.vlL.vlL-sw circle{animation:vlDot .25s cubic-bezier(.16,1,.3,1) .3s both}
.vlL.vlL-sw path[data-j="2"]{animation-delay:.21s}.vlL.vlL-sw path[data-j="3"]{animation-delay:.28s}.vlL.vlL-sw path[data-j="4"]{animation-delay:.35s}
.vlL.vlL-sw circle[data-j="2"]{animation-delay:.37s}.vlL.vlL-sw circle[data-j="3"]{animation-delay:.44s}.vlL.vlL-sw circle[data-j="4"]{animation-delay:.51s}
html[data-fxi] .vlL path,html[data-fxi] .vlL circle{transition:none}
/* a tool or a row under the pointer: its lines stay, the others step back, and the rows that came from that tool are ringed */
.vlL[data-h] path{stroke:#C3C5BE}.vlL[data-h] circle{fill:#C3C5BE}
.vlL[data-h="1"] path[data-i="1"],.vlL[data-h="2"] path[data-i="2"],.vlL[data-h="3"] path[data-i="3"],.vlL[data-h="4"] path[data-i="4"],.vlL[data-h="5"] path[data-i="5"],.vlL[data-h="6"] path[data-i="6"],.vlL[data-h="7"] path[data-i="7"]{stroke:#151614;stroke-width:1.8}
.vlL[data-h="1"] circle[data-i="1"],.vlL[data-h="2"] circle[data-i="2"],.vlL[data-h="3"] circle[data-i="3"],.vlL[data-h="4"] circle[data-i="4"],.vlL[data-h="5"] circle[data-i="5"],.vlL[data-h="6"] circle[data-i="6"],.vlL[data-h="7"] circle[data-i="7"]{fill:#151614}
html[data-vl-hr~="1"] #vloge .vl-r:nth-child(1),html[data-vl-hr~="2"] #vloge .vl-r:nth-child(2),html[data-vl-hr~="3"] #vloge .vl-r:nth-child(3),html[data-vl-hr~="4"] #vloge .vl-r:nth-child(4),html[data-vl-hr~="5"] #vloge .vl-r:nth-child(5),html[data-vl-hr~="6"] #vloge .vl-r:nth-child(6){box-shadow:0 0 0 1.5px #151614!important;background:#fff!important}

/* a change of role: the rows arrive again, quicker than the first time; the tools and the lines come with their rows */
html[data-vl-sw] #vloge .vl-r{opacity:0!important;transform:translateY(8px)!important;transition:none!important}
/* the buttons under the rows step out with them and come back after the last row */
html[data-vl-sw] #vloge .vl-x{opacity:0!important;transition:none!important}
html[data-vl-sn] #vloge .vl-x{transition-delay:.3s!important}
html[data-vl-sn] #vloge .vl-r:nth-child(1){transition-delay:0s!important}html[data-vl-sn] #vloge .vl-r:nth-child(2){transition-delay:.07s!important}html[data-vl-sn] #vloge .vl-r:nth-child(3){transition-delay:.14s!important}html[data-vl-sn] #vloge .vl-r:nth-child(4){transition-delay:.21s!important}html[data-vl-sn] #vloge .vl-r:nth-child(5){transition-delay:.28s!important}html[data-vl-sn] #vloge .vl-r:nth-child(6){transition-delay:.35s!important}

/* the tools: every tool keeps its place in the page's order of nodes, its place on screen comes from which rows it gave */
#vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(1){order:var(--vl-o1,20)}
#vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(2){order:var(--vl-o2,20)}
#vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(3){order:var(--vl-o3,20)}
#vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(4){order:var(--vl-o4,20)}
#vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(5){order:var(--vl-o5,20)}
#vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(6){order:var(--vl-o6,20)}
#vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(7){order:var(--vl-o7,20)}

/* below 1200: the tools are a row of names right above the question and its answer; the ones this answer used come first and stand out */
@media (max-width:1199px){
  #vloge [data-fx="vl"]>.na-on-dark{margin-top:76px;margin-bottom:20px}
  #vloge .vl-q{font-size:15px!important;max-width:92%!important}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span{background:none!important;box-shadow:inset 0 0 0 1px rgba(21,22,20,.13);color:#5B5F65!important}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span>span{background:#fff!important}
  html[data-vl-on~="1"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(1),
  html[data-vl-on~="2"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(2),
  html[data-vl-on~="3"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(3),
  html[data-vl-on~="4"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(4),
  html[data-vl-on~="5"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(5),
  html[data-vl-on~="6"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(6),
  html[data-vl-on~="7"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(7){background:#fff!important;color:#151614!important;box-shadow:0 0 0 1px rgba(21,22,20,.08),0 8px 12px -8px rgba(11,12,11,.34)}
  html[data-vl-on~="1"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(1)>span,
  html[data-vl-on~="2"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(2)>span,
  html[data-vl-on~="3"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(3)>span,
  html[data-vl-on~="4"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(4)>span,
  html[data-vl-on~="5"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(5)>span,
  html[data-vl-on~="6"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(6)>span,
  html[data-vl-on~="7"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(7)>span{background:#F3F3F0!important}
}
/* one column: text, link, then the tools, the question and the answer */
@media (max-width:799px){
  #vloge [data-fx="vl"]{display:flex!important;flex-direction:column;flex-wrap:nowrap!important;gap:0!important;align-items:stretch!important}
  #vloge [data-fx="vl"]>div:first-child>div:first-child{order:1}
  #vloge [data-fx="vl"]>div:first-child>ul{order:2;margin-top:22px!important}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>a{order:3;margin-top:18px!important}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>span{order:4;margin-top:38px}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>div{order:5;margin-top:10px}
  #vloge [data-fx="vl"]>.na-on-dark{order:6;flex:none!important}
}
/* two columns without room for the tools between them: text on the left; the tools, the question and the answer on the right */
@media (min-width:800px) and (max-width:1199px){
  #vloge [data-fx="vl"]{display:grid!important;grid-template-columns:minmax(240px,.62fr) minmax(0,1.38fr);grid-template-rows:auto auto 1fr;column-gap:clamp(24px,3.4vw,40px);row-gap:0!important;align-items:start}
  #vloge [data-fx="vl"]>div:first-child>div:first-child{grid-column:1;grid-row:1;margin-bottom:22px}
  #vloge [data-fx="vl"]>div:first-child>ul{grid-column:1;grid-row:2}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>a{grid-column:1;grid-row:3;align-self:start;margin-top:22px!important}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>span{grid-column:2;grid-row:1}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>div{grid-column:2;grid-row:1;margin-top:26px}
  #vloge [data-fx="vl"]>.na-on-dark{grid-column:2;grid-row:2/4}
}

/* 1200 and wider: text | tools | answer. The tools this answer used are docked on the left edge of the answer, each level with the rows it gave */
@media (min-width:1200px){
  .vlL{display:block}
  #vloge [data-fx="vl"]{display:grid!important;grid-template-columns:minmax(250px,.8fr) clamp(18px,2.4vw,36px) clamp(184px,15vw,216px) minmax(0,1.32fr);grid-template-rows:auto auto 1fr;gap:0!important;align-items:start;padding-top:52px}
  #vloge [data-fx="vl"]>div:first-child>div:first-child{grid-column:1;grid-row:1;margin-bottom:22px}
  #vloge [data-fx="vl"]>div:first-child>ul{grid-column:1;grid-row:2}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>a{grid-column:1;grid-row:3;margin-top:22px!important}
  #vloge [data-fx="vl"]>.na-on-dark{grid-column:4;grid-row:1/4}
  #vloge [data-fx="vl"]>.na-on-dark ol{margin-left:44px!important}
  #vloge [data-fx="vl"]>.na-on-dark .vl-a,#vloge [data-fx="vl"]>.na-on-dark .vl-x{padding-left:44px!important}
  /* the heading of the answer starts on the same left edge; its rule still runs the full width */
  #vloge [data-fx="vl"]>.na-on-dark>div:last-child>div:first-child{padding-left:44px!important}
  /* the logo inside a row steps out of sight once the script has docked its tool (it marks the root element); its name stays for screen readers */
  html[data-vl-on]:not([data-vl-miss~="1"]) #vloge .vl-r:nth-child(1)>img,html[data-vl-on]:not([data-vl-miss~="2"]) #vloge .vl-r:nth-child(2)>img,html[data-vl-on]:not([data-vl-miss~="3"]) #vloge .vl-r:nth-child(3)>img,html[data-vl-on]:not([data-vl-miss~="4"]) #vloge .vl-r:nth-child(4)>img,html[data-vl-on]:not([data-vl-miss~="5"]) #vloge .vl-r:nth-child(5)>img,html[data-vl-on]:not([data-vl-miss~="6"]) #vloge .vl-r:nth-child(6)>img{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip-path:inset(50%)}
  /* one right edge for the label, the names of the docked tools and the tools below them */
  #vloge [data-fx="vl"]>div:first-child>div:last-child>span{grid-column:3;grid-row:1/4;justify-self:end;align-self:start;margin-right:calc(var(--vl-s)*.5 + 12px);margin-top:var(--vl-t,0px)}
  /* the tools this answer did not use: small, in one column below the docked ones, further back */
  #vloge [data-fx="vl"]>div:first-child>div:last-child>div{grid-column:3;grid-row:1/4;align-self:stretch;position:relative;z-index:2;display:flex!important;flex-direction:column;flex-wrap:nowrap!important;align-items:flex-end;gap:5px!important;padding:var(--vl-u,34px) calc(var(--vl-s)*.5 + 12px) 0 0;box-sizing:border-box;min-height:calc(var(--vl-u,34px) + 111px)}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span{flex-direction:row-reverse;gap:8px!important;min-height:0!important;padding:0!important;border-radius:0!important;background:none!important;font-size:12.5px!important;line-height:1.25;text-align:right;color:#5B5F65!important;white-space:nowrap;transition:opacity .4s ease-out,transform .6s cubic-bezier(.16,1,.3,1);transition-delay:.9s}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span>span{flex:none;width:24px!important;height:24px!important;border-radius:7px!important;background:#fff!important;box-shadow:0 0 0 1px rgba(21,22,20,.12)}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span>span>img{width:16px!important;height:16px!important}
  /* a used tool: larger, half on the answer and half off it, with its shadow on both */
  html[data-vl-on~="1"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(1),
  html[data-vl-on~="2"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(2),
  html[data-vl-on~="3"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(3),
  html[data-vl-on~="4"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(4),
  html[data-vl-on~="5"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(5),
  html[data-vl-on~="6"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(6),
  html[data-vl-on~="7"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(7){position:absolute;z-index:2;right:calc(var(--vl-s)*-.5);gap:12px!important;font-size:13px!important;font-weight:500;color:#151614!important;white-space:normal;max-width:calc(100% + var(--vl-s)*.5);translate:calc(var(--vl-px,0)*-4px) calc(-50% + var(--vl-py,0)*-3px)}
  html[data-vl-on~="1"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(1){top:var(--vl-y1,0);transition-delay:calc(.36s + var(--vl-o1,1)*90ms)}
  html[data-vl-on~="2"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(2){top:var(--vl-y2,0);transition-delay:calc(.36s + var(--vl-o2,1)*90ms)}
  html[data-vl-on~="3"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(3){top:var(--vl-y3,0);transition-delay:calc(.36s + var(--vl-o3,1)*90ms)}
  html[data-vl-on~="4"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(4){top:var(--vl-y4,0);transition-delay:calc(.36s + var(--vl-o4,1)*90ms)}
  html[data-vl-on~="5"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(5){top:var(--vl-y5,0);transition-delay:calc(.36s + var(--vl-o5,1)*90ms)}
  html[data-vl-on~="6"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(6){top:var(--vl-y6,0);transition-delay:calc(.36s + var(--vl-o6,1)*90ms)}
  html[data-vl-on~="7"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(7){top:var(--vl-y7,0);transition-delay:calc(.36s + var(--vl-o7,1)*90ms)}
  html[data-vl-on~="1"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(1)>span,
  html[data-vl-on~="2"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(2)>span,
  html[data-vl-on~="3"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(3)>span,
  html[data-vl-on~="4"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(4)>span,
  html[data-vl-on~="5"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(5)>span,
  html[data-vl-on~="6"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(6)>span,
  html[data-vl-on~="7"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(7)>span{width:var(--vl-s)!important;height:var(--vl-s)!important;border-radius:13px!important;background:#fff!important;box-shadow:0 0 0 1px rgba(21,22,20,.1),0 2px 4px rgba(11,12,11,.08),0 14px 20px -10px rgba(11,12,11,.42),0 28px 36px -24px rgba(11,12,11,.3)}
  html[data-vl-on~="1"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(1)>span>img,
  html[data-vl-on~="2"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(2)>span>img,
  html[data-vl-on~="3"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(3)>span>img,
  html[data-vl-on~="4"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(4)>span>img,
  html[data-vl-on~="5"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(5)>span>img,
  html[data-vl-on~="6"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(6)>span>img,
  html[data-vl-on~="7"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(7)>span>img{width:calc(var(--vl-s)*.54)!important;height:calc(var(--vl-s)*.54)!important}
  /* waiting to arrive with the rest of the section, and stepping in again after a change of role, each with its first row */
  html[data-vl-sn] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(1){transition-delay:calc((var(--vl-o1,5.5) - 1)*70ms)}
  html[data-vl-sn] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(2){transition-delay:calc((var(--vl-o2,5.5) - 1)*70ms)}
  html[data-vl-sn] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(3){transition-delay:calc((var(--vl-o3,5.5) - 1)*70ms)}
  html[data-vl-sn] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(4){transition-delay:calc((var(--vl-o4,5.5) - 1)*70ms)}
  html[data-vl-sn] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(5){transition-delay:calc((var(--vl-o5,5.5) - 1)*70ms)}
  html[data-vl-sn] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(6){transition-delay:calc((var(--vl-o6,5.5) - 1)*70ms)}
  html[data-vl-sn] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span:nth-child(7){transition-delay:calc((var(--vl-o7,5.5) - 1)*70ms)}
  html[data-fxw~="vl"] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span,html[data-vl-sw] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span{opacity:0;transform:translateX(-16px)}
  html[data-fxi] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span,html[data-vl-sw] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span{transition:none}
}
@media (prefers-reduced-motion:reduce){
  /* nothing follows the pointer, also when the reader turns reduced motion on with the page open */
  #vloge [data-fx="vl"]{--vl-px:0;--vl-py:0}
  html[data-vl-sw] #vloge .vl-r{opacity:1!important;transform:none!important}
  html[data-vl-sw] #vloge .vl-x{opacity:1!important}
  .vlL path,.vlL circle,.vlL.vlL-sw path,.vlL.vlL-sw circle{transition:none;animation:none}
  #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span{transition:none!important}
  html[data-vl-sw] #vloge [data-fx="vl"]>div:first-child>div:last-child>div>span{opacity:1;transform:none}
}
