/* A colour's swatch (src/swatch.rs): a round dot on a hairline, its colour set on the element from
   its chart entry's sRGB, the one value no token holds. */
.swatch {
  display: inline-block;
  flex: none;
  width: var(--swatch-size);
  height: var(--swatch-size);
  border: var(--hairline) solid var(--color-line-hatch);
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

.swatch-none {
  border-style: dashed;
}

.swatch-faded {
  opacity: 0.4;
}

/* **An item's colourways, named with their swatches** (30 Oct 2026, "Colourways where people see
   them…", (3)): "In Cream ●, Black ●, Bone" on one wrapping line; a pickable one is a quiet button. */
.colourway-swatches {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  font-size: var(--text-sm);
}

.colourway-swatch-comma {
  margin-left: calc(-1 * var(--space-2));
}

.colourway-swatches-head {
  color: var(--color-muted);
}

.colourway-swatch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.colourway-swatch-pick {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: var(--underline-offset);
}

.colourway-swatch-pick[aria-pressed="true"] {
  text-decoration: underline solid;
  font-weight: 600;
}
