/* ═══════════════════════════════════════════════════════════════
   پیشروموبایل — وبلاگ (blog.css)
   آرشیو پست · صفحه تکی · سایدبار · کامنت
   مینیمال · RTL · Mobile-First
   ═══════════════════════════════════════════════════════════════ */

/* ── متغیرها ─────────────────────────────────────────────────── */
:root {
	--pb-accent:      #F5A623;
	--pb-accent-d:    #e09415;
	--pb-accent-soft: #fff7ec;
	--pb-ink:         #1a202c;
	--pb-ink-2:       #2d3748;
	--pb-muted:       #6b7280;
	--pb-border:      #e9ebef;
	--pb-soft:        #f6f7f9;
	--pb-card:        #ffffff;
	--pb-radius:      14px;
	--pb-shadow:      0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
	--pb-shadow-lg:   0 12px 34px rgba(20,30,55,.13);
}

/* ══════════════════════════════════════════════════════════════
   BLOCKSY NATIVE OVERRIDES — مخفی کردن عناصر اضافه
   ══════════════════════════════════════════════════════════════ */
.pishro-blog .hero-section .page-title,
.pishro-blog .hero-section .page-description,
.pishro-single-post .hero-section .page-title,
.pishro-single-post .hero-section .entry-title { display: none !important; }

.pishro-blog .hero-section,
.pishro-blog .hero-section .entry-header,
.pishro-single-post .hero-section,
.pishro-single-post .hero-section .entry-header {
	padding-block: 0 !important;
	min-height: 0 !important;
	margin-block-end: 0 !important;
}
.pishro-blog .ct-container,
.pishro-blog .ct-container-full,
.pishro-single-post .ct-container,
.pishro-single-post .ct-container-full { padding-block-start: 0 !important; }

/* ══════════════════════════════════════════════════════════════
   HERO HEADER — نوار عنوان و breadcrumb
   ══════════════════════════════════════════════════════════════ */
.pb-hero {
	background: var(--pb-soft);
	border-bottom: 1px solid var(--pb-border);
	padding-block: 1.1rem .9rem;
	margin-block-end: 1.75rem;
}
.pb-hero__inner {
	max-width: var(--pishro-max);
	margin-inline: auto;
	padding-inline: var(--pishro-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .5rem;
	direction: rtl;
}
.pb-hero__title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--pb-ink);
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}
.pb-hero__title .ti { color: var(--pb-accent); }

.pb-breadcrumb {
	display: flex;
	align-items: center;
	gap: .3rem;
	font-size: .78rem;
	color: var(--pb-muted);
	flex-wrap: wrap;
	direction: rtl;
}
.pb-breadcrumb a {
	color: var(--pb-muted);
	text-decoration: none;
	transition: color .15s;
}
.pb-breadcrumb a:hover { color: var(--pb-accent); }
.pb-breadcrumb__sep { color: var(--pb-border); font-size: .7rem; }

/* ══════════════════════════════════════════════════════════════
   WRAPPER
   ══════════════════════════════════════════════════════════════ */
.pb-wrap {
	max-width: var(--pishro-max);
	margin-inline: auto;
	padding-inline: var(--pishro-gutter);
	padding-block-end: 3rem;
	direction: rtl;
}

/* ══════════════════════════════════════════════════════════════
   CATEGORY FILTER PILLS
   ══════════════════════════════════════════════════════════════ */
