.rcesd-dedicated {
	--rcesd-dp-accent: #1f9d4a;
	--rcesd-dp-soft: #e8f6ee;
	--rcesd-dp-ink: #1b1f1c;
	--rcesd-dp-muted: #6b7280;
	--rcesd-dp-line: #e8ece9;
	--rcesd-dp-radius: 14px;
	direction: rtl;
	font-family: "Yekan Bakh", Tahoma, sans-serif;
	color: var(--rcesd-dp-ink);
}

.rcesd-dedicated *,
.rcesd-dedicated *::before,
.rcesd-dedicated *::after {
	box-sizing: border-box;
}

/* جلوگیری از هاور قرمز قالب روی لینک‌ها و دکمه‌های ویجت */
.rcesd-dedicated a:hover,
.rcesd-dedicated a:focus,
.rcesd-dedicated a:active,
.rcesd-dedicated button:hover,
.rcesd-dedicated button:focus,
.rcesd-dedicated button:active,
.rcesd-dedicated .rcesd-dedicated__breadcrumb-item a:hover,
.rcesd-dedicated .rcesd-dedicated__cat:hover,
.rcesd-dedicated .rcesd-dedicated__tag:hover,
.rcesd-dedicated .rcesd-dedicated__action:hover,
.rcesd-dedicated .rcesd-dedicated__nav-item:hover,
.rcesd-dedicated .rcesd-dedicated__nav-item:hover .rcesd-dedicated__nav-title,
.rcesd-dedicated .rcesd-dedicated__nav-item:hover .rcesd-dedicated__nav-label,
.rcesd-dedicated .rcesd-dedicated__search-btn:hover,
.rcesd-dedicated .rcesd-dedicated__cats-link:hover,
.rcesd-dedicated .rcesd-dedicated__latest-title:hover,
.rcesd-dedicated .rcesd-dedicated__related-title a:hover,
.rcesd-dedicated .rcesd-dedicated__content a:hover {
	color: var(--rcesd-dp-accent) !important;
}

.rcesd-dedicated .rcesd-dedicated__enlarge:hover,
.rcesd-dedicated .rcesd-dedicated__enlarge:focus,
.rcesd-dedicated .rcesd-dedicated__comment-submit:hover,
.rcesd-dedicated .rcesd-dedicated__comment-submit:focus {
	color: #fff !important;
}

.rcesd-dedicated__empty {
	margin: 0;
	padding: 24px;
	color: var(--rcesd-dp-muted);
}

.rcesd-dedicated__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

.rcesd-dedicated--with-sidebar .rcesd-dedicated__layout {
	grid-template-columns: minmax(0, 1fr) 300px;
}

.rcesd-dedicated__breadcrumb {
	margin: 0 0 14px;
}

.rcesd-dedicated__breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rcesd-dedicated__breadcrumb-item {
	min-width: 0;
	max-width: 100%;
	color: var(--rcesd-dp-muted);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.5;
}

.rcesd-dedicated__breadcrumb-item a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}

.rcesd-dedicated__breadcrumb-item a:hover {
	color: var(--rcesd-dp-accent);
}

.rcesd-dedicated__breadcrumb-item.is-current span {
	display: inline-block;
	max-width: 280px;
	overflow: hidden;
	color: var(--rcesd-dp-ink);
	font-weight: 750;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

.rcesd-dedicated__breadcrumb-sep {
	display: inline-flex;
	flex: none;
	color: #b0b7b2;
}

.rcesd-dedicated__title {
	margin: 0 0 16px;
	color: var(--rcesd-dp-ink);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.55;
}

.rcesd-dedicated__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin-bottom: 22px;
}

.rcesd-dedicated__cat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--rcesd-dp-soft);
	color: var(--rcesd-dp-accent);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.rcesd-dedicated__cat:hover {
	color: #167a39;
}

.rcesd-dedicated__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--rcesd-dp-muted);
	font-size: 13px;
	font-weight: 600;
}

.rcesd-dedicated__meta-item svg,
.rcesd-dedicated__cat svg {
	flex: none;
	color: var(--rcesd-dp-accent);
}

