/* Passive case metadata, shared by catalogue cards and the case hero.
   Load after the page styles. Mark the .tags container with .case-labels,
   and each .tag with exactly one role: .service, .industry or .audience.
   The role selectors deliberately outrank the legacy case-hero rules,
   including their mobile padding and dark service background. */

:is(.catalogue-page, .case-page) .tags.case-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

:is(.catalogue-page, .case-page) .tags.case-labels > .tag:is(.service, .industry, .audience) {
  box-sizing: border-box;
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 5px 10px;
  border: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: var(--type-caption, 12px);
  font-weight: var(--weight-text, 500);
  line-height: var(--leading-caption, 1.6);
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: default;
}

:is(.catalogue-page, .case-page) .tags.case-labels > .tag.service {
  border-radius: 4px;
  background: #F2F7FA;
  color: #006CDA;
}

:is(.catalogue-page, .case-page) .tags.case-labels > .tag.industry {
  border-radius: 999px;
  background: #E7F0F5;
  color: #464C52;
}

:is(.catalogue-page, .case-page) .tags.case-labels > .tag.audience {
  padding: 4px 9px;
  border: 1px solid #C6DAE7;
  border-radius: 999px;
  background: transparent;
  color: #464C52;
}