.pb-cat-filter {
	display: flex;
	align-items: center;
	gap: .4rem;
	flex-wrap: wrap;
	margin-block-end: 1.25rem;
	padding-block-end: 1.25rem;
	border-block-end: 1px solid var(--pb-border);
}
.pb-cat-filter__item {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .3rem .85rem;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 600;
	border: 1.5px solid var(--pb-border);
	background: var(--pb-card);
	color: var(--pb-muted);
	text-decoration: none;
	transition: all .15s;
}
.pb-cat-filter__item:hover,
.pb-cat-filter__item--active {
	border-color: var(--pb-accent);
	background: var(--pb-accent-soft);
	color: var(--pb-accent-d);
}
.pb-cat-filter__count {
	background: var(--pb-soft);
	border-radius: 999px;
	padding: .05rem .35rem;
	font-size: .68rem;
}
.pb-cat-filter__item--active .pb-cat-filter__count {
	background: var(--pb-accent);
	color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT: ستون اصلی + سایدبار
   ══════════════════════════════════════════════════════════════ */
.pb-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 2rem;
	align-items: start;
}
@media (max-width: 1023px) {
	.pb-layout { grid-template-columns: 1fr; }
	.pb-sidebar { order: -1; }
}
@media (max-width: 767px) {
	.pb-sidebar { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   FEATURED POST — اولین پست بزرگ
   ══════════════════════════════════════════════════════════════ */
.pb-featured {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--pb-card);
	border: 1px solid var(--pb-border);
	border-radius: var(--pb-radius);
	overflow: hidden;
	box-shadow: var(--pb-shadow-lg);
	margin-block-end: 1.75rem;
	position: relative;
	min-height: 320px;
}
@media (max-width: 720px) {
	.pb-featured {
		grid-template-columns: 1fr;
		min-height: auto;
	}
}
.pb-featured__img-link {
	display: block;
	position: relative;
	overflow: hidden;
	min-height: 280px;
}
@media (max-width: 720px) {
	.pb-featured__img-link { min-height: 220px; }
}
.pb-featured__img-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s;
}
.pb-featured:hover .pb-featured__img-link img { transform: scale(1.04); }

.pb-featured__cat {
	position: absolute;
	inset-block-start: .75rem;
	inset-inline-start: .75rem;
	background: var(--pb-accent);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	padding: .22rem .7rem;
	border-radius: 999px;
	text-decoration: none;
	z-index: 2;
	transition: background .15s;
}
.pb-featured__cat:hover { background: var(--pb-accent-d); color: #fff; }

.pb-featured__body {
	padding: 2rem 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: .65rem;
	justify-content: center;
}
@media (max-width: 720px) {
	.pb-featured__body { padding: 1.25rem; }
}
.pb-featured__badge {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-size: .72rem;
	font-weight: 700;
	color: var(--pb-accent);
	letter-spacing: .02em;
}
.pb-featured__title {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.5;
	color: var(--pb-ink);
	margin: 0;
}
.pb-featured__title a {
	color: inherit;
	text-decoration: none;
	transition: color .15s;
}
.pb-featured:hover .pb-featured__title a { color: var(--pb-accent-d); }
@media (max-width: 480px) {
	.pb-featured__title { font-size: 1.1rem; }
}
.pb-featured__excerpt {
	font-size: .87rem;
	color: var(--pb-muted);
	line-height: 1.75;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.pb-featured__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block-start: .65rem;
	border-block-start: 1px solid var(--pb-border);
	margin-block-start: auto;
}
.pb-featured__author {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .78rem;
	font-weight: 600;
	color: var(--pb-ink-2);
	text-decoration: none;
}
.pb-featured__author img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid var(--pb-border);
	object-fit: cover;
}
.pb-featured__stats {
	display: flex;
	align-items: center;
	gap: .75rem;
	font-size: .75rem;
	color: var(--pb-muted);
}
.pb-featured__stats span {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
}
.pb-featured__cta {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .5rem 1.25rem;
	background: var(--pb-accent);
	color: #fff;
	border-radius: 8px;
	font-size: .83rem;
	font-weight: 700;
	text-decoration: none;
	align-self: flex-start;
	transition: background .15s;
}
.pb-featured__cta:hover { background: var(--pb-accent-d); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   POST GRID
   ══════════════════════════════════════════════════════════════ */
.pb-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.4rem;
}
@media (max-width: 1023px) { .pb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pb-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════
   POST CARD
   ══════════════════════════════════════════════════════════════ */
.pb-card {
	background: var(--pb-card);
	border: 1px solid var(--pb-border);
	border-radius: var(--pb-radius);
	overflow: hidden;
	box-shadow: var(--pb-shadow);
	transition: box-shadow .2s, transform .2s;
	display: flex;
	flex-direction: column;
	position: relative;
}
.pb-card:hover {
	box-shadow: var(--pb-shadow-lg);
	transform: translateY(-2px);
}

.pb-card__img-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--pb-soft);
	flex-shrink: 0;
}
.pb-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s;
}
.pb-card:hover .pb-card__img-wrap img { transform: scale(1.04); }

