/* ===== Mockup: Kruh z obvodu – žltý krajčírsky meter obtočený okolo kotúča; stupnica pásky sa prispôsobí obvodu,
   na prekrytí konca so začiatkom je červený odpočet o, chvost pásky pokračuje doprava. Vnútri r, d a bodkovaná plocha S. ===== */
.tpw-fig{
  --tpw-bg:#f6f1ea;--tpw-bg2:#efe6da;--tpw-disc:#ffffff;--tpw-discb:#d9cbb7;--tpw-dot:#c9b79c;--tpw-tape:#f6c331;--tpw-tape2:#e0a91c;
  --tpw-tick:#3a2a12;--tpw-ink:#2b2219;--tpw-mut:#7d6c57;--tpw-red:#d62f2f;--tpw-r:#2563eb;--tpw-d:#7c3aed;--tpw-s:#c9b79c;
  --tpw-chip:#fffdf9;--tpw-chipb:#e6d9c6;--tpw-cap:#9aa3ad;
  position:relative;margin:.2rem 0 .9rem;padding:.55rem .6rem .35rem;border-radius:16px;overflow:hidden;
  background:var(--tpw-bg);
  background-image:repeating-linear-gradient(115deg,transparent 0 22px,color-mix(in srgb,var(--tpw-bg2) 70%,transparent) 22px 23px);
  border:1px solid var(--tpw-chipb)
}
@media(prefers-color-scheme:dark){
  .tpw-fig{--tpw-bg:#262421;--tpw-bg2:#34302b;--tpw-disc:#2f3442;--tpw-discb:#4a5266;--tpw-dot:#5b6680;--tpw-tape:#e9bb3a;--tpw-tape2:#b9871a;
    --tpw-tick:#2a1d08;--tpw-ink:#f3efe8;--tpw-mut:#bfb3a2;--tpw-red:#ff6b6b;--tpw-r:#7aa7ff;--tpw-d:#c4a1ff;--tpw-s:#8592ad;
    --tpw-chip:#2e2b27;--tpw-chipb:#4a443c;--tpw-cap:#c3cad2}
}
.tpw-svg{display:block;width:100%;height:auto;overflow:visible;font-family:"Segoe UI",system-ui,-apple-system,sans-serif}
.tpw-ex{position:absolute;top:.55rem;right:.7rem;z-index:1;font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--tpw-mut);border:1px dashed var(--tpw-mut);border-radius:999px;padding:.08rem .5rem;display:none}
.tpw-fig.is-ex .tpw-ex{display:block}
.tpw-fig.is-ex .tpw-svg{opacity:.8;filter:saturate(.75)}

.tpw-disc{fill:var(--tpw-disc);stroke:var(--tpw-discb);stroke-width:1.5}
.tpw-dot{fill:var(--tpw-dot)}
.tpw-area{stroke:none}
.tpw-dia{stroke:var(--tpw-d);stroke-width:2.4;stroke-dasharray:7 5;stroke-linecap:round}
.tpw-rad{stroke:var(--tpw-r);stroke-width:3;stroke-linecap:round}
.tpw-ctr{fill:var(--tpw-ink)}
.tpw-lab{font-size:17px;font-weight:800;font-style:italic;text-anchor:middle;paint-order:stroke;stroke:var(--tpw-disc);stroke-width:4px;stroke-linejoin:round}
.tpw-lr{fill:var(--tpw-r)}
.tpw-ld{fill:var(--tpw-d)}
.tpw-ls{fill:var(--tpw-mut)}

.tpw-tape{fill:none;stroke:var(--tpw-tape)}
.tpw-edge{fill:none;stroke:var(--tpw-tape2);stroke-width:1.2}
.tpw-tick{stroke:var(--tpw-tick);stroke-width:1;stroke-linecap:butt}
.tpw-tick.mj{stroke-width:1.6}
.tpw-num{fill:var(--tpw-tick);font-size:10px;font-weight:700;text-anchor:middle;dominant-baseline:central;font-variant-numeric:tabular-nums}
.tpw-tail{fill:var(--tpw-tape);stroke:var(--tpw-tape2);stroke-width:1.2;stroke-linejoin:round}
.tpw-tailg{filter:drop-shadow(0 2px 1.5px rgba(0,0,0,.18))}
.tpw-cap{stroke:var(--tpw-cap);stroke-width:7;stroke-linecap:round}
.tpw-mark{stroke:var(--tpw-red);stroke-width:2.6;stroke-linecap:round}
.tpw-callline{stroke:var(--tpw-red);stroke-width:1.6}
.tpw-call rect{fill:var(--tpw-red)}
.tpw-call text{fill:#fff;font-size:15px;font-weight:800;text-anchor:middle;font-variant-numeric:tabular-nums}
.tpw-fig:not(.is-ex) .tpw-call{animation:tpw-blink .6s ease-out}

.tpw-formula{fill:var(--tpw-mut);font-size:14px;font-weight:700;font-style:italic}
.tpw-chip{fill:var(--tpw-chip);stroke:var(--tpw-chipb);stroke-width:1.2}
.tpw-row-r .tpw-sw{fill:var(--tpw-r)}
.tpw-row-d .tpw-sw{fill:var(--tpw-d)}
.tpw-row-s .tpw-sw{fill:var(--tpw-s)}
.tpw-k{fill:var(--tpw-mut);font-size:16px;font-weight:800;font-style:italic}
.tpw-row-r .tpw-k{fill:var(--tpw-r)}
.tpw-row-d .tpw-k{fill:var(--tpw-d)}
.tpw-v{fill:var(--tpw-ink);font-size:16.5px;font-weight:800;text-anchor:end;font-variant-numeric:tabular-nums}

@keyframes tpw-blink{0%{opacity:.2}100%{opacity:1}}
@media(prefers-reduced-motion:reduce){.tpw-fig .tpw-call{animation:none}}
