/* Helix BioMedical / 503 Medical shared header, mega menu, mobile menu, contact band and back-to-top (2026-11-17).
   Injected on every page by nginx (sub_filter before </head>) with /hx/hx-ui.js and /hx/hx-chat.js.
   The header itself renders in a shadow root; this file only holds fonts, the old-header swap and the up button. */
@font-face{font-family:"HxInter";src:url(/hx/fonts/inter.woff2) format("woff2");font-weight:100 900;font-display:swap}
@font-face{font-family:"HxSerif";src:url(/hx/fonts/merriweather-700.woff2) format("woff2");font-weight:700;font-display:swap}

/* old headers: hidden (space kept) until hx-ui.js swaps them; shown again after 4 s if the script never runs */
header.nav:not([data-hx-old]),header.site:not([data-hx-old]),header.top:not([data-hx-old]),
header.bg-white.shadow-sm.sticky:not([data-hx-old]),body>nav.site:not([data-hx-old]){visibility:hidden;animation:hxShowOld 0s 8s forwards}
@keyframes hxShowOld{to{visibility:visible}}
[data-hx-old]{display:none!important}

#hx-nav-host{display:block;position:sticky;top:0;z-index:2147482000;height:76px}
#hx-band-host{display:block}
html.hx-lock,html.hx-lock body{overflow:hidden!important}

#hx-totop{position:fixed;left:20px;left:calc(20px + env(safe-area-inset-left,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px) + var(--hx-lift,0px));
  z-index:2147482990;width:46px;height:46px;margin:0;padding:0;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;
  background:linear-gradient(145deg,#065f46,#022c22);color:#5eead4;box-shadow:0 0 0 2px #2dd4bf,0 8px 20px rgba(2,44,34,.35);
  transition:background-color .15s ease,transform .15s ease;-webkit-tap-highlight-color:transparent}
#hx-totop[hidden]{display:none}
#hx-totop:hover{transform:translateY(-2px);color:#ccfbf1}
#hx-totop:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 2px #2dd4bf,0 0 0 7px #022c22}
#hx-totop svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
html.hx-lock #hx-totop{visibility:hidden}
@media (max-width:600px){#hx-totop{left:14px;left:calc(14px + env(safe-area-inset-left,0px));bottom:calc(14px + env(safe-area-inset-bottom,0px) + var(--hx-lift,0px))}}
@media (max-width:1099px){#hx-nav-host{height:64px}}
@media (prefers-reduced-motion:reduce){#hx-totop{transition:none}}
@media print{#hx-totop,#hx-nav-host,#hx-band-host{display:none!important}}

/* animated heartbeat logo (owner 2026-11-17), light DOM copy for the footer logo */
.hxl{position:relative;display:inline-block;line-height:0;vertical-align:middle}.hxl>img{display:block;width:auto}.hxl>svg{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible;pointer-events:none}.hxl .g,.hxl .t{fill:none;stroke:#fff;stroke-width:6.5;stroke-linecap:round;stroke-linejoin:round}.hxl .g{stroke-opacity:.3}.hxl .t{stroke-dasharray:100 100;stroke-dashoffset:100;filter:drop-shadow(0 0 2.5px rgba(94,234,212,.95));animation:hxlT 1.6s cubic-bezier(.45,0,.25,1) infinite}.hxl .d{fill:#f0fdfa;filter:drop-shadow(0 0 3px #5eead4);offset-path:path("M15 81H43L53 33L80 120L97 77H123");offset-rotate:0deg;opacity:0;animation:hxlD 1.6s cubic-bezier(.45,0,.25,1) infinite}@keyframes hxlT{0%{stroke-dashoffset:100;opacity:1}50%{stroke-dashoffset:0;opacity:1}76%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:0}}@keyframes hxlD{0%{offset-distance:0%;opacity:0}6%{opacity:1}50%{offset-distance:100%;opacity:1}60%{offset-distance:100%;opacity:0}100%{offset-distance:100%;opacity:0}}@media (prefers-reduced-motion:reduce){.hxl .t{animation:none;stroke-dashoffset:0;opacity:1}.hxl .d{display:none}}
.hxl-foot>img{height:56px}
