:root {
  --code-line-number-width: 3.5rem;
}

div[class*=language-]:not(.line-numbers-mode) .line-numbers {
  display: none;
}
div[class*=language-].line-numbers-mode::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--code-line-number-width);
  height: 100%;
  border-right: 1px solid var(--code-highlight-bg-color);
  border-radius: var(--code-border-radius) 0 0 var(--code-border-radius);
}
div[class*=language-].line-numbers-mode pre {
  vertical-align: middle;
  margin-left: var(--code-line-number-width);
}
div[class*=language-].line-numbers-mode code {
  padding-left: 1rem;
}
div[class*=language-].line-numbers-mode .line-numbers {
  counter-reset: line-number;
  position: absolute;
  top: 0;
  width: var(--code-line-number-width);
  padding-top: var(--code-padding-y);
  color: var(--code-c-line-number, --code-c-text);
  font-size: 0.875em;
  line-height: var(--code-line-height);
  text-align: center;
}
div[class*=language-].line-numbers-mode .line-number {
  position: relative;
  z-index: 3;
  font-family: var(--code-font-family);
  user-select: none;
}
div[class*=language-].line-numbers-mode .line-number::before {
  content: counter(line-number);
  counter-increment: line-number;
}
