/* InnerCode bodygraph (public/bodygraph.js). All classes prefixed ic-bg-. */

.ic-bg {
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
  background: transparent;
  color: #F6F3EC;
  box-sizing: border-box;
}

.ic-bg--light {
  color: #0A0A0C;
}

.ic-bg-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  animation: ic-bg-fade 200ms ease-out both;
}

.ic-bg-svg text {
  pointer-events: none;
  user-select: none;
}

.ic-bg-gate,
.ic-bg-half,
.ic-bg-center {
  cursor: default;
}

.ic-bg-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.3;
  color: #B0B8C4;
}

.ic-bg--light .ic-bg-legend {
  color: #5B6270;
}

.ic-bg-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ic-bg-swatch {
  display: inline-block;
  width: 18px;
  height: 5px;
  border-radius: 1px;
}

/* Visually hidden, available to screen readers. */
.ic-bg-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@keyframes ic-bg-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ic-bg-svg {
    animation: none;
  }
}
