/* Styling for the 1-10 rating buttons.
 *
 * The buttons are rendered from the server with no JavaScript, and each metric
 * has its own color, so the selected state can't be a Tailwind class — it comes
 * from `--rating-color`, set inline per metric, and a sibling-selector rule. */

.rating-option {
  border-color: #d4d4d4;
  background: #fff;
  color: #404040;
  /* Keep the digits from shifting as you click through 1 … 10. */
  font-variant-numeric: tabular-nums;
  user-select: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.rating-option:hover {
  border-color: #737373;
}

.rating-input:checked + .rating-option {
  background: var(--rating-color);
  border-color: var(--rating-color);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}

.rating-input:focus-visible + .rating-option {
  outline: 2px solid #171717;
  outline-offset: 2px;
}