.pb-card__no-img {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #fff7ec 0%, #fce4b2 100%);
	color: var(--pb-accent);
	font-size: 2.5rem;
}

.pb-card__cat {
	position: absolute;
	inset-block-start: .6rem;
	inset-inline-start: .6rem;
	background: var(--pb-accent);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	padding: .18rem .6rem;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	z-index: 2;
	transition: background .15s;
}
.pb-card__cat:hover { background: var(--pb-accent-d); color: #fff; }

/* stretched link — کل کارت کلیک‌پذیر */
.pb-card__title-link {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .95rem;
	font-weight: 700;
	color: var(--pb-ink);
	line-height: 1.6;
	text-decoration: none;
	transition: color .15s;
}
.pb-card__title-link::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}
.pb-card:hover .pb-card__title-link { color: var(--pb-accent-d); }

.pb-card__body {
	padding: .9rem 1rem 1rem;
	display: flex;
	flex-direction: column;
	gap: .45rem;
	flex: 1;
}
.pb-card__excerpt {
	font-size: .82rem;
	color: var(--pb-muted);
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}
.pb-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	padding-block-start: .55rem;
	border-block-start: 1px solid var(--pb-border);
	margin-block-start: auto;
	flex-wrap: wrap;
}
.pb-card__author {
	display: flex;
	align-items: center;
	gap: .35rem;
	text-decoration: none;
	color: var(--pb-ink-2);
	font-size: .76rem;
	font-weight: 600;
	position: relative;
	z-index: 2;
}
.pb-card__author img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid var(--pb-border);
}
.pb-card__stats {
	display: flex;
	align-items: center;
	gap: .65rem;
	font-size: .72rem;
	color: var(--pb-muted);
}
.pb-card__stats span {
	display: inline-flex;
	align-items: center;
	gap: .2rem;
}
.pb-card__stats .ti { font-size: .85rem; }

/* ══════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════ */
.pb-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	padding-block: 2rem 0;
	direction: rtl;
	flex-wrap: wrap;
}
.pb-pagination a,
.pb-pagination .current,
.pb-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding-inline: .5rem;
	border-radius: 8px;
	font-size: .83rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--pb-border);
	color: var(--pb-muted);
	background: var(--pb-card);
	transition: all .15s;
}
.pb-pagination a:hover {
	border-color: var(--pb-accent);
	color: var(--pb-accent);
}
.pb-pagination .current {
	background: var(--pb-accent);
	border-color: var(--pb-accent);
	color: #fff;
}
.pb-pagination .dots {
	border: none;
	background: none;
	color: var(--pb-muted);
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════ */
.pb-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	position: sticky;
	top: 80px;
}
.pb-widget {
	background: var(--pb-card);
	border: 1px solid var(--pb-border);
	border-radius: var(--pb-radius);
	overflow: hidden;
	box-shadow: var(--pb-shadow);
}
.pb-widget__header {
	padding: .75rem 1.1rem;
	background: var(--pb-soft);
	border-block-end: 1px solid var(--pb-border);
	display: flex;
	align-items: center;
	gap: .4rem;
}
.pb-widget__title {
	font-size: .83rem;
	font-weight: 700;
	color: var(--pb-ink);
	margin: 0;
	display: flex;
	align-items: center;
	gap: .35rem;
}
.pb-widget__title .ti { color: var(--pb-accent); }
.pb-widget__body { padding: .9rem 1.1rem; }

