/* Mockup pe-ratio: "tickerová páska". Hore beží papierová burzová páska s výpočtom cena ÷ EPS = P/E. Pod ňou je
   "páska návratnosti": celá jej dĺžka = cena akcie, rozdelená na úseky veľké ako ročný zisk na akciu (EPS). Počet
   úsekov = P/E, teda koľko rokov by firma pri rovnakom zisku zarábala na cenu akcie. Zátvorka nad prvým úsekom =
   výnos zisku (jeden rok zisku voči cene). Paleta: termopapier, atrament, burzová zelená, červená pri strate. */
.pet-calc{--pet-paper:#fbf3dc;--pet-paper2:#efe2bd;--pet-ink:#2b2a33;--pet-mut:#736a55;--pet-up:#0f8a5f;--pet-dn:#c0352b;--pet-a:#1f6f8b;--pet-b:#8fc7d6;--pet-card:#fffdf6;--pet-line:#eadfc4}
@media(prefers-color-scheme:dark){.pet-calc{--pet-paper:#3a3527;--pet-paper2:#2c281d;--pet-ink:#f6ecd2;--pet-mut:#cbbf9e;--pet-up:#4fe0a3;--pet-dn:#ff8577;--pet-a:#5cc3e0;--pet-b:#2d6576;--pet-card:#2b2a24;--pet-line:#4a4433}}

.pet-calc .cform{position:relative;overflow:hidden;background:var(--pet-card);border-color:var(--pet-line)}
.pet-calc .cform::before{content:"";position:absolute;left:0;right:0;top:0;height:7px;pointer-events:none;background:radial-gradient(circle at 6px 3.5px,var(--pet-line) 2px,transparent 2.6px) 0 0/16px 7px repeat-x,var(--pet-paper2)}
.pet-calc .cform .field label{color:var(--pet-ink);font-weight:700}
.pet-calc .cform input{font-family:ui-monospace,"SFMono-Regular",Consolas,monospace}
.pet-calc .cform input:focus{border-color:var(--pet-a);box-shadow:0 0 0 3px color-mix(in srgb,var(--pet-a) 22%,transparent)}
.pet-calc .cres{border-top:5px solid var(--pet-a)}
.pet-calc .cres.is-empty{border-top-color:var(--pet-line)}
.pet-calc .tile:first-child dd{font-family:ui-monospace,"SFMono-Regular",Consolas,monospace}

.pet-fig{position:relative;max-width:700px;margin:.6rem auto 1rem;padding:1.35rem 0 0;transition:opacity .3s,filter .3s}
.pet-fig.is-ex{opacity:.66;filter:saturate(.7)}
.pet-ex{display:none;position:absolute;top:0;left:0;z-index:1;padding:.08rem .5rem;border-radius:4px;background:var(--pet-ink);color:var(--pet-paper);font:800 .72rem/1.5 system-ui,sans-serif;letter-spacing:.05em}
.pet-fig.is-ex .pet-ex{display:block}
.pet-svg{display:block;width:100%;height:auto;overflow:visible}
.pet-paper{fill:var(--pet-paper);stroke:var(--pet-paper2);stroke-width:1.5}
.pet-curl{fill:var(--pet-paper2)}
.pet-holes{stroke:var(--pet-paper2);stroke-width:4;stroke-linecap:round;stroke-dasharray:0 14}
.pet-tick{font:700 18px/1 ui-monospace,"SFMono-Regular",Consolas,monospace;fill:var(--pet-ink);white-space:pre}
.pet-tick .pet-up{fill:var(--pet-up)}
.pet-tick .pet-dn{fill:var(--pet-dn)}
.pet-tape{fill:var(--pet-paper);stroke:var(--pet-ink);stroke-width:1.4}
.pet-tape.is-na{fill:url(#pet-hatch)}
.pet-hatch-l{stroke:var(--pet-dn);stroke-width:2;opacity:.45}
.pet-seg{stroke:var(--pet-paper);stroke-width:1.2;transition:opacity .25s}
.pet-sa{fill:var(--pet-a)}.pet-sb{fill:var(--pet-b)}
.pet-seg.is-off{opacity:0}
.pet-brace{fill:none;stroke:var(--pet-up);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pet-cap{font:700 12px/1 system-ui,sans-serif;fill:var(--pet-mut);text-transform:uppercase;letter-spacing:.06em}
.pet-capv{font:900 15px/1 ui-monospace,"SFMono-Regular",Consolas,monospace;fill:var(--pet-up)}
.pet-capv.is-neg{fill:var(--pet-dn)}
.pet-price{font:800 14px/1 ui-monospace,"SFMono-Regular",Consolas,monospace;fill:var(--pet-ink)}
.pet-tk{stroke:var(--pet-ink);stroke-width:1.3}
.pet-tl{font:700 12px/1 ui-monospace,"SFMono-Regular",Consolas,monospace;fill:var(--pet-mut)}
.pet-tl-end{fill:var(--pet-ink);font-weight:900}
.pet-key{stroke:var(--pet-paper);stroke-width:1}
.pet-keyt{font:700 14px/1 ui-monospace,"SFMono-Regular",Consolas,monospace;fill:var(--pet-ink)}
.pet-lab{font:800 14px/1 system-ui,sans-serif;fill:var(--pet-mut);letter-spacing:.04em}
.pet-big{font:900 34px/1 ui-monospace,"SFMono-Regular",Consolas,monospace;fill:var(--pet-a)}
.pet-big.is-na{fill:var(--pet-dn)}
@media(max-width:560px){.pet-tick{font-size:26px}.pet-cap{font-size:19px}.pet-capv{font-size:22px}.pet-price{font-size:21px}.pet-tl{font-size:19px}.pet-keyt{font-size:21px}.pet-lab{font-size:20px}.pet-big{font-size:44px}}
@media(prefers-reduced-motion:reduce){.pet-seg{transition:none}}
