.rcesd-sitemap {
	--rcesd-sm-ink: #1f2937;
	--rcesd-sm-muted: #6b7280;
	--rcesd-sm-line: #e5e7eb;
	--rcesd-sm-soft: #f3f4f6;
	--rcesd-sm-card: #ffffff;
	--rcesd-sm-active: #111827;
	direction: rtl;
	font-family: "Yekan Bakh", Tahoma, sans-serif;
	color: var(--rcesd-sm-ink);
}

.rcesd-sitemap *,
.rcesd-sitemap *::before,
.rcesd-sitemap *::after {
	box-sizing: border-box;
}

.rcesd-sitemap__search {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding: 14px 16px;
	border: 1px solid var(--rcesd-sm-line);
	border-radius: 16px;
	background: var(--rcesd-sm-card);
}

.rcesd-sitemap__search-icon {
	display: inline-flex;
	color: #9ca3af;
}

.rcesd-sitemap__search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--rcesd-sm-ink);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	outline: none;
}

.rcesd-sitemap__search-input::placeholder {
	color: #9ca3af;
	font-weight: 500;
}

.rcesd-sitemap__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.rcesd-sitemap__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border: 1px solid var(--rcesd-sm-line);
	border-radius: 999px;
	background: var(--rcesd-sm-card);
	color: #4b5563;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.rcesd-sitemap__pill:hover {
	border-color: #d1d5db;
	color: var(--rcesd-sm-ink);
}

.rcesd-sitemap__pill.is-active {
	border-color: var(--rcesd-sm-active);
	background: var(--rcesd-sm-active);
	color: #fff;
}

.rcesd-sitemap__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.rcesd-sitemap__stat {
	padding: 16px 18px;
	border: 1px solid var(--rcesd-sm-line);
	border-radius: 16px;
	background: var(--rcesd-sm-card);
}

.rcesd-sitemap__stat-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.rcesd-sitemap__stat-label {
	color: var(--rcesd-sm-muted);
	font-size: 13px;
	font-weight: 700;
}

.rcesd-sitemap__stat-icon {
	display: inline-flex;
	color: #9ca3af;
}

.rcesd-sitemap__stat-value {
	color: var(--rcesd-sm-ink);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.rcesd-sitemap__sections {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rcesd-sitemap__card {
	position: relative;
	padding: 18px 18px 14px;
	border: 1px solid var(--rcesd-sm-line);
	border-radius: 18px;
	background: var(--rcesd-sm-soft);
}

.rcesd-sitemap__card.is-hidden {
	display: none;
}

.rcesd-sitemap__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.rcesd-sitemap__card-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.rcesd-sitemap__card-title h3 {
	margin: 0;
	color: var(--rcesd-sm-ink);
	font-size: 16px;
	font-weight: 800;
}

.rcesd-sitemap__card-icon {
	display: inline-flex;
	color: #6b7280;
}

.rcesd-sitemap__badge {
	flex: none;
	padding: 5px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--rcesd-sm-line);
	color: var(--rcesd-sm-muted);
	font-size: 12px;
	font-weight: 700;
}

.rcesd-sitemap__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rcesd-sitemap__item + .rcesd-sitemap__item {
	margin-top: 8px;
}

.rcesd-sitemap__item.is-collapsed {
	display: none;
}

.rcesd-sitemap__card.is-expanded .rcesd-sitemap__item.is-collapsed {
	display: list-item;
}

.rcesd-sitemap__item.is-filtered-out {
	display: none !important;
}

.rcesd-sitemap__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: #fff;
	color: var(--rcesd-sm-ink);
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rcesd-sitemap__link:hover {
	border-color: #d1d5db;
	box-shadow: 0 4px 14px rgba(17, 24, 39, 0.04);
}

.rcesd-sitemap__link-main {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.rcesd-sitemap__chevron {
	display: inline-flex;
	flex: none;
	color: #9ca3af;
}

.rcesd-sitemap__link-text {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
}

.rcesd-sitemap__external {
	display: inline-flex;
	flex: none;
	color: #9ca3af;
}

.rcesd-sitemap__link:hover .rcesd-sitemap__external,
.rcesd-sitemap__link:hover .rcesd-sitemap__chevron {
	color: var(--rcesd-sm-ink);
}

.rcesd-sitemap__more {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 14px auto 2px;
	border: 1px solid var(--rcesd-sm-line);
	border-radius: 999px;
	background: #fff;
	color: #4b5563;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rcesd-sitemap__more:hover {
	color: var(--rcesd-sm-ink);
	background: #f9fafb;
}

.rcesd-sitemap__card.is-expanded .rcesd-sitemap__more {
	transform: rotate(180deg);
}

.rcesd-sitemap__card.is-empty-search {
	display: none;
}

.rcesd-sitemap__empty {
	margin: 0;
	padding: 8px 4px;
	color: var(--rcesd-sm-muted);
	font-size: 13.5px;
	font-weight: 600;
}

@media (min-width: 900px) {
	.rcesd-sitemap__stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rcesd-sitemap__stat-value {
		font-size: 24px;
	}

	.rcesd-sitemap__link {
		padding: 11px 12px;
	}

	.rcesd-sitemap__link-text {
		font-size: 13.5px;
	}
}
