/* Article bottom mini graph: flat, borderless */

.ar-knowledge-mini-graph {
	margin: 2rem 0 0.5rem;
	padding: 1.1rem 0.9rem;
	border: none;
	border-radius: 0;
	background: #f8fafc;
}

.ar-knowledge-mini-graph__header {
	margin-bottom: 1rem;
	padding-bottom: 0.65rem;
	background: #fff7ed;
}

.ar-knowledge-mini-graph__title {
	margin: 0 0 0.25rem;
	padding: 0.65rem 0.75rem 0;
	font-size: 1.05rem;
	line-height: 1.3;
	color: #111827;
}

.ar-knowledge-mini-graph__hint {
	margin: 0;
	padding: 0 0.75rem 0.65rem;
	font-size: 0.82rem;
	color: #6b7280;
}

.ar-knowledge-mini-graph__canvas {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	padding: 0.35rem 0 0.85rem;
}

.ar-knowledge-mini-graph__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
}

.ar-knowledge-mini-graph__connector {
	width: 2px;
	height: 16px;
	background: #fdba74;
}

.ar-knowledge-mini-graph__connector--light {
	height: 12px;
	background: #fed7aa;
}

.ar-knowledge-mini-graph__node {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-width: 68px;
	max-width: 100px;
	padding: 0.45rem 0.5rem;
	border: none;
	border-radius: 0;
	text-align: center;
	text-decoration: none;
	color: inherit;
	background: #fff;
	box-shadow: none;
}

.ar-knowledge-mini-graph__node--post {
	background: #ffedd5;
	font-weight: 600;
}

.ar-knowledge-mini-graph__node--entity {
	background: #fff7ed;
}

.ar-knowledge-mini-graph__node--entity:hover,
.ar-knowledge-mini-graph__node--related:hover {
	background: #fdba74;
}

.ar-knowledge-mini-graph__node--related {
	opacity: 1;
	background: #f1f5f9;
}

.ar-knowledge-mini-graph__node-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.1rem;
	height: 1.1rem;
	font-size: 0.82rem;
	line-height: 1;
	margin-bottom: 0.15rem;
	flex-shrink: 0;
}

.ar-knowledge-mini-graph__node-label {
	font-size: 0.7rem;
	line-height: 1.3;
	color: #111827;
	word-break: break-word;
}

.ar-knowledge-mini-graph__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1rem;
	padding: 0.65rem 0.75rem;
	border: none;
	background: #f1f5f9;
}

.ar-knowledge-mini-graph__link {
	font-size: 0.86rem;
	font-weight: 600;
	color: #ea580c;
	text-decoration: none;
}

.ar-knowledge-mini-graph__link:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.ar-knowledge-mini-graph {
		padding: 0.9rem 0.65rem;
	}

	.ar-knowledge-mini-graph__node {
		min-width: 60px;
		max-width: 88px;
	}

	.ar-knowledge-mini-graph__node-icon {
		width: 1rem;
		height: 1rem;
		font-size: 0.75rem;
	}
}
