/* Mockup down-payment: "dom na stĺpikoch mincí". Spodok domu = zlaté stĺpiky mincí (akontácia), zvyšok = modré
   lešenie (požičaná časť), komínom padá ďalšia minca. Paleta: zlato mincí, terakotová strecha, oceľovo modré lešenie. */
.dpm-calc{--dpm-gold:#e7b62f;--dpm-gold2:#a97a0c;--dpm-gold3:#fbe39a;--dpm-roof:#c8553d;--dpm-roof2:#8f3626;--dpm-sc:#4f7cab;--dpm-scbg:#e8f0f9;--dpm-scl:#cddcee;--dpm-wall:#3c4656;--dpm-ink:#1f2633;--dpm-mut:#5d6878;--dpm-gnd:#9bb38a;--dpm-card:#fcfbf7}
@media(prefers-color-scheme:dark){.dpm-calc{--dpm-gold:#f2c443;--dpm-gold2:#b98a17;--dpm-gold3:#fff0b8;--dpm-roof:#e06d53;--dpm-roof2:#a94532;--dpm-sc:#8db6e6;--dpm-scbg:#1f2a3a;--dpm-scl:#2d3d54;--dpm-wall:#c4cddb;--dpm-ink:#f1f4f8;--dpm-mut:#b3bdcb;--dpm-gnd:#5c7350;--dpm-card:#252a32}}

.dpm-calc .cform{position:relative;background:var(--dpm-card);border-color:color-mix(in srgb,var(--dpm-gold) 35%,var(--line))}
.dpm-calc .cform::before{content:"";position:absolute;left:0;right:0;top:0;height:6px;pointer-events:none;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;background:repeating-linear-gradient(90deg,var(--dpm-gold) 0 22px,var(--dpm-gold2) 22px 24px)}
.dpm-calc .cform .field label{font-weight:700}
.dpm-calc .cform input:focus{border-color:var(--dpm-gold2);box-shadow:0 0 0 3px color-mix(in srgb,var(--dpm-gold) 30%,transparent)}
.dpm-calc .cres{border-top-color:var(--dpm-roof)}
.dpm-calc .cres.is-empty{border-top-color:var(--line)}

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

.dpm-ground{stroke:var(--dpm-gnd);stroke-width:4;stroke-linecap:round}
.dpm-roof{fill:var(--dpm-roof);stroke:var(--dpm-roof2);stroke-width:2;stroke-linejoin:round}
.dpm-gable{fill:var(--dpm-scbg);stroke:var(--dpm-roof2);stroke-width:2}
.dpm-gl{stroke:var(--dpm-roof2);stroke-width:1.5}
.dpm-chim{fill:var(--dpm-roof2)}
.dpm-chimcap{fill:var(--dpm-wall)}
.dpm-slot{fill:var(--dpm-gold3)}
.dpm-hb{fill:var(--dpm-scbg)}
.dpm-hl{stroke:var(--dpm-scl);stroke-width:3}
.dpm-loan{fill:url(#dpm-hatch)}
.dpm-scaf{fill:none;stroke:var(--dpm-sc);stroke-width:2;stroke-linecap:round}
.dpm-edge{fill:none;stroke:var(--dpm-sc);stroke-width:1.5;stroke-dasharray:6 4}
.dpm-dpbg{fill:color-mix(in srgb,var(--dpm-gold2) 30%,transparent)}
.dpm-coins rect{fill:var(--dpm-gold);stroke:var(--dpm-gold2);stroke-width:1;animation:dpm-in .4s ease-out both}
.dpm-top{stroke:var(--dpm-gold2);stroke-width:2.5;stroke-linecap:round}
.dpm-house{fill:none;stroke:var(--dpm-wall);stroke-width:3;stroke-linejoin:round}
.dpm-coin{fill:var(--dpm-gold);stroke:var(--dpm-gold2);stroke-width:1.5}
.dpm-coin2{fill:none;stroke:var(--dpm-gold3);stroke-width:1.5}
.dpm-drop{animation:dpm-fall 2.6s cubic-bezier(.5,0,.9,.6) infinite}
@keyframes dpm-fall{0%{transform:translateY(-8px) scaleY(.3);opacity:0}15%{transform:translateY(0) scaleY(1);opacity:1}82%{opacity:1}100%{transform:translateY(var(--dpm-fall,100px)) scaleY(.35);opacity:0}}
@keyframes dpm-in{from{opacity:0}to{opacity:1}}
.dpm-br{fill:none;stroke-width:2;stroke-linejoin:round}
.dpm-brl{stroke:var(--dpm-sc)}
.dpm-brd{stroke:var(--dpm-gold2)}
.dpm-lbl{font:600 12.5px/1 system-ui,sans-serif;fill:var(--dpm-mut)}
.dpm-val{font:900 19px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.dpm-vl{fill:var(--dpm-sc)}
.dpm-vd{fill:var(--dpm-gold2)}
@media(prefers-color-scheme:dark){.dpm-vd{fill:var(--dpm-gold)}}
.dpm-plbl{font:700 11.5px/1 system-ui,sans-serif;fill:var(--dpm-mut);text-transform:uppercase;letter-spacing:.06em}
.dpm-pval{font:900 21px/1 system-ui,sans-serif;fill:var(--dpm-ink);font-variant-numeric:tabular-nums}
.dpm-pline{stroke:var(--dpm-roof);stroke-width:3;stroke-linecap:round}
@media(prefers-reduced-motion:reduce){.dpm-drop{animation:none;opacity:0}.dpm-coins rect{animation:none}}
