/*
  Theme Name:   Jannah Child
  Theme URI:    https://zeema.fund/blog/
  Description:  قالب فرزند Jannah برای بلاگ زیما — هدر، فوتر و قالب‌های بلاگ هم‌شکل zeema.fund
  Author:       Zeema
  Template:     jannah
  Version:      1.0.7
  Text Domain:  jannah-child
*/

/* ================================================================
   Fonts — IRANSansX FaNum (همان فونت zeema.fund)
   ================================================================ */
@font-face { font-family: "IRANSansX"; src: url(assets/fonts/iransansx-fanum-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url(assets/fonts/iransansx-fanum-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url(assets/fonts/iransansx-fanum-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url(assets/fonts/iransansx-fanum-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IRANSansX"; src: url(assets/fonts/iransansx-fanum-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

/* ================================================================
   Tokens — برگرفته از zeema.fund
   ================================================================ */
:root {
	--zb-blue: #007AFF;
	--zb-blue-600: #0062CC;
	--zb-blue-50: #E5F2FF;
	--zb-orange: #F1660A;
	--zb-orange-600: #E26C2B;
	--zb-orange-50: #FFF5E6;
	--zb-ink: #252525;
	--zb-ink-2: #476185;
	--zb-muted: #78828A;
	--zb-line: #E2E9F3;
	--zb-line-2: #C6CBD2;
	--zb-bg: #FFFFFF;
	--zb-bg-soft: #F4F7FB;
	--zb-bg-soft-2: #ECF1F9;
	--zb-green: #03904E;
	--zb-gold: #CFAA2A;

	--zb-radius-sm: 8px;
	--zb-radius: 16px;
	--zb-radius-lg: 24px;
	--zb-shadow: 0 1px 2px rgba(16, 38, 70, .04), 0 8px 24px rgba(16, 38, 70, .06);
	--zb-shadow-hover: 0 2px 4px rgba(16, 38, 70, .05), 0 16px 40px rgba(16, 38, 70, .10);

	--zb-container: 1240px;
	--zb-narrow: 800px;
	--zb-header-h: 80px;
	--zb-font: "IRANSansX", Tahoma, sans-serif;
}

/* ================================================================
   Base
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--zb-header-h) + 16px); -webkit-text-size-adjust: 100%; }

body.zb {
	margin: 0;
	font-family: var(--zb-font);
	font-size: 16px;
	line-height: 1.8;
	color: var(--zb-ink);
	background: var(--zb-bg);
	direction: rtl;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

.zb img { max-width: 100%; height: auto; display: block; }
.zb a { color: inherit; text-decoration: none; }
.zb button, .zb input, .zb textarea, .zb select { font: inherit; color: inherit; }
.zb h1, .zb h2, .zb h3, .zb h4 { margin: 0; line-height: 1.5; font-weight: 700; }
.zb p { margin: 0; }

.zb-ico { flex: none; }

.zb-container { width: 100%; max-width: calc(var(--zb-container) + 48px); margin-inline: auto; padding-inline: 24px; }
.zb-container--narrow { max-width: calc(var(--zb-narrow) + 48px); }

.screen-reader-text,
.zb-skip:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.zb-skip:focus { position: fixed; top: 12px; right: 12px; z-index: 1000; background: var(--zb-blue); color: #fff; padding: 8px 16px; border-radius: var(--zb-radius-sm); }

.zb :focus-visible { outline: 2px solid var(--zb-blue); outline-offset: 2px; border-radius: 4px; }

/* ================================================================
   Buttons & chips
   ================================================================ */
.zb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px; border-radius: var(--zb-radius-sm);
	font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
	border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.zb-btn--lg { height: 52px; padding: 0 28px; font-size: 15px; font-weight: 700; }
.zb-btn--primary { background: var(--zb-orange); color: #fff !important; }
.zb-btn--primary:hover { background: var(--zb-orange-600); box-shadow: 0 8px 20px rgba(241, 102, 10, .28); }
.zb-btn--outline { border-color: var(--zb-blue); color: var(--zb-blue) !important; background: transparent; }
.zb-btn--outline:hover { background: var(--zb-blue-50); }
.zb-btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff !important; }
.zb-btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.zb-chip {
	display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
	background: var(--zb-blue-50); color: var(--zb-blue) !important; font-size: 12px; font-weight: 700;
	transition: background .2s;
}
.zb-chip:hover { background: #d2e7ff; }
.zb-chip--muted { background: var(--zb-bg-soft-2); color: var(--zb-ink-2) !important; font-weight: 500; }

.zb-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; color: var(--zb-orange); font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.zb-eyebrow::before { content: ""; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }

.zb-section-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; }

.zb-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--zb-muted); font-size: 13px; line-height: 1.6; }
.zb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.zb-meta .zb-ico { width: 16px; height: 16px; }

/* ================================================================
   Header
   ================================================================ */
.zb-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.admin-bar .zb-header { top: 32px; }
.zb-header.is-scrolled { border-color: var(--zb-line); box-shadow: 0 4px 20px rgba(16, 38, 70, .05); }
.zb-header__inner { display: flex; align-items: center; gap: 32px; height: var(--zb-header-h); }
.zb-logo { flex: none; display: block; }
.zb-logo img { width: 100px; height: 40px; }

.zb-nav { flex: 1; display: flex; justify-content: center; }
.zb-nav__list { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.zb-nav__list a {
	position: relative; display: block; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--zb-ink); border-radius: var(--zb-radius-sm);
	transition: color .2s, background .2s;
}
.zb-nav__list a:hover { color: var(--zb-blue); }
.zb-nav__list .current-menu-item > a,
.zb-nav__list .current_page_item > a { color: var(--zb-blue); font-weight: 700; }
.zb-nav__list .current-menu-item > a::after {
	content: ""; position: absolute; right: 16px; left: 16px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--zb-blue);
}
.zb-nav__mobile-extra { display: none; }

.zb-header__actions { flex: none; display: flex; align-items: center; gap: 20px; }
.zb-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--zb-blue) !important; font-size: 14px; font-weight: 500; direction: ltr; }
.zb-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--zb-line); border-radius: var(--zb-radius-sm); background: #fff; cursor: pointer; }
.zb-burger__close { display: none; }

