/* =====================================================================
   Biameno — Blog (blog-pro.css)
   روی home.css سوار است (توکن‌ها، دکمه‌ها، hm-final، aurora).
   bl-* = لیست وبلاگ و اجزای مشترک · bp-* = صفحه مقاله
   ===================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bl-ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: middle; }

/* ---------- Breadcrumb ---------- */
.bl-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; color: var(--hm-muted); }
.bl-crumbs li { min-width: 0; }
.bl-crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .55; }
.bl-crumbs a { color: var(--hm-text-2); transition: color .2s; }
.bl-crumbs a:hover { color: var(--hm-blue-ink); }
.bl-crumbs [aria-current] { color: var(--hm-muted); display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- Hero (لیست) ---------- */
.bl-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(20px, 4vw, 40px) 0 clamp(36px, 6vw, 64px); }
.bl-hero__copy { max-width: 760px; margin: clamp(22px, 4vw, 40px) auto 0; text-align: center; }
.bl-hero__copy .hm-pill { white-space: normal; }
.bl-hero__title { margin-top: 18px; color: var(--hm-text); font-size: clamp(2rem, 1.3rem + 3.6vw, 3.4rem); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.bl-hero__title .hm-grad { display: block; font-size: .5em; line-height: 1.7; margin-top: 8px; letter-spacing: 0; }
.bl-hero__lead { margin: 14px auto 0; max-width: 600px; color: var(--hm-muted); font-size: clamp(1rem, .96rem + .25vw, 1.1rem); line-height: 2; text-wrap: pretty; }

.bl-search {
  position: relative; display: flex; align-items: center; gap: 8px; margin: 26px auto 0; max-width: 620px;
  padding: 6px; border-radius: 18px; background: var(--hm-glass); border: 1px solid var(--hm-line-2);
  box-shadow: var(--hm-shadow); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color .2s, box-shadow .2s;
}
.bl-search:focus-within { border-color: var(--hm-blue); box-shadow: var(--hm-glow); }
.bl-search > .bl-ico { margin-inline-start: 12px; color: var(--hm-muted); font-size: 1.15rem; }
.bl-search input {
  flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent;
  color: var(--hm-text); font: inherit; font-size: 1rem;
}
.bl-search input::placeholder { color: var(--hm-muted); }
.bl-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.bl-search .hm-btn { min-height: 48px; border-radius: 13px; padding: 0 1.3rem; }
.hm .bl-search input:focus-visible { outline: 0; }

.bl-cats {
  display: flex; gap: 8px; margin: 26px auto 0; max-width: 100%; overflow-x: auto; padding: 4px 2px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.bl-cats::-webkit-scrollbar { display: none; }
.bl-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 999px;
  background: var(--hm-surface); border: 1px solid var(--hm-line-2); color: var(--hm-text-2);
  font-size: .9rem; font-weight: 700; white-space: nowrap; scroll-snap-align: start;
  transition: border-color .2s, color .2s, background-color .2s, transform .2s;
}
.bl-chip small { font-size: .74rem; font-weight: 400; color: var(--hm-muted); background: var(--hm-surface-2); padding: 1px 8px; border-radius: 999px; }
.bl-chip:hover { border-color: var(--hm-blue); color: var(--hm-blue-ink); transform: translateY(-1px); }
.bl-chip.is-active { background: var(--hm-grad); color: #fff; border-color: transparent; box-shadow: var(--hm-glow); }
.bl-chip.is-active small { background: rgba(255, 255, 255, .2); color: #fff; }

/* ---------- Sections ---------- */
.bl-sec { position: relative; padding: clamp(40px, 6vw, 72px) 0; }
.bl-sec--tight { padding-top: 0; }
.bl-sec--soft { background: linear-gradient(180deg, transparent, var(--hm-bg-soft) 12%, var(--hm-bg-soft) 88%, transparent); }
.bl-sec__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 24px; }
.bl-sec__head h2 { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem); line-height: 1.5; color: var(--hm-text); }
.bl-sec__head h2 i, .bl-sec__head h2 .bl-ico { color: #f59e0b; }
.bl-sec__head h2 small { font-size: .65em; color: var(--hm-muted); font-weight: 400; }
.bl-sec__head .hm-link { margin-inline-start: auto; }
.bl-count { font-size: .84rem; color: var(--hm-muted); background: var(--hm-surface); border: 1px solid var(--hm-line); padding: 4px 12px; border-radius: 999px; }

/* ---------- Category label & meta ---------- */
.bl-cat {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--hm-blue-ink);
  background: color-mix(in srgb, var(--hm-blue) 12%, transparent); border: 1px solid color-mix(in srgb, var(--hm-blue) 22%, transparent);
  transition: background-color .2s;
}
.bl-cat:hover { background: color-mix(in srgb, var(--hm-blue) 20%, transparent); }
.bl-cat--glass { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .8rem; color: var(--hm-muted); }
.bl-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.bl-meta > * + *::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; margin-inline-end: 9px; }
.bl-meta i { font-size: .95rem; }
.bl-meta--light { color: rgba(255, 255, 255, .82); }

