/**
 * prism.js — GitHub Light theme
 * Adapted for Code Repository plugin
 */

code[class*="language-"],
pre[class*="language-"] {
	color: #24292e;
	background: none;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 1em;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	line-height: 1.5;

	-moz-tab-size: 2;
	-o-tab-size: 2;
	tab-size: 2;

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

/* Code blocks */
pre[class*="language-"] {
	padding: 1em;
	margin: .5em 0;
	overflow: auto;
}

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

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: .2em .4em;
	border-radius: 4px;
	white-space: normal;
	background: #eef0f3;
}

/* ── Tokens ── */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: #6a737d;
	font-style: italic;
}

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

.token.namespace {
	opacity: 0.7;
}

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

.token.boolean,
.token.number {
	color: #005cc5;
}

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

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

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

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

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

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

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

.token.entity {
	cursor: help;
}

/* PHP-specific */
.token.delimiter {
	color: #d73a49;
	font-weight: 600;
}

/* ── Line numbers plugin ── */
pre.line-numbers {
	position: relative;
	padding-left: 3.8em;
	counter-reset: linenumber;
}

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

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

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

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