/* ================================================================
   Hero
   ================================================================ */
.zb-hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(600px 300px at 12% 0%, rgba(241, 102, 10, .10), transparent 70%),
		radial-gradient(700px 360px at 95% 110%, rgba(0, 122, 255, .10), transparent 70%),
		var(--zb-bg-soft);
	border-bottom: 1px solid var(--zb-line);
}
.zb-hero__inner { padding-block: 72px 64px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.zb-hero__title { font-size: clamp(28px, 4.2vw, 48px); font-weight: 800; line-height: 1.45; max-width: 820px; }
.zb-hero__title span { color: var(--zb-orange); }
.zb-hero__desc { margin-top: 16px; max-width: 620px; color: var(--zb-muted); font-size: 17px; }
.zb-hero .zb-search { margin-top: 32px; }

.zb-hero--compact .zb-hero__inner { padding-block: 40px 44px; align-items: flex-start; text-align: right; }
.zb-hero--compact .zb-hero__title { font-size: clamp(26px, 3.4vw, 38px); }
.zb-hero--compact .zb-hero__desc { margin-top: 8px; }

.zb-search { position: relative; width: 100%; max-width: 560px; }
.zb-search input {
	width: 100%; height: 56px; padding: 0 20px 0 60px; border: 1px solid var(--zb-line); border-radius: 14px; background: #fff;
	font-size: 15px; box-shadow: var(--zb-shadow); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none;
}
.zb-search input::placeholder { color: #9aa3ab; }
.zb-search input:focus { outline: none; border-color: var(--zb-blue); box-shadow: 0 0 0 4px rgba(0, 122, 255, .12); }
.zb-search button {
	position: absolute; left: 6px; top: 6px; width: 44px; height: 44px; border: 0; border-radius: 10px;
	background: var(--zb-blue); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.zb-search button:hover { background: var(--zb-blue-600); }

.zb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 16px; color: var(--zb-muted); font-size: 13px; }
.zb-crumbs a:hover { color: var(--zb-blue); }
.zb-crumbs .zb-ico { width: 14px; height: 14px; opacity: .6; }
.zb-crumbs span { color: var(--zb-ink); }

/* ================================================================
   Listing
   ================================================================ */
.zb-listing { padding-block: 32px 24px; }

.zb-catnav {
	display: flex; gap: 8px; margin-bottom: 32px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none;
}
.zb-catnav::-webkit-scrollbar { display: none; }
.zb-catnav__item {
	flex: none; height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px;
	border: 1px solid var(--zb-line); background: #fff; color: var(--zb-ink-2) !important; font-size: 14px; font-weight: 500;
	transition: border-color .2s, background .2s, color .2s;
}
.zb-catnav__item:hover { border-color: var(--zb-blue); color: var(--zb-blue) !important; }
.zb-catnav__item.is-active { background: var(--zb-ink); border-color: var(--zb-ink); color: #fff !important; }

/* Sub-categories of the current section */
.zb-subnav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -16px 0 28px; padding: 0 4px; }
.zb-subnav__item { position: relative; padding: 6px 0; font-size: 14px; font-weight: 500; color: var(--zb-muted) !important; }
.zb-subnav__item span { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-right: 4px; padding: 0 6px; border-radius: 999px; background: var(--zb-bg-soft-2); font-size: 11px; color: var(--zb-ink-2); }
.zb-subnav__item:hover { color: var(--zb-blue) !important; }
.zb-subnav__item.is-active { color: var(--zb-ink) !important; font-weight: 700; }
.zb-subnav__item.is-active::after { content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--zb-orange); }

/* Home: one row per section */
.zb-section { margin-top: 56px; }
.zb-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.zb-section__more { font-size: 14px; font-weight: 500; color: var(--zb-blue) !important; white-space: nowrap; }

/* KPI boxes (report templates) */
.zb-prose .wp-block-columns.zb-kpis { gap: 14px; margin-block: 1.4em; }
.zb .zb-prose .zb-kpi {
	margin: 0; height: 100%; padding: 18px 18px 16px; border: 1px solid var(--zb-line); border-radius: 14px; background: var(--zb-bg-soft);
	font-size: 14px; line-height: 1.8; color: var(--zb-muted);
}
.zb-prose .zb-kpi strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.4; color: var(--zb-ink); }
@media (max-width: 781px) {
	.zb-prose .wp-block-columns.zb-kpis { display: grid; grid-template-columns: 1fr 1fr; }
}

