/* ==========================================================================
   Zhino — blog: lists, cards, single post, comments
   ========================================================================== */

/* ------------------------------------------------------------------ Hero */
.zh-blog-hero { position: relative; padding: 40px 0 26px; isolation: isolate; }
.zh-blog-hero::before {
	content: ""; position: absolute; inset: 0 0 -60px; z-index: -1; pointer-events: none;
	background: radial-gradient(700px 260px at 85% 0%, color-mix(in srgb, var(--zh-brand) 12%, transparent), transparent 70%),
		radial-gradient(520px 220px at 0% 30%, color-mix(in srgb, #22d3ee 8%, transparent), transparent 70%);
}
.zh-blog-hero.is-home { padding: 56px 0 30px; }
.zh-blog-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.zh-blog-hero-copy { min-width: 0; max-width: 720px; }
.zh-blog-hero-avatar { width: 88px; height: 88px; border-radius: 28px; box-shadow: var(--zh-shadow); align-self: center; }
.zh-blog-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; font-size: var(--zh-fs-xs); font-weight: 800; color: var(--zh-brand-ink); background: var(--zh-brand-soft); }
.zh-blog-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zh-brand); }
.zh-blog-hero h1 { margin: 0; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); font-weight: 900; line-height: 1.35; text-wrap: balance; }
.zh-blog-desc { margin: 10px 0 0; max-width: 60ch; color: var(--zh-ink-2); font-size: var(--zh-fs-lg); line-height: 1.9; }
.zh-blog-count { margin: 8px 0 0; color: var(--zh-ink-3); font-size: var(--zh-fs-sm); font-weight: 700; }
.zh-blog-search { flex: 0 1 420px; min-width: min(100%, 300px); }
.zh-blog-search .zh-searchform { margin: 0; max-width: none; }

.zh-searchform { box-shadow: 0 8px 24px -18px color-mix(in srgb, var(--zh-ink) 40%, transparent); }

/* Category chips */
.zh-blog-chips { display: flex; gap: 8px; margin-top: 26px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.zh-blog-chips::-webkit-scrollbar { display: none; }
.zh-blog-chips a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--zh-line); background: var(--zh-surface); color: var(--zh-ink-2); text-decoration: none; font-weight: 700; font-size: var(--zh-fs-sm); transition: border-color .15s, color .15s, background .15s; }
.zh-blog-chips a small { font-size: .75em; color: var(--zh-ink-3); font-weight: 800; }
.zh-blog-chips a:hover { border-color: var(--zh-brand); color: var(--zh-brand-ink); }
.zh-blog-chips a.is-active { background: var(--zh-ink); border-color: var(--zh-ink); color: var(--zh-paper); }
.zh-blog-chips a.is-active small { color: inherit; opacity: .7; }

/* Breadcrumbs */
.zh-breadcrumbs { margin-bottom: 14px; font-size: var(--zh-fs-xs); color: var(--zh-ink-3); }
.zh-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.zh-breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.zh-breadcrumbs li + li::before { content: "/"; opacity: .5; }
.zh-breadcrumbs a { color: var(--zh-ink-2); text-decoration: none; }
.zh-breadcrumbs a:hover { color: var(--zh-brand-ink); text-decoration: underline; }
.zh-breadcrumbs [aria-current] { color: var(--zh-ink-3); max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------------- Body */
.zh-blog-body { padding: 22px 0 88px; }
.zh-blog-body.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
.zh-blog-sidebar { display: grid; gap: 18px; min-width: 0; }
.zh-blog-sidebar .widget { min-width: 0; overflow-wrap: anywhere; }
.zh-blog-sidebar .widget { padding: 20px; border: 1px solid var(--zh-line); border-radius: var(--zh-r-lg); background: var(--zh-surface); }
.zh-blog-sidebar .widget-title, .zh-blog-sidebar .wp-block-heading { margin: 0 0 12px; font-size: var(--zh-fs-md); font-weight: 900; }
.zh-blog-sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zh-blog-sidebar li a { color: var(--zh-ink-2); text-decoration: none; }
.zh-blog-sidebar li a:hover { color: var(--zh-brand-ink); }

.zh-post-list { display: grid; gap: 28px 26px; }
.zh-post-list.is-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.zh-post-list.is-list { grid-template-columns: 1fr; gap: 18px; }
.zh-card-post.is-featured + .zh-post-list { margin-top: 34px; }

/* ----------------------------------------------------------------- Cards */
.zh-card-post { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--zh-line); border-radius: var(--zh-r-lg); background: var(--zh-surface); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.zh-card-post:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--zh-brand) 35%, var(--zh-line)); box-shadow: 0 22px 44px -28px color-mix(in srgb, var(--zh-brand) 55%, transparent); }
.zh-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--zh-mist); }
.zh-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.zh-card-post:hover .zh-card-media img { transform: scale(1.04); }
.zh-card-flag { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: color-mix(in srgb, var(--zh-surface) 90%, transparent); color: var(--zh-ink); backdrop-filter: blur(8px); }

