/* ================================================================
   ReachDeck launcher — facade button + real-launcher positioning.

   reachdeck.js gates ReachDeck's ba.js so it loads only on demand (it
   pulls Google Analytics — see the design spec). Until then this facade
   stands in for ReachDeck's own launch button; it is a faithful replica
   so the swap to the real button is invisible.
   ================================================================ */

/* The facade — mirrors ReachDeck's 55px round primary-blue launcher.
   --ink-blue-deep / --always-light are theme-invariant brand constants,
   so white-on-blue keeps WCAG AA on every reading-aid palette. */
.rd-facade {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  width: 55px;
  height: 55px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ink-blue-deep);
  color: var(--always-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.32);
  transition: filter var(--motion-fast);
}
.rd-facade:hover { filter: brightness(1.08); }
.rd-facade:focus-visible {
  outline: 3px solid var(--ink-blue-deep);
  outline-offset: 3px;
}
.rd-facade-icon { display: flex; }

/* `.rd-facade` sets display:flex, which would override the `hidden`
   attribute's UA `display:none` — so re-assert it explicitly. reachdeck.js
   sets `hidden` once ReachDeck's real launcher is on the page. */
.rd-facade[hidden] { display: none; }

/* ReachDeck's own launcher, once loaded — pin it to the same corner the
   facade occupied. Moved here from theme.css so all ReachDeck CSS lives
   together. `!important` beats the plugin's inline top/left, which it
   recomputes on resize. */
#__ba_floatingLaunch {
  top: auto !important;
  right: auto !important;
  bottom: 24px !important;
  left: 24px !important;
}