/* جستجو */
.pb-search-form { display: flex; gap: .4rem; }
.pb-search-form input {
	flex: 1;
	border: 1px solid var(--pb-border);
	border-radius: 8px;
	padding: .45rem .7rem;
	font-size: .83rem;
	font-family: inherit;
	direction: rtl;
	color: var(--pb-ink);
	background: var(--pb-soft);
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.pb-search-form input:focus {
	border-color: var(--pb-accent);
	box-shadow: 0 0 0 3px rgba(245,166,35,.14);
	background: #fff;
}
.pb-search-form button {
	flex-shrink: 0;
	background: var(--pb-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: .45rem .7rem;
	cursor: pointer;
	font-size: .95rem;
	display: inline-flex;
	align-items: center;
	transition: background .15s;
}
.pb-search-form button:hover { background: var(--pb-accent-d); }

/* آخرین پست‌ها */
.pb-recent-posts { list-style: none; padding: 0; margin: 0; }
.pb-recent-posts li {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	padding-block: .6rem;
	border-block-end: 1px solid var(--pb-border);
}
.pb-recent-posts li:last-child { border-block-end: none; }
.pb-recent-posts__thumb {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--pb-soft);
}
.pb-recent-posts__thumb img {
	width: 100%; height: 100%;
	object-fit: cover; display: block;
}
.pb-recent-posts__no-img {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: var(--pb-accent-soft);
	color: var(--pb-accent);
	font-size: 1.2rem;
}
.pb-recent-posts__info { flex: 1; min-width: 0; }
.pb-recent-posts__info a {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: .8rem;
	font-weight: 600;
	color: var(--pb-ink);
	text-decoration: none;
	line-height: 1.5;
	margin-block-end: .2rem;
	transition: color .15s;
}
.pb-recent-posts__info a:hover { color: var(--pb-accent); }
.pb-recent-posts__date { font-size: .7rem; color: var(--pb-muted); }

/* دسته‌بندی‌ها */
.pb-cat-list { list-style: none; padding: 0; margin: 0; }
.pb-cat-list li { border-block-end: 1px solid var(--pb-border); }
.pb-cat-list li:last-child { border-block-end: none; }
.pb-cat-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: .55rem;
	text-decoration: none;
	color: var(--pb-ink-2);
	font-size: .83rem;
	transition: color .15s;
}
.pb-cat-list a:hover { color: var(--pb-accent); }
.pb-cat-list__count {
	background: var(--pb-soft);
	color: var(--pb-muted);
	font-size: .7rem;
	font-weight: 600;
	padding: .08rem .4rem;
	border-radius: 999px;
}

/* تگ‌ها */
.pb-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
}
.pb-tag-cloud a {
	display: inline-block;
	padding: .22rem .65rem;
	background: var(--pb-soft);
	border: 1px solid var(--pb-border);
	border-radius: 999px;
	font-size: .76rem;
	color: var(--pb-muted);
	text-decoration: none;
	transition: all .15s;
}
.pb-tag-cloud a:hover {
	background: var(--pb-accent-soft);
	border-color: var(--pb-accent);
	color: var(--pb-accent-d);
}

/* درباره وبلاگ */
.pb-about-widget { text-align: center; }
.pb-about-widget__logo {
	width: 60px; height: 60px;
	border-radius: 50%;
	border: 2px solid var(--pb-border);
	margin-inline: auto;
	margin-block-end: .65rem;
	overflow: hidden;
}
.pb-about-widget__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-about-widget__name { font-size: .9rem; font-weight: 700; color: var(--pb-ink); margin-block-end: .35rem; }
.pb-about-widget__desc { font-size: .78rem; color: var(--pb-muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   SINGLE POST
   ══════════════════════════════════════════════════════════════ */
.pb-single-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 2rem;
	align-items: start;
	margin-block-start: 1.5rem;
}
@media (max-width: 1023px) { .pb-single-layout { grid-template-columns: 1fr; } }
@media (max-width: 767px)  { .pb-single-layout .pb-sidebar { display: none; } }

.pb-single-header { margin-block-end: 1.25rem; }
.pb-single-header__cats {
	display: flex;
	gap: .35rem;
	flex-wrap: wrap;
	margin-block-end: .65rem;
}
.pb-single-header__cat {
	display: inline-flex;
	align-items: center;
	padding: .18rem .65rem;
	background: var(--pb-accent-soft);
	border: 1px solid var(--pb-accent);
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	color: var(--pb-accent-d);
	text-decoration: none;
	transition: all .15s;
}
.pb-single-header__cat:hover {
	background: var(--pb-accent);
	color: #fff;
}
.pb-single-header__title {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--pb-ink);
	line-height: 1.5;
	margin-block: .5rem .75rem;
}
@media (max-width: 560px) { .pb-single-header__title { font-size: 1.25rem; } }