/* Generated cover for posts without a featured image */
.zh-card-art { --a: var(--zh-brand); --b: #22d3ee; position: absolute; inset: 0; display: block; overflow: hidden; background: radial-gradient(110% 90% at 85% 0%, color-mix(in srgb, var(--a) 40%, transparent), transparent 60%), radial-gradient(90% 90% at 0% 100%, color-mix(in srgb, var(--b) 30%, transparent), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--a) 12%, var(--zh-surface)), var(--zh-surface)); }
.zh-card-art[style*="seed:1"] { --b: #f472b6; }
.zh-card-art[style*="seed:2"] { --b: #f2b33d; }
.zh-card-art[style*="seed:3"] { --b: #34d399; }
.zh-card-art[style*="seed:4"] { --a: #0ea5e9; --b: var(--zh-brand); }
.zh-card-art i { position: absolute; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.8), color-mix(in srgb, var(--a) 70%, var(--b)) 45%, transparent 72%); opacity: .8; }
.zh-card-art i:first-child { width: 34%; aspect-ratio: 1; top: 12%; inset-inline-start: 10%; }
.zh-card-art i:nth-child(2) { width: 14%; aspect-ratio: 1; bottom: 16%; inset-inline-end: 16%; opacity: .55; }
.zh-card-art b { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 45%, var(--b))); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--a) 80%, transparent); transform: rotate(-8deg); }

.zh-card-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px 20px 20px; min-width: 0; }
.zh-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--zh-fs-xs); color: var(--zh-ink-3); }
.zh-card-meta > * + time::before, .zh-card-read::before { content: "·"; margin-inline-end: 10px; opacity: .6; }
.zh-chip { position: relative; z-index: 1; display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--zh-brand-soft); color: var(--zh-brand-ink); font-weight: 800; font-size: var(--zh-fs-xs); text-decoration: none; line-height: 1.9; }
.zh-chip:hover { background: var(--zh-brand); color: var(--zh-on-brand); }
.zh-card-title { margin: 0; font-size: 1.12rem; font-weight: 900; line-height: 1.7; text-wrap: pretty; }
.zh-card-title a { color: var(--zh-ink); text-decoration: none; }
.zh-card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.zh-card-title a:hover { color: var(--zh-brand-ink); }
.zh-card-excerpt { margin: 0; color: var(--zh-ink-2); font-size: var(--zh-fs-sm); line-height: 1.95; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Featured (latest) post */
.zh-card-post.is-featured { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: stretch; }
.zh-card-post.is-featured .zh-card-media { aspect-ratio: auto; min-height: 340px; }
.zh-card-post.is-featured .zh-card-body { justify-content: center; gap: 12px; padding: clamp(22px, 3vw, 44px); }
.zh-card-post.is-featured .zh-card-title { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); line-height: 1.55; }
.zh-card-post.is-featured .zh-card-excerpt { font-size: var(--zh-fs-md); -webkit-line-clamp: 4; }
.zh-card-author { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-weight: 700; font-size: var(--zh-fs-sm); color: var(--zh-ink-2); }
.zh-card-author .zh-avatar { width: 36px; height: 36px; border-radius: 50%; }
.zh-card-cta { position: relative; z-index: 1; margin-inline-start: auto; }

/* List layout */
.zh-card-post.is-list { flex-direction: row; }
.zh-card-post.is-list .zh-card-media { flex: 0 0 min(300px, 38%); aspect-ratio: auto; min-height: 180px; }
.zh-card-post.is-list .zh-card-body { justify-content: center; padding: 20px 24px; }
.zh-card-post.is-list .zh-card-title { font-size: 1.25rem; }

/* Compact (related) */
.zh-card-post.is-compact .zh-card-body { padding: 12px 16px 16px; gap: 6px; }
.zh-card-post.is-compact .zh-card-title { font-size: 1rem; }
.zh-card-post.is-compact .zh-card-read { display: none; }