/* ---------- Featured ---------- */
.bl-feat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.bl-feat__item {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 260px; border-radius: 24px; background: var(--hm-grad); box-shadow: var(--hm-shadow);
}
.bl-feat__media { position: absolute; inset: 0; z-index: 0; }
.bl-feat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bl-feat__item:hover .bl-feat__media img { transform: scale(1.05); }
.bl-feat__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 8, 20, .92) 0%, rgba(4, 8, 20, .55) 45%, rgba(4, 8, 20, .05) 100%); }
.bl-feat__body { position: relative; z-index: 1; display: grid; justify-items: start; gap: 10px; padding: clamp(18px, 3vw, 28px); color: #fff; width: 100%; pointer-events: none; }
.bl-feat__body a { pointer-events: auto; }
.bl-feat__body h3 { font-size: clamp(1.05rem, .95rem + .6vw, 1.35rem); line-height: 1.7; }
.bl-feat__body h3 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.bl-feat__body p { color: rgba(255, 255, 255, .85); font-size: .95rem; line-height: 1.95; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bl-feat__item--main { min-height: 340px; }
.bl-feat__item--main h3 { font-size: clamp(1.25rem, 1rem + 1.3vw, 1.9rem); line-height: 1.6; }

/* ---------- Card grid ---------- */
.bl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.bl-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: var(--hm-surface); border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.bl-card:hover { transform: translateY(-5px); box-shadow: var(--hm-shadow); border-color: var(--hm-line-2); }
.bl-card__media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--hm-surface-2); }
.bl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bl-card:hover .bl-card__media img { transform: scale(1.05); }
.bl-card__ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; color: #fff; background: var(--hm-grad); opacity: .85; }
.bl-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 20px; }
.bl-card h3 { font-size: 1.06rem; line-height: 1.75; color: var(--hm-text); }
.bl-card h3 a { transition: color .2s; }
.bl-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bl-card h3 a:hover { color: var(--hm-blue-ink); }
.bl-card .bl-cat { position: relative; z-index: 2; }
.bl-card p { color: var(--hm-muted); font-size: .92rem; line-height: 1.95; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card .bl-meta { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hm-line); }

.bl-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 20px; border-radius: 24px; background: var(--hm-surface); border: 1px dashed var(--hm-line-2); }
.bl-empty > .bl-ico { width: 56px; height: 56px; padding: 14px; border-radius: 18px; color: var(--hm-blue-ink); background: color-mix(in srgb, var(--hm-blue) 12%, transparent); }
.bl-empty h3 { font-size: 1.15rem; color: var(--hm-text); }
.bl-empty p { color: var(--hm-muted); }

