.module-graph-page {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.module-graph-description {
	font-family: EB Garamond, Georgia, Times New Roman, Times, serif;
	font-size: 17px;
	line-height: 23px;
	padding-bottom: 60px;
}

.module-graph-page__header,
.module-graph-page__visualization {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.module-graph-page__visualization{
	position: relative;
}

.mgpw-gen-label {
	font-family: Geist, Arial, Helvetica, sans;
	font-size: 12px;
	line-height: 15px;
	color: #706E6E;
	position: absolute;
}

.mgpw-gen-label-1{
	width: 180px;
	left: 0;
	top: 0;
	&:after {
		content: " ";
		position: absolute;
		height: 60px;
		border-left: solid 1px #bababa;
		margin-top: 30px;
		left: 50%;
	}
}
.module-graph {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
}

.module-graph__viewport {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	height: clamp( 540px, calc( 100dvh - 114px ), 820px );
	min-height: 540px;
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.module-graph__viewport.is-dragging {
	cursor: grabbing;
}

.module-graph__viewport canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.module-graph__node-label {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	box-sizing: border-box;
	max-width: min( 200px, calc( 100% - 24px ) );
	overflow: hidden;
	color: #312f2f;
	font-family: Geist, Arial, Helvetica, sans;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
	pointer-events: none;
	will-change: transform;
}

.module-graph__node-label[hidden] {
	display: none;
}

.module-graph__message {
	position: absolute;
	top: 50%;
	left: 50%;
	margin: 0;
	color: #706e6e;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	transform: translate( -50%, -50% );
}

.module-graph-details {
	box-sizing: border-box;
	width: 100%;
	color: #312f2f;
}

.module-graph-details[hidden],
.module-graph-details [hidden] {
	display: none;
}

.module-graph-details__category {
	margin-bottom: 60px;
	color: #706e6e;
	font-family: Geist Mono;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.module-graph-details__category a {
	color: #706e6e;
	transition: color 0.25s cubic-bezier( 0.2, 0, 0.3, 1 );
}

.module-graph-details__category a:hover {
	color: #9b9998;
}

.module-graph-details__title {
	max-width: 500px;
	margin: 0 0 14px;
	color: #312f2f;
	font-family: EB Garamond, Georgia, Times New Roman, Times, serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.2;
}

.module-graph-details__title-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s cubic-bezier( 0.2, 0, 0.3, 1 );
}

.module-graph-details__title-link:hover {
	color: #706e6e;
}

.module-graph-details__title-link:focus-visible {
	outline: 1px solid currentcolor;
	outline-offset: 4px;
}

.module-graph-details__post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	max-width: 500px;
	margin: 0 0 26px;
	color: #706e6e;
	font-family: Geist, Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

.module-graph-details__post-meta-item {
	color: inherit;
}

.module-graph-details__body {
	display: flex;
	align-items: flex-start;
	gap: 56px;
	width: 100%;
	min-width: 0;
}

.module-graph-details__primary {
	flex: 0 1 500px;
	min-width: 0;
	max-width: 500px;
}

.module-graph-details__excerpt,
.module-graph-details__status {
	max-width: 500px;
	margin: 0;
	color: #312f2f;
	font-family: EB Garamond, Georgia, Times New Roman, Times, serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 22px;
}

.module-graph-details__excerpt p {
	margin: 0;
}

.module-graph-details__excerpt p + p {
	margin-top: 22px;
}

.module-graph-details__excerpt .MathJax {
	font-size: 16px !important;
}

.module-graph-details__meta {
	flex: 0 0 220px;
	min-width: 0;
	color: #312f2f;
	font-family: Geist, Arial, Helvetica, sans-serif;
}

.module-graph-details__difficulty {
	display: flex;
	align-items: center;
	min-height: 20px;
	margin-bottom: 30px;
	font-size: 13px;
	line-height: 20px;
}

.module-graph-details__difficulty-dots {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	margin-right: 7px;
}

.module-graph-details__difficulty-dot {
	width: 7px;
	height: 7px;
	margin-top: 1px;
	border-radius: 50%;
	background: #d6cbc9;
}

.module-graph-details__difficulty[data-rank="1"] .module-graph-details__difficulty-dot:nth-child(-n + 1),
.module-graph-details__difficulty[data-rank="2"] .module-graph-details__difficulty-dot:nth-child(-n + 2),
.module-graph-details__difficulty[data-rank="3"] .module-graph-details__difficulty-dot:nth-child(-n + 3),
.module-graph-details__difficulty[data-rank="4"] .module-graph-details__difficulty-dot:nth-child(-n + 4) {
	background: #312f2f;
}

.module-graph-details__difficulty-label {
	white-space: nowrap;
}

.module-graph-details__relations {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.module-graph-details__relation {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 26px;
	font-size: 12px;
	line-height: 22px;
}

.module-graph-details__relation-count {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	border: 1px solid #e0d8d6;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 600;
	line-height: 25px;
	text-align: center;
}

.module-graph-details__relation-label {
	flex: 0 0 45px;
	width: 45px;
}

.module-graph-details__relation-icon {
	position: relative;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	color: #999;
}

.module-graph-details__relation-icon::before {
	position: absolute;
	top: 11px;
	right: 5px;
	left: 5px;
	height: 2px;
	border-radius: 2px;
	background: currentcolor;
	content: "";
}

.module-graph-details__relation-icon::after {
	position: absolute;
	top: 8px;
	right: 5px;
	box-sizing: border-box;
	width: 8px;
	height: 8px;
	border-top: 2px solid currentcolor;
	border-right: 2px solid currentcolor;
	transform: rotate( 45deg );
	content: "";
}

.module-graph-details__relation-icon--requires {
	transform: rotate( 180deg );
}

.module-graph-details__prerequisites {
	max-width: 500px;
	margin-top: 30px;
}

.module-graph-details__prerequisite-chain {
	margin: 0;
	padding: 0;
	list-style: none;
}

.module-graph-details__prerequisite-item {
	position: relative;
	min-width: 0;
	min-height: 20px;
	padding-left: 30px;
	color: #706e6e;
	font-family: Geist, Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

.module-graph-details__prerequisite-item + .module-graph-details__prerequisite-item {
	margin-top: 23px;
}

.module-graph-details__prerequisite-item:first-child + .module-graph-details__prerequisite-item {
	margin-top: 28px;
}

.module-graph-details__prerequisite-item::before {
	position: absolute;
	top: 3px;
	left: 0;
	z-index: 1;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #bababa;
	content: "";
}

.module-graph-details__prerequisite-item:not(:last-child)::after {
	position: absolute;
	top: 16px;
	bottom: -22px;
	left: 4px;
	width: 1px;
	background: #bababa;
	content: "";
}

.module-graph-details__prerequisite-item:first-child:not(:last-child)::after {
	bottom: -27px;
}

.module-graph-details__prerequisite-link {
	display: block;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.25s cubic-bezier( 0.2, 0, 0.3, 1 );
}

a.module-graph-details__prerequisite-link:hover {
	color: #312f2f;
}

a.module-graph-details__prerequisite-link:focus-visible {
	outline: 1px solid currentcolor;
	outline-offset: 3px;
}

@media screen and ( max-width: 1150px ) {
	.module-graph-page {
		padding-top: 0;
	}

	.module-graph__viewport {
		height: calc( 100dvh - 84px );
		min-height: 420px;
	}

	.module-graph-details {
		padding: 54px 0 72px;
	}
}

@media screen and ( max-width: 760px ) {
	.module-graph-details__body {
		flex-direction: column;
		gap: 40px;
	}

	.module-graph-details__primary,
	.module-graph-details__meta {
		flex-basis: auto;
		width: 100%;
		max-width: 500px;
	}
}
