/*
 * Fase L — breadcrumb trail.
 *
 * Inline list with a forward-slash separator inserted via ::after on
 * the non-final items. Current page reads as plain text (no link)
 * while ancestors read as muted links.
 */

.breadcrumb {
  /* Flex row so the (mobile-only) sidebar toggle sits inline at the
     start of the trail with breathing room before the crumbs. On desktop
     the toggle is `display:none`, leaving the <ol> as the lone child —
     no visual change. */
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  background: var(--color-bg);
}

/* Toggle (when present) keeps its own size and doesn't stretch/shrink. */
.breadcrumb .mobile-menu-toggle {
  flex: 0 0 auto;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  /* row-gap (separación vertical al envolver) muy ajustada; column-gap
     (entre item y separador) reducida. */
  gap: 2px var(--space-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-text-muted);
  /* Drop the global `li { margin-block }` (base.css) — on a wrapped
     trail it opened a large gap between the two rows. */
  margin-block: 0;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-link);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
  font-weight: var(--weight-medium);
}

.breadcrumb-sep {
  color: var(--color-text-subtle);
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: var(--space-3) var(--space-4);
  }
}
