/* Light/Dark toggle that theme-shots.js adds under a screenshot with a dark
   version (img[data-dark]). Shared by the extension pages. */

.theme-toggle {
  display: inline-flex;
  align-self: flex-start;
  gap: 2px;
  margin-top: 12px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.65);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle button:hover {
  color: #fff;
}

.theme-toggle button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.theme-toggle button:focus-visible {
  outline: 2px solid var(--accent, #7dd3fc);
  outline-offset: 1px;
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