.pb-single-header__meta {
	display: flex;
	align-items: center;
	gap: .65rem 1.1rem;
	flex-wrap: wrap;
	font-size: .78rem;
	color: var(--pb-muted);
	padding-block: .7rem;
	border-block: 1px solid var(--pb-border);
}
.pb-single-header__meta-item {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
}
.pb-single-header__meta a {
	color: var(--pb-ink-2);
	text-decoration: none;
	font-weight: 600;
	transition: color .15s;
}
.pb-single-header__meta a:hover { color: var(--pb-accent); }
.pb-single-header__meta .ti { font-size: .9rem; }

/* تصویر شاخص */
.pb-single-hero-img {
	border-radius: var(--pb-radius);
	overflow: hidden;
	margin-block-end: 1.75rem;
	box-shadow: var(--pb-shadow-lg);
}
.pb-single-hero-img img {
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: cover;
	display: block;
}

/* محتوای پست */
.pb-single-body {
	font-size: 1rem;
	line-height: 1.95;
	color: var(--pb-ink-2);
}
.pb-single-body h1,
.pb-single-body h2,
.pb-single-body h3,
.pb-single-body h4,
.pb-single-body h5,
.pb-single-body h6 {
	font-weight: 700;
	color: var(--pb-ink);
	margin-block: 1.5rem .45rem;
	line-height: 1.4;
}
.pb-single-body h2 {
	font-size: 1.3rem;
	border-inline-start: 3px solid var(--pb-accent);
	padding-inline-start: .75rem;
}
.pb-single-body h3 { font-size: 1.1rem; }
.pb-single-body h4 { font-size: 1rem; }
.pb-single-body p  { margin-block: 0 1rem; }
.pb-single-body ul,
.pb-single-body ol { padding-inline-start: 1.5rem; margin-block: 0 1rem; }
.pb-single-body li { margin-block-end: .35rem; }
.pb-single-body a  { color: var(--pb-accent-d); text-decoration: underline; text-underline-offset: 2px; }
.pb-single-body a:hover { color: var(--pb-accent); }
.pb-single-body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	margin-block: 1rem auto;
}
.pb-single-body figure { margin-inline: 0; }
.pb-single-body figcaption { font-size: .78rem; color: var(--pb-muted); text-align: center; margin-block-start: .35rem; }
.pb-single-body blockquote {
	border-inline-start: 4px solid var(--pb-accent);
	background: var(--pb-accent-soft);
	margin-inline: 0;
	padding: 1rem 1.25rem;
	border-radius: 0 8px 8px 0;
	color: var(--pb-ink);
}
.pb-single-body blockquote p { margin: 0; font-style: italic; }
.pb-single-body code {
	background: var(--pb-soft);
	border: 1px solid var(--pb-border);
	border-radius: 4px;
	padding: .08rem .38rem;
	font-size: .88em;
	font-family: monospace;
}
.pb-single-body pre {
	background: #1a202c;
	color: #e2e8f0;
	border-radius: 8px;
	padding: 1rem 1.25rem;
	overflow-x: auto;
	margin-block: 1rem;
	direction: ltr;
	text-align: left;
}
.pb-single-body pre code { background: none; border: none; padding: 0; color: inherit; }
.pb-single-body table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-block: 1rem; }
.pb-single-body table th,
.pb-single-body table td {
	border: 1px solid var(--pb-border);
	padding: .55rem .8rem;
	text-align: right;
}
.pb-single-body table th { background: var(--pb-soft); font-weight: 700; }
.pb-single-body table tr:nth-child(even) { background: var(--pb-soft); }
.pb-single-body hr { border: none; border-block-start: 1px solid var(--pb-border); margin-block: 1.5rem; }
.pb-single-body .wp-caption { max-width: 100%; }

