/* Base styling in GLOBAL tokens so the button is legible wherever it is mounted. The
   marketing header restates these in its own Sunlit Press tokens (_marketing.css
   `.sunlit .themetoggle`), which wins there by specificity and keeps that surface
   pixel-identical to before this component was shared. */
.themetoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition:
    color 0.12s,
    border-color 0.12s;
}

.themetoggle:hover {
  color: var(--color-text);
  border-color: var(--color-accent);
}

.themetoggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
