.regles-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
	gap: 18px;
	align-items: start;
}

.regles-toc {
	position: sticky;
	top: 86px;
	max-height: calc(100vh - 110px);
	overflow: auto;
	padding: 14px;
	border: 1px solid rgba(216, 197, 138, 0.18);
	border-radius: 6px;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
		rgba(16, 13, 18, 0.86);
}

.regles-toc-title {
	margin: 0 0 10px;
	color: #f4d88a;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.regles-toc-list,
.regles-toc-list ul {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.regles-toc-list ul {
	margin-top: 4px;
	padding-left: 12px;
	border-left: 1px solid rgba(216, 197, 138, 0.14);
}

.regles-toc-list li {
	margin: 0;
	padding: 0;
}

.regles-toc-list a {
	display: block;
	padding: 4px 0;
	color: rgba(238, 232, 216, 0.72);
	font-size: 0.86rem;
	line-height: 1.25;
	text-decoration: none;
}

.regles-toc-list a:hover,
.regles-toc-list a.is-active {
	color: #f4d88a;
}

.regles-toc-list .is-h3 a {
	font-size: 0.8rem;
}

.regles-toc-list .is-h4 a {
	color: rgba(238, 232, 216, 0.58);
	font-size: 0.76rem;
}

.regles-content {
	min-width: 0;
}

.regles-content h2,
.regles-content h3,
.regles-content h4 {
	scroll-margin-top: 96px;
}

.regles-content pre {
	margin: 1rem 0;
	padding: 12px 14px;
	overflow: auto;
	border: 1px solid rgba(244, 216, 138, 0.16);
	border-radius: 6px;
	background: rgba(8, 8, 10, 0.52);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
	color: #eadfcb;
	font-size: 0.9rem;
	line-height: 1.55;
}

.regles-content pre code {
	padding: 0;
	background: transparent;
	color: inherit;
	white-space: pre;
}

.regles-content :not(pre) > code {
	padding: 2px 5px;
	border: 1px solid rgba(244, 216, 138, 0.14);
	border-radius: 4px;
	background: rgba(244, 216, 138, 0.08);
	color: #f4d88a;
}

@media screen and (max-width: 1023px) {
	.regles-layout {
		grid-template-columns: 1fr;
	}

	.regles-toc {
		position: relative;
		top: auto;
		max-height: 260px;
	}
}