/* نوار پیشرفت خواندن */
.pb-reading-progress {
	position: fixed;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: 0%;
	height: 3px;
	background: var(--pb-accent);
	z-index: 9999;
	transition: width .1s linear;
}

/* تگ‌های پست */
.pb-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .4rem;
	padding-block: 1.1rem;
	border-block: 1px solid var(--pb-border);
	margin-block: 1.5rem;
}
.pb-tags__label {
	font-size: .8rem;
	font-weight: 700;
	color: var(--pb-muted);
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: .3rem;
}
.pb-tags a {
	display: inline-flex;
	align-items: center;
	padding: .25rem .7rem;
	background: var(--pb-soft);
	border: 1px solid var(--pb-border);
	border-radius: 999px;
	font-size: .76rem;
	color: var(--pb-muted);
	text-decoration: none;
	transition: all .15s;
}
.pb-tags a:hover {
	background: var(--pb-accent-soft);
	border-color: var(--pb-accent);
	color: var(--pb-accent-d);
}

/* اشتراک‌گذاری */
.pb-share {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-wrap: wrap;
	background: var(--pb-soft);
	border: 1px solid var(--pb-border);
	border-radius: var(--pb-radius);
	padding: 1rem 1.25rem;
	margin-block: 1.5rem;
}
.pb-share__label {
	font-size: .83rem;
	font-weight: 700;
	color: var(--pb-ink);
	display: flex;
	align-items: center;
	gap: .35rem;
	white-space: nowrap;
}
.pb-share__buttons { display: flex; gap: .4rem; flex-wrap: wrap; }
.pb-share__btn {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .38rem .8rem;
	border-radius: 8px;
	font-size: .78rem;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: opacity .15s, transform .1s;
	font-family: inherit;
}
.pb-share__btn:hover { opacity: .88; transform: translateY(-1px); }
.pb-share__btn--telegram  { background: #2CA5E0; color: #fff; }
.pb-share__btn--whatsapp  { background: #25D366; color: #fff; }
.pb-share__btn--twitter   { background: #1DA1F2; color: #fff; }
.pb-share__btn--linkedin  { background: #0077B5; color: #fff; }
.pb-share__btn--copy {
	background: var(--pb-card);
	color: var(--pb-muted);
	border: 1px solid var(--pb-border);
}
.pb-share__btn--copy:hover { border-color: var(--pb-accent); color: var(--pb-accent); }
.pb-share__btn--copy.pb-copied {
	background: #d1fae5;
	border-color: #1D9E75;
	color: #065f46;
}

/* کادر نویسنده */
.pb-author-box {
	display: flex;
	gap: 1.25rem;
	background: var(--pb-card);
	border: 1px solid var(--pb-border);
	border-radius: var(--pb-radius);
	padding: 1.25rem;
	margin-block: 2rem;
	box-shadow: var(--pb-shadow);
}
@media (max-width: 560px) {
	.pb-author-box { flex-direction: column; align-items: center; text-align: center; }
}
.pb-author-box__avatar {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--pb-border);
}
.pb-author-box__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-author-box__info { flex: 1; }
.pb-author-box__role {
	font-size: .7rem;
	font-weight: 700;
	color: var(--pb-accent);
	letter-spacing: .04em;
	text-transform: uppercase;
}
.pb-author-box__name {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	color: var(--pb-ink);
	text-decoration: none;
	margin-block: .2rem .4rem;
}
.pb-author-box__name:hover { color: var(--pb-accent); }
.pb-author-box__bio {
	font-size: .83rem;
	color: var(--pb-muted);
	line-height: 1.7;
	margin-block-end: .6rem;
}
.pb-author-box__link {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	font-size: .77rem;
	font-weight: 600;
	color: var(--pb-accent);
	text-decoration: none;
}
.pb-author-box__link:hover { color: var(--pb-accent-d); }

/* پست‌های مرتبط */
.pb-related { margin-block: 2.5rem; }
.pb-related__title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--pb-ink);
	margin-block-end: 1.1rem;
	display: flex;
	align-items: center;
	gap: .4rem;
}
.pb-related__title .ti { color: var(--pb-accent); }
.pb-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
@media (max-width: 720px) { .pb-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pb-related__grid { grid-template-columns: 1fr; } }

/* کامنت‌ها */
.pb-comments {
	margin-block-start: 2.5rem;
	padding-block-start: 2rem;
	border-block-start: 2px solid var(--pb-border);
}
.pb-comments .comments-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--pb-ink);
	margin-block-end: 1.25rem;
	display: flex;
	align-items: center;
	gap: .4rem;
}
.pb-comments .comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.pb-comments .comment {
	border-block-end: 1px solid var(--pb-border);
	padding-block: 1.25rem;
}
.pb-comments .comment:last-child { border-block-end: none; }
.pb-comments .comment-body { display: flex; gap: .85rem; }
.pb-comments .comment-author img {
	border-radius: 50%;
	border: 2px solid var(--pb-border);
	flex-shrink: 0;
}
.pb-comments .comment-content-wrap { flex: 1; }
.pb-comments .comment-meta {
	font-size: .75rem;
	color: var(--pb-muted);
	margin-block-end: .45rem;
}
.pb-comments .comment-author-name { font-weight: 700; color: var(--pb-ink); margin-inline-end: .4rem; }
.pb-comments .comment-content p { font-size: .88rem; line-height: 1.7; color: var(--pb-ink-2); margin: 0; }
.pb-comments .reply { margin-block-start: .4rem; }
.pb-comments .reply a {
	font-size: .75rem;
	color: var(--pb-accent);
	text-decoration: none;
	font-weight: 600;
}
.pb-comments .children {
	list-style: none;
	padding-inline-start: 1.5rem;
	border-inline-start: 2px solid var(--pb-border);
	margin-block-start: .75rem;
}
.pb-comments .comment-respond { margin-block-start: 1.5rem; }
.pb-comments .comment-reply-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--pb-ink);
	margin-block-end: .85rem;
	display: flex;
	align-items: center;
	gap: .4rem;
}
.pb-comments #comment,
.pb-comments #author,
.pb-comments #email,
.pb-comments #url {
	width: 100%;
	border: 1px solid var(--pb-border);
	border-radius: 8px;
	padding: .55rem .8rem;
	font-size: .9rem;
	font-family: inherit;
	direction: rtl;
	color: var(--pb-ink);
	background: var(--pb-soft);
	transition: border-color .15s, box-shadow .15s;
	outline: none;
}
.pb-comments #comment:focus,
.pb-comments #author:focus,
.pb-comments #email:focus,
.pb-comments #url:focus {
	border-color: var(--pb-accent);
	box-shadow: 0 0 0 3px rgba(245,166,35,.14);
	background: #fff;
}
.pb-comments label { font-size: .82rem; font-weight: 600; color: var(--pb-ink-2); display: block; margin-block-end: .35rem; }
.pb-comments .form-submit { margin-block-start: .85rem; }
.pb-comments #submit {
	background: var(--pb-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: .6rem 1.5rem;
	font-size: .9rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s;
}
.pb-comments #submit:hover { background: var(--pb-accent-d); }

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
.pb-empty {
	text-align: center;
	padding-block: 4rem;
	color: var(--pb-muted);
}
.pb-empty .ti { font-size: 3rem; color: var(--pb-border); display: block; margin-block-end: 1rem; }
.pb-empty h3 { font-size: 1.05rem; font-weight: 700; color: var(--pb-ink); margin-block-end: .4rem; }
.pb-empty p  { font-size: .87rem; }