.rcesd-dedicated__featured {
	margin: 0 0 28px;
}

.rcesd-dedicated__featured-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--rcesd-dp-radius);
	object-fit: cover;
}

.rcesd-dedicated__content {
	font-size: 15.5px;
	font-weight: 500;
	line-height: 2;
	color: #2a2f2c;
}

.rcesd-dedicated__content > *:first-child {
	margin-top: 0;
}

.rcesd-dedicated__content p {
	margin: 0 0 1.15em;
}

.rcesd-dedicated__content h2,
.rcesd-dedicated__content h3,
.rcesd-dedicated__content h4 {
	position: relative;
	margin: 1.6em 0 0.75em;
	padding-inline-start: 16px;
	color: var(--rcesd-dp-ink);
	font-weight: 800;
	line-height: 1.55;
}

.rcesd-dedicated__content h2 {
	font-size: 22px;
}

.rcesd-dedicated__content h3 {
	font-size: 18px;
}

.rcesd-dedicated__content h2::before,
.rcesd-dedicated__content h3::before,
.rcesd-dedicated__content h4::before {
	content: "";
	position: absolute;
	top: 0.28em;
	inset-inline-start: 0;
	width: 5px;
	height: 1.05em;
	border-radius: 999px;
	background: var(--rcesd-dp-accent);
}

.rcesd-dedicated__content ul {
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
}

.rcesd-dedicated__content ul > li {
	position: relative;
	margin: 0 0 0.55em;
	padding-inline-start: 22px;
}

.rcesd-dedicated__content ul > li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	inset-inline-start: 0;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--rcesd-dp-accent);
}

.rcesd-dedicated__content ol {
	margin: 0 0 1.2em;
	padding-inline-start: 1.4em;
}

.rcesd-dedicated__content blockquote {
	position: relative;
	margin: 1.4em 0;
	padding: 22px 24px 22px 24px;
	border: 0;
	border-radius: 16px;
	background: var(--rcesd-dp-soft);
	color: #244833;
	font-style: italic;
	font-weight: 600;
	line-height: 1.9;
}

.rcesd-dedicated__content blockquote::before {
	content: "❝";
	display: block;
	margin-bottom: 6px;
	color: var(--rcesd-dp-accent);
	font-style: normal;
	font-size: 28px;
	line-height: 1;
}

.rcesd-dedicated__content blockquote p {
	margin: 0;
}

.rcesd-dedicated__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 1.5em auto;
	max-width: 360px;
}

.rcesd-dedicated__figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(16, 40, 24, 0.08);
}

.rcesd-dedicated__enlarge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--rcesd-dp-accent);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 750;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.rcesd-dedicated__enlarge:hover {
	background: #167a39;
	transform: translateY(-1px);
}

.rcesd-dedicated__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--rcesd-dp-line);
}

.rcesd-dedicated__actions-bar {
	display: flex;
	justify-content: flex-end;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--rcesd-dp-line);
}

.rcesd-dedicated__tags + .rcesd-dedicated__actions-bar {
	margin-top: 16px;
	padding-top: 0;
	border-top: 0;
}

.rcesd-dedicated__tag {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #4b5563;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.rcesd-dedicated__tag:hover {
	background: var(--rcesd-dp-soft);
	color: var(--rcesd-dp-accent);
}

.rcesd-dedicated__actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.rcesd-dedicated__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #d7dcd8;
	border-radius: 999px;
	background: #fff;
	color: #6b7280;
	line-height: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.rcesd-dedicated__action svg {
	display: block;
	flex: none;
	width: 18px;
	height: 18px;
	pointer-events: none;
}

.rcesd-dedicated__action:hover {
	border-color: var(--rcesd-dp-accent);
	color: var(--rcesd-dp-accent);
	background: var(--rcesd-dp-soft);
	box-shadow: 0 4px 12px rgba(16, 40, 24, 0.06);
}

.rcesd-dedicated__action:focus-visible {
	outline: 2px solid var(--rcesd-dp-accent);
	outline-offset: 2px;
}