/* ---------- Pagination ---------- */
.bl-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; }
.bl-pager__num, .bl-pager__nav {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 14px; background: var(--hm-surface); border: 1px solid var(--hm-line-2); color: var(--hm-text-2); font-weight: 700;
  transition: border-color .2s, color .2s, transform .2s;
}
.bl-pager a:hover { border-color: var(--hm-blue); color: var(--hm-blue-ink); transform: translateY(-2px); }
.bl-pager__num.is-active { background: var(--hm-grad); color: #fff; border-color: transparent; box-shadow: var(--hm-glow); }
.bl-pager__gap { color: var(--hm-muted); padding: 0 2px; }

/* ---------- Popular & tags ---------- */
.bl-duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.bl-panel { padding: clamp(20px, 3vw, 28px); border-radius: 24px; background: var(--hm-surface); border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow-sm); min-width: 0; }
.bl-panel h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; color: var(--hm-text); margin-bottom: 14px; }
.bl-panel h2 .bl-ico { color: #f97316; }
.bl-panel h2 i { color: var(--hm-blue-ink); }
.bl-top li + li { border-top: 1px solid var(--hm-line); }
.bl-top a { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.bl-top__n { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--hm-grad); }
.bl-top__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bl-top__txt b { font-size: .95rem; line-height: 1.7; color: var(--hm-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.bl-top a:hover b { color: var(--hm-blue-ink); }
.bl-top__txt small { color: var(--hm-muted); font-size: .78rem; display: inline-flex; align-items: center; gap: 4px; }
.bl-top img { flex: none; width: 84px; height: 56px; object-fit: cover; border-radius: 12px; }

.bl-tags, .bp-tags ul { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-tag {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 12px;
  font-size: .86rem; color: var(--hm-text-2); background: var(--hm-surface-2); border: 1px solid var(--hm-line);
  transition: border-color .2s, color .2s, background-color .2s;
}
.bl-tag:hover, .bl-tag.is-active { border-color: var(--hm-blue); color: var(--hm-blue-ink); background: color-mix(in srgb, var(--hm-blue) 8%, var(--hm-surface)); }

.bl-mini-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--hm-blue) 8%, transparent); border: 1px solid color-mix(in srgb, var(--hm-blue) 20%, transparent); }
.bl-mini-cta__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--hm-grad); box-shadow: var(--hm-glow); flex: none; }
.bl-mini-cta > div { flex: 1 1 180px; display: grid; gap: 2px; }
.bl-mini-cta b { color: var(--hm-text); font-size: .95rem; }
.bl-mini-cta small { color: var(--hm-muted); font-size: .8rem; }
.bl-mini-cta .hm-btn { min-height: 44px; }

.bl-final { padding-top: clamp(40px, 6vw, 72px); }

/* =====================================================================
   POST
   ===================================================================== */
.bp-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100001; pointer-events: none; }
.bp-progress span { display: block; height: 100%; background: var(--hm-grad); transform: scaleX(0); transform-origin: right center; box-shadow: 0 0 12px rgba(59, 130, 246, .7); }

.bp-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(18px, 3vw, 32px) 0 0; }
.bp-hero__wrap { max-width: 880px; display: grid; justify-items: center; text-align: center; gap: 16px; }
.bp-hero__wrap .bl-crumbs { justify-self: stretch; }
.bp-hero__wrap .bl-crumbs ol { justify-content: center; }
.bp-hero .bl-cat { align-self: auto; margin-top: 12px; }
.bp-title { font-size: clamp(1.7rem, 1.15rem + 2.8vw, 2.9rem); line-height: 1.5; font-weight: 700; color: var(--hm-text); letter-spacing: -.015em; text-wrap: balance; }
.bp-lead { max-width: 720px; color: var(--hm-text-2); font-size: clamp(1rem, .96rem + .3vw, 1.15rem); line-height: 2.05; text-wrap: pretty; }

.bp-byline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 6px; }
.bp-author { display: inline-flex; align-items: center; gap: 10px; text-align: start; }
.bp-author span:last-child { display: grid; line-height: 1.5; }
.bp-author b { color: var(--hm-text); font-size: .95rem; }
.bp-author small { color: var(--hm-muted); font-size: .76rem; }
.bp-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; background: var(--hm-grad); }
.bp-avatar--lg { width: 44px; height: 44px; font-size: 1.1rem; box-shadow: 0 0 0 3px var(--hm-bg), 0 0 0 5px color-mix(in srgb, var(--hm-blue) 40%, transparent); }
.bp-avatar--xl { width: 64px; height: 64px; font-size: 1.5rem; border-radius: 20px; }
.bp-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bp-facts li, .bp-facts a { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--hm-muted); }
.bp-facts li { padding: 6px 12px; border-radius: 999px; background: var(--hm-glass); border: 1px solid var(--hm-line); }
.bp-facts a:hover { color: var(--hm-blue-ink); }

.bp-cover { margin-top: clamp(26px, 4vw, 40px); max-width: 1080px; }
.bp-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: clamp(18px, 3vw, 30px); box-shadow: var(--hm-shadow); border: 1px solid var(--hm-line); }

