/* Shared category palette: single source of truth for index cards, category browser,
   research-note hero badges and related article links.
   Kept separate from content/semantic colors (fact, hypothesis, risk, etc). */
.tag.food-agriculture,.category-group.food-agriculture,.related-category.food-agriculture{--cat-rgb:91,61,22;--cat-ink:#f6d48d;--cat-outline:rgba(217,164,65,.34)}
.tag.medical-care,.category-group.medical-care,.related-category.medical-care{--cat-rgb:18,67,61;--cat-ink:#bff3e4;--cat-outline:rgba(95,203,176,.28)}
.tag.investment-company,.category-group.investment-company,.related-category.investment-company{--cat-rgb:55,45,102;--cat-ink:#d9ceff;--cat-outline:rgba(181,154,232,.48)}
.tag.public-infrastructure,.category-group.public-infrastructure,.related-category.public-infrastructure{--cat-rgb:32,66,64;--cat-ink:#A8D8CD;--cat-outline:rgba(127,188,175,.36)}
.tag.urban-living,.category-group.urban-living,.related-category.urban-living{--cat-rgb:89,53,29;--cat-ink:#ffd7ae;--cat-outline:rgba(227,154,91,.38)}
.tag.real-estate,.category-group.real-estate,.related-category.real-estate{--cat-rgb:48,61,73;--cat-ink:#d7e0e8;--cat-outline:rgba(171,188,202,.34)}
.tag.space,.category-group.space,.related-category.space{--cat-rgb:43,57,87;--cat-ink:#B6C7E5;--cat-outline:rgba(143,165,203,.39)}
.tag.logistics,.category-group.logistics,.related-category.logistics{--cat-rgb:75,48,71;--cat-ink:#DAB7D0;--cat-outline:rgba(190,148,181,.36)}

/* Specificity deliberately exceeds legacy article-specific .tag overrides. */
.article-card .tag[class],.article-hero .tag[class],.feature .tag[class]{
  background:rgba(var(--cat-rgb),.95);
  color:var(--cat-ink);
  border-color:var(--cat-outline);
}
.category-group[class]{
  --category-fill:var(--cat-rgb);
  --category-accent:var(--cat-ink);
}
.related-copy .related-category[class]{color:var(--cat-ink)}

.tag.precision-components,.category-group.precision-components,.related-category.precision-components{--cat-rgb:51,67,83;--cat-ink:#C9DDE1;--cat-outline:rgba(142,175,185,.36)}

.tag.resources-materials,.category-group.resources-materials,.related-category.resources-materials{--cat-rgb:60,73,57;--cat-ink:#e3d7b0;--cat-outline:rgba(198,172,116,.4)}
