/**
* Custom theme for developer.wordpress.org.
* Forked from a11y-dark theme by ericwbailey, which was based on the okaidia theme.
*
* https://github.com/PrismJS/prism-themes/blob/master/themes/prism-a11y-dark.css
* https://github.com/PrismJS/prism/blob/gh-pages/themes/prism-okaidia.css
*/

code[class*="language-"],
pre[class*="language-"] {
	color: #101517;
	background: none;
	font-family: var(--wp--preset--font-family--monospace);
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	line-height: 1.5;

	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;

	transition: height 500ms;
}

/* Code blocks */
pre[class*="language-"] {
	padding: 1em;
	overflow: auto;
	direction: ltr;
	border: 1px solid #d9d9d9;
	border-radius: 2px;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #fff;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: 0.1em;
	border-radius: 0.3em;
	white-space: normal;
}

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

.token.punctuation {
	color: #50575e;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
	color: #043959;
}

.token.boolean,
.token.number {
	color: #101517;
}

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

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #a85f00;
}

.token.function {
	color: #b8236d;
}

.token.keyword {
	color: #135e96;
	font-weight: 600;
}

.token.atrule,
.token.attr-value,
.token.function-definition {
	color: #101517;
}

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

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

.token.entity {
	cursor: help;
}

@media screen and (-ms-high-contrast: active) {
	code[class*="language-"],
	pre[class*="language-"] {
		color: windowText;
		background: window;
	}

	:not(pre) > code[class*="language-"],
	pre[class*="language-"] {
		background: window;
	}

	.token.important {
		background: highlight;
		color: window;
		font-weight: 700;
	}

	.token.atrule,
	.token.attr-value,
	.token.function,
	.token.keyword,
	.token.operator,
	.token.selector {
		font-weight: 700;
	}

	.token.attr-value,
	.token.comment,
	.token.doctype,
	.token.function,
	.token.keyword,
	.token.operator,
	.token.property,
	.token.string {
		color: highlight;
	}

	.token.attr-value,
	.token.url {
		font-weight: 700;
	}
}

/* Line Numbers */
pre.line-numbers {
	position: relative;
	padding-left: 4.5rem;
	counter-reset: linenumber;
}

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

.line-numbers .line-numbers-rows {
	position: absolute;
	pointer-events: none;
	top: 0;
	font-size: 100%;
	left: -4.5rem;
	width: 4rem; /* works for line-numbers below 10000 lines */
	letter-spacing: -1px;
	border-right: 0;

	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;

}

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

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