BEM stands for Block, Element, Modifier and is a coding convention. See https://bem.info/method/definitions/

BEM is used in some areas of MediaWiki.