/* ============================================
   Seletor de tema — Claro · Escuro · Sistema
   Só tokens --wf-* (ver css/theme.css). Markup gerado por js/theme.js.
   ============================================ */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 38px;
  padding: 3px;
  border-radius: var(--wf-r-md);
  background: var(--wf-bg-subtle);
  border: 1px solid var(--wf-border);
}
.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-width: 26px;
  padding: 0 4px;
  border-radius: calc(var(--wf-r-md) - 3px);
  font-size: 1rem;
  color: var(--wf-text-tertiary);
  transition: background 200ms var(--wf-ease), color 200ms var(--wf-ease);
}
.theme-switch button:hover { color: var(--wf-text-primary); }
.theme-switch button[aria-checked="true"] {
  background: var(--wf-primary);
  color: var(--wf-on-primary);
}
.theme-switch button:focus-visible {
  outline: 2px solid var(--wf-primary);
  outline-offset: 2px;
}
.theme-switch__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Mobile (menu): largura total, com rótulos visíveis */
.theme-switch--mobile {
  display: flex;
  width: 100%;
  height: 44px;
  margin: 12px 0;
}
.theme-switch--mobile button { flex: 1; font-size: 1rem; }
.theme-switch--mobile .theme-switch__label {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  font-size: 13px;
  font-weight: 600;
}
