/* ==========================================================================
   Triple Toggle — Fixed bottom-left pill with theme / locale / audience
   FR-245..FR-249

   Container and layout styles for the triple-toggle now live in
   neoswiss-system.css. This file retains only toggle-button internals
   that are unique to this component.
   ========================================================================== */

/* --- Container pill ----------------------------------------------------- */
triple-toggle {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 45;
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  padding: 0.35rem;
  background: var(--brand-surface, #1e293b);
  border: 1px solid var(--brand-border, rgba(255,255,255,.08));
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

html[data-theme="light"] triple-toggle {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(10, 18, 42, 0.12);
  box-shadow: 0 4px 16px rgba(10, 18, 42, 0.1);
}

/* --- Individual toggle button ----------------------------------------- */
.toggle-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--brand-border, rgba(255,255,255,.08));
  border-radius: 50%;
  background: transparent;
  color: var(--brand-muted, #94a3b8);

  cursor: pointer;
  transition: all 200ms var(--ease, cubic-bezier(.4, 0, .2, 1));

  /* Reset browser defaults */
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: 1;
}

/* --- Hover state ------------------------------------------------------ */
.toggle-btn:hover {
  background: var(--brand-border, rgba(255,255,255,.08));
  color: var(--brand-text, #f8fafc);
}

/* --- Active / checked state ------------------------------------------- */
.toggle-btn[aria-checked="true"] {
  background: var(--brand-surface, #1e293b);
  color: #fff;
  border-color: var(--brand-surface, #1e293b);
}

/* --- Focus-visible (keyboard accessibility) --------------------------- */
.toggle-btn:focus-visible {
  outline: 2px solid var(--brand-gold, #ffd700);
  outline-offset: 2px;
}

/* --- xs viewport (360px) — ensure no content overlap [T095] ---------- */
@media (max-width: 479px) {
  .toggle-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}
