/* ═══════════════════════════════════════════
   THEME SWITCHER
   Single inline icon-only Light/Dark toggle that lives inside the
   CTA footer. No floating widget, no per-section overrides.
   ═══════════════════════════════════════════ */

.pl-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  /* Inherit colour from the footer it's embedded in (works on any
     section background — accent, light, or dark). */
  color: inherit;
  opacity: 0.85;
}

.pl-theme-toggle__btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  transition:
    color      var(--dur-fast) var(--ease-smooth),
    background var(--dur-fast) var(--ease-smooth);
}

.pl-theme-toggle__btn svg {
  width: 14px;
  height: 14px;
}

.pl-theme-toggle__btn:hover {
  opacity: 0.9;
}

.pl-theme-toggle__btn.is-active {
  background: currentColor;
}
.pl-theme-toggle__btn.is-active svg {
  /* Invert the icon so it reads against the filled pill. */
  color: var(--bg-accent, var(--bg));
  filter: invert(1);
}
