/*
 * Nord colours for code blocks (inc/code-highlight.php), as Code Syntax Block's "prism-nord"
 * scheme rendered them, so removing the plugin changes nothing on screen. The block itself
 * (background #2e3440, padding, radius) comes from styles/single.less and styles/article.less.
 */

pre.wp-block-code code {
	color: #f8f8f2;
	padding-left: 0;
}

code[class*="language-"],
pre[class*="language-"] {
	color: #f8f8f2;
	font-family: Hack, "Fira Code", Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
	line-height: 1.5;
	white-space: pre;
	word-break: normal;
	word-wrap: normal;
	tab-size: 4;
	hyphens: none;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #636f88;
}

.token.punctuation,
.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted,
.token.boolean,
.token.operator,
.token.entity,
.token.url,
.token.variable,
.token.keyword,
.language-css .token.string {
	color: #81a1c1;
}

.token.number {
	color: #b48ead;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: #a3be8c;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
	color: #88c0d0;
}

.token.regex,
.token.important {
	color: #ebcb8b;
}

.token.important,
.token.bold {
	font-weight: bold;
}

.token.italic {
	font-style: italic;
}

.token.namespace {
	opacity: 0.7;
}

/* Line numbers (a code tag with the line-numbers class, set by the old Code Syntax Block). */
pre.line-numbers {
	position: relative;
	padding-left: 3.8em;
	counter-reset: linenumber;
}

pre.line-numbers > code {
	position: relative;
}

.line-numbers .line-numbers-rows {
	position: absolute;
	top: 0;
	left: -3.8em;
	width: 3em;
	font-size: 100%;
	letter-spacing: -1px;
	pointer-events: none;
	user-select: none;
}

.line-numbers-rows > span {
	display: block;
	counter-increment: linenumber;
}

.line-numbers-rows > span::before {
	content: counter(linenumber);
	display: block;
	padding-right: 0.8em;
	text-align: right;
	color: #5c6370;
}
