a:hover {
  text-decoration: none;
}

a:hover:not(:has(a:hover)) {
  text-decoration: underline;
}