/* ------------------------------------------------------------ Pagination */
.zh-blog .navigation.pagination { margin-top: 48px; }
.zh-blog .nav-links { justify-content: center; gap: 8px; }
.zh-blog .nav-links .page-numbers { min-width: 44px; height: 44px; gap: 6px; border: 1px solid var(--zh-line); background: var(--zh-surface); color: var(--zh-ink); text-decoration: none; font-weight: 800; }
.zh-blog .nav-links a.page-numbers:hover { border-color: var(--zh-brand); color: var(--zh-brand-ink); }
.zh-blog .nav-links .current { background: var(--zh-brand); border-color: var(--zh-brand); color: var(--zh-on-brand); }
.zh-blog .nav-links .dots { border-color: transparent; background: none; }

/* ----------------------------------------------------------------- Empty */
.zh-blog-empty { display: grid; justify-items: center; gap: 8px; padding: 64px 20px; text-align: center; border: 1px dashed var(--zh-line); border-radius: var(--zh-r-lg); background: var(--zh-surface); }
.zh-blog-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; color: var(--zh-brand-ink); background: var(--zh-brand-soft); }
.zh-blog-empty h2 { margin: 8px 0 0; font-size: var(--zh-fs-xl); }
.zh-blog-empty p { margin: 0 0 8px; color: var(--zh-ink-2); }

/* ================================================================ Single */
.zh-read-progress { position: fixed; inset-inline: 0; top: 0; z-index: 60; height: 3px; pointer-events: none; }
.admin-bar .zh-read-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .zh-read-progress { top: 46px; } }
.zh-read-progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: right; background: linear-gradient(270deg, var(--zh-brand), #22d3ee); }

.zh-single-head { position: relative; padding: 40px 0 28px; isolation: isolate; }
.zh-single-head::before { content: ""; position: absolute; inset: 0 0 -120px; z-index: -1; pointer-events: none; background: radial-gradient(760px 300px at 80% 0%, color-mix(in srgb, var(--zh-brand) 11%, transparent), transparent 70%); }
.zh-single-head .zh-container { max-width: 900px; }
.zh-single-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.zh-single-title { margin: 0; font-size: clamp(1.8rem, 1.25rem + 2.2vw, 2.9rem); font-weight: 900; line-height: 1.45; text-wrap: balance; }
.zh-single-lead { margin: 14px 0 0; color: var(--zh-ink-2); font-size: var(--zh-fs-lg); line-height: 1.95; }
.zh-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--zh-line); }
.zh-byline-author { display: inline-flex; align-items: center; gap: 10px; color: var(--zh-ink); text-decoration: none; }
.zh-byline-author .zh-avatar { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 3px var(--zh-surface), 0 0 0 4px var(--zh-line); }
.zh-byline-author span { display: grid; line-height: 1.5; }
.zh-byline-author small { color: var(--zh-ink-3); font-size: var(--zh-fs-xs); }
.zh-byline-author b { font-weight: 800; }
.zh-byline-author:hover b { color: var(--zh-brand-ink); }
.zh-byline-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--zh-ink-2); font-size: var(--zh-fs-sm); }
.zh-byline-meta li { display: inline-flex; align-items: center; gap: 6px; }
.zh-byline-meta .zi { color: var(--zh-ink-3); }
.zh-byline-meta a { color: inherit; text-decoration: none; }
.zh-byline-meta a:hover { color: var(--zh-brand-ink); }

.zh-single-cover { margin-block: 4px 34px; }
.zh-single-cover img { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: calc(var(--zh-r-lg) + 6px); box-shadow: 0 40px 80px -50px color-mix(in srgb, var(--zh-ink) 60%, transparent); }
.zh-single-cover figcaption { margin-top: 10px; text-align: center; color: var(--zh-ink-3); font-size: var(--zh-fs-xs); }

.zh-single-layout { padding-bottom: 90px; }
.zh-single-main { min-width: 0; max-width: 760px; margin-inline: auto; }
.zh-single-layout.has-aside { display: grid; grid-template-columns: minmax(0, 760px) 270px; justify-content: center; gap: 56px; align-items: start; }
.zh-single-layout.has-aside .zh-single-main { margin: 0; }
.zh-single-aside { position: sticky; top: 96px; display: grid; gap: 18px; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; }
.admin-bar .zh-single-aside { top: 128px; }

