/*!
 * Blog (/news/, /podcasts/) + "From the blog" on the homepage.
 * Markup: main.tpl (blog block, homepage section), modules/functions/news.tpl (card), news-full.tpl (article),
 * news-last.tpl (sidebar item). Behaviour: js/blog-page.js. Light/dark: html[data-theme] (css/site-theme.css).
 * Persian (RTL) copy of Build-en/css/blog-page.css; text in IranSans.
 * Cards are grey at rest and take their colour on hover, like the rest of the site.
 */
.rp-bl {
	--bl-red: #fb4848; --bl-ink: #29292b; --bl-muted: #6b6b72; --bl-line: #ececf0; --bl-card: #fff; --bl-bg: #f7f7f8;
	--bl-font: 'IranSansBold', 'IranSans', sans-serif; --bl-font-md: 'IranSansMedium', 'IranSans', sans-serif; --bl-dir: -1;
	padding: 56px 0 90px; background: var(--bl-bg); color: var(--bl-ink);
}
html[data-theme="dark"] .rp-bl { --bl-ink: #f2f2f5; --bl-muted: #a3a3ac; --bl-line: rgba(255, 255, 255, .09); --bl-card: #18181b; --bl-bg: #0f0f11; }
/* footer CTA right after a blog block (tags, all tags, blog list): top half keeps the page colour, bottom half lets the footer show through */
.rp-bl + .rp-ftcta { background: linear-gradient(180deg, #f7f7f8 50%, transparent 50%); }
html[data-theme="dark"] .rp-bl + .rp-ftcta { background: linear-gradient(180deg, #0f0f11 50%, transparent 50%); }

/* ---- page head */
.rp-bl-head { max-width: 820px; margin: 0 0 34px; }
.rp-bl-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--bl-font); font-size: 13px; color: var(--bl-red); }
.rp-bl-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--bl-red); }
.rp-bl-title { margin: 0; font-family: var(--bl-font); font-weight: 800; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; color: var(--bl-ink); }
.rp-bl-title span { color: var(--bl-red); }
.rp-bl-intro { margin: 14px 0 0; font-size: 15px; line-height: 1.9; color: var(--bl-muted); }

/* ---- layout: content + sidebar */
.rp-bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.rp-bl-main { min-width: 0; }
.rp-bl-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }

/* ---- card grid ({content} arrives inside #dle-content with DLE's paging) */
.rp-bl-grid > #dle-content { display: contents; }
.rp-bl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.rp-bl-grid > :not(.rp-bl-card) { grid-column: 1 / -1; }
.rp-bl-grid > br, .rp-bl-grid > script { display: none; }
.rp-bl-home .rp-bl-grid, .rp-bl-more .rp-bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.rp-bl-card { min-width: 0; }
.rp-bl-link {
	display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--bl-line); border-radius: 18px;
	background: var(--bl-card); color: var(--bl-ink) !important; text-decoration: none !important;
	transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s, border-color .3s;
}
.rp-bl-link:hover, .rp-bl-link:focus-visible { transform: translateY(-4px); border-color: rgba(251, 72, 72, .35); box-shadow: 0 24px 44px -28px rgba(25, 25, 30, .45); }
.rp-bl-link:focus-visible { outline: 2px solid var(--bl-red); outline-offset: 3px; }
.rp-bl-img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: #ededf0; color: #b9b9c1; font-size: 34px; }
.rp-bl-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s, transform .8s cubic-bezier(.22, 1, .36, 1); }
.rp-bl-link:hover .rp-bl-img img, .rp-bl-link:focus-visible .rp-bl-img img { filter: none; transform: scale(1.05); }
.rp-bl-body { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; padding: 20px 22px; }
.rp-bl-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--bl-muted); }
.rp-bl-cat {
	display: inline-block; align-self: flex-start; padding: 3px 11px; border-radius: 999px; background: rgba(251, 72, 72, .1);
	color: var(--bl-red) !important; font-family: var(--bl-font); font-size: 12px; text-decoration: none !important;
}
.rp-bl-name { font-family: var(--bl-font); font-weight: 700; font-size: 18px; line-height: 1.55; color: var(--bl-ink); transition: color .25s; }
.rp-bl-link:hover .rp-bl-name { color: var(--bl-red); }
.rp-bl-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.9; color: var(--bl-muted); }
.rp-bl-go { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--bl-line); font-family: var(--bl-font); font-size: 13px; color: var(--bl-red); }
.rp-bl-go i { transition: transform .3s; }
.rp-bl-link:hover .rp-bl-go i { transform: translateX(calc(5px * var(--bl-dir))); }