/* layout */
.bp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: clamp(30px, 5vw, 56px) 0 clamp(40px, 6vw, 64px); }
.bp-article { min-width: 0; }
.bp-side { display: grid; gap: 18px; align-content: start; min-width: 0; }

/* TOC */
.bp-toc { border-radius: 20px; background: var(--hm-surface); border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow-sm); }
.bp-toc ol { display: grid; gap: 2px; counter-reset: toc; }
.bp-toc li a { display: block; padding: 7px 12px; border-radius: 10px; font-size: .88rem; line-height: 1.75; color: var(--hm-text-2); border-inline-start: 2px solid transparent; transition: color .2s, background-color .2s, border-color .2s; }
.bp-toc li a:hover { color: var(--hm-blue-ink); background: var(--hm-surface-2); }
.bp-toc .bp-toc__l3 a { padding-inline-start: 26px; font-size: .84rem; color: var(--hm-muted); }
.bp-toc li a.is-active { color: var(--hm-blue-ink); border-inline-start-color: var(--hm-blue); background: color-mix(in srgb, var(--hm-blue) 8%, transparent); font-weight: 700; }
.bp-toc--mobile { margin-bottom: 26px; }
.bp-toc--mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 700; color: var(--hm-text); }
.bp-toc--mobile summary::-webkit-details-marker { display: none; }
.bp-toc--mobile summary small { margin-inline-start: auto; color: var(--hm-muted); font-weight: 400; }
.bp-toc--mobile summary::after { content: ""; width: 8px; height: 8px; border: solid var(--hm-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; margin-inline-start: 6px; }
.bp-toc--mobile[open] summary::after { transform: rotate(-135deg); }
.bp-toc--mobile ol { padding: 0 10px 12px; }
.bp-toc--side { display: none; padding: 18px 12px 14px; }
.bp-toc--side > b { display: flex; align-items: center; gap: 8px; padding: 0 12px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--hm-line); color: var(--hm-text); font-size: .95rem; }
.bp-toc--side ol { max-height: calc(100vh - 360px); overflow-y: auto; scrollbar-width: thin; }

/* sidebar CTA */
.bp-cta {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 10px; padding: 22px; border-radius: 22px; color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, rgba(125, 211, 252, .4), transparent 60%), linear-gradient(140deg, #0f3fb8 0%, #2563eb 55%, #4f46e5 100%);
  box-shadow: 0 26px 60px -30px rgba(37, 99, 235, .8);
}
.bp-cta__ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.bp-cta b { font-size: 1.05rem; line-height: 1.7; }
.bp-cta p { font-size: .88rem; line-height: 1.9; opacity: .88; }
.bp-cta .hm-btn--primary { background: #fff; color: #1745b8; box-shadow: none; margin-top: 4px; }
.bp-cta__link { justify-self: center; font-size: .86rem; opacity: .9; text-decoration: underline; text-underline-offset: 4px; }

/* prose: محتوای HTML مقاله */
.bp-prose { color: var(--hm-text-2); font-size: clamp(1rem, .97rem + .2vw, 1.09rem); line-height: 2.15; overflow-wrap: anywhere; }
.bp-prose > * + * { margin-top: 1.1em; }
.bp-prose h2, .bp-prose h3, .bp-prose h4 { color: var(--hm-text); line-height: 1.6; scroll-margin-top: 100px; text-wrap: balance; }
.bp-prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin-top: 2em; padding-inline-start: 16px; border-inline-start: 4px solid; border-image: var(--hm-grad) 1; }
.bp-prose h3 { font-size: clamp(1.15rem, 1.02rem + .5vw, 1.35rem); margin-top: 1.7em; }
.bp-prose h4 { font-size: 1.08rem; margin-top: 1.5em; }
.bp-prose p { margin-bottom: 0; }
.bp-prose a { color: var(--hm-blue-ink); font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--hm-blue) 40%, transparent); text-underline-offset: 5px; transition: text-decoration-color .2s; }
.bp-prose a:hover { text-decoration-color: currentColor; }
.bp-prose strong, .bp-prose b { color: var(--hm-text); }
.bp-prose ul, .bp-prose ol { padding-inline-start: 1.5em; display: grid; gap: .45em; }
.bp-prose ul { list-style: none; }
.bp-prose ul > li { position: relative; }
.bp-prose ul > li::before { content: ""; position: absolute; inset-inline-start: -1.05em; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--hm-grad); }
.bp-prose ol { list-style: decimal; }
.bp-prose ol > li::marker { color: var(--hm-blue-ink); font-weight: 700; }
.bp-prose img, .bp-prose video, .bp-prose iframe { display: block; max-width: 100%; height: auto; margin-inline: auto; border-radius: 18px; }
.bp-prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.bp-prose figure { margin: 1.6em 0; }
.bp-prose figcaption { margin-top: 8px; text-align: center; color: var(--hm-muted); font-size: .85rem; }
.bp-prose blockquote {
  position: relative; margin: 1.6em 0; padding: 18px 22px; border-radius: 18px; color: var(--hm-text);
  background: color-mix(in srgb, var(--hm-blue) 8%, var(--hm-surface)); border: 1px solid color-mix(in srgb, var(--hm-blue) 20%, transparent);
  border-inline-start: 4px solid var(--hm-blue); font-size: 1.02em;
}
.bp-prose hr { border: 0; height: 1px; background: var(--hm-line-2); margin: 2.2em 0; }
.bp-prose code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--hm-surface-2); border: 1px solid var(--hm-line); direction: ltr; unicode-bidi: isolate; }
.bp-prose pre { direction: ltr; text-align: left; overflow-x: auto; padding: 16px; border-radius: 14px; background: #0b1120; color: #e2e8f0; font-size: .88rem; line-height: 1.7; }
.bp-prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.bp-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .92rem; line-height: 1.8; border-radius: 14px; border: 1px solid var(--hm-line-2); }
.bp-prose th, .bp-prose td { padding: 10px 14px; border-bottom: 1px solid var(--hm-line); text-align: start; vertical-align: top; min-width: 120px; }
.bp-prose th { background: var(--hm-surface-2); color: var(--hm-text); font-weight: 700; white-space: nowrap; }
.bp-prose tr:last-child td { border-bottom: 0; }

