/* ORDER 161 (29 Nov 2026): "pressable" button depth. One shared block; colours, sizes, layout are NOT touched.
   4 shadow layers per button: (1) light line inside the top edge, (2) darker band inside the bottom edge,
   (3) tight contact shadow, (4) soft glow below in the button's OWN colour (--bd-c at --bd-glow alpha).
   hover = lift 1px + glow a touch bigger; :active = sinks 1px, inset deepens (shade moves to the top), glow + contact shrink.
   Focus rings are outlines (site.css) and are not changed. Loaded LAST on every page. */
:root{
  --bd-c:#1967D2;              /* the button's own colour: set per variant below */
  --bd-hi:rgb(255 255 255 / .35);
  --bd-sh:rgb(0 0 0 / .20);
  --bd-contact:rgb(0 0 0 / .30);
  --bd-glow:60%;
  --bd-ring:0 0 0 0 transparent;   /* a button that already has a ring (white edge on the green band) keeps it here */
}
/* every button kind in one list */
.btn,.st-btn,.hdr-cta,.cookie-bar .btn,.sform [type=submit],.sform-box [type=submit],.menu-btn,.theme,.chip,.wa-float{
  --bd-rest:
    inset 0 1px 0 var(--bd-hi),
    inset 0 -2px 0 var(--bd-sh),
    0 1px 2px var(--bd-contact),
    0 8px 24px -6px color-mix(in srgb,var(--bd-c) var(--bd-glow),transparent);
  --bd-hover:
    inset 0 1px 0 var(--bd-hi),
    inset 0 -2px 0 var(--bd-sh),
    0 1px 2px var(--bd-contact),
    0 11px 28px -6px color-mix(in srgb,var(--bd-c) calc(var(--bd-glow) + 10%),transparent);
  --bd-down:
    inset 0 1px 0 rgb(255 255 255 / .12),
    inset 0 3px 6px rgb(0 0 0 / .32),
    0 0 1px var(--bd-contact),
    0 2px 8px -4px color-mix(in srgb,var(--bd-c) calc(var(--bd-glow) - 15%),transparent);
  box-shadow:var(--bd-rest),var(--bd-ring)!important;
}
.btn:hover,.st-btn:hover,.hdr-cta:hover,.cookie-bar .btn:hover,.sform [type=submit]:hover,.sform-box [type=submit]:hover,.menu-btn:hover,.theme:hover,.chip:hover,.wa-float:hover{
  box-shadow:var(--bd-hover),var(--bd-ring)!important;transform:translateY(-1px);
}
.btn:active,.st-btn:active,.hdr-cta:active,.cookie-bar .btn:active,.sform [type=submit]:active,.sform-box [type=submit]:active,.menu-btn:active,.theme:active,.chip:active,.wa-float:active{
  box-shadow:var(--bd-down),var(--bd-ring)!important;transform:translateY(1px);
}
@media (prefers-reduced-motion:no-preference){
  .btn,.st-btn,.hdr-cta,.cookie-bar .btn,.sform [type=submit],.sform-box [type=submit],.menu-btn,.theme,.chip{transition:opacity .15s,color .15s,background-color .15s,transform .15s ease,box-shadow .15s ease}
  .wa-float{transition:bottom .2s,transform .15s ease,box-shadow .15s ease}
}
@media (prefers-reduced-motion:reduce){
  .btn:hover,.st-btn:hover,.hdr-cta:hover,.cookie-bar .btn:hover,.sform [type=submit]:hover,.sform-box [type=submit]:hover,.menu-btn:hover,.theme:hover,.chip:hover,.wa-float:hover,
  .btn:active,.st-btn:active,.hdr-cta:active,.cookie-bar .btn:active,.sform [type=submit]:active,.sform-box [type=submit]:active,.menu-btn:active,.theme:active,.chip:active,.wa-float:active{transform:none}
}

/* --- own-colour variants (only --bd-* values; no fills, borders or text change) --- */
/* white edge the closing green band already gave its main button: kept as a ring layer */
.dband .btn:not(.ghost),.l2home .close .btnw{--bd-ring:0 0 0 2px #fff}
/* WhatsApp float: green glow */
.wa-float{--bd-c:#25D366;--bd-contact:rgb(0 0 0 / .28);--bd-hi:rgb(255 255 255 / .40)}
/* ghost / outline buttons: no fill, so the light line + dark band sit on the page and the glow is a faint tint of the border colour */
.btn.ghost,.cookie-bar #cookie-decline{--bd-c:#0E1726;--bd-glow:22%;--bd-hi:rgb(255 255 255 / .60);--bd-sh:rgb(14 23 38 / .12);--bd-contact:rgb(14 23 38 / .18)}
:is(.hero,.dband,.band,.closing,.dark-top,.small-hero) .btn.ghost{--bd-c:#F2F4F7;--bd-glow:20%;--bd-hi:rgb(255 255 255 / .28);--bd-sh:rgb(0 0 0 / .30);--bd-contact:rgb(0 0 0 / .35)}
.cookie-bar #cookie-decline{--bd-c:#1967D2;--bd-glow:30%}
/* small outline controls (menu, theme, chips): depth without a big glow */
.menu-btn,.theme,.chip{--bd-c:#8AB4F8;--bd-glow:18%;--bd-hi:rgb(255 255 255 / .22);--bd-sh:rgb(0 0 0 / .22);--bd-contact:rgb(0 0 0 / .25)}
/* error-state buttons inside the form band keep the blue fill: blue glow */
.sfail .btn.ghost{--bd-c:#1967D2;--bd-glow:60%;--bd-hi:rgb(255 255 255 / .35);--bd-sh:rgb(0 0 0 / .20);--bd-contact:rgb(0 0 0 / .30)}
