/* Mention links inside the HNTv3 feed, modals, comments and Bayou Focus. */
.feed-post .post-caption a.hh-mention-link,
.hnt-pd-caption a.hh-mention-link,
.hnt-pd-comment a.hh-mention-link,
.hnt-mv-comment a.hh-mention-link,
.hnt-viewer-description a.hh-mention-link,
.hnt-inline-comment a.hh-mention-link {
  color:#a6d5af;
  font-weight:600;
  text-decoration:none;
}
.feed-post .post-caption a.hh-mention-link:hover,
.hnt-pd-caption a.hh-mention-link:hover,
.hnt-pd-comment a.hh-mention-link:hover,
.hnt-mv-comment a.hh-mention-link:hover,
.hnt-viewer-description a.hh-mention-link:hover,
.hnt-inline-comment a.hh-mention-link:hover {
  text-decoration:underline;
}
.feed-post .post-caption a.hh-mention-link:focus-visible,
.hnt-pd-caption a.hh-mention-link:focus-visible,
.hnt-pd-comment a.hh-mention-link:focus-visible,
.hnt-mv-comment a.hh-mention-link:focus-visible,
.hnt-viewer-description a.hh-mention-link:focus-visible,
.hnt-inline-comment a.hh-mention-link:focus-visible {
  outline:2px solid #a6d5af;
  outline-offset:3px;
  border-radius:2px;
}


/* Published @mentions become the HNT.ROCKS brand prefix, retaining an
   accessible @username label and existing HNTv3 profile destination. */
a.hh-mention-link.hnt-mention-link {
  display:inline-flex;
  align-items:baseline;
  gap:0;
  white-space:nowrap;
  vertical-align:baseline;
  color:#a6d5af;
  font-weight:600;
  text-decoration:none;
}
a.hh-mention-link .hnt-mention-hr {
  color:#eeeeea;
  font-weight:750;
}
a.hh-mention-link .hnt-mention-slash {
  color:#96d4a4;
  font-weight:800;
}
a.hh-mention-link .hnt-mention-username {color:#a6d5af}
a.hh-mention-link:hover {text-decoration:underline}
a.hh-mention-link:focus-visible {
  outline:2px solid #a6d5af;
  outline-offset:3px;
  border-radius:3px;
}

/* A notification gently spotlights the exact comment/reply for a few seconds.
   The normal theme and reply thread are unchanged. */
.hnt-pd-comment.hnt-pd-deeplink-focus {
  border-radius:9px;
  animation:hntCommentFocusPulse 4.3s ease-out 1 both;
}
@keyframes hntCommentFocusPulse {
  0%,15% {background:rgba(143,208,155,.19);box-shadow:inset 3px 0 #a6d5af,0 0 0 1px rgba(150,210,163,.2)}
  70% {background:rgba(143,208,155,.09);box-shadow:inset 3px 0 rgba(166,213,175,.25)}
  100% {background:transparent;box-shadow:inset 3px 0 transparent}
}
@media (prefers-reduced-motion:reduce) {
  .hnt-pd-comment.hnt-pd-deeplink-focus {
    animation:none;
    background:rgba(143,208,155,.13);
    box-shadow:inset 3px 0 #a6d5af;
  }
}

/* Keep logo HR: neutral white in the regular post card, despite any
   post-caption or other general feed text styling. */
.feed-post .post-caption a.hh-mention-link .hnt-mention-hr {
  color:#f2f2ee !important;
  -webkit-text-fill-color:#f2f2ee !important;
}