/* Table of contents */
.zh-toc { border: 1px solid var(--zh-line); border-radius: var(--zh-r-lg); background: var(--zh-surface); }
.zh-toc-side { padding: 18px 16px; }
.zh-toc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding-inline: 6px; font-weight: 900; }
.zh-toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.zh-toc-list a { position: relative; display: block; padding: 6px 12px; border-radius: 10px; color: var(--zh-ink-2); text-decoration: none; font-size: var(--zh-fs-sm); line-height: 1.75; transition: background .15s, color .15s; }
.zh-toc-list .is-h3 a { padding-inline-start: 26px; font-size: var(--zh-fs-xs); }
.zh-toc-list a:hover { background: var(--zh-mist); color: var(--zh-ink); }
.zh-toc-list a.is-active { color: var(--zh-brand-ink); background: var(--zh-brand-soft); font-weight: 800; }
.zh-toc-list a.is-active::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: var(--zh-brand); }
.zh-toc-inline { display: none; margin-bottom: 26px; }
.zh-toc-inline summary { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-weight: 900; cursor: pointer; list-style: none; }
.zh-toc-inline summary::-webkit-details-marker { display: none; }
.zh-toc-chevron { margin-inline-start: auto; transition: transform .2s; }
.zh-toc-inline[open] .zh-toc-chevron { transform: rotate(180deg); }
.zh-toc-inline .zh-toc-list { padding: 0 10px 12px; }
.zh-single-layout:not(.has-aside) .zh-toc-inline { display: block; }

/* Footer blocks */
.zh-single-foot { display: grid; gap: 22px; margin-top: 44px; }
.zh-single-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--zh-ink-3); }
.zh-single-tags a { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--zh-line); color: var(--zh-ink-2); text-decoration: none; font-size: var(--zh-fs-xs); font-weight: 700; }
.zh-single-tags a:hover { border-color: var(--zh-brand); color: var(--zh-brand-ink); }

