/* Reaction buttons.
 *
 * These live at the end of an article now, not on every row of every list --
 * you cannot usefully judge something you have not opened. */

.article-reaction-buttons {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.reaction-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink-soft);
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.reaction-button:hover:not(:disabled) {
  border-color: var(--rule-strong);
  background-color: var(--raised);
}

.reaction-button:disabled {
  cursor: not-allowed;
  color: var(--ink-faint);
}

.reaction-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  stroke: currentColor;
}

.reaction-count {
  font-family: var(--font-data);
  font-size: var(--fs-xs);
  color: currentColor;
  min-width: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* The one you chose. Colour and a filled icon, so the state is not carried by
   hue alone. */
.reaction-button.active {
  background-color: var(--leaf-lift);
  border-color: var(--leaf-edge);
  color: var(--leaf);
}

.reaction-button.active:hover:not(:disabled) {
  background-color: var(--leaf-edge);
}
