/* ==========================================================================
   ELEMENTS · LINKS — the one rule that removes the hospital cliché on its own:
   journals don't have blue links. A link is INK with a rubric underline, and
   turns fully rubric on hover. Never default blue, never bare underline.
   ========================================================================== */

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: auto;
  transition: var(--transition-ink);
}

a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* A link wrapping non-text (a card, a figure) carries no underline */
a:has(> img),
a:has(> figure),
a:has(> article) { text-decoration: none; }