.zh-share { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--zh-line); border-radius: var(--zh-r-lg); background: var(--zh-surface); }
.zh-share-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.zh-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.zh-share-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--zh-line); background: var(--zh-paper); color: var(--zh-ink-2); cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.zh-share-btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.zh-share-btn.is-telegram:hover { background: #229ed9; }
.zh-share-btn.is-whatsapp:hover { background: #25d366; }
.zh-share-btn.is-x:hover { background: #111; }
.zh-share-btn.is-linkedin:hover { background: #0a66c2; }
.zh-share-btn.is-copy:hover, .zh-share-btn.is-native:hover { background: var(--zh-brand); }
.zh-share-toast { position: absolute; inset-inline-end: 18px; bottom: calc(100% + 8px); padding: 6px 12px; border-radius: 10px; background: var(--zh-ink); color: var(--zh-paper); font-size: var(--zh-fs-xs); font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.zh-share-toast.is-on { opacity: 1; transform: none; }

.zh-ai-followup { position: relative; display: flex; gap: 18px; padding: 24px; border-radius: calc(var(--zh-r-lg) + 4px); overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--zh-brand) 70%, #22d3ee), transparent 60%), linear-gradient(135deg, color-mix(in srgb, var(--zh-brand) 92%, #000), #1b1340); box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--zh-brand) 85%, transparent); }
.zh-ai-followup-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.zh-ai-followup h2 { margin: 0 0 4px; font-size: 1.2rem; font-weight: 900; color: #fff; }
.zh-ai-followup p { margin: 0 0 14px; color: rgba(255,255,255,.82); font-size: var(--zh-fs-sm); }
.zh-ai-followup-prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.zh-ai-followup-prompts a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; color: #1b1340; font-weight: 800; font-size: var(--zh-fs-sm); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.zh-ai-followup-prompts a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }

.zh-author-box { display: flex; gap: 18px; padding: 22px; border: 1px solid var(--zh-line); border-radius: var(--zh-r-lg); background: linear-gradient(160deg, var(--zh-mist), var(--zh-surface)); }
.zh-author-box .zh-avatar { flex: none; width: 72px; height: 72px; border-radius: 24px; }
.zh-author-box small { color: var(--zh-ink-3); font-weight: 700; font-size: var(--zh-fs-xs); }
.zh-author-box h2 { margin: 0 0 4px; font-size: 1.15rem; }
.zh-author-box p { margin: 0 0 8px; color: var(--zh-ink-2); font-size: var(--zh-fs-sm); line-height: 1.95; }

.zh-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zh-post-nav a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--zh-line); border-radius: var(--zh-r-lg); background: var(--zh-surface); color: var(--zh-ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.zh-post-nav a:hover { border-color: var(--zh-brand); transform: translateY(-2px); }
.zh-post-nav a.is-next { grid-column: 2; text-align: end; }
.zh-post-nav small { display: inline-flex; align-items: center; gap: 6px; color: var(--zh-ink-3); font-weight: 700; font-size: var(--zh-fs-xs); }
.zh-post-nav a.is-next small { justify-content: flex-end; }
.zh-post-nav b { font-weight: 800; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.zh-related { margin-top: 52px; }
.zh-related h2 { margin: 0 0 18px; font-size: var(--zh-fs-xl); font-weight: 900; }
.zh-related .zh-post-list.is-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; }

/* -------------------------------------------------------------- Comments */
.zh-blog-page .zh-comments { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--zh-line); }
.zh-comments-head h2 { margin: 0; font-size: var(--zh-fs-xl); font-weight: 900; }
.zh-comments-head p { margin: 6px 0 0; color: var(--zh-ink-2); }
.zh-comment-list, .zh-comment-list .children { list-style: none; margin: 0; padding: 0; }
.zh-comment-list { margin-top: 20px; display: grid; gap: 14px; }
.zh-comment-list .children { margin-top: 12px; padding-inline-start: clamp(14px, 4vw, 44px); border-inline-start: 2px solid var(--zh-line); display: grid; gap: 12px; }
.zh-blog-page .zh-comment-list .comment-body { position: relative; padding: 16px 18px; border: 1px solid var(--zh-line); border-bottom: 1px solid var(--zh-line); border-radius: var(--zh-r-lg); background: var(--zh-surface); }
.zh-comment-list .comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; }
.zh-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.zh-comment-list .comment-author .avatar { width: 40px; height: 40px; border-radius: 50%; }
.zh-comment-list .comment-author .fn { font-style: normal; }
.zh-comment-list .comment-author .fn a { color: inherit; text-decoration: none; }
.zh-comment-list .says { display: none; }
.zh-comment-list .comment-metadata { font-size: var(--zh-fs-xs); }
.zh-comment-list .comment-metadata a { color: var(--zh-ink-3); text-decoration: none; }
.zh-comment-list .comment-metadata .edit-link::before { content: "·"; margin-inline: 6px; }
.zh-comment-list .comment-content { color: var(--zh-ink-2); line-height: 1.95; }
.zh-comment-list .comment-content p:last-child { margin-bottom: 0; }
.zh-comment-list .reply { margin-top: 10px; }
.zh-comment-list .comment-reply-link { display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--zh-line); color: var(--zh-ink-2); text-decoration: none; font-weight: 700; font-size: var(--zh-fs-xs); }
.zh-comment-list .comment-reply-link:hover { border-color: var(--zh-brand); color: var(--zh-brand-ink); }
.zh-comment-list .bypostauthor > .comment-body { border-color: color-mix(in srgb, var(--zh-brand) 40%, var(--zh-line)); background: linear-gradient(160deg, var(--zh-mist), var(--zh-surface)); }
.zh-comment-list .bypostauthor > .comment-body .fn::after { content: "نویسنده"; margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px; background: var(--zh-brand); color: var(--zh-on-brand); font-size: 11px; font-weight: 800; vertical-align: 2px; }
.zh-comment-list .comment-awaiting-moderation { display: block; margin-top: 6px; color: var(--zh-coin-ink); font-size: var(--zh-fs-xs); }
.zh-comments-closed { color: var(--zh-ink-3); }
.zh-blog-page .comment-respond { margin-top: 28px; padding: 22px; border: 1px solid var(--zh-line); border-radius: var(--zh-r-lg); background: var(--zh-surface); }
.zh-blog-page .comment-reply-title { margin: 0 0 4px; font-size: 1.15rem; font-weight: 900; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.zh-blog-page .comment-reply-title small a { font-size: var(--zh-fs-xs); font-weight: 700; }
.zh-blog-page .comment-notes, .zh-blog-page .logged-in-as { color: var(--zh-ink-3); font-size: var(--zh-fs-xs); }
.zh-blog-page .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.zh-blog-page .comment-form > p { margin: 0 0 10px; }
.zh-blog-page .comment-form .comment-notes, .zh-blog-page .comment-form .logged-in-as, .zh-blog-page .comment-form-comment, .zh-blog-page .comment-form-cookies-consent, .zh-blog-page .form-submit { grid-column: 1 / -1; }
.zh-blog-page .comment-form label { display: block; margin-bottom: 6px; font-weight: 700; font-size: var(--zh-fs-sm); }
.zh-blog-page .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: var(--zh-fs-xs); color: var(--zh-ink-2); }
.zh-blog-page .comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 500; font-size: inherit; }
.zh-blog-page .comment-form input[type=text], .zh-blog-page .comment-form input[type=email], .zh-blog-page .comment-form textarea { width: 100%; border-radius: var(--zh-r-md); }
.zh-blog-page .comment-form textarea { min-height: 130px; resize: vertical; }

/* ---------------------------------------------------------------- Mobile */
@media (max-width: 1100px) {
	.zh-single-layout.has-aside { display: block; }
	.zh-single-layout.has-aside .zh-single-main { margin-inline: auto; }
	.zh-single-aside { position: static; max-height: none; overflow: visible; max-width: 760px; margin: 40px auto 0; }
	.zh-toc-side { display: none; }
	.zh-toc-inline { display: block; }
	.zh-blog-body.has-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.zh-card-post.is-featured { grid-template-columns: 1fr; }
	.zh-card-post.is-featured .zh-card-media { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 640px) {
	.zh-blog-hero, .zh-blog-hero.is-home { padding: 28px 0 18px; }
	.zh-blog-desc { font-size: var(--zh-fs-md); }
	.zh-blog-search { flex-basis: 100%; }
	.zh-blog-chips { margin-inline: -16px; padding-inline: 16px; margin-top: 18px; }
	.zh-card-post.is-list { flex-direction: column; }
	.zh-card-post.is-list .zh-card-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
	.zh-card-cta { display: none; }
	.zh-single-head { padding: 24px 0 18px; }
	.zh-byline { gap: 12px; }
	.zh-single-cover { width: 100%; padding: 0; }
	.zh-single-cover img { border-radius: 0; max-height: 360px; }
	.zh-share { padding: 12px; }
	.zh-ai-followup { flex-direction: column; padding: 20px; }
	.zh-author-box { flex-direction: column; }
	.zh-post-nav { grid-template-columns: 1fr; }
	.zh-post-nav a.is-next { grid-column: auto; }
	.zh-blog-page .comment-form { grid-template-columns: 1fr; }
	.zh-blog-page .comment-respond { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.zh-card-post:hover, .zh-card-post:hover .zh-card-media img, .zh-share-btn:hover, .zh-post-nav a:hover { transform: none; }
}
@media print {
	.zh-read-progress, .zh-share, .zh-ai-followup, .zh-single-aside, .zh-toc-inline, .zh-related, .zh-comments, .zh-post-nav, .zh-header, .zh-footer { display: none !important; }
	.zh-single-layout.has-aside { display: block; }
}
/* Wide/full blocks stay inside the column when the table of contents sits beside it. */
.zh-single-layout.has-aside .zh-prose :is(.alignwide, .alignfull) { width: 100%; max-width: 100%; margin-inline: 0; transform: none; }
/* Core widgets inside the blog sidebar */
.zh-blog-sidebar .wp-block-search__label { display: block; margin-bottom: 10px; font-weight: 900; }
.zh-blog-sidebar .wp-block-search__inside-wrapper { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--zh-line); border-radius: 999px; background: var(--zh-paper); }
.zh-blog-sidebar .wp-block-search__input { flex: 1; width: 100%; min-width: 0; height: 38px; padding: 0 12px; border: 0; background: none; outline: 0; }
.zh-blog-sidebar .wp-block-search__button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--zh-brand); color: var(--zh-on-brand); font-weight: 800; cursor: pointer; }
.zh-blog-sidebar .wp-block-latest-posts, .zh-blog-sidebar .wp-block-latest-comments { margin: 0; padding: 0; display: grid; gap: 10px; }
.zh-blog-sidebar .wp-block-latest-posts li, .zh-blog-sidebar .wp-block-latest-comments li { margin: 0; line-height: 1.8; font-size: var(--zh-fs-sm); }
.zh-blog-sidebar .wp-block-latest-comments__comment-meta { color: var(--zh-ink-3); }
.zh-blog-sidebar .wp-block-tag-cloud a, .zh-blog-sidebar .tagcloud a { display: inline-block; margin: 0 0 6px 4px; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--zh-line); font-size: var(--zh-fs-xs) !important; color: var(--zh-ink-2); text-decoration: none; }
.zh-blog-sidebar .wp-block-group, .zh-blog-sidebar .wp-block-group__inner-container { display: grid; gap: 10px; }
.zh-blog-sidebar :is(h2, h3) { margin: 0 0 10px; font-size: var(--zh-fs-md); font-weight: 900; }
