/* HBM Floating Soc Med v2.1.0 — floating or inline fallback */
.hbm-fsm { display: none; box-sizing: border-box; background: #fff; color: #000; border: 1px solid #000; }
.hbm-fsm__link {
  cursor: pointer; border: 0; padding: 0; font: inherit;
  display: flex; width: 44px; height: 44px; flex: 0 0 44px;
  justify-content: center; align-items: center; color: #000;
  background: #fff; border-radius: 4px; text-decoration: none;
}
.hbm-fsm__link:hover, .hbm-fsm__link:focus-visible { color: #fff; background: #000; }
.hbm-fsm__link:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.hbm-fsm__link svg { width: 30px; height: 30px; display: block; }
/* The floating mode uses the measured prose boundary, NEVER a fixed browser-right offset. */
.hbm-fsm.hbm-fsm--floating {
  position: fixed; left: var(--hbm-fsm-left, -9999px); right: auto;
  top: 50%; transform: translateY(-50%) translateX(10px);
  z-index: 9998; width: 75px; height: 250px;
  display: flex; flex-direction: column; justify-content: space-around;
  align-items: center; padding: 7px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.hbm-fsm.hbm-fsm--floating.hbm-fsm--visible {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
/* When floating would cover text, render in the page flow, before the footnotes. */
.hbm-fsm.hbm-fsm--inline {
  position: relative; inset: auto; transform: none;
  z-index: auto; display: flex; width: fit-content; max-width: 100%;
  min-height: 70px; height: auto; flex-direction: row; flex-wrap: wrap;
  gap: 6px; align-items: center; justify-content: center;
  margin: 24px 0; padding: 8px 10px;
  opacity: 1; visibility: visible; pointer-events: auto;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .hbm-fsm { transition: none !important; }
}
.hbm-fsm__notice { position: fixed; right: 20px; bottom: 25px; z-index: 10000; padding: 9px 12px; max-width: 290px; font: 14px/1.4 system-ui,sans-serif; background: #fff; color: #000; border: 1px solid #222; box-shadow: 0 2px 9px #0003; display: none; }
.hbm-fsm__notice.is-visible { display: block; }
