/**
 * @fileoverview
 * Prism.js syntax highlighting theme for GearTrain docs.
 * Compatible with Ayu Light and Mirage color schemes.
 */

code[class*="language-"],
pre[class*="language-"] {
	font-family: var(--font-mono);
	font-size: var(--font-size-sm);
	line-height: 1.6;
	background: none;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	tab-size: 2;
	hyphens: none;
}

pre[class*="language-"] {
	padding: var(--space-4);
	margin: 0;
	overflow: auto;
	background-color: var(--color-surface);
	border: var(--border-width) solid var(--color-border);
	border-radius: var(--radius);
}

:not(pre) > code[class*="language-"] {
	padding: var(--space-1) var(--space-2);
	background-color: var(--color-surface);
	border-radius: var(--radius);
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: var(--syntax-comment);
}

.token.punctuation {
	color: var(--syntax-punctuation);
}

.token.namespace {
	opacity: 0.7;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
	color: var(--syntax-constant);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: var(--syntax-string);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
	color: var(--syntax-operator);
}

.token.atrule,
.token.attr-value,
.token.keyword {
	color: var(--syntax-keyword);
}

.token.function,
.token.class-name {
	color: var(--syntax-function);
}

.token.regex,
.token.important,
.token.variable {
	color: var(--syntax-regex);
}

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

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

.token.entity {
	cursor: help;
}

pre[class*="language-"].line-numbers {
	position: relative;
	padding-inline-start: 3.8em;
	counter-reset: linenumber;
}

pre[class*="language-"].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-inline-end: var(--border-width) solid var(--color-border);
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

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

.line-numbers-rows > span:before {
	content: counter(linenumber);
	color: var(--color-text-muted);
	display: block;
	padding-inline-end: 0.8em;
	text-align: right;
}
