/* GianaChart — HTML legend (replaces Chart.js canvas legend for alignment) */

.giana-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  padding: 0;
}

.giana-chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  font: inherit;
  transition: opacity var(--transition, 0.15s ease);
}

.giana-chart-legend__item:hover {
  opacity: 0.75;
}

.giana-chart-legend__item:focus {
  outline: none;
}

.giana-chart-legend__item:focus-visible {
  border-radius: 4px;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(45, 27, 78, 0.10));
}

.giana-chart-legend__item.is-hidden {
  opacity: 0.4;
}

.giana-chart-legend__item.is-hidden .giana-chart-legend__label {
  text-decoration: line-through;
}

.giana-chart-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.giana-chart-legend__label {
  font-family: var(--font-ui, 'Open Sans', sans-serif);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-muted, #8b7f9b);
}
