/* div-anchors.css
 * Visual URL anchor links for theorem and proof divs.
 * Mirrors the behavior of Quarto's built-in `anchor-sections` option,
 * which shows a small anchor icon on hover for HTML headings.
 */

.div-anchor {
  opacity: 0;
  font-size: 0.875em;
  font-weight: 400;
  margin-left: 0.375em;
  text-decoration: none;
  color: inherit;
  vertical-align: middle;
  transition: opacity 0.2s ease;
}

.div-anchor:hover,
.div-anchor:focus {
  opacity: 1;
  text-decoration: none;
}

/* Show the anchor when hovering over any theorem or proof div.
 * .theorem covers all theorem-type environments (lemma, corollary,
 * proposition, conjecture, definition, example, exercise, algorithm).
 * Proof-type environments are listed separately. */
:is(.theorem, .proof, .remark, .solution):hover .div-anchor {
  opacity: 1;
}
