/* Shared "smart" layer (2026-11-17): self-hiding header, back-to-top with progress ring, phone action bar. Colours per site through --smart-*. */
.smart-head{transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .3s;will-change:transform}
.smart-head.smart-hide{transform:translateY(-110%)}
.smart-head.smart-scrolled{box-shadow:0 10px 30px -18px rgba(0,0,0,.45)}

.smart-top{position:fixed;bottom:24px;inset-inline-end:22px;z-index:70;width:50px;height:50px;border:0;border-radius:50%;background:#fff;cursor:pointer;padding:0;box-shadow:0 10px 26px -10px rgba(0,0,0,.4);opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .3s,transform .3s,visibility .3s}
.smart-top.smart-on{opacity:1;visibility:visible;transform:none}
.smart-top svg{width:100%;height:100%;display:block;fill:none;stroke-linecap:round;stroke-linejoin:round}
.smart-top-t{stroke:rgba(0,0,0,.08);stroke-width:3}
.smart-top-p{stroke:var(--smart-acc,#D48A2A);stroke-width:3;transform:rotate(-90deg);transform-origin:50% 50%;transition:stroke-dashoffset .15s linear}
.smart-top path{stroke:var(--smart-bg,#14294D);stroke-width:2.6}
.smart-top:hover{transform:translateY(-3px)}

.smart-bar{display:none}
@media (max-width:760px){
  .smart-bar{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;inset-inline:10px;bottom:10px;z-index:80;background:var(--smart-bg,#14294D);border-radius:18px;padding:6px;gap:4px;box-shadow:0 16px 34px -14px rgba(0,0,0,.55)}
  .smart-bar-i{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px 7px;border-radius:13px;color:var(--smart-fg,#fff);font-size:12.5px;font-weight:700;text-decoration:none;line-height:1.2}
  .smart-bar-i svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .smart-bar-wa{background:#25d366;color:#fff}
  .smart-bar-off{background:var(--smart-acc,#D48A2A);color:var(--smart-acc-fg,#fff)}
  .smart-has-bar body{padding-bottom:86px}
  .smart-top{bottom:96px;inset-inline-end:14px;width:44px;height:44px}
  /* the round floating buttons are replaced by the bar on phones */
  .smart-has-bar .jn-wa,.smart-has-bar .md-wa,.smart-has-bar .wa-float,.smart-has-bar .ej-wa,.smart-has-bar .tg-floating,.smart-has-bar .floating-btn{display:none!important}
}
@media (prefers-reduced-motion:reduce){.smart-head,.smart-top{transition:none}}
@media print{.smart-bar,.smart-top{display:none!important}}
