/* The shared definition piece of an artefact item — `Components/Definitions`.

   One family for every artefact that publishes a definition state: the chip of the state, and nothing else. It is
   a sheet of its own because the piece is shared and its two consumers are two features: the rules moved here
   from `collections.css` (`constraint-card__state` and the exclusion's chip) when the chip became one component
   with three consumers, and no feature re-styles it — a feature declares the classes of its own markup and this
   sheet declares the classes of this one. */

/* The definition state the server published for a row, drawn as the chip of the family. It is the state of an
   item and not a count, so it is a badge and not a figure, and it is never a control.

   Its geometry is the one chip of the application — `.collection-chip`, which the component wears beside this
   class — so what is left here is the tone: what the state *means*, and nothing about how big a chip is. That
   is what makes the state of a constraint, of a criterion and of a scope item the same shape (DEC-045). */
.definition-state {
  background: var(--color-primary-soft);
  border-color: var(--color-primary-border);
  color: var(--color-primary-strong);
}

/* The item the server holds as complete: drawn as the settled thing it is, with no emphasis. */
.definition-state--settled {
  background: var(--color-success-soft);
  border-color: var(--color-success-border);
  color: var(--color-secondary-strong);
}

/* Every other reading — still to define, under assessment, or a word this client does not know — is the one that
   keeps the phase gate closed, so it is emphasised. */
.definition-state--warning {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-border);
  color: var(--color-accent);
}
