/* Shared components used across page families. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.theme-toggle .theme-icon-light {
  display: none;
}

:root[data-theme="light"] .theme-toggle .theme-icon-dark {
  display: none;
}

:root[data-theme="light"] .theme-toggle .theme-icon-light {
  display: block;
}

@media (max-width: 700px) {
  .theme-toggle {
    width: 44px;
    height: 44px;
  }
}
