/* ═══════════════════════════════════════════════════════════════
   Rope Switch — hanging pull-chain theme switch (top-right, all pages)
   The canvas ignores the pointer; only the small .rope-switch__grab
   button (which follows the knob) is interactive.
   ═══════════════════════════════════════════════════════════════ */
.rope-switch {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  right: 0;
  z-index: 1100;               /* above the navbar (1000), below the theme panel (1190+) */
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.rope-switch__canvas { display: block; }

.rope-switch__grab {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 60px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;           /* dragging the knob must not scroll the page */
  -webkit-tap-highlight-color: transparent;
  outline: none;
  will-change: transform;
}
.rope-switch__grab[data-grabbing] { cursor: grabbing; }
.rope-switch__grab:focus-visible {
  box-shadow: 0 0 0 2px var(--bg, #16141d), 0 0 0 4px var(--accent, #c4a0d0);
}

@media print { .rope-switch { display: none; } }
