/* NOS سطح الرسم المعرفي — دليل الكيانات وصندوق المقال */

/* ------------------------------------------------ صندوق الكيانات في المقال */

.nos-article-entities {
	direction: rtl;
	margin: 28px 0 8px;
	padding: 16px 18px;
	background: var(--ayg-bg-alt, #f4f5f7);
	border: 1px solid var(--ayg-line, #e5e7eb);
	border-radius: 12px;
}
.nos-article-entities h3 {
	margin: 0 0 12px;
	font-size: 1rem;
	color: var(--ayg-ink, #14161b);
}
.nos-article-entities ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.nos-article-entities li {
	display: flex;
	align-items: center;
	gap: 6px;
	background: var(--ayg-card, #fff);
	border: 1px solid var(--ayg-line, #e5e7eb);
	border-radius: 20px;
	padding: 5px 12px;
}
.nos-article-entities .nos-ae-type {
	font-size: 11px;
	color: var(--ayg-muted, #6b7280);
}
.nos-article-entities a {
	font-size: 14px;
	font-weight: 600;
	color: var(--ayg-ink, #14161b);
	text-decoration: none;
}
.nos-article-entities a:hover { color: var(--ayg-red, #c8102e); }

/* ------------------------------------------------------- دليل الكيانات */

.nos-index-head { margin-bottom: 18px; }
.nos-index-head h1 { font-size: 2rem; margin: 0 0 6px; }
.nos-index-head p { color: var(--ayg-muted, #6b7280); margin: 0; font-size: 15px; }

.nos-index-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--ayg-line, #e5e7eb);
}
.nos-index-filters a {
	border: 1px solid var(--ayg-line, #e5e7eb);
	border-radius: 20px;
	padding: 6px 16px;
	font-size: 13px;
	text-decoration: none;
	color: inherit;
}
.nos-index-filters a:hover { border-color: var(--ayg-red, #c8102e); }
.nos-index-filters a.is-active {
	background: var(--ayg-red, #c8102e);
	border-color: var(--ayg-red, #c8102e);
	color: #fff;
}

.nos-index-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}
.nos-index-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--ayg-line, #e5e7eb);
	border-radius: 12px;
	background: var(--ayg-card, #fff);
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease;
}
.nos-index-card:hover { border-color: var(--ayg-red, #c8102e); }

.nos-index-thumb { flex: 0 0 52px; }
.nos-index-thumb img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}
.nos-index-thumb-empty {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--ayg-bg-alt, #f0f1f3);
	color: var(--ayg-muted, #6b7280);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 700;
}
.nos-index-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nos-index-body strong {
	font-size: 14px;
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.nos-index-meta { font-size: 12px; color: var(--ayg-muted, #6b7280); }

.nos-index-pager {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: center;
	margin: 28px 0 0;
	font-size: 14px;
	color: var(--ayg-muted, #6b7280);
}
.nos-index-pager a {
	border: 1px solid var(--ayg-line, #e5e7eb);
	border-radius: 8px;
	padding: 7px 16px;
	text-decoration: none;
	color: inherit;
}
.nos-index-pager a:hover { border-color: var(--ayg-red, #c8102e); }

@media (max-width: 600px) {
	.nos-index-grid { grid-template-columns: 1fr 1fr; }
	.nos-index-head h1 { font-size: 1.5rem; }
}