.rcesd-dedicated__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 28px;
}

.rcesd-dedicated__nav-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 16px 18px;
	border: 1px solid var(--rcesd-dp-line);
	border-radius: 14px;
	background: #fff;
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rcesd-dedicated__nav-item:hover {
	border-color: #cfe8d8;
	box-shadow: 0 8px 20px rgba(16, 40, 24, 0.05);
}

.rcesd-dedicated__nav-item.is-empty {
	visibility: hidden;
	pointer-events: none;
}

.rcesd-dedicated__nav-item--next {
	align-items: flex-start;
	text-align: right;
}

.rcesd-dedicated__nav-item--prev {
	align-items: flex-end;
	text-align: left;
}

.rcesd-dedicated__nav-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--rcesd-dp-muted);
	font-size: 12.5px;
	font-weight: 700;
}

.rcesd-dedicated__nav-title {
	color: var(--rcesd-dp-ink);
	font-size: 14px;
	font-weight: 750;
	line-height: 1.7;
}

.rcesd-dedicated__sidebar {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.rcesd-dedicated__widget {
	padding: 18px;
	border: 1px solid var(--rcesd-dp-line);
	border-radius: 16px;
	background: #fff;
}

.rcesd-dedicated__widget-title {
	margin: 0 0 14px;
	color: var(--rcesd-dp-ink);
	font-size: 16px;
	font-weight: 800;
}

.rcesd-dedicated__search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 4px 4px 12px;
	border: 1px solid var(--rcesd-dp-line);
	border-radius: 12px;
	background: #fafbfa;
}

.rcesd-dedicated__search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	color: var(--rcesd-dp-ink);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	outline: none;
}

.rcesd-dedicated__search-input::placeholder {
	color: #9ca3af;
	font-weight: 500;
}

.rcesd-dedicated__search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--rcesd-dp-muted);
	cursor: pointer;
}

.rcesd-dedicated__search-btn:hover {
	color: var(--rcesd-dp-accent);
}

