The modules.taxonomy config.
GeoLeaf layer id.
Raw feature bag (read for category / sub-category values).
The feature-info surface being rendered.
The badge field's configured name (e.g. properties.categoryId).
Validated colours, or null when the surface has not opted in, the
field is not a taxonomy column, or no colour resolves.
Resolves the colours of one category / sub-category pill badge.
The badge reuses the marker disc's own colours — the pill and the map symbol should read as the same object. A sub-category badge inherits its category's colours when it declares none of its own.