/* Mockup max-loan: "stavidlo, akvadukt a nádrž". Mosadzné potrubie s príjmom, stavidlo delí prúd, pieskovcový
   akvadukt s oblúkmi vedie splátky do nádrže; prerušovaná Σ = všetky splátky, hladina = maximálny úver, výpar = úrok.
   Paleta: pieskovec, azúrová voda, mosadz, bridlicová nádrž. */
.mxl-calc{--mxl-stone:#d8c6a4;--mxl-stone2:#a88d62;--mxl-w1:#3aa0e0;--mxl-w2:#1f6fae;--mxl-foam:#d9f0ff;--mxl-brass:#c79a3a;--mxl-brass2:#8a6418;--mxl-basin:#55606e;--mxl-ink:#1d2430;--mxl-mut:#5c6675;--mxl-steam:#9aa8b8;--mxl-gnd:#b9c79f;--mxl-card:#fbfaf6}
@media(prefers-color-scheme:dark){.mxl-calc{--mxl-stone:#7d6d52;--mxl-stone2:#b59d73;--mxl-w1:#3d9de0;--mxl-w2:#9fd3ff;--mxl-foam:#d3ecff;--mxl-brass:#d9ad4f;--mxl-brass2:#f0cf86;--mxl-basin:#a8b3c2;--mxl-ink:#eef2f7;--mxl-mut:#b2bccb;--mxl-steam:#8796a8;--mxl-gnd:#4f5f3f;--mxl-card:#232831}}

.mxl-calc .cform{position:relative;background:var(--mxl-card);border-color:color-mix(in srgb,var(--mxl-w1) 28%,var(--line))}
.mxl-calc .cform::before{content:"";position:absolute;left:0;right:0;top:0;height:10px;pointer-events:none;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;background:radial-gradient(circle at 12px 10px,transparent 6px,var(--mxl-stone) 6.5px) 0 0/24px 10px repeat-x;opacity:.8}
.mxl-calc .cform .field label{font-weight:700}
.mxl-calc .cform input:focus{border-color:var(--mxl-w1);box-shadow:0 0 0 3px color-mix(in srgb,var(--mxl-w1) 22%,transparent)}
.mxl-calc .cres{border-top-color:var(--mxl-w1)}
.mxl-calc .cres.is-empty{border-top-color:var(--line)}

.mxl-fig{position:relative;margin:.5rem 0 .9rem;padding:1.35rem 0 0;transition:opacity .3s,filter .3s}
.mxl-fig.is-ex{opacity:.72;filter:saturate(.75)}
.mxl-ex{display:none;position:absolute;top:0;left:0;z-index:1;padding:.08rem .5rem;border-radius:4px;background:var(--mxl-basin);color:var(--mxl-card);font:800 .72rem/1.5 system-ui,sans-serif;letter-spacing:.05em}
.mxl-fig.is-ex .mxl-ex{display:block}
.mxl-svg{display:block;width:100%;height:auto;overflow:visible}

.mxl-ground{stroke:var(--mxl-gnd);stroke-width:4;stroke-linecap:round}
.mxl-pipe{fill:var(--mxl-brass);stroke:var(--mxl-brass2);stroke-width:1.5}
.mxl-flange{fill:var(--mxl-brass2)}
.mxl-water{fill:var(--mxl-w1)}
.mxl-flow{fill:var(--mxl-w1);opacity:.92}
.mxl-rest{fill:url(#mxl-fade)}
.mxl-f1{stop-color:var(--mxl-w1);stop-opacity:.75}.mxl-f2{stop-color:var(--mxl-w1);stop-opacity:0}
.mxl-arch{fill:var(--mxl-stone);fill-rule:evenodd;stroke:var(--mxl-stone2);stroke-width:1.5;stroke-linejoin:round}
.mxl-trough{fill:var(--mxl-stone2);opacity:.55}
.mxl-flow2{fill:var(--mxl-w1)}
.mxl-fall{opacity:.85}
.mxl-gate{fill:none;stroke:var(--mxl-ink);stroke-width:3.5;stroke-linecap:round}
.mxl-blade{stroke:var(--mxl-brass2);stroke-width:4;stroke-linecap:round}
.mxl-wheel{fill:var(--mxl-card);stroke:var(--mxl-brass2);stroke-width:2.5}
.mxl-pool{fill:var(--mxl-w1);opacity:.85;transition:y .4s}
.mxl-ripple{stroke:var(--mxl-foam);stroke-width:2.5;stroke-dasharray:10 6;animation:mxl-rip 3s linear infinite}
@keyframes mxl-rip{to{stroke-dashoffset:-32}}
.mxl-basin{fill:none;stroke:var(--mxl-basin);stroke-width:4;stroke-linejoin:round;stroke-linecap:round}
.mxl-cap{stroke:var(--mxl-mut);stroke-width:1.5;stroke-dasharray:5 4}
.mxl-steam path{fill:none;stroke:var(--mxl-steam);stroke-width:2;stroke-linecap:round;animation:mxl-rise 2.4s ease-out infinite;opacity:0}
@keyframes mxl-rise{0%{transform:translateY(4px);opacity:0}30%{opacity:.8}100%{transform:translateY(-12px);opacity:0}}
.mxl-l{font:600 12.5px/1 system-ui,sans-serif;fill:var(--mxl-mut)}
.mxl-v{font:900 19px/1 system-ui,sans-serif;fill:var(--mxl-ink);font-variant-numeric:tabular-nums}
.mxl-vp{fill:var(--mxl-w2)}
.mxl-pct{font:800 12px/1 system-ui,sans-serif;fill:var(--mxl-mut);paint-order:stroke;stroke:var(--mxl-card);stroke-width:3px}
.mxl-yrs{font:800 10.5px/1 system-ui,sans-serif;fill:var(--mxl-ink);opacity:.75;font-variant-numeric:tabular-nums}
.mxl-sum{font:800 12px/1 system-ui,sans-serif;fill:var(--mxl-mut);font-variant-numeric:tabular-nums}
.mxl-loan{font:900 22px/1 system-ui,sans-serif;fill:var(--mxl-w2);font-variant-numeric:tabular-nums}
.mxl-ll.is-in{fill:#fff;opacity:.92}
.mxl-loan.is-in{fill:#fff}
@media(prefers-reduced-motion:reduce){.mxl-ripple,.mxl-steam path{animation:none}.mxl-steam path{opacity:.5}.mxl-pool{transition:none}}