.zb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* Card */
.zb-card {
	position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--zb-line);
	border-radius: var(--zb-radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.zb-card:hover { transform: translateY(-3px); box-shadow: var(--zb-shadow-hover); border-color: transparent; }
.zb-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--zb-bg-soft-2); }
.zb-thumb__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.zb-card:hover .zb-thumb__img { transform: scale(1.04); }
.zb-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px 22px; }
.zb-card__title { font-size: 17px; font-weight: 700; line-height: 1.7; }
.zb-card__title a { transition: color .2s; }
.zb-card__title a::after { content: ""; position: absolute; inset: 0; } /* کل کارت قابل کلیک */
.zb-card .zb-chip { position: relative; z-index: 1; }
.zb-card:hover .zb-card__title a { color: var(--zb-blue); }
.zb-card__excerpt {
	color: var(--zb-muted); font-size: 14px; line-height: 1.9;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.zb-card .zb-meta { margin-top: auto; padding-top: 4px; }

/* Placeholder cover when a post has no featured image */
.zb-thumb__ph {
	position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
	color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -.01em;
}
.zb-thumb__ph span { position: relative; z-index: 1; padding: 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-size: 15px; }
.zb-thumb__ph::before, .zb-thumb__ph::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }
.zb-thumb__ph::before { width: 70%; aspect-ratio: 1; bottom: -45%; left: 15%; box-shadow: 0 0 0 36px rgba(255, 255, 255, .04), 0 0 0 72px rgba(255, 255, 255, .03); }
.zb-thumb__ph::after { width: 28%; aspect-ratio: 1; top: -8%; right: -6%; background: rgba(255, 255, 255, .08); border: 0; }
.zb-thumb__ph--0 { background: radial-gradient(120% 90% at 50% 0%, #FF8433 0%, #F1660A 35%, #3a1204 100%); }
.zb-thumb__ph--1 { background: radial-gradient(120% 90% at 50% 0%, #4AA3FF 0%, #007AFF 40%, #06244a 100%); }
.zb-thumb__ph--2 { background: radial-gradient(120% 90% at 50% 0%, #6E86A8 0%, #476185 40%, #121c2b 100%); }

/* Featured (first post) */
.zb-card--feature { flex-direction: row; margin-bottom: 36px; min-height: 380px; }
.zb-card--feature .zb-card__media { flex: 0 0 56%; aspect-ratio: auto; }
.zb-card--feature .zb-card__body { justify-content: center; padding: 40px; gap: 16px; }
.zb-card--feature .zb-card__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.55; }
.zb-card--feature .zb-card__excerpt { font-size: 15px; -webkit-line-clamp: 4; }
.zb-card--feature .zb-thumb__ph span { font-size: 18px; }

/* Pagination */
.zb-pagination { margin-top: 44px; }
.zb-pagination .nav-links, nav.zb-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.zb-pagination .page-numbers, .zb-pagination .post-page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--zb-line); border-radius: var(--zb-radius-sm); font-size: 14px; font-weight: 500; background: #fff;
}
.zb-pagination a.page-numbers:hover { border-color: var(--zb-blue); color: var(--zb-blue); }
.zb-pagination .current { background: var(--zb-blue); border-color: var(--zb-blue); color: #fff; }
.zb-pagination .screen-reader-text { display: none; }

.zb-empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--zb-line-2); border-radius: var(--zb-radius); color: var(--zb-muted); }
.zb-empty h2 { color: var(--zb-ink); font-size: 20px; margin-bottom: 8px; }
.zb-empty .zb-catnav { justify-content: center; margin: 24px 0 0; }

/* ================================================================
   CTA
   ================================================================ */
.zb-cta {
	position: relative; overflow: hidden; margin-block: 64px 24px; padding: 48px 56px; border-radius: var(--zb-radius-lg);
	display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff;
	background:
		radial-gradient(520px 280px at 0% 0%, rgba(255, 132, 51, .55), transparent 70%),
		radial-gradient(420px 260px at 100% 100%, rgba(0, 122, 255, .35), transparent 70%),
		#15110f;
}
.zb-cta::after {
	content: ""; position: absolute; width: 560px; aspect-ratio: 1; left: -140px; bottom: -380px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 48px rgba(255, 255, 255, .02), 0 0 0 96px rgba(255, 255, 255, .015);
	pointer-events: none;
}
.zb-cta__text { position: relative; z-index: 1; max-width: 620px; }
.zb-cta__kicker { color: #FFB27A; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.zb-cta__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.55; }
.zb-cta__desc { margin-top: 10px; color: rgba(255, 255, 255, .72); font-size: 15px; }
.zb-cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ================================================================
   Article
   ================================================================ */
.zb-article__head { padding-block: 48px 36px; background: linear-gradient(180deg, var(--zb-bg-soft) 0%, #fff 100%); }
.zb-article__head--post .zb-container { max-width: calc(260px + 56px + var(--zb-narrow) + 48px); padding-right: calc(24px + 260px + 56px); }
.zb-article__title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; line-height: 1.55; letter-spacing: -.01em; }
.zb-article__lead { margin-top: 16px; color: var(--zb-ink-2); font-size: 18px; line-height: 1.9; }
.zb-article__byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--zb-line); }
.zb-article__byline strong { font-size: 15px; }
.zb-avatar { width: 44px; height: 44px; border-radius: 50%; }

.zb-article__cover { max-width: calc(var(--zb-container) + 48px); margin: 0 auto 8px; }
.zb-article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--zb-radius-lg); }
.zb-article__cover figcaption { margin-top: 10px; text-align: center; color: var(--zb-muted); font-size: 13px; }

