/* ── Reusable ON/OFF pill switch (.bc-switch) ─────────────────
   Green when ON, grey when OFF. Sliding thumb sits over the
   active label. Size via --sw-w / --sw-h custom props. */

.bc-switch {
  --sw-w: 60px;
  --sw-h: 26px;
  --sw-pad: 2px;
  position: relative;
  display: inline-block;
  width: var(--sw-w);
  height: var(--sw-h);
  padding: 0;
  margin: 0;
  border: 1px solid #000;
  border-radius: 999px;
  background: #2f3340;                 /* dark recessed track */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.55), 1px 1px 0 #000;
  font-family: var(--font-main);
  cursor: pointer;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
.bc-switch:active { transform: translate(1px, 1px); }

.bc-switch__thumb {
  position: absolute;
  top: var(--sw-pad);
  left: var(--sw-pad);
  width: calc(50% - var(--sw-pad));
  height: calc(100% - var(--sw-pad) * 2);
  border-radius: 999px;
  background: linear-gradient(#9aa1ad, #6a7280);   /* grey (OFF default) */
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateX(100%);                     /* OFF → sits on the right */
  transition: transform 0.18s ease, background 0.18s ease;
  z-index: 1;
}

.bc-switch__lbl {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--sw-h) * 0.42);
  font-weight: 800;
  letter-spacing: 0.05em;
  pointer-events: none;
  transition: color 0.18s ease;
  z-index: 2;
}
.bc-switch__lbl--on  { left: 0;  color: #5a606b; }   /* dim when OFF */
.bc-switch__lbl--off { right: 0; color: #eef0f3; }   /* lit when OFF */

/* ON state */
.bc-switch.is-on .bc-switch__thumb {
  transform: translateX(0);
  background: linear-gradient(#62e974, var(--accent-green, #00cc44));
}
.bc-switch.is-on .bc-switch__lbl--on  { color: #fff; }
.bc-switch.is-on .bc-switch__lbl--off { color: #5a606b; }

/* Small variant for tight HUD footer */
.bc-switch--sm { --sw-w: 50px; --sw-h: 21px; }

/* Label sitting next to a switch */
.bc-switch-lbl {
  font-family: var(--font-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
