/**
 * SIGOB Wiki relationship graph.
 *
 * A light canvas on purpose: the covers use the dark, luminous language because they are
 * illustration, but a graph is a working instrument — it is read for minutes at a time,
 * often beside the catalogue, and a dark panel in the middle of the page would fight it.
 */

.sigob-wiki-graph {
	border: 1px solid rgba( 0, 0, 0, 0.12 );
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	max-width: 1100px;
	margin-inline: auto;
	font-size: 15px;
}

.sigob-wiki-graph__head {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.1 );
	background: #fafafa;
}

.sigob-wiki-graph__title {
	font-weight: 600;
	font-size: 15px;
}

.sigob-wiki-graph__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 13px;
	color: #444;
}

.sigob-wiki-graph__filters label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.sigob-wiki-graph__swatch {
	width: 11px;
	height: 11px;
	border-radius: 3px;
	display: inline-block;
}

.sigob-wiki-graph__stage {
	position: relative;
	background:
		radial-gradient( circle at 50% 40%, #f7fafc 0%, #eef2f6 100% );
}

.sigob-wiki-graph__stage canvas {
	display: block;
	width: 100%;
	height: 560px;
	touch-action: none;
}

.sigob-wiki-graph__tooltip {
	position: absolute;
	display: none;
	pointer-events: none;
	background: rgba( 15, 34, 51, 0.94 );
	color: #fff;
	font-size: 12.5px;
	padding: 5px 9px;
	border-radius: 6px;
	max-width: 280px;
	z-index: 5;
}

.sigob-wiki-graph__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	padding: 9px 16px;
	border-top: 1px solid rgba( 0, 0, 0, 0.1 );
	background: #fafafa;
	font-size: 12.5px;
	color: #6b6b6b;
}

.sigob-wiki-graph__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sigob-wiki-graph__legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.sigob-wiki-graph__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	display: inline-block;
}

.sigob-wiki-graph--locked {
	padding: 20px;
	text-align: center;
}

@media ( max-width: 700px ) {
	.sigob-wiki-graph__stage canvas {
		height: 420px;
	}
}
