.term-engagement {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  min-width: max-content;
  margin: -3px -4px 0 6px;
  padding: 0;
  border: 0;
  opacity: 0.62;
  transition: opacity 0.16s ease;
}

.term-card:hover .term-engagement,
.term-engagement:focus-within,
.term-engagement:has(.is-active) {
  opacity: 1;
}

.term-engagement-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: auto;
  min-width: 30px;
  min-height: 30px;
  margin: 0;
  padding: 3px 6px;
  border: 0 !important;
  border-radius: 6px;
  background: transparent !important;
  box-shadow: none !important;
  color: #718096 !important;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.term-engagement-button:hover {
  background: rgba(59, 130, 246, 0.07) !important;
  color: #4f6f98 !important;
}

.term-engagement-button.is-active {
  background: rgba(59, 130, 246, 0.08) !important;
  color: #3b82f6 !important;
}

.term-engagement-button:focus-visible {
  outline: 1px solid rgba(59, 130, 246, 0.38);
  outline-offset: 1px;
}

.term-engagement-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.term-engagement-count:empty {
  display: none;
}

.term-engagement-icon {
  display: block;
  width: 16px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
}

.term-engagement-count {
  min-width: 0;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

@media (max-width: 700px) {
  .term-engagement {
    gap: 0;
    margin-top: -4px;
    opacity: 0.72;
  }

  .term-engagement-button {
    flex: 0 0 auto;
    min-width: 32px;
    min-height: 32px;
    padding-inline: 6px;
  }
}