/* بعد از متن */
.bp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--hm-line); }
.bp-tags > span { display: inline-flex; align-items: center; gap: 6px; color: var(--hm-muted); font-size: .88rem; }

.bp-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding: 18px 20px; border-radius: 20px; background: var(--hm-surface); border: 1px solid var(--hm-line); }
.bp-share b { color: var(--hm-text); font-size: .95rem; }
.bp-share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-sbtn {
  --c: var(--hm-blue); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; cursor: pointer;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 24%, transparent);
  font-size: 1.15rem; transition: transform .2s, background-color .2s, color .2s;
}
.bp-sbtn:hover { transform: translateY(-3px); background: var(--c); color: #fff; }
.bp-sbtn--tg { --c: #229ed9; }
.bp-sbtn--wa { --c: #25d366; }
.bp-sbtn--x { --c: #64748b; }
.bp-sbtn--in { --c: #0a66c2; }

.bp-authorbox { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 20px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--hm-blue) 8%, var(--hm-surface)), var(--hm-surface)); border: 1px solid var(--hm-line); }
.bp-authorbox > div { display: grid; gap: 2px; }
.bp-authorbox small { color: var(--hm-muted); font-size: .78rem; }
.bp-authorbox b { color: var(--hm-text); font-size: 1.05rem; }
.bp-authorbox p { margin-top: 4px; color: var(--hm-muted); font-size: .9rem; line-height: 1.9; }

/* ---------- Comments ---------- */
.bp-comments__wrap { max-width: 880px; }
.bp-comments .bl-sec__head h2 .bl-ico { color: var(--hm-blue-ink); }
.bp-form { display: grid; gap: 14px; padding: clamp(18px, 3vw, 26px); border-radius: 24px; background: var(--hm-surface); border: 1px solid var(--hm-line-2); box-shadow: var(--hm-shadow-sm); }
.bp-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--hm-text-2); }
.bp-form label small { font-weight: 400; color: var(--hm-muted); }
.bp-form label span { color: #ef4444; }
.bp-form input, .bp-form textarea, .bp-edit textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hm-line-2); background: var(--hm-bg);
  color: var(--hm-text); font: inherit; font-size: .95rem; font-weight: 400; line-height: 1.8; transition: border-color .2s, box-shadow .2s;
}
.bp-form input { min-height: 48px; }
.bp-form textarea, .bp-edit textarea { resize: vertical; min-height: 120px; }
.bp-form input:focus, .bp-form textarea:focus, .bp-edit textarea:focus { outline: 0; border-color: var(--hm-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hm-blue) 16%, transparent); }
.bp-form__row { display: grid; gap: 14px; }
.bp-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bp-form__foot small { color: var(--hm-muted); font-size: .8rem; }
.bp-form__as { color: var(--hm-muted); font-size: .9rem; }
.bp-form__as b { color: var(--hm-text); }
.bp-form__replying { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--hm-blue) 10%, transparent); color: var(--hm-text-2); font-size: .9rem; }
.bp-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.bp-alert { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.bp-alert--err { background: color-mix(in srgb, #ef4444 12%, transparent); color: #ef4444; border: 1px solid color-mix(in srgb, #ef4444 28%, transparent); }
.bp-alert--ok { background: color-mix(in srgb, #10b981 12%, transparent); color: var(--hm-green); border: 1px solid color-mix(in srgb, #10b981 28%, transparent); }

.bp-cmts { display: grid; gap: 14px; }
.bp-cmts--root { margin-top: 26px; }
.bp-cmt > .bp-cmts { margin-top: 12px; padding-inline-start: clamp(14px, 4vw, 34px); border-inline-start: 2px solid var(--hm-line); }
.bp-cmt__card { padding: 16px 18px; border-radius: 18px; background: var(--hm-surface); border: 1px solid var(--hm-line); }
.bp-cmt--reply .bp-cmt__card { background: var(--hm-surface-2); }
.bp-cmt__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bp-cmt__head b { color: var(--hm-text); font-size: .94rem; }
.bp-cmt__head time { margin-inline-start: auto; color: var(--hm-muted); font-size: .78rem; }
.bp-cmt__text { margin-top: 10px; color: var(--hm-text-2); font-size: .94rem; line-height: 2; overflow-wrap: anywhere; }
.bp-cmt__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.bp-act {
  display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 10px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--hm-line); color: var(--hm-muted); font: inherit; font-size: .82rem;
  transition: color .2s, border-color .2s, background-color .2s;
}
.bp-act:hover:not(:disabled) { color: var(--hm-blue-ink); border-color: var(--hm-blue); }
.bp-act[aria-pressed="true"] { color: var(--hm-blue-ink); background: color-mix(in srgb, var(--hm-blue) 10%, transparent); border-color: transparent; }
.bp-act:disabled { cursor: default; }
.bp-act--danger:hover:not(:disabled) { color: #ef4444; border-color: #ef4444; }
.bp-inline { display: inline; }
.bp-edit { display: grid; gap: 8px; margin-top: 10px; }
.bp-edit > div { display: flex; gap: 8px; align-items: center; }
.bp-edit .hm-btn { min-height: 40px; }
.bp-nocmt { margin-top: 22px; text-align: center; color: var(--hm-muted); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 559px) {
  .bl-search { flex-wrap: wrap; }
  .bl-search input { flex-basis: calc(100% - 48px); }
  .bl-search .hm-btn { width: 100%; }
  .bl-top img { display: none; }
  .bp-share { justify-content: center; text-align: center; }
  .bp-form__foot .hm-btn { width: 100%; }
  .bp-authorbox { flex-direction: column; align-items: center; text-align: center; }
}
@media (min-width: 560px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-form__row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .bl-feat { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; }
  .bl-feat__item--main { grid-row: span 2; min-height: 460px; }
  .bl-feat__item:not(.bl-feat__item--main) { min-height: 220px; }
  .bl-feat--one { grid-template-columns: 1fr; grid-template-rows: auto; }
  .bl-feat--one .bl-feat__item--main { grid-row: auto; min-height: 420px; }
  .bl-duo { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; }
}
@media (min-width: 1000px) {
  .bl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bp-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .bp-side { position: sticky; top: 96px; align-self: start; }
  .bp-toc--side { display: block; }
  .bp-toc--mobile { display: none; }
}
@media (min-width: 1200px) {
  .bp-layout { grid-template-columns: minmax(0, 760px) 320px; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .bp-progress { display: none; }
}
