:root {
	--pke-community-ink: #242424;
	--pke-community-green: #242424;
	--pke-community-accent: #efa45e;
	--pke-community-cream: #f7f3ea;
	--pke-community-line: rgba(36, 36, 36, 0.12);
}

body.pke-community-active .post-sidebar { display: none !important; }
body.pke-community-active .large-9,
body.pke-community-active .post-content { flex-basis: 100% !important; max-width: 100% !important; }

body.pke-community-active .kk-star-ratings {
	position: relative;
	display: flex !important;
	flex-direction: column;
	align-items: center !important;
	gap: 12px;
	width: 100%;
	min-height: 176px;
	margin: 42px 0 8px !important;
	padding: 68px 28px 25px !important;
	border: 1px solid rgba(239, 164, 94, .35);
	border-radius: 24px;
	background: radial-gradient(circle at 85% 20%, rgba(239, 164, 94, .14), transparent 34%), linear-gradient(145deg, #fffdf8, #f7f3ea);
	box-shadow: 0 18px 50px rgba(36, 36, 36, 0.09);
	direction: rtl;
}

body.pke-community-active .kk-star-ratings::before {
	content: "امتیاز شما به این راهنما";
	position: absolute;
	top: 22px;
	right: 26px;
	color: var(--pke-community-green);
	font-size: 16px;
	font-weight: 900;
}

body.pke-community-active .kk-star-ratings::after {
	content: "هر نفر فقط یک‌بار می‌تواند رأی ثبت کند";
	color: #a34600;
	font-size: 11px;
}

body.pke-community-active .kk-star-ratings .kksr-stars { direction: ltr; }
body.pke-community-active .kk-star-ratings .kksr-legend { color: #626262; font-family: inherit; font-size: 13px !important; }

#comments.pke-comments-shell {
	width: 100vw;
	max-width: none;
	margin: 70px calc(50% - 50vw) 0 !important;
	padding: 82px 20px 105px;
	border: 0;
	background: linear-gradient(180deg, #f7f3ea 0%, #fffdf8 100%);
	direction: rtl;
	text-align: right;
}

.pke-comments-inner { width: min(940px, 100%); margin: 0 auto; }
.pke-comments-heading { display: grid; grid-template-columns: 1fr minmax(250px, .55fr); align-items: end; gap: 36px; margin-bottom: 32px; }
.pke-comments-heading span { color: #d77a36; font-size: 13px; font-weight: 850; }
.pke-comments-heading h2 { margin: 8px 0 0; color: var(--pke-community-ink); font-size: clamp(25px, 4vw, 39px); line-height: 1.5; }
.pke-comments-heading p { margin: 0; color: #626262; font-size: 13px; line-height: 2; }

.pke-comment-list,
.pke-comment-list .children { list-style: none; margin: 0; padding: 0; }
.pke-comment-list { display: grid; gap: 14px; }
.pke-comment-list .children { display: grid; gap: 12px; margin: 14px 46px 0 0; }
.pke-comment-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 23px; border: 1px solid var(--pke-community-line); border-radius: 20px; background: #fff; box-shadow: 0 12px 36px rgba(36, 36, 36, 0.055); }
.pke-comment-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: linear-gradient(135deg, var(--pke-community-green), #a34600); color: #fff; font-size: 18px; font-weight: 900; }
.pke-comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 10px; }
.pke-comment-meta strong { color: var(--pke-community-ink); font-size: 14px; }
.pke-comment-meta time { margin-right: auto; color: #a34600; font-size: 11px; }
.pke-author-badge { padding: 4px 8px; border-radius: 8px; background: #fff1e3; color: var(--pke-community-green); font-size: 10px; font-weight: 850; }
.pke-comment-text { color: #626262; font-size: 13px; line-height: 2.1; }
.pke-comment-text p:last-child { margin-bottom: 0; }
.pke-comment-actions { margin-top: 11px; }
.pke-comment-actions a { color: #d77a36; font-size: 11px; font-weight: 800; }
.pke-awaiting-moderation { padding: 9px 12px; border-radius: 10px; background: #fff3d8; color: #73571b; font-size: 12px; }

.pke-comment-form-card { margin-top: 30px; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--pke-community-line); border-radius: 26px; background: #fff; box-shadow: 0 20px 65px rgba(36, 36, 36, 0.1); }
.pke-comment-form-card .comment-reply-title { margin: 0 0 8px; color: var(--pke-community-ink); font-size: 24px; }
.pke-comment-note { margin-bottom: 24px; color: #626262; font-size: 12px; }
.pke-comment-form-card .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
.pke-comment-form-card .comment-notes,
.pke-comment-form-card .logged-in-as,
.pke-comment-form-card .comment-form-comment,
.pke-comment-form-card .comment-form-cookies-consent,
.pke-comment-form-card .form-submit { grid-column: 1 / -1; }
.pke-comment-form-card label { display: block; margin-bottom: 7px; color: var(--pke-community-green); font-size: 12px; font-weight: 800; }
.pke-comment-form-card input[type="text"],
.pke-comment-form-card input[type="email"],
.pke-comment-form-card textarea { width: 100%; border: 1px solid var(--pke-community-line) !important; border-radius: 13px !important; background: #fbfcfa !important; box-shadow: none !important; color: var(--pke-community-ink); }
.pke-comment-form-card input[type="text"],
.pke-comment-form-card input[type="email"] { height: 50px; }
.pke-comment-form-card textarea { min-height: 150px; padding: 14px; resize: vertical; }
.pke-comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 9px; }
.pke-comment-form-cookies-consent input { margin-top: 6px; }
.pke-comment-form-cookies-consent label { color: #626262; font-weight: 500; line-height: 1.9; }
.pke-comment-submit { min-height: 50px; padding: 0 25px !important; border: 0 !important; border-radius: 14px !important; background: linear-gradient(135deg, #ffd09a, var(--pke-community-accent)) !important; color: var(--pke-community-ink) !important; font-weight: 900 !important; }
.pke-comments-shell .navigation { margin: 20px 0; }

@media (max-width: 720px) {
	#comments.pke-comments-shell { margin-top: 48px !important; padding: 60px 15px 95px; }
	.pke-comments-heading { grid-template-columns: 1fr; gap: 10px; }
	.pke-comment-list .children { margin-right: 18px; }
	.pke-comment-card { grid-template-columns: 40px minmax(0, 1fr); padding: 18px 14px; }
	.pke-comment-avatar { width: 40px; height: 40px; border-radius: 13px; }
	.pke-comment-meta time { width: 100%; margin: 0; }
	.pke-comment-form-card .comment-form { grid-template-columns: 1fr; }
	.pke-comment-form-card .comment-form-author,
	.pke-comment-form-card .comment-form-email { grid-column: 1 / -1; }
	body.pke-community-active .kk-star-ratings { padding-inline: 18px !important; }
}
