/* Chrysalis v2: the calculator's syringe and vial as real renders (inc/v2/v2-calc.php, assets/v4/v2-calc.js; 11 Nov 2026).
   calc.js's own drawings stay in the page and are only hidden: with the switch off nothing here is loaded. */
body.chv2-calc .c3-root.k3c-page .k3c-syr{display:none!important}
body.chv2-calc .c3-root.k3c-page .k3c-vial svg{display:none!important}

/* the syringe: plunger (moves) < liquid < glass barrel (laid on with "screen": its black is see-through, its lights stay) < scale */
.chv2-syr{position:relative;margin:26px -10px 4px;overflow:hidden}
.chv2-syr[hidden]{display:none}
.chv2-syr__in{position:relative;width:100%;aspect-ratio:4/1}
.chv2-syr__in img{position:absolute;left:0;top:0;display:block;width:100%;height:100%;max-width:none;pointer-events:none;-webkit-user-select:none;user-select:none}
/* no mask on the whole syringe: a mask would close it off from the card behind it and the glass's black would show */
.chv2-syr__pw{--chv2-edge:100%;position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(var(--chv2-edge) - 46px),transparent var(--chv2-edge));mask-image:linear-gradient(90deg,#000 0,#000 calc(var(--chv2-edge) - 46px),transparent var(--chv2-edge))}
.chv2-syr__pl{transition:transform .64s cubic-bezier(.22,.61,.36,1);will-change:transform}
.chv2-syr__bd{mix-blend-mode:screen}
.chv2-syr__liq{position:absolute;left:12.9%;top:38.7%;width:1.23%;height:22.6%;border-radius:2px 0 0 2px;
  background:linear-gradient(180deg,rgba(190,205,255,.36) 0,rgba(140,160,255,.17) 26%,rgba(120,140,240,.1) 62%,rgba(190,205,255,.26) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset -2px 0 0 rgba(255,255,255,.55);transition:width .64s cubic-bezier(.22,.61,.36,1),opacity .2s}
.chv2-syr.is-empty .chv2-syr__liq{opacity:0}
.chv2-syr__sc{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.chv2-syr__sc line{stroke:rgba(255,255,255,.5);stroke-width:1;vector-effect:non-scaling-stroke}
.chv2-syr__sc line.is-mid{stroke:rgba(255,255,255,.72)}
.chv2-syr__sc line.is-major{stroke:#fff}
.chv2-syr__sc text{fill:#A6A7AD;font-size:27px;text-anchor:middle;font-family:inherit;font-feature-settings:"tnum" 1}
.chv2-syr__pt{position:absolute;top:66%;left:14.13%;width:0;height:0;margin-left:-6px;border:6px solid transparent;border-top:0;border-bottom:8px solid #fff;transition:left .64s cubic-bezier(.22,.61,.36,1)}
@media (max-width:899px){
  .chv2-syr{margin:16px -8px 0}
  .chv2-syr__in{width:138%}
  .chv2-syr__pw{--chv2-edge:72.46%}   /* = where the wider picture leaves the view */
  .chv2-syr__sc text{font-size:31px}
  .chv2-syr__pt{margin-left:-5px;border-width:5px;border-bottom-width:7px}
}
@media (prefers-reduced-motion:reduce){.chv2-syr__pl,.chv2-syr__liq,.chv2-syr__pt{transition:none}}

/* the vial beside the answer: the shop's own render (its picture has air around the vial, so it is drawn larger than its box) */
body.chv2-calc .c3-root.k3c-page .k3c-vial{overflow:hidden}   /* the picture is wider than its box (air around the vial): never a sideways scroll */
/* in the 600 x 750 picture the vial is 216 wide from x 192, cap at y 155, foot at y 600, its mirror image below: drawn 2.5 times
   the box wide so the vial is 0.9 of the box, and faded out under its foot */
body.chv2-calc .c3-root.k3c-page .k3c-vial .chv2-vial{display:block;width:250%;max-width:none;height:auto;margin:-62% -75% -58%;pointer-events:none;
  -webkit-mask-image:linear-gradient(180deg,#000 0,#000 80.5%,transparent 88%);mask-image:linear-gradient(180deg,#000 0,#000 80.5%,transparent 88%)}
/* 12 Nov 2026 (Alik: "keep the object at top but all the rest info under it"): in the answer card the vial (or the pen) and the
   syringe come first, the answer and every number under them. */
body.chv2-calc .c3-root.k3c-page .k3c-out{display:flex;flex-direction:column}
body.chv2-calc .c3-root.k3c-page .k3c-out__top{display:contents}
body.chv2-calc .c3-root.k3c-page .k3c-out .k3c-vial{order:-4;align-self:center;width:156px;margin:-10px auto -4px}
body.chv2-calc .c3-root.k3c-page .k3c-out .chv2-syr{order:-3;margin-top:4px}
body.chv2-calc .c3-root.k3c-page .k3c-out .k3c-pen{order:-3}
body.chv2-calc .c3-root.k3c-page .k3c-out .k3c-out__read{order:-2;margin-top:18px}
@media (max-width:899px){
  body.chv2-calc .c3-root.k3c-page .k3c-out .k3c-vial{width:124px;margin:-6px auto -2px}
  body.chv2-calc .c3-root.k3c-page .k3c-out .chv2-syr{margin-top:2px}
  body.chv2-calc .c3-root.k3c-page .k3c-out .k3c-out__read{margin-top:14px}
}
