/* Látkové množstvo a molárna hmotnosť – výrez periodickej tabuľky (skupiny 1, 2, 8, 14–17), prvky zlúčeniny so zadaným M
   svietia tyrkysovo, medené prepojky vedú do štítku so vzorcom a súčtom atómových hmotností, pod ním reťazec m ÷ M → n → × Nₐ.
   Papierová krémová tabuľa / tyrkys / meď. */
.mmf-fig{--mmf-bg1:#f7f4ec;--mmf-bg2:#efe9db;--mmf-ink:#22303a;--mmf-mut:#6b7480;--mmf-gh:#cfc6b2;--mmf-tile:#fffdf7;--mmf-tl:#b9ae95;
  --mmf-on:#0f8f8a;--mmf-on2:#d9f3ef;--mmf-ontx:#06403e;--mmf-cu:#c46d2e;--mmf-plate:#22303a;--mmf-ptx:#f7f1e3;--mmf-pmut:#b9c3cc;
  --mmf-chip:#fff;--mmf-chipl:#d8cfbb;--mmf-n:#0f8f8a;--mmf-H:#e9eef2;--mmf-C:#3b4148;--mmf-O:#e0483e;--mmf-N:#3f6fd8;--mmf-X:#9a7bd1;
  position:relative;margin:.3rem 0 1rem;padding:.6rem .55rem .4rem;border-radius:14px;
  background:radial-gradient(120% 90% at 0 0,var(--mmf-bg1),var(--mmf-bg2));transition:opacity .3s,filter .3s}
@media(prefers-color-scheme:dark){.mmf-fig{--mmf-bg1:#1f2a33;--mmf-bg2:#17202a;--mmf-ink:#eef3f6;--mmf-mut:#a9b4bf;--mmf-gh:#3a4855;--mmf-tile:#26333e;--mmf-tl:#4a5a68;
  --mmf-on:#3fd2c8;--mmf-on2:#123d3e;--mmf-ontx:#c9fbf6;--mmf-cu:#f0a060;--mmf-plate:#0f161d;--mmf-ptx:#f1ede2;--mmf-pmut:#93a1ad;
  --mmf-chip:#22303b;--mmf-chipl:#3c4c59;--mmf-n:#3fd2c8;--mmf-H:#dfe6ec;--mmf-C:#78828d}}
.mmf-fig.is-ex{opacity:.82;filter:saturate(.8)}
.mmf-ex{display:none;position:absolute;top:.45rem;right:.6rem;z-index:2;padding:.05rem .5rem;border-radius:4px;background:var(--mmf-ink);color:var(--mmf-bg1);font:800 .7rem/1.5 system-ui,sans-serif;letter-spacing:.06em}
.mmf-fig.is-ex .mmf-ex{display:block}
.mmf-svg{display:block;width:100%;max-width:700px;height:auto;margin:0 auto;overflow:visible}
.mmf-svg text{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
.mmf-grp{fill:var(--mmf-mut);font-size:9px;font-weight:700;text-anchor:middle;letter-spacing:.04em}
.mmf-gap{fill:var(--mmf-tl);font-size:13px;text-anchor:middle}
.mmf-ghost{fill:none;stroke:var(--mmf-gh);stroke-width:1.2;stroke-dasharray:3 3}
.mmf-tile rect{fill:var(--mmf-tile);stroke:var(--mmf-tl);stroke-width:1.2}
.mmf-z{fill:var(--mmf-mut);font-size:8px;font-weight:700}
.mmf-sym{fill:var(--mmf-ink);font-size:17px;font-weight:800;text-anchor:middle}
.mmf-am{fill:var(--mmf-mut);font-size:7.5px;font-weight:600;text-anchor:middle}
.mmf-tile.is-on rect{fill:var(--mmf-on2);stroke:var(--mmf-on);stroke-width:2.2}
.mmf-tile.is-on .mmf-sym{fill:var(--mmf-ontx)}
.mmf-tile.is-on .mmf-z,.mmf-tile.is-on .mmf-am{fill:var(--mmf-on)}
.mmf-tile.is-on{animation:mmf-glow 2.8s ease-in-out infinite}
@keyframes mmf-glow{50%{opacity:.78}}
.mmf-wire{fill:none;stroke:var(--mmf-cu);stroke-width:1.6;stroke-dasharray:4 3;opacity:.85;animation:mmf-flow 1.6s linear infinite}
@keyframes mmf-flow{to{stroke-dashoffset:-14}}
.mmf-pin{fill:var(--mmf-cu)}
.mmf-plate>rect:first-child{fill:var(--mmf-plate)}
.mmf-band{fill:var(--mmf-on)}
.mmf-plate.is-unk .mmf-band{fill:var(--mmf-cu)}
.mmf-form{fill:var(--mmf-ptx);font-size:30px;font-weight:800;letter-spacing:.01em}
.mmf-form.is-q{fill:var(--mmf-cu);font-style:italic}
.mmf-sub{font-size:18px}
.mmf-sum{fill:var(--mmf-pmut);font-size:12.5px;font-weight:600}
.mmf-sum.is-long{font-size:10.5px}
.mmf-mm{fill:var(--mmf-on);font-size:14px;font-weight:800}
.mmf-plate.is-unk .mmf-mm{fill:var(--mmf-cu)}
.mmf-bond{stroke:var(--mmf-pmut);stroke-width:3;opacity:.7}
.mmf-atom{stroke:rgba(0,0,0,.35);stroke-width:1;fill:var(--mmf-X)}
.mmf-a-H{fill:var(--mmf-H)}.mmf-a-C{fill:var(--mmf-C)}.mmf-a-O{fill:var(--mmf-O)}.mmf-a-N{fill:var(--mmf-N)}
.mmf-a-Na{fill:#a879e0}.mmf-a-Cl{fill:#3fbf5a}.mmf-a-S{fill:#e5c22e}.mmf-a-Fe{fill:#c06a3b}.mmf-a-Ca{fill:#8fa3b5}.mmf-a-Mg{fill:#5cc28a}
.mmf-chip rect{fill:var(--mmf-chip);stroke:var(--mmf-chipl);stroke-width:1.2}
.mmf-cl{fill:var(--mmf-mut);font-size:12px;font-weight:800;font-style:italic}
.mmf-cv{fill:var(--mmf-ink);font-size:13.5px;font-weight:700;text-anchor:end}
.mmf-chip.is-n rect{stroke:var(--mmf-n);stroke-width:2}
.mmf-chip.is-n .mmf-cv{fill:var(--mmf-n);font-size:15px;font-weight:900}
.mmf-chip.is-cnt rect{stroke-dasharray:4 3}
.mmf-arr{fill:none;stroke:var(--mmf-mut);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(prefers-reduced-motion:reduce){.mmf-tile.is-on,.mmf-wire{animation:none}}