.zb-article__layout {
	display: grid; grid-template-columns: 260px minmax(0, var(--zb-narrow)); justify-content: center; gap: 56px; padding-block: 40px 16px;
}
.zb-article__aside { order: 0; }
.zb-article__aside > * { position: sticky; top: calc(var(--zb-header-h) + 24px); }
.zb-article__aside > * + * { position: static; }
.zb-article__aside { display: flex; flex-direction: column; gap: 20px; }
.zb-article__aside .zb-toc { position: sticky; }

.zb-toc { padding: 20px; background: var(--zb-bg-soft); border-radius: var(--zb-radius); }
.zb-toc__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 12px; list-style: none; cursor: pointer; }
.zb-toc__title::-webkit-details-marker { display: none; }
.zb-toc__title::after { content: ""; margin-right: auto; width: 8px; height: 8px; border-left: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.zb-toc[open] .zb-toc__title::after { transform: rotate(135deg); }
.zb-toc:not([open]) .zb-toc__title { margin-bottom: 0; }
.zb-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow: auto; }
.zb-toc a {
	display: block; padding: 6px 12px; border-right: 2px solid transparent; border-radius: 0 0 0 0;
	color: var(--zb-muted); font-size: 13px; line-height: 1.8; transition: color .2s, border-color .2s;
}
.zb-toc a:hover { color: var(--zb-ink); }
.zb-toc a.is-active { color: var(--zb-blue); border-color: var(--zb-blue); font-weight: 500; }
.zb-toc__l3 a { padding-right: 24px; font-size: 12.5px; }

