/* IC Digital / Approved passive case metadata. 13 October 2026.
   Shared by catalogue cards, the case hero and other pages using .case-labels.
   Load after the page styles. Mark the .case-labels container with .case-labels,
   and each .case-labels__item with exactly one role: .case-labels__item--service, .case-labels__item--industry or .case-labels__item--audience.
   The role selectors deliberately outrank the legacy case-hero rules,
   including their mobile padding and dark service background. */

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

:is(body, .page--catalogue, .page--case) .case-labels > .case-labels__item:is(.case-labels__item--service, .case-labels__item--industry, .case-labels__item--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(body, .page--catalogue, .page--case) .case-labels > .case-labels__item.case-labels__item--service {
  border-radius: 4px;
  background: #F2F7FA;
  color: #006CDA;
}

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

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