/* 3dscan.lv — additions for the multi-page static site (loaded after site.css) */

/* anchors land below the sticky header */
[id]{scroll-margin-top:96px}
.view [id]{scroll-margin-top:140px}

/* pages are always visible: the prototype's view switcher is not used here */
main > .view{animation:none}

/* without JavaScript: menus open on hover / keyboard focus, language menu too */
html:not(.js) .dd:hover > .dd-panel,
html:not(.js) .dd:focus-within > .dd-panel,
html:not(.js) .lang:hover > .lang-menu,
html:not(.js) .lang:focus-within > .lang-menu{display:block!important}
html:not(.js) .burger,
html:not(.js) .fbtn,
html:not(.js) .fp-close,
html:not(.js) .fp-foot,
html:not(.js) .fg-more,
html:not(.js) .hv-pp,
html:not(.js) .cmp-cb,
html:not(.js) .act label,
html:not(.js) .mc-copy,
html:not(.js) #pm-copy{display:none!important}
html:not(.js) .fg-list label.fx{display:flex}
@media (max-width:1024px){html:not(.js) nav.main{display:none}}

/* language links look like the prototype's buttons */
.lang-menu a{width:100%;display:flex;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:6px;font:500 14px var(--f-body);color:var(--ink);text-decoration:none;box-sizing:border-box}
.lang-menu a:hover,.lang-menu a:focus-visible{background:var(--mist)}
.lang-menu a[aria-current="true"]{font-weight:700}
.f-lang a{text-decoration:none}
.f-lang a:hover{color:#fff}
.f-lang a.on{background:#2c333a;color:#fff}

/* "Īsumā" dialogs: work as :target without JavaScript, the script opens them in place */
.mini-dlg.st{display:none}
.mini-dlg.st:target,.mini-dlg.st.open{display:flex}
.mini-dlg.st .md-bg{position:absolute;inset:0}
.mini-dlg.st .md-box{position:relative}
.mini-dlg.st .md-x{text-decoration:none;display:grid;place-items:center}

/* catalogue: product count without the prototype note */
.cat-top .count{white-space:nowrap}
