/**
 * @file
 * Breadcrumb styles.
 *
 * Targets both the theme's own breadcrumb block (.breadcrumb) and the core
 * system breadcrumb block (nav > ol, no class) used on the handbook/manual.
 */

.breadcrumb-wrapper {
  background: #f5f5f5;
  padding: 12px 0;
  border-bottom: 1px solid #eaeaea;
}

.breadcrumb-wrapper .breadcrumb,
.breadcrumb-wrapper nav[aria-labelledby="system-breadcrumb"] ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
}

.breadcrumb-wrapper .breadcrumb li,
.breadcrumb-wrapper nav[aria-labelledby="system-breadcrumb"] ol li {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.breadcrumb-wrapper .breadcrumb li + li::before,
.breadcrumb-wrapper nav[aria-labelledby="system-breadcrumb"] ol li + li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px;
  border-right: 1.5px solid #b8b8c4;
  border-bottom: 1.5px solid #b8b8c4;
  transform: rotate(-45deg);
}

.breadcrumb-wrapper .breadcrumb a,
.breadcrumb-wrapper nav[aria-labelledby="system-breadcrumb"] ol a {
  color: #5a5a6e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-wrapper .breadcrumb a:hover,
.breadcrumb-wrapper nav[aria-labelledby="system-breadcrumb"] ol a:hover {
  color: var(--nteu-purple, #260387);
  text-decoration: underline;
}

.breadcrumb-wrapper .breadcrumb li:last-child,
.breadcrumb-wrapper nav[aria-labelledby="system-breadcrumb"] ol li:last-child,
.breadcrumb-wrapper nav[aria-labelledby="system-breadcrumb"] ol li:last-child a {
  color: var(--nteu-purple, #260387);
  font-weight: 600;
}

/* Current page reads as plain text even though it is a link. */
.breadcrumb-wrapper nav[aria-labelledby="system-breadcrumb"] ol li:last-child a {
  pointer-events: none;
  text-decoration: none;
}