/* ---- buttons */
.rp-bl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px; border: 1px solid var(--bl-red);
	border-radius: 14px; background: var(--bl-red); color: #fff !important; font-family: var(--bl-font); font-size: 14.5px; text-decoration: none !important;
	transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
.rp-bl-btn:hover { background: #e23a3a; border-color: #e23a3a; transform: translateY(-2px); }
.rp-bl-btn i { transition: transform .3s; }
.rp-bl-btn:hover i { transform: translateX(calc(4px * var(--bl-dir))); }
.rp-bl-btn.is-ghost { background: transparent; border-color: var(--bl-line); color: var(--bl-ink) !important; }
.rp-bl-btn.is-ghost:hover { border-color: var(--bl-red); color: var(--bl-red) !important; }

/* ---- "no articles yet": shown only while the list has no cards (the CMS's own "not found" note is hidden) */
.rp-bl-empty {
	display: none; padding: 46px 34px; border: 1px dashed rgba(251, 72, 72, .35); border-radius: 22px; background: var(--bl-card); text-align: center;
}
.rp-bl-main:not(:has(.rp-bl-card)) .rp-bl-empty { display: block; }
.rp-bl-main:not(:has(.rp-bl-card)) .rp-bl-grid { display: none; }
.rp-bl-empty-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 20px; background: rgba(251, 72, 72, .1); color: var(--bl-red); font-size: 24px; }
.rp-bl-empty h2 { margin: 0 0 10px; font-family: var(--bl-font); font-weight: 800; font-size: 24px; color: var(--bl-ink); }
.rp-bl-empty p { max-width: 520px; margin: 0 auto 22px; font-size: 15px; line-height: 1.9; color: var(--bl-muted); }
.rp-bl-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---- sidebar */
.rp-bl-box { padding: 22px; border: 1px solid var(--bl-line); border-radius: 18px; background: var(--bl-card); }
.rp-bl-box-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--bl-font); font-weight: 700; font-size: 16px; color: var(--bl-ink); }
.rp-bl-box-title::before { content: ""; width: 18px; height: 2px; background: var(--bl-red); }
.rp-bl-topics { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rp-bl-topics a {
	display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--bl-muted) !important;
	font-family: var(--bl-font); font-size: 14.5px; text-decoration: none !important; transition: background-color .25s, color .25s;
}
.rp-bl-topics i { width: 18px; text-align: center; }
.rp-bl-topics a:hover { background: rgba(251, 72, 72, .06); color: var(--bl-red) !important; }
/* the section you are in: solid red, so it never looks like a hovered item */
.rp-bl-topics a[aria-current], .rp-bl-topics a[aria-current]:hover { background: var(--bl-red); color: #fff !important; box-shadow: 0 10px 22px -14px rgba(251, 72, 72, .9); }
.rp-bl-minis { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.rp-bl-latest:not(:has(.rp-bl-mini)), .rp-bl-tagbox:not(:has(a)) { display: none; }
.rp-bl-mini a { display: flex; align-items: center; gap: 12px; color: var(--bl-ink) !important; text-decoration: none !important; }
.rp-bl-mini-img { position: relative; display: grid; place-items: center; flex: 0 0 64px; height: 64px; overflow: hidden; border-radius: 12px; background: #ededf0; color: #b9b9c1; }
.rp-bl-mini-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.rp-bl-mini a:hover img { filter: none; }
.rp-bl-mini-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rp-bl-mini-txt b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--bl-font); font-weight: 600; font-size: 13.5px; line-height: 1.6; transition: color .25s; }
.rp-bl-mini a:hover b { color: var(--bl-red); }
.rp-bl-mini-txt time { font-size: 12px; color: var(--bl-muted); }
.rp-bl-tags, .rp-ar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-bl-tags a, .rp-ar-tags a {
	display: inline-flex; padding: 6px 12px; border: 1px solid var(--bl-line); border-radius: 999px; color: var(--bl-muted) !important;
	font-size: 12.5px; text-decoration: none !important; transition: border-color .25s, color .25s;
}
.rp-bl-tags a:hover, .rp-ar-tags a:hover { border-color: var(--bl-red); color: var(--bl-red) !important; }
.rp-bl-side-cta { position: relative; overflow: hidden; border: 0; background: linear-gradient(140deg, #fb4848, #c92f37); color: #fff; }
.rp-bl-side-cta h2 { margin: 0 0 8px; font-family: var(--bl-font); font-weight: 800; font-size: 19px; color: #fff; }
.rp-bl-side-cta p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, .85); }
.rp-bl-side-cta .rp-bl-btn { width: 100%; background: #fff; border-color: #fff; color: #c92f37 !important; }
.rp-bl-side-cta .rp-bl-btn:hover { background: #29292b; border-color: #29292b; color: #fff !important; }

/* ---- paging (navigation.tpl: ul.post-pagination, <span> = current page) */
.rp-bl-grid .row { margin: 0; }
.rp-bl-grid .post-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.rp-bl-grid .post-pagination a, .rp-bl-grid .post-pagination span {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--bl-line);
	border-radius: 12px; background: var(--bl-card); color: var(--bl-ink) !important; font-size: 15px; text-decoration: none !important;
	transition: border-color .25s, color .25s, transform .25s;
}
.rp-bl-grid .post-pagination a:hover { border-color: var(--bl-red); color: var(--bl-red) !important; transform: translateY(-2px); }
.rp-bl-grid .post-pagination span { background: var(--bl-red); border-color: var(--bl-red); color: #fff !important; }

/* ================================================================== article page */
.rp-bl.is-article { padding-top: 40px; }
.rp-bl-info:empty { display: none; }
.rp-bl-info .berrors { margin-bottom: 20px; padding: 16px 20px; border-radius: 14px; background: var(--bl-card); border: 1px solid var(--bl-line); color: var(--bl-muted); }
.rp-ar { padding: clamp(22px, 3.4vw, 44px); border: 1px solid var(--bl-line); border-radius: 22px; background: var(--bl-card); }
.rp-ar-head { margin-bottom: 26px; }
.rp-ar-title { margin: 14px 0 14px; font-family: var(--bl-font); font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1.35; color: var(--bl-ink); }
.rp-ar-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; font-size: 13px; color: var(--bl-muted); }
.rp-ar-meta span { display: inline-flex; align-items: center; gap: 7px; }
.rp-ar-meta span[hidden] { display: none; }
.rp-ar-meta i { color: var(--bl-red); }
.rp-ar-cover { margin: 0 0 30px; overflow: hidden; border-radius: 18px; background: #ededf0; }
.rp-ar-cover img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }

/* readable body text for whatever the editor produces */
.rp-ar-body { max-width: 740px; font-size: 16.5px; line-height: 2; color: var(--bl-ink); overflow-wrap: break-word; }
.rp-ar-body > :first-child { margin-top: 0; }
.rp-ar-body p { margin: 0 0 1.25em; }
.rp-ar-body h2, .rp-ar-body h3, .rp-ar-body h4 { margin: 1.8em 0 .7em; font-family: var(--bl-font); font-weight: 800; line-height: 1.45; color: var(--bl-ink); scroll-margin-top: 100px; }
.rp-ar-body h2 { font-size: 25px; }
.rp-ar-body h3 { font-size: 20px; }
.rp-ar-body h4 { font-size: 17px; }
.rp-ar-body a { color: var(--bl-red); text-decoration: underline; text-underline-offset: 3px; }
.rp-ar-body ul, .rp-ar-body ol { margin: 0 0 1.25em; padding-inline-start: 1.4em; }
.rp-ar-body ul { list-style: disc; }
.rp-ar-body ol { list-style: decimal; }
.rp-ar-body li { display: list-item; margin-bottom: .45em; }
.rp-ar-body li::marker { color: var(--bl-red); }
.rp-ar-body img { max-width: 100%; height: auto; border-radius: 14px; }
.rp-ar-body figure { margin: 1.8em 0; }
.rp-ar-body figcaption { margin-top: 8px; font-size: 13px; color: var(--bl-muted); text-align: center; }
.rp-ar-body blockquote, .rp-ar-body .quote {
	margin: 1.8em 0; padding: 18px 22px; border: 0; border-inline-start: 3px solid var(--bl-red); border-radius: 0; border-start-end-radius: 14px; border-end-end-radius: 14px;
	background: rgba(251, 72, 72, .06); font-size: 17px; color: var(--bl-ink);
}
.rp-ar-body table { width: 100%; margin: 0 0 1.4em; border-collapse: collapse; font-size: 14.5px; }
.rp-ar-body th, .rp-ar-body td { padding: 10px 12px; border: 1px solid var(--bl-line); text-align: start; }
.rp-ar-body th { background: rgba(251, 72, 72, .07); }
.rp-ar-body iframe, .rp-ar-body video, .rp-ar-body audio { max-width: 100%; border: 0; border-radius: 14px; }
.rp-ar-body audio { width: 100%; }

.rp-ar-tags { align-items: center; margin-top: 30px; }
.rp-ar-tags > span, .rp-ar-share > span { margin-inline-end: 4px; font-family: var(--bl-font); font-weight: 700; font-size: 13.5px; color: var(--bl-ink); }
.rp-ar-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--bl-line); }
.rp-ar-sh {
	position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--bl-line);
	border-radius: 12px; background: transparent; color: var(--bl-muted) !important; font-size: 15px; cursor: pointer; text-decoration: none !important;
	transition: background-color .25s, border-color .25s, color .25s, transform .25s;
}
.rp-ar-sh:hover, .rp-ar-sh:focus-visible { transform: translateY(-2px); color: #fff !important; }
.rp-ar-sh[data-share="linkedin"]:hover { background: #0a66c2; border-color: #0a66c2; }
.rp-ar-sh[data-share="x"]:hover { background: #111; border-color: #111; }
.rp-ar-sh[data-share="telegram"]:hover { background: #229ed9; border-color: #229ed9; }
.rp-ar-sh[data-share="whatsapp"]:hover { background: #25d366; border-color: #25d366; }
.rp-ar-sh[data-copy-link]:hover { background: var(--bl-red); border-color: var(--bl-red); }
.rp-ar-sh em {
	position: absolute; bottom: calc(100% + 8px); left: 50%; padding: 5px 10px; border-radius: 8px; background: #29292b; color: #fff;
	font-style: normal; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .25s, transform .25s;
}
.rp-ar-sh.is-copied em { opacity: 1; transform: translate(-50%, 0); }

.rp-ar-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 30px; padding: 26px 28px; border-radius: 18px;
	background: #29292b; color: #fff;
}
.rp-ar-cta h2 { margin: 0 0 6px; font-family: var(--bl-font); font-weight: 800; font-size: 20px; color: #fff; }
.rp-ar-cta p { margin: 0; font-size: 14px; line-height: 1.8; color: rgba(255, 255, 255, .72); }
.rp-ar-cta .rp-bl-btn { flex: 0 0 auto; }
html[data-theme="dark"] .rp-ar-cta { background: #222226; }

/* "Keep reading" under the article (js/blog-page.js drops the article being read) */
.rp-bl-more { margin-top: 56px; }
.rp-bl-more:not(:has(.rp-bl-card)) { display: none; }
.rp-bl-more-title { margin: 0 0 22px; font-family: var(--bl-font); font-weight: 800; font-size: 26px; color: var(--bl-ink); }
.rp-bl-more-title span { color: var(--bl-red); }

/* ================================================================== homepage section */
.rp-bl-home { padding: 90px 0; }
.rp-bl-home:not(:has(.rp-bl-card)) { display: none; }
.rp-bl-home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.rp-bl-home-head .sec-title { margin: 0; padding: 0; padding-inline-start: 24px; }
html[data-theme="dark"] .rp-bl-img, html[data-theme="dark"] .rp-bl-mini-img, html[data-theme="dark"] .rp-ar-cover { background: #222226; color: #55555c; }

/* ================================================================== responsive */
@media (max-width: 1199px) { .rp-bl-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; } }
@media (max-width: 991px) {
	.rp-bl-layout { grid-template-columns: minmax(0, 1fr); }
	.rp-bl-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rp-bl-home .rp-bl-grid, .rp-bl-more .rp-bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rp-bl-home .rp-bl-card:nth-child(3) { display: none; }
}
@media (max-width: 767px) {
	.rp-bl { padding: 38px 0 60px; }
	.rp-bl-home { padding: 60px 0; }
	.rp-bl-grid, .rp-bl-home .rp-bl-grid, .rp-bl-more .rp-bl-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.rp-bl-home .rp-bl-card:nth-child(3) { display: block; }
	.rp-bl-side { grid-template-columns: minmax(0, 1fr); }
	.rp-bl-home-head { flex-direction: column; align-items: flex-start; }
	.rp-ar-cta { flex-direction: column; align-items: flex-start; }
	.rp-ar-body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.rp-bl-link, .rp-bl-img img, .rp-bl-go i, .rp-bl-btn, .rp-bl-btn i, .rp-ar-sh { transition: none; }
}

/* ---- Persian: IranSans everywhere; medium weight for small labels, regular for body text */
.rp-bl, .rp-bl input, .rp-bl button { font-family: 'IranSans', sans-serif; }
.rp-bl-eyebrow, .rp-bl-cat, .rp-bl-go, .rp-bl-btn, .rp-bl-topics a, .rp-bl-mini-txt b, .rp-ar-tags > span, .rp-ar-share > span, .rp-ar-sh em { font-family: var(--bl-font-md); }
.rp-bl-title, .rp-bl-name, .rp-ar-title, .rp-ar-body h2, .rp-ar-body h3, .rp-ar-body h4 { line-height: 1.6; }
.rp-ar-body { font-size: 16px; line-height: 2.15; text-align: justify; }
.rp-bl { direction: rtl; text-align: right; }

/* ================================================================== podcast (episodes: card badge, player, chapters) */
.rp-bl-play {
	position: absolute; inset-inline-start: 16px; bottom: 16px; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px;
	border-radius: 50%; background: rgba(20, 20, 22, .72); color: #fff; font-size: 17px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	box-shadow: 0 0 0 0 rgba(251, 72, 72, .55); transition: background-color .3s, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.rp-bl-play i { margin-inline-start: 3px; }
.rp-bl-link:hover .rp-bl-play, .rp-bl-link:focus-visible .rp-bl-play { background: var(--bl-red); transform: scale(1.08); animation: rpBlPulse 1.6s ease-out infinite; }
@keyframes rpBlPulse { 0% { box-shadow: 0 0 0 0 rgba(251, 72, 72, .55); } 100% { box-shadow: 0 0 0 18px rgba(251, 72, 72, 0); } }
.rp-bl-len { display: inline-flex; align-items: center; gap: 6px; }
.rp-bl-card.is-pod .rp-bl-cat { background: #29292b; color: #fff !important; }
html[data-theme="dark"] .rp-bl-card.is-pod .rp-bl-cat { background: #fff; color: #151517 !important; }

/* player */
.rp-pod {
	display: flex; align-items: center; gap: 20px; margin: -6px 0 30px; padding: 20px 22px; border-radius: 20px;
	background: linear-gradient(135deg, #29292b, #1b1b1d); color: #fff; box-shadow: 0 24px 50px -32px rgba(20, 20, 22, .7);
}
.rp-pod-play {
	position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%;
	background: var(--bl-red); color: #fff; font-size: 22px; cursor: pointer; transition: transform .25s, background-color .25s;
}
.rp-pod-play:hover { transform: scale(1.06); background: #e23a3a; }
.rp-pod-play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.rp-pod-play i { position: absolute; transition: opacity .2s, transform .3s; }
.rp-pod-i-play { margin-inline-start: 4px; }
.rp-pod-i-pause, .rp-pod.is-playing .rp-pod-i-play { opacity: 0; transform: scale(.6); }
.rp-pod.is-playing .rp-pod-i-pause { opacity: 1; transform: none; }
.rp-pod.is-playing .rp-pod-play { animation: rpBlPulse 1.8s ease-out infinite; }
.rp-pod-main { flex: 1 1 auto; min-width: 0; }
.rp-pod-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.rp-pod-ep { font-family: var(--bl-font); color: rgba(255, 255, 255, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-pod-time { flex: 0 0 auto; direction: ltr; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.rp-pod-time b { font-weight: 500; color: #fff; }
.rp-pod-bar { position: relative; height: 22px; cursor: pointer; direction: ltr; touch-action: none; }
.rp-pod-bar::before, .rp-pod-buf, .rp-pod-fill { content: ""; position: absolute; left: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 999px; }
.rp-pod-bar::before { right: 0; background: rgba(255, 255, 255, .14); }
.rp-pod-buf { width: var(--buf, 0%); background: rgba(255, 255, 255, .22); }
.rp-pod-fill { width: var(--p, 0%); background: var(--bl-red); }
.rp-pod-knob {
	position: absolute; top: 50%; left: var(--p, 0%); width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .4); transform: scale(0); transition: transform .2s;
}
.rp-pod-bar:hover .rp-pod-knob, .rp-pod-bar:focus-visible .rp-pod-knob, .rp-pod.is-playing .rp-pod-knob { transform: scale(1); }
.rp-pod-bar:focus-visible { outline: 2px solid rgba(255, 255, 255, .5); outline-offset: 2px; border-radius: 6px; }
.rp-pod-ctrls { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.rp-pod-ctrls button, .rp-pod-dl {
	display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px;
	background: transparent; color: rgba(255, 255, 255, .8) !important; font-size: 12.5px; cursor: pointer; text-decoration: none !important;
	direction: ltr; transition: border-color .25s, color .25s, background-color .25s;
}
.rp-pod-ctrls button:hover, .rp-pod-dl:hover { border-color: var(--bl-red); background: rgba(251, 72, 72, .14); color: #fff !important; }
.rp-pod-dl { margin-inline-start: auto; }
html[data-theme="dark"] .rp-pod { background: linear-gradient(135deg, #222226, #18181b); border: 1px solid rgba(255, 255, 255, .07); }

/* chapters ("In this episode"): time stamps jump the player */
.rp-ar-body .rp-pod-chapters { margin: 0 0 1.4em; padding: 0; list-style: none; border: 1px solid var(--bl-line); border-radius: 16px; overflow: hidden; }
.rp-ar-body .rp-pod-chapters li { display: block; margin: 0; border-top: 1px solid var(--bl-line); }
.rp-ar-body .rp-pod-chapters li:first-child { border-top: 0; }
.rp-ar-body .rp-pod-chapters a {
	display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--bl-ink); text-decoration: none; transition: background-color .25s, color .25s;
}
.rp-ar-body .rp-pod-chapters a:hover, .rp-ar-body .rp-pod-chapters a.is-now { background: rgba(251, 72, 72, .07); color: var(--bl-red); }
.rp-ar-body .rp-pod-chapters time {
	flex: 0 0 auto; min-width: 52px; padding: 2px 8px; border-radius: 8px; background: rgba(251, 72, 72, .1); color: var(--bl-red);
	font-size: 13px; text-align: center; direction: ltr; font-variant-numeric: tabular-nums;
}
.rp-ar-body .rp-pod-note { padding: 12px 16px; border-radius: 12px; background: rgba(251, 72, 72, .06); font-size: 14px; color: var(--bl-muted); }

@media (max-width: 575px) {
	.rp-pod { gap: 14px; padding: 16px; }
	.rp-pod-play { width: 54px; height: 54px; font-size: 19px; }
	.rp-pod-ep { font-size: 12px; }
	.rp-pod-ctrls button, .rp-pod-dl { padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) {
	.rp-bl-link:hover .rp-bl-play, .rp-pod.is-playing .rp-pod-play { animation: none; }
}

/* the theme's global text weight is very light; article text needs a normal weight to stay readable */
.rp-ar-body, .rp-ar-body p, .rp-ar-body li, .rp-ar-body a, .rp-ar-body span, .rp-ar-body td, .rp-bl-text, .rp-bl-intro, .rp-bl-empty p { font-weight: 400; }
.rp-ar-body strong, .rp-ar-body b, .rp-ar-body th { font-weight: 700; }

/* ================================================================== tag pages (/tags/name/ and /tags/) */
.rp-tg-head { position: relative; max-width: none; padding-inline-end: 180px; }
.rp-tg-all { position: absolute; inset-inline-end: 0; bottom: 4px; }
.rp-tg .rp-bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-tg-cloud { display: flex; flex-wrap: wrap; gap: 10px; padding: clamp(20px, 3vw, 34px); border: 1px solid var(--bl-line); border-radius: 22px; background: var(--bl-card); }
.rp-tg-cloud .tag-list-box, .rp-tg-cloud > span, .rp-tg-cloud .clouds_xsmall, .rp-tg-cloud .clouds_small, .rp-tg-cloud .clouds_medium, .rp-tg-cloud .clouds_large, .rp-tg-cloud .clouds_xlarge { display: contents; font-size: inherit; }
.rp-tg-cloud a {
	display: inline-flex; align-items: center; padding: 9px 16px; border: 1px solid var(--bl-line); border-radius: 999px; background: transparent;
	color: var(--bl-ink) !important; font-size: 14px; font-weight: 400; line-height: 1.4; text-decoration: none !important;
	transition: border-color .25s, color .25s, background-color .25s, transform .25s;
}
.rp-tg-cloud a::before { content: "#"; margin-inline-end: 3px; color: var(--bl-red); opacity: .7; }
.rp-tg-cloud a:hover, .rp-tg-cloud a:focus-visible { border-color: var(--bl-red); background: rgba(251, 72, 72, .08); color: var(--bl-red) !important; transform: translateY(-2px); }
/* popular tags a little larger (the CMS marks them clouds_large / clouds_xlarge) */
.rp-tg-cloud .clouds_large a { font-size: 15px; font-weight: 500; }
.rp-tg-cloud .clouds_xlarge a { font-size: 16px; font-weight: 600; border-color: rgba(251, 72, 72, .35); }
.rp-tg-cloud .tags_more { display: none; }
@media (max-width: 991px) { .rp-tg .rp-bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.rp-tg-head { padding-inline-end: 0; }
	.rp-tg-all { position: static; margin-top: 16px; }
	.rp-tg .rp-bl-grid { grid-template-columns: minmax(0, 1fr); }
	.rp-tg-cloud a { padding: 8px 13px; font-size: 13.5px; }
}
.rp-tg-hash { display: inline-block; margin-inline-end: 6px; color: var(--bl-red); font-weight: inherit; }
.rp-tg-head [data-tag-name] { color: var(--bl-ink); }

/* paging arrows (navigation.tpl): a real arrow icon; an arrow with nowhere to go (first / last page) is a grey,
   inactive box instead of looking like the current page */
.rp-bl-grid .post-pagination .rp-pg-arrow { font-size: 14px; line-height: 1; }
.rp-bl-grid .post-pagination .rp-pg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rp-bl-grid .post-pagination span:has(.rp-pg-arrow) { background: transparent !important; border-color: var(--bl-line) !important; color: var(--bl-muted) !important; opacity: .45; cursor: default; }
.rp-bl-grid .post-pagination { direction: rtl; }   /* Persian: page 1 on the right, "previous" on the right, "next" on the left */

/* sidebar tag cloud: the CMS wraps each tag in its own span; let the pills flow as one compact group */
.rp-bl-tags { gap: 6px; }
.rp-bl-tags > span, .rp-bl-tags .tag-list-box { display: contents; }
.rp-bl-tags a { padding: 4px 11px; font-size: 12.5px; line-height: 1.6; }
.rp-bl-tags .tags_more { display: none; }

/* "All tags" link under the sidebar tag cloud (the CMS's own link is hidden: its label is always Persian) */
.rp-bl-alltags {
	display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding-top: 12px; width: 100%; border-top: 1px solid var(--bl-line);
	color: var(--bl-red) !important; font-family: var(--bl-font); font-size: 13.5px; text-decoration: none !important;
}
.rp-bl-alltags i { transition: transform .3s; }
.rp-bl-alltags:hover i { transform: translateX(calc(4px * var(--bl-dir))); }
