/* Mockup: Lineárna rovnica ax + b = c – rovnoramenné mosadzné váhy na levanduľovom pozadí. Ľavá miska nesie ax + b
   (indigové škatule "x" a oranžové jednotkové kocky), pravá c. Záporné členy = červené balóniky, ktoré misku nadľahčujú.
   Pri riešení sú váhy v rovnováhe a visačka nad osou ukazuje x; pri a = 0 sa váhy nakloní. */
body.mk-le{--le-bg1:#f3effc;--le-bg2:#fde8dc;--le-brass:#c8962e;--le-brass2:#8f6516;--le-brass3:#f0cf7d;--le-str:#6b5a3a;--le-x:#4f46e5;--le-u:#f59e0b;--le-u2:#b45309;
  --le-w:#475569;--le-bal:#ef4444;--le-ink:#2a2140;--le-tag:#fff;--le-tagb:#4f46e5}
@media(prefers-color-scheme:dark){body.mk-le{--le-bg1:#221c38;--le-bg2:#2f1f2a;--le-brass:#d4a640;--le-brass2:#8a6118;--le-brass3:#f5d98e;--le-str:#c9b88f;--le-x:#6d64f5;--le-u:#fbbf24;--le-u2:#c2770c;
  --le-w:#8492a6;--le-bal:#f05656;--le-ink:#f1ecff;--le-tag:#1b1630;--le-tagb:#a5acff}}

.mk-le .cform{border-top:4px solid var(--le-brass)}
.mk-le .cform .fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.mk-le .cform .field>label{font:italic 700 1.15rem Georgia,"Times New Roman",serif}
.mk-le .cform .field:nth-child(1)>label{color:var(--le-x)}
.mk-le .cform .field:nth-child(2)>label{color:var(--le-u2)}
@media(prefers-color-scheme:dark){.mk-le .cform .field:nth-child(1)>label{color:#a5acff}.mk-le .cform .field:nth-child(2)>label{color:var(--le-u)}}
.mk-le .cform input{font-size:1.15rem;font-weight:700;text-align:center}
.mk-le .cres{border-top-color:var(--le-x)}

.le-fig{position:relative;margin:.35rem 0 1rem;padding:6px 6px 0;border-radius:16px;background:radial-gradient(ellipse at 50% 0,var(--le-bg1) 0,var(--le-bg2) 100%)}
.le-svg{display:block;width:100%;height:auto}
.le-ex{position:absolute;top:10px;left:12px;z-index:1;display:none;font:800 .7rem/1 system-ui,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#fff;background:var(--le-x);padding:.28rem .55rem;border-radius:999px}
.le-fig.is-ex .le-ex{display:block}
.le-fig.is-ex .le-art{opacity:.9}

.le-shadow{fill:rgba(40,20,60,.18)}
.le-base{fill:var(--le-brass);stroke:var(--le-brass2);stroke-width:1.5}
.le-post{fill:var(--le-brass);stroke:var(--le-brass2);stroke-width:1.2}
.le-eq{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:700;fill:#3a2606}
.le-bar{fill:var(--le-brass);stroke:var(--le-brass2);stroke-width:1.2}
.le-hook{fill:var(--le-brass3);stroke:var(--le-brass2);stroke-width:1.2}
.le-needle{fill:var(--le-brass2)}
.le-pivot{fill:var(--le-brass3);stroke:var(--le-brass2);stroke-width:2}
.le-arc{fill:none;stroke:var(--le-brass2);stroke-width:2;stroke-dasharray:2 4}
.le-tagstr{stroke:var(--le-str);stroke-width:1.2;stroke-dasharray:3 2}
.le-tag{fill:var(--le-tag);stroke:var(--le-tagb);stroke-width:2.2}
.le-tag-no{stroke:var(--le-bal);stroke-dasharray:5 3}
.le-tagt{font:800 14px ui-monospace,"Cascadia Mono",Consolas,monospace;fill:var(--le-ink)}
.le-str{stroke:var(--le-str);stroke-width:1.3}
.le-dish{fill:var(--le-brass);stroke:var(--le-brass2);stroke-width:1.2}
.le-it{animation:le-pop .35s cubic-bezier(.3,1.5,.5,1) both}
@keyframes le-pop{from{transform:translateY(-10px);opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.le-it{animation:none}}
.le-x rect{fill:var(--le-x);stroke:rgba(0,0,0,.3);stroke-width:1}
.le-x text{font:italic 800 13px Georgia,serif;fill:#fff}
.le-u rect{fill:var(--le-u);stroke:var(--le-u2);stroke-width:1}
.le-w path{fill:var(--le-w);stroke:rgba(0,0,0,.35);stroke-width:1}
.le-w .le-wring{fill:none;stroke:var(--le-w);stroke-width:3}
.le-w text{font:800 12px ui-monospace,Consolas,monospace;fill:#fff}
.le-bal ellipse{fill:var(--le-bal);stroke:rgba(0,0,0,.25);stroke-width:1}
.le-balx ellipse{fill:#e0457b}
.le-bal text{font:800 11px ui-monospace,Consolas,monospace;fill:#fff}
.le-knot{fill:var(--le-bal)}
.le-bstr{fill:none;stroke:var(--le-str);stroke-width:1}

.mk-le #out .tile{background:var(--le-tag);border:2.5px solid var(--le-tagb);border-radius:999px}
.mk-le #out .tile dt{font:italic 700 1rem Georgia,serif}
.mk-le #out .tile dd{font-family:ui-monospace,"Cascadia Mono",Consolas,monospace}
