/**
 * Reveal.js Code Annotation Fragments - Styles
 *
 * @license MIT
 * @copyright 2026 Mickaël Canouil
 * @author Mickaël Canouil
 */

/* Style code annotation markers as interactive buttons */
.reveal .code-annotation-anchor {
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.reveal .code-annotation-anchor:hover {
  transform: scale(1.15);
}

/* Prevent copy button overlap with code annotation gutter */
.reveal .code-copy-outer-scaffold:has(.code-annotated) > .code-copy-button {
  right: 2.5em;
  margin-right: 0;
}

/* Ensure code annotations are visible in PDF */
@media print {
  .reveal .code-annotation-anchor {
    border: 1px solid currentColor;
    border-radius: 50%;
    padding: 0.1em 0.3em;
  }
}