.zb-share p { font-size: 13px; color: var(--zb-muted); margin-bottom: 8px; }
.zb-share__row { display: flex; gap: 8px; }
.zb-share__row a, .zb-share__row button {
	width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--zb-line); border-radius: 10px; background: #fff;
	color: var(--zb-ink-2); cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.zb-share__row a:hover, .zb-share__row button:hover { color: var(--zb-blue); border-color: var(--zb-blue); }
.zb-copy.is-done { color: #fff; background: var(--zb-green); border-color: var(--zb-green); }

/* Prose */
.zb-prose { font-size: 17px; line-height: 2.05; color: #2d2d2d; overflow-wrap: break-word; }
/* .zb p { margin:0 } را در متن مقاله خنثی می‌کنیم — اختصاصیت بالاتر لازم است */
.zb .zb-prose > * + * { margin-top: 1.1em; }
.zb .zb-prose > :first-child { margin-top: 0; }
.zb .zb-prose > h2 { margin-top: 2em; }
.zb .zb-prose > h3 { margin-top: 1.7em; }
.zb .zb-prose > h4 { margin-top: 1.5em; }
.zb .zb-prose > h2 + *, .zb .zb-prose > h3 + *, .zb .zb-prose > h4 + * { margin-top: .6em; }
.zb .zb-prose li > p, .zb .zb-prose blockquote > p + p { margin-top: .6em; }
.zb-prose h2 { margin-top: 2em; font-size: 26px; font-weight: 800; line-height: 1.6; color: var(--zb-ink); }
.zb-prose h3 { margin-top: 1.7em; font-size: 21px; font-weight: 700; line-height: 1.6; color: var(--zb-ink); }
.zb-prose h4 { margin-top: 1.5em; font-size: 18px; }
.zb-prose h2 + *, .zb-prose h3 + * { margin-top: .6em; }
.zb-prose a { color: var(--zb-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.zb-prose a:hover { color: var(--zb-blue-600); }
.zb-prose strong { font-weight: 700; color: var(--zb-ink); }
.zb-prose ul, .zb-prose ol { padding-right: 1.4em; margin-bottom: 0; }
.zb-prose li + li { margin-top: .4em; }
.zb-prose ul li::marker { color: var(--zb-orange); }
.zb-prose ol li::marker { color: var(--zb-orange); font-weight: 700; }
.zb-prose blockquote {
	margin-inline: 0; padding: 20px 24px; border-right: 4px solid var(--zb-orange); background: var(--zb-orange-50);
	border-radius: var(--zb-radius-sm) 0 0 var(--zb-radius-sm); color: var(--zb-ink); font-size: 17px;
}
.zb-prose blockquote p { margin: 0; }
.zb-prose img, .zb-prose figure img { border-radius: var(--zb-radius); }
.zb-prose figure { margin-inline: 0; }
.zb-prose figcaption, .zb-prose .wp-element-caption { margin-top: 8px; text-align: center; color: var(--zb-muted); font-size: 13px; }
.zb-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.zb-prose .wp-block-table { overflow-x: auto; }
.zb-prose th, .zb-prose td { padding: 12px 14px; border-bottom: 1px solid var(--zb-line); text-align: right; }
.zb-prose thead th { background: var(--zb-bg-soft); font-weight: 700; border-bottom-color: var(--zb-line-2); }
.zb-prose hr { border: 0; height: 1px; background: var(--zb-line); margin-block: 2.2em; }
.zb-prose code { background: var(--zb-bg-soft-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.zb-prose .alignwide, .zb-prose .alignfull { margin-inline: 0; }
.zb-prose .wp-block-button__link { background: var(--zb-orange); color: #fff; text-decoration: none; border-radius: var(--zb-radius-sm); padding: 12px 24px; font-size: 15px; font-weight: 700; }

/* Note box («!!» in article sources) */
.zb .zb-prose .zb-note {
	padding: 16px 20px; border-right: 4px solid var(--zb-blue); background: var(--zb-blue-50);
	border-radius: var(--zb-radius-sm) 0 0 var(--zb-radius-sm); font-size: 15.5px; line-height: 2; color: var(--zb-ink);
}

/* Tables: natural column widths; wide tables scroll sideways instead of squashing */
.zb-prose .wp-block-table { margin-inline: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--zb-line); border-radius: 12px; }
.zb-prose .wp-block-table table { table-layout: auto; margin: 0; }
.zb-prose .wp-block-table table:has(th:nth-child(5)) { min-width: 720px; }
.zb-prose .wp-block-table th, .zb-prose .wp-block-table td { font-size: 14px; line-height: 1.9; vertical-align: top; border-left: 0; border-right: 0; }
.zb-prose .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.zb-prose .wp-block-table tbody tr:has(strong) { background: var(--zb-orange-50); }
.zb-prose .wp-block-table figcaption { padding: 10px 14px; margin: 0; border-top: 1px solid var(--zb-line); background: var(--zb-bg-soft); text-align: right; }

.zb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }

.zb-disclaimer {
	margin-top: 40px; padding: 18px 20px; border: 1px solid var(--zb-line); border-radius: var(--zb-radius-sm);
	background: var(--zb-bg-soft); color: var(--zb-muted); font-size: 13px; line-height: 2;
}
.zb-disclaimer strong { color: var(--zb-ink-2); }
.zb-disclaimer a { color: var(--zb-blue); }

.zb-related { padding-top: 48px; margin-top: 32px; border-top: 1px solid var(--zb-line); }

/* Comments */
.zb-comments { margin-top: 48px; }
.zb-comments__list { list-style: none; padding: 0; margin: 0 0 32px; }
.zb-comments__list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--zb-line); font-size: 15px; }
.zb-comments__list .children { list-style: none; padding-right: 32px; }
.zb-comments .avatar { border-radius: 50%; display: inline-block; vertical-align: middle; margin-left: 8px; }
.zb-comments .comment-metadata { font-size: 12px; color: var(--zb-muted); }
.zb-comments .reply a { font-size: 13px; color: var(--zb-blue); }
.comment-form { display: grid; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--zb-line); border-radius: var(--zb-radius-sm); background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--zb-blue); box-shadow: 0 0 0 3px rgba(0, 122, 255, .12); }
.comment-form .comment-notes, .comment-form .logged-in-as { font-size: 13px; color: var(--zb-muted); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }

/* 404 */
.zb-404 .zb-hero__inner { padding-block: 96px; }
.zb-404__code { font-size: 96px; font-weight: 800; line-height: 1; color: var(--zb-orange); margin-bottom: 16px; }
.zb-404 .zb-btn { margin-top: 24px; }

/* ================================================================
   Footer — مثل zeema.fund: کارت تیره با هالهٔ نارنجی
   ================================================================ */
.zb-footer { padding-block: 48px 24px; background: #fff; }
.zb-footer__card {
	position: relative; overflow: hidden; border-radius: var(--zb-radius-lg); padding: 96px 72px 0;
	background-color: #000; background-repeat: no-repeat; background-size: calc(100% + 80px) auto; background-position: center -20px; color: #fff;
}
.zb-footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 48px; align-items: start; }
.zb-footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.zb-footer__logo { width: 100px; height: 40px; margin-bottom: 14px; }
.zb-footer__tel { font-size: 15px; font-weight: 700; color: #fff !important; direction: ltr; }
.zb-footer__muted { font-size: 14px; color: rgba(255, 255, 255, .7); }
.zb-footer__mail { font-size: 13px; font-weight: 500; color: #fff !important; margin-top: 4px; }
.zb-footer__social { display: flex; gap: 8px; margin-top: 16px; }
.zb-footer__social a {
	width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08);
	color: #fff !important; transition: background .2s;
}
.zb-footer__social a:hover { background: var(--zb-orange); }

.zb-footer__center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.zb-footer__links { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); justify-content: center; gap: 12px 40px; list-style: none; margin: 0 0 28px; padding: 0; text-align: right; }
.zb-footer__links a { font-size: 14px; color: #fff !important; opacity: .92; transition: opacity .2s, color .2s; }
.zb-footer__links a:hover { opacity: 1; color: #FFB27A !important; }
.zb-footer__legal { font-size: 12.5px; font-weight: 500; line-height: 2; color: #fff; max-width: 660px; text-wrap: balance; }
.zb-footer__legal a { color: var(--zb-gold) !important; }
.zb-footer__small { font-size: 12px; color: rgba(255, 255, 255, .65); }

.zb-footer__badges { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.zb-footer__badges a { display: grid; place-items: center; opacity: .95; transition: opacity .2s; }
.zb-footer__badges a:hover { opacity: 1; }
.zb-footer__badges img { max-height: 88px; width: auto; }
.zb-footer__badges a + a img { max-height: 40px; }

.zb-footer__word {
	position: relative; margin-top: 8px; margin-bottom: -0.28em; text-align: center; font-family: var(--zb-font); font-size: clamp(96px, 17vw, 240px); font-weight: 700; line-height: 1; direction: ltr;
	background: linear-gradient(180deg, #CDCDCD 10%, rgba(103, 103, 103, 0) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	user-select: none; pointer-events: none;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1100px) {
	.zb-header__actions .zb-phone { display: none; }
	.zb-article__layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
	.zb-article__head--post .zb-container { max-width: calc(var(--zb-container) + 48px); padding-right: calc(24px + 220px + 36px); }
	.zb-footer__card { padding: 72px 40px 0; }
	.zb-footer__grid { grid-template-columns: 1fr 1.4fr; }
	.zb-footer__badges { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 960px) {
	:root { --zb-header-h: 68px; }
	/* backdrop-filter منوی fixed را داخل هدر حبس می‌کند */
	.zb-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.zb-header__inner { gap: 12px; justify-content: space-between; }
	.zb-header__actions .zb-btn { display: none; }
	.zb-burger { display: inline-flex; }
	.zb-nav {
		position: fixed; inset: var(--zb-header-h) 0 0 0; z-index: 99; flex-direction: column; justify-content: flex-start; gap: 24px;
		padding: 16px 24px 32px; background: #fff; overflow-y: auto;
		visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .zb-nav { top: calc(var(--zb-header-h) + 46px); }
	.zb-nav-open { overflow: hidden; }
	.zb-nav-open .zb-nav { visibility: visible; opacity: 1; transform: none; }
	.zb-nav-open .zb-burger__open { display: none; }
	.zb-nav-open .zb-burger__close { display: inline; }
	.zb-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.zb-nav__list a { padding: 16px 4px; font-size: 16px; border-bottom: 1px solid var(--zb-line); border-radius: 0; }
	.zb-nav__list .current-menu-item > a::after { display: none; }
	.zb-nav__mobile-extra { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
	.zb-nav__mobile-extra .zb-btn { height: 48px; }
	.zb-nav__mobile-extra .zb-phone { justify-content: center; }

	.zb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.zb-card--feature { flex-direction: column; min-height: 0; }
	.zb-card--feature .zb-card__media { flex: none; aspect-ratio: 16 / 9; }
	.zb-card--feature .zb-card__body { padding: 24px; }

	.zb-article__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
	.zb-article__head--post .zb-container { padding-right: 24px; }
	.zb-article__aside > *, .zb-article__aside .zb-toc { position: static; }
	.zb-article__aside { order: 0; }
	.zb-toc ol { max-height: none; }
	.zb-share { display: flex; align-items: center; justify-content: space-between; }
	.zb-share p { margin: 0; }

	.zb-cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}

@media (max-width: 782px) {
	.admin-bar .zb-header { top: 46px; }
}

@media (max-width: 640px) {
	.zb-container, .zb-article__head--post .zb-container { padding-inline: 16px; }
	.zb-hero__inner { padding-block: 44px 40px; }
	.zb-hero__desc { font-size: 15px; }
	.zb-search input { height: 52px; }
	.zb-search button { width: 40px; height: 40px; }
	.zb-grid { grid-template-columns: minmax(0, 1fr); }
	.zb-listing { padding-top: 20px; }
	.zb-catnav { margin-inline: -16px; padding-inline: 16px; margin-bottom: 24px; }
	.zb-card--feature { margin-bottom: 20px; }
	.zb-card--feature .zb-card__title { font-size: 21px; }
	.zb-article__head { padding-block: 28px 24px; }
	.zb-article__lead { font-size: 16px; }
	.zb-article__cover { padding-inline: 0; }
	.zb-article__cover img { border-radius: 0; }
	.zb-prose { font-size: 16px; line-height: 2; }
	.zb-prose h2 { font-size: 22px; }
	.zb-prose h3 { font-size: 19px; }
	.zb-cta { margin-top: 44px; }
	.zb-cta__actions, .zb-cta__actions .zb-btn { width: 100%; }

	.zb-footer { padding-block: 32px 16px; }
	.zb-footer__card { padding: 56px 24px 0; border-radius: var(--zb-radius); background-size: 260% auto; }
	.zb-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.zb-footer__contact { align-items: center; text-align: center; }
	.zb-footer__links { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(2, auto); gap: 12px 32px; }
	.zb-footer__badges img { max-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.zb *, .zb *::before, .zb *::after { transition: none !important; animation: none !important; }
}

/* ---------- Video cover + lightbox (1.0.5) ---------- */
.zb-cover__media { position: relative; display: block; cursor: pointer; }
.zb-cover__play {
	--zb-play-x: 20.7%; --zb-play-y: 50.7%;
	position: absolute; left: var(--zb-play-x); top: var(--zb-play-y); transform: translate(-50%, -50%);
	width: 18%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.28);
	background: rgba(255,255,255,.12); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
	box-shadow: 0 0 0 clamp(8px, 2vw, 26px) rgba(255,255,255,.05);
	display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
	transition: transform .2s ease, background .2s ease;
}
.zb-cover__play span {
	width: 0; height: 0; margin-left: 9%;
	border-top: clamp(14px, 3.6vw, 46px) solid transparent; border-bottom: clamp(14px, 3.6vw, 46px) solid transparent;
	border-left: clamp(23px, 5.9vw, 76px) solid #fff;
}
.zb-cover__media:hover .zb-cover__play, .zb-cover__play:focus-visible { transform: translate(-50%, -50%) scale(1.06); background: rgba(255,255,255,.2); }
.zb-cover__play:focus-visible { outline: 3px solid var(--zb-blue, #007AFF); outline-offset: 4px; }
.zb-vmodal { position: fixed; inset: 0; z-index: 100000; background: rgba(10,14,20,.86); display: flex; align-items: center; justify-content: center; padding: 20px; animation: zb-vfade .2s ease; }
.zb-vmodal__box { position: relative; height: min(88vh, 1280px); aspect-ratio: 9 / 16; max-width: 100%; }
.zb-vmodal__box video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 18px; }
.zb-vmodal__close {
	position: absolute; top: -16px; left: -16px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: #fff; color: #252525; font-size: 28px; line-height: 44px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3);
}
.zb-noscroll { overflow: hidden; }
@keyframes zb-vfade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) {
	.zb-vmodal { padding: 0; }
	.zb-vmodal__box { height: 100%; width: 100%; aspect-ratio: auto !important; }
	.zb-vmodal__box video { border-radius: 0; }
	.zb-vmodal__close { top: 14px; left: 14px; }
}
.zb-prose video[hidden] { display: none !important; }
img.avatar { object-fit: cover; }
