.cmg-breadcrumbs {
  margin: 0 0 30px;
  padding: 0;
}

.cmg-breadcrumbs ol {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 0 !important;
  gap: 0;
  /* Keep the whole trail on a single line. */
  flex-wrap: nowrap;
  overflow: hidden;
}

.cmg-breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 85%;
  color: var(--global-palette5);
  white-space: nowrap;
  /* Earlier crumbs (Home / Topics / Category) keep their full width. */
  flex: 0 0 auto;
}

/* The last crumb (the title) absorbs the overflow and truncates with an ellipsis. */
.cmg-breadcrumb-current {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cmg-breadcrumb-sep {
  margin: 0 0.45em;
  opacity: 0.5;
  user-select: none;
}

.cmg-breadcrumb-item a {
  text-decoration: none;
  color: inherit;
}

.cmg-breadcrumb-item a:hover {
  text-decoration: underline;
}

.cmg-breadcrumb-current {
  opacity: 0.7;
}

.cmg-breadcrumb-home-icon {
  display: block;
  vertical-align: middle;
}