.rcesd-dedicated__cats {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rcesd-dedicated__cats li + li {
	margin-top: 4px;
}

.rcesd-dedicated__cats-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	color: #374151;
	font-size: 13.5px;
	font-weight: 650;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.rcesd-dedicated__cats-link:hover {
	background: #f6f8f7;
	color: var(--rcesd-dp-accent);
}

.rcesd-dedicated__cats-link.is-active {
	background: var(--rcesd-dp-soft);
	color: var(--rcesd-dp-accent);
}

.rcesd-dedicated__cats-name {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.rcesd-dedicated__cats-count {
	flex: none;
	color: inherit;
	opacity: 0.75;
	font-size: 12.5px;
}

.rcesd-dedicated__latest {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rcesd-dedicated__latest-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.rcesd-dedicated__latest-item + .rcesd-dedicated__latest-item {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--rcesd-dp-line);
}

.rcesd-dedicated__latest-thumb {
	flex: none;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 10px;
	background: #eef2ef;
}

.rcesd-dedicated__latest-thumb img,
.rcesd-dedicated__latest-empty {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rcesd-dedicated__latest-empty {
	background: linear-gradient(135deg, #e8f0ea, #d9e5dc);
}

.rcesd-dedicated__latest-body {
	min-width: 0;
}

.rcesd-dedicated__latest-title {
	display: -webkit-box;
	margin-bottom: 6px;
	overflow: hidden;
	color: var(--rcesd-dp-ink);
	font-size: 13.5px;
	font-weight: 750;
	line-height: 1.55;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.rcesd-dedicated__latest-title:hover {
	color: var(--rcesd-dp-accent);
}

.rcesd-dedicated__latest-date {
	display: block;
	color: var(--rcesd-dp-muted);
	font-size: 12px;
	font-weight: 600;
}

.rcesd-dedicated__related,
.rcesd-dedicated__comments {
	margin-top: 42px;
}

.rcesd-dedicated__section-title {
	position: relative;
	margin: 0 0 20px;
	padding-inline-start: 16px;
	color: var(--rcesd-dp-ink);
	font-size: 22px;
	font-weight: 800;
	line-height: 1.45;
}

.rcesd-dedicated__section-title::before {
	content: "";
	position: absolute;
	top: 0.28em;
	inset-inline-start: 0;
	width: 5px;
	height: 1.05em;
	border-radius: 999px;
	background: var(--rcesd-dp-accent);
}

.rcesd-dedicated__related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.rcesd-dedicated__related-card {
	min-width: 0;
}

.rcesd-dedicated__related-media {
	display: block;
	overflow: hidden;
	margin-bottom: 12px;
	border-radius: 14px;
	aspect-ratio: 16 / 10;
	background: #eef2ef;
}

.rcesd-dedicated__related-media img,
.rcesd-dedicated__related-empty {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rcesd-dedicated__related-empty {
	background: linear-gradient(135deg, #e8f0ea, #d9e5dc);
}

.rcesd-dedicated__related-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.7;
}

.rcesd-dedicated__related-title a {
	color: var(--rcesd-dp-ink);
	text-decoration: none;
}

.rcesd-dedicated__related-title a:hover {
	color: var(--rcesd-dp-accent);
}

.rcesd-dedicated__related-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	color: var(--rcesd-dp-muted);
	font-size: 12.5px;
	font-weight: 600;
}

.rcesd-dedicated__related-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.rcesd-dedicated__related-meta svg {
	color: var(--rcesd-dp-accent);
}

.rcesd-dedicated__comment-form .comment-respond,
.rcesd-dedicated__comment-form .comment-form {
	margin: 0;
}

.rcesd-dedicated__comment-form .comment-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rcesd-dedicated__comment-form .form-submit {
	margin: 0;
}

.rcesd-dedicated__comment-form {
	display: block;
}

.rcesd-dedicated__comment-field,
.rcesd-dedicated__comment-fields input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--rcesd-dp-line);
	border-radius: 12px;
	background: #fff;
	color: var(--rcesd-dp-ink);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.7;
	outline: none;
	resize: vertical;
	transition: border-color 0.18s ease;
}

.rcesd-dedicated__comment-field:focus,
.rcesd-dedicated__comment-fields input:focus {
	border-color: #b7dcc5;
}

.rcesd-dedicated__comment-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.rcesd-dedicated__comment-submit {
	align-self: flex-start;
	padding: 12px 24px;
	border: 0;
	border-radius: 10px;
	background: #166534;
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 750;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.rcesd-dedicated__comment-submit:hover {
	background: #14532d;
	transform: translateY(-1px);
}

.rcesd-dedicated-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(10, 18, 12, 0.78);
}

.rcesd-dedicated-lightbox[hidden] {
	display: none !important;
}

.rcesd-dedicated-lightbox__img {
	max-width: min(960px, 100%);
	max-height: 88vh;
	border-radius: 12px;
	object-fit: contain;
}

.rcesd-dedicated-lightbox__close {
	position: absolute;
	top: 18px;
	left: 18px;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 1024px) {
	.rcesd-dedicated--with-sidebar .rcesd-dedicated__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.rcesd-dedicated__related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.rcesd-dedicated__title {
		font-size: 23px;
	}

	.rcesd-dedicated__nav {
		grid-template-columns: 1fr;
	}

	.rcesd-dedicated__nav-item--prev,
	.rcesd-dedicated__nav-item--next {
		align-items: flex-start;
		text-align: right;
	}

	.rcesd-dedicated__actions-bar {
		justify-content: flex-end;
	}

	.rcesd-dedicated__related-grid,
	.rcesd-dedicated__comment-fields {
		grid-template-columns: 1fr;
	}

	.rcesd-dedicated__content {
		font-size: 14.5px;
	}
}

@media print {
	.rcesd-dedicated__sidebar,
	.rcesd-dedicated__actions,
	.rcesd-dedicated__comments,
	.rcesd-dedicated__enlarge,
	.rcesd-dedicated-lightbox {
		display: none !important;
	}

	.rcesd-dedicated--with-sidebar .rcesd-dedicated__layout {
		grid-template-columns: 1fr;
	}
}
