.textcomplete-dropdown {
  z-index: 20;
  border-radius: .75rem;
  background-color: #fff;
  padding: .5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
  transition-duration: .3s;
}
:is(.dark .textcomplete-dropdown) {
  border-color: #0f172a;
  background-color: #1e293b;
  --tw-shadow-color: #0f172a80;
  --tw-shadow: var(--tw-shadow-colored);
}
@media (min-width: 768px) {
  .textcomplete-dropdown {
    position: absolute;
    max-height: 450px;
    overflow: auto;
    border-width: 1px;
    border-color: #e5e7eb;
    --tw-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
}
.textcomplete-dropdown li .nemtion > .avatar, .nemtion > img {
  max-height: 25px;
  max-width: 25px;
  border-radius: 4px;
}
.textcomplete-dropdown li .nemtion {
  display: flex;
  align-items: center;
  gap: 8px;
}
.textcomplete-dropdown li a {
  display: flex;
  align-items: center;
  border-radius: .5rem;
  padding: .75rem;
  font-size: .875rem;
  line-height: 1.25rem;
}
@media (min-width: 768px) {
  .textcomplete-dropdown li a {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }
}
.textcomplete-dropdown li a:hover {
  background-color: rgba(var(--color-primary), .08);
  color: rgba(var(--color-text), 1);
  cursor: pointer;
}
:is(.dark .textcomplete-dropdown li a:hover) {
  background-color: rgba(var(--color-primary-dark), .1);
  color: rgba(var(--color-text-dark), 1);
}
:is(.dark .textcomplete-dropdown li a) {
  color: #fff;
}

/* Mention tag in posts: the pill takes the name colour (rank colour or default link colour) */
.bbmention,
.bbmention > span {
  display: inline-flex;
  align-items: center;
  padding: 0 .45em;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color .15s ease;
}
.bbmention:has(> span) {
  padding: 0;
  background: none;
}
a.bbmention:not(:has(> span)):hover,
a.bbmention:hover > span {
  background: color-mix(in srgb, currentColor 22%, transparent);
}
