/* ═══════════════════════════════════════════
   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: 2px;
  padding: 1px;
  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;
  /* Vertically align with adjacent link text. */
  vertical-align: middle;
}

.pl-theme-toggle__btn {
  /* Sized to match the Privacy/Terms link x-height beside it. */
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    color      var(--dur-fast) var(--ease-smooth),
    background var(--dur-fast) var(--ease-smooth);
}

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

.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);
}
