.gnis-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

.gnis-org-chart-wrap {
	width: 100%;
}

.gnis-org-chart-scroll {
	overflow-x: auto;
	padding: 36px 16px 48px;
	display: flex;
	justify-content: center;
}

/* حالت افقی (دسکتاپ): شاخه‌ها کنار هم، فرزندان زیر والد */
.gnis-org-branch {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gnis-org-children {
	display: flex;
	gap: 36px;
	margin-top: 32px;
	padding-top: 32px;
	position: relative;
	border-top: 2px solid rgba(255, 167, 0, 0.45);
}

.gnis-org-children::before {
	content: "";
	position: absolute;
	top: -32px;
	left: 50%;
	width: 2px;
	height: 32px;
	background: rgba(255, 167, 0, 0.45);
	transform: translateX(-50%);
}

.gnis-org-node {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.84);
	backdrop-filter: blur(28px) saturate(200%);
	-webkit-backdrop-filter: blur(28px) saturate(200%);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--radius-lg, 24px);
	box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.95), 0 16px 36px -8px rgba(0, 30, 82, 0.09);
	padding: 20px 24px;
	min-width: 160px;
	text-align: center;
	transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
}

.gnis-org-node::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1.5px;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
	pointer-events: none;
}

.gnis-org-node:hover {
	transform: translateY(-6px) scale(1.02);
	background: rgba(255, 255, 255, 0.95);
	box-shadow: inset 0 1px 2px rgba(255, 255, 255, 1), 0 24px 45px -10px rgba(0, 30, 82, 0.16), 0 0 25px rgba(255, 167, 0, 0.35);
	border-color: rgba(255, 167, 0, 0.5);
}

.gnis-org-node--group {
	background: linear-gradient(135deg, rgba(10, 46, 104, 0.92) 0%, rgba(0, 30, 82, 0.94) 50%, rgba(0, 22, 64, 0.98) 100%);
	backdrop-filter: blur(32px) saturate(210%);
	-webkit-backdrop-filter: blur(32px) saturate(210%);
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.4), 0 20px 45px rgba(0, 10, 30, 0.65);
	color: #fff;
}
.gnis-org-node--group::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #FFC247, #FFA700, #E69500);
	border-radius: var(--radius-lg, 24px) var(--radius-lg, 24px) 0 0;
	box-shadow: 0 0 10px rgba(255, 167, 0, 0.5);
}
.gnis-org-node--group .gnis-org-node-label {
	color: #fff;
	font-weight: 800;
	font-size: 15px;
}

.gnis-org-node-photo {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--color-gold, #FFA700);
	box-shadow: 0 0 16px rgba(255, 167, 0, 0.35);
}
.gnis-org-node-photo--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 194, 71, 0.18);
	color: var(--color-navy, #001E52);
	font-weight: 800;
	font-size: 22px;
	font-family: var(--font-fa);
}

.gnis-org-node-label {
	font-size: 14.5px;
	color: var(--color-navy-deep, #001438);
	font-weight: 700;
}

/* حالت عمودی (موبایل) */
@media (max-width: 760px) {
	.gnis-org-chart-scroll {
		justify-content: flex-start;
	}
	.gnis-org-children {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		border-top: none;
		border-inline-start: 2px solid rgba(255, 167, 0, 0.45);
		padding-top: 0;
		padding-inline-start: 24px;
		margin-inline-start: 16px;
	}
	.gnis-org-children::before {
		display: none;
	}
	.gnis-org-branch { align-items: flex-start; }
}
