/*
 * بلاگ (HaghaniTheme 1.50.0): آرشیو (partials/blog/archive-layout.php) و تک‌مقاله (single.php).
 * همه‌چیز زیر ریشهٔ .hgb؛ بارشده فقط در زمینهٔ بلاگ (inc/blog.php → hg_blog_enqueue).
 * زبانِ طراحی: خط‌های مویی، گوشه‌های کم‌انحنا (۴ پیکسل)، شرابی برای متن/عمل، طلایی فقط برای تأکید.
 */
.hgb {
    --hgb-wine: #911a56;
    --hgb-wine-dark: #6f1242;
    --hgb-gold: #b88f3a;
    --hgb-gold-soft: #e8d3a0;
    --hgb-cream: #fbf6ee;
    --hgb-ink: #231c20;
    --hgb-muted: #6b6166;
    --hgb-line: #ece4d8;
    --hgb-r: 4px;
    direction: rtl;
    text-align: start;
    color: var(--hgb-ink);
    padding-block-end: 56px;
}
.hgb, .hgb *, .hgb *::before, .hgb *::after { box-sizing: border-box; }
.hgb [hidden] { display: none !important; }
.hgb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* :where = امتیازِ صفر، تا مارک‌آپِ افزونه‌ها (مثلاً نظرات) با کلاسِ خودشان برنده شوند (1.52.2). */
:where(.hgb) a { text-decoration: none; }
:where(.hgb) a:focus-visible, :where(.hgb) button:focus-visible, :where(.hgb) summary:focus-visible { outline: 2px solid var(--hgb-gold); outline-offset: 2px; }

.hgb-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--hgb-gold); margin-bottom: 8px; }
.hgb-eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.hgb-section-title { font-size: 20px; font-weight: 800; color: var(--hgb-ink); margin: 0 0 20px; display: flex; align-items: center; gap: 12px; }
.hgb-section-title::after { content: ""; flex: 1; height: 1px; background: var(--hgb-line); }
.hgb-crumbs { font-size: 13px; color: var(--hgb-muted); margin-bottom: 14px; }
.hgb-crumbs a { color: var(--hgb-muted); }
.hgb-crumbs a:hover { color: var(--hgb-wine); }
.hgb-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 20px; border-radius: var(--hgb-r); background: var(--hgb-wine); color: #fff; font-weight: 700; }
.hgb .hgb-btn:hover { background: var(--hgb-wine-dark); color: #fff; }

/* ---------- سربرگِ آرشیو */
.hgb-head { padding-block: 28px 24px; border-block-end: 1px solid var(--hgb-line); background: linear-gradient(180deg, var(--hgb-cream), #fff); margin-block-end: 28px; }
.hgb-head__title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--hgb-wine); margin: 0 0 8px; }
.hgb-head__desc { color: var(--hgb-muted); margin: 0; max-width: 70ch; line-height: 1.9; }

/* ---------- موزاییکِ برگزیده‌ها (هم‌سبکِ «آخرین مقالات» صفحهٔ اصلی) */
.hgb-feature { margin-block-end: 40px; }
.hgb-tabs { display: flex; gap: 4px; margin-block-end: 16px; border-block-end: 1px solid var(--hgb-line); }
.hgb-tabs__btn {
    appearance: none;
    background: none;
    border: 0;
    border-block-end: 2px solid transparent;
    margin-block-end: -1px;
    padding: 10px 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--hgb-muted);
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}
.hgb-tabs__btn:hover { color: var(--hgb-ink); }
.hgb-tabs__btn[aria-selected="true"] { color: var(--hgb-wine); border-block-end-color: var(--hgb-wine); }
.hgb-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 6px; animation: hgb-fade .4s ease; }
/* ۵ کاشی = یک بزرگِ ۲×۲ + چهار کوچک؛ ۴ ستون × ۲ ردیف بی‌جای خالی. */
.hgb-mosaic > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
.hgb-tile { position: relative; display: block; overflow: hidden; border-radius: var(--hgb-r); background: var(--hgb-cream); color: #fff; isolation: isolate; }
.hgb-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.hgb-tile:hover .hgb-tile__img { transform: scale(1.05); }
.hgb-tile__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 16, 0) 40%, rgba(20, 12, 16, .82) 100%); }
.hgb-tile__body { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.hgb-tile__cat { align-self: flex-start; font-size: 11px; font-weight: 700; color: var(--hgb-gold-soft); }
.hgb-tile__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.7; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hgb-mosaic > :nth-child(1) .hgb-tile__title { font-size: clamp(17px, 1.6vw, 22px); }
.hgb-tile__date { font-size: 11px; color: rgba(255, 255, 255, .72); }
@keyframes hgb-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- چیدمانِ دوستونه */
.hgb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.hgb-main, .hgb-article { min-width: 0; }

/* ---------- کارتِ مقاله */
.hgb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.hgb-card { display: flex; flex-direction: column; min-width: 0; }
.hgb-card__media { display: block; position: relative; overflow: hidden; border-radius: var(--hgb-r); aspect-ratio: 16 / 10; background: var(--hgb-cream); }
.hgb-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.hgb-card:hover .hgb-card__img { transform: scale(1.04); }
.hgb-thumb-empty { display: block; background: linear-gradient(135deg, var(--hgb-cream), #f3e7d3); }
.hgb-card__body { display: flex; flex-direction: column; gap: 8px; padding-block-start: 14px; flex: 1; }
.hgb-card__cat { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--hgb-gold); }
.hgb-card__cat:hover { color: var(--hgb-wine); }
.hgb-card__title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.75; }
.hgb-card__title a { color: var(--hgb-ink); background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px; transition: color .2s ease, background-size .3s ease; }
.hgb-card:hover .hgb-card__title a, .hgb-card__title a:hover { color: var(--hgb-wine); background-size: 100% 1px; }
.hgb-card__excerpt { margin: 0; font-size: 14px; color: var(--hgb-muted); line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hgb-card__meta { display: flex; align-items: center; gap: 8px; margin-block-start: auto; padding-block-start: 10px; border-block-start: 1px solid var(--hgb-line); font-size: 12px; color: var(--hgb-muted); }
.hgb-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--hgb-gold); }
.hgb-empty { padding: 40px; text-align: center; border: 1px dashed var(--hgb-line); border-radius: var(--hgb-r); color: var(--hgb-muted); }

/* ---------- صفحه‌بندی (کوچک) */
.hgb-pager { margin-block-start: 40px; }
.hgb-pager ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hgb-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--hgb-line);
    border-radius: var(--hgb-r);
    font-size: 14px;
    font-weight: 600;
    color: var(--hgb-ink);
    background: #fff;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.hgb-pager a.page-numbers:hover { border-color: var(--hgb-wine); color: var(--hgb-wine); }
.hgb-pager .page-numbers.current { background: var(--hgb-wine); border-color: var(--hgb-wine); color: #fff; }
.hgb-pager .page-numbers.dots { border-color: transparent; background: none; min-width: 20px; padding: 0; }
.hgb-pager .prev, .hgb-pager .next { font-size: 20px; line-height: 1; }

/* ---------- سایدبار */
/* سایدبار کشِ کاملِ ستون است تا بخشِ استیکی جای حرکت داشته باشد. */
.hgb-side { min-width: 0; align-self: stretch; display: flex; flex-direction: column; gap: 20px; }
.hgb-side__static, .hgb-side__sticky { display: flex; flex-direction: column; gap: 20px; }
.hgb-side__sticky { position: sticky; top: 96px; }
.hgb-widget { padding: 20px; border: 1px solid var(--hgb-line); border-radius: var(--hgb-r); background: #fff; }
.hgb-widget__title { font-size: 15px; font-weight: 800; margin: 0 0 14px; padding-block-end: 10px; border-block-end: 1px solid var(--hgb-line); position: relative; }
.hgb-widget__title::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-end: -1px; width: 32px; height: 2px; background: var(--hgb-gold); }
.hgb-search { display: flex; padding: 6px; gap: 6px; }
.hgb-search__input { flex: 1; min-width: 0; border: 0; padding: 8px 10px; font: inherit; font-size: 14px; background: transparent; outline: none; }
.hgb-search:focus-within { border-color: var(--hgb-gold); }
.hgb-search__btn { flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: var(--hgb-r); background: var(--hgb-wine); color: #fff; cursor: pointer; }
.hgb-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hgb-cats__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--hgb-r); color: var(--hgb-ink); font-size: 14px; transition: background-color .2s ease, color .2s ease; }
.hgb-cats__link:hover { background: var(--hgb-cream); color: var(--hgb-wine); }
.hgb-cats__link.is-active { background: var(--hgb-cream); color: var(--hgb-wine); font-weight: 700; }
.hgb-cats__count { font-size: 12px; color: var(--hgb-muted); min-width: 24px; text-align: center; }
.hgb-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hgb-mini__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.hgb-mini__img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: var(--hgb-r); }
.hgb-mini__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--hgb-ink); }
.hgb-mini__title:hover { color: var(--hgb-wine); }
.hgb-mini__date { display: block; font-size: 11px; color: var(--hgb-muted); margin-block-start: 2px; }
.hgb-promo { background: radial-gradient(circle at 10% 0, rgba(232, 211, 160, .35), transparent 55%), var(--hgb-wine); border-color: var(--hgb-wine); color: #fff; }
.hgb-promo__eyebrow { font-size: 12px; color: var(--hgb-gold-soft); font-weight: 700; }
.hgb-promo__title { margin: 6px 0 14px; font-weight: 800; line-height: 1.8; }
.hgb .hgb-promo__btn { display: inline-flex; padding: 8px 16px; border-radius: var(--hgb-r); background: #fff; color: var(--hgb-wine); font-weight: 700; font-size: 14px; }

/* ---------- تک‌مقاله: سربرگ */
/* از 1.50.1 دوستونه: متن + فهرستِ مطالب در یک ستون، تصویرِ جمع‌وجور (۴:۳) در ستونِ دیگر. */
.hgb-post-head { padding-block: 24px 32px; margin-block-end: 32px; border-block-end: 1px solid var(--hgb-line); }
.hgb-post-head__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.hgb-post-head__grid.is-noimg { grid-template-columns: minmax(0, 1fr); }
.hgb-post-head__text { min-width: 0; display: flex; flex-direction: column; }
.hgb-post-head__text .hgb-chip { align-self: flex-start; }
.hgb-chip { display: inline-block; padding: 4px 12px; margin-block-end: 12px; border: 1px solid var(--hgb-gold-soft); border-radius: var(--hgb-r); font-size: 12px; font-weight: 700; color: var(--hgb-gold); }
.hgb-chip:hover { background: var(--hgb-cream); color: var(--hgb-wine); }
.hgb-post-head__title { font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; line-height: 1.6; color: var(--hgb-ink); margin: 0 0 10px; }
.hgb-post-head__lead { font-size: 15px; color: var(--hgb-muted); line-height: 2; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hgb-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 13px; color: var(--hgb-muted); }
.hgb-post-meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--hgb-ink); font-weight: 700; }
.hgb-avatar { width: 36px; height: 36px; border-radius: 50%; }
.hgb-post-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.hgb-post-meta__item i { color: var(--hgb-gold); }
.hgb-cover { margin: 0; border-radius: var(--hgb-r); overflow: hidden; background: var(--hgb-cream); aspect-ratio: 4 / 3; }
.hgb-cover__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- تک‌مقاله: فهرستِ مطالب (داخلِ سربرگ، زیرِ متا) */
.hgb-toc { margin-block-start: 20px; border: 1px solid var(--hgb-line); border-inline-start: 3px solid var(--hgb-gold); border-radius: var(--hgb-r); background: var(--hgb-cream); }
.hgb-toc__title { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 14px; font-weight: 800; cursor: pointer; list-style: none; }
.hgb-toc__list { margin: 0; padding: 0 16px 14px; list-style: none; counter-reset: hgbtoc; columns: 2; column-gap: 24px; font-size: 13.5px; max-height: 220px; overflow-y: auto; }
.hgb-toc__item { break-inside: avoid; padding-block: 4px; line-height: 1.7; }
.hgb-toc__item--h2 { counter-increment: hgbtoc; }
.hgb-toc__item--h2 a::before { content: counter(hgbtoc, persian) ". "; color: var(--hgb-gold); font-weight: 700; }
.hgb-toc__item--h3 { padding-inline-start: 16px; font-size: 13px; }
.hgb-toc__item a { color: var(--hgb-ink); }
.hgb-toc__item a:hover { color: var(--hgb-wine); }
.hgb-toc__title::-webkit-details-marker { display: none; }
.hgb-toc__title::after { content: "\203A"; margin-inline-start: auto; transform: rotate(90deg); transition: transform .2s ease; color: var(--hgb-muted); }
.hgb-toc:not([open]) .hgb-toc__title::after { transform: rotate(-90deg); }
.hgb-toc__body { padding: 0 18px 14px; font-size: 14px; }
.hgb-toc__body ul, .hgb-toc__body ol { margin: 0; padding-inline-start: 18px; }
.hgb-toc__body li { margin-block: 4px; }
.hgb-toc__body a { color: var(--hgb-ink); }
.hgb-toc__body a:hover { color: var(--hgb-wine); }
/* افزونهٔ فهرست ظرف و عنوانِ خودش را هم می‌سازد؛ در کادرِ ما تکراری است. */
.hgb-toc__body #ez-toc-container, .hgb-toc__body .ez-toc-v2_0_17, .hgb-toc__body .ez-toc-container { all: unset; display: block; }
.hgb-toc__body .ez-toc-title-container { display: none; }

/* ---------- تک‌مقاله: متن */
.hgb-prose { font-size: 16.5px; line-height: 2.15; color: #3a3236; overflow-wrap: break-word; }
.hgb-prose > * { max-width: 100%; }
.hgb-prose h2, .hgb-prose h3, .hgb-prose h4 { color: var(--hgb-ink); font-weight: 800; line-height: 1.6; margin: 2em 0 .7em; scroll-margin-top: 100px; }
.hgb-prose h2 { font-size: 23px; padding-inline-start: 14px; border-inline-start: 3px solid var(--hgb-gold); }
.hgb-prose h3 { font-size: 19px; }
.hgb-prose p { margin: 0 0 1.2em; }
.hgb-prose a { color: var(--hgb-wine); text-decoration: underline; text-decoration-color: var(--hgb-gold-soft); text-underline-offset: 4px; }
.hgb-prose a:hover { text-decoration-color: var(--hgb-wine); }
.hgb-prose img { max-width: 100%; height: auto; border-radius: var(--hgb-r); }
.hgb-prose figure { margin: 1.6em 0; }
.hgb-prose figcaption { font-size: 13px; color: var(--hgb-muted); text-align: center; margin-block-start: 8px; }
.hgb-prose blockquote { margin: 1.6em 0; padding: 16px 20px; border-inline-start: 3px solid var(--hgb-wine); background: var(--hgb-cream); border-radius: var(--hgb-r); color: var(--hgb-ink); }
.hgb-prose ul, .hgb-prose ol { padding-inline-start: 22px; margin: 0 0 1.2em; }
.hgb-prose li { margin-block: .35em; }
.hgb-prose li::marker { color: var(--hgb-gold); }
.hgb-prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14px; display: block; overflow-x: auto; }
.hgb-prose th, .hgb-prose td { border: 1px solid var(--hgb-line); padding: 10px 12px; text-align: start; }
.hgb-prose th { background: var(--hgb-cream); }
.hgb-prose iframe { max-width: 100%; }

/* ---------- تک‌مقاله: پایانِ متن */
.hgb-article__foot { display: flex; flex-direction: column; gap: 16px; margin-block-start: 36px; padding-block-start: 20px; border-block-start: 1px solid var(--hgb-line); }
.hgb-tags, .hgb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hgb-tags__label, .hgb-share__label { font-size: 13px; font-weight: 700; color: var(--hgb-muted); margin-inline-end: 4px; }
.hgb-tags__item { padding: 4px 10px; border: 1px solid var(--hgb-line); border-radius: var(--hgb-r); font-size: 13px; color: var(--hgb-muted); }
.hgb-tags__item:hover { border-color: var(--hgb-wine); color: var(--hgb-wine); }
.hgb-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--hgb-line); border-radius: 50%; background: #fff; color: var(--hgb-ink); font-size: 17px; cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.hgb .hgb-share__btn:hover { border-color: var(--hgb-wine); background: var(--hgb-wine); color: #fff; }
.hgb-share__msg { font-size: 13px; color: var(--hgb-wine); }

/* ---------- مقالات مرتبط */
.hgb-related { margin-block-start: 56px; padding-block: 44px; background: var(--hgb-cream); border-block: 1px solid var(--hgb-line); }
.hgb-related__head .hgb-section-title::after { background: var(--hgb-gold-soft); }
.hgb-related .hgb-card__media { background: #fff; }

/* ---------- دیدگاه‌ها (comments.php مشترک است؛ فقط زیرِ این ریشه بازآرایی می‌شود) */
.hgb-comments { margin-block-start: 48px; }
.hgb-comments--theme .hgb-comments__box { max-width: 860px; margin-inline: auto; }
.hgb-comments__count { color: var(--hgb-muted); font-weight: 600; }
.hgb-comments--theme #comments { font-size: 15px; font-weight: 700; color: var(--hgb-muted); margin: 0 0 16px; }
.hgb-comments--theme .commentlist, .hgb-comments--theme .commentlist .children { list-style: none; margin: 0; padding: 0; }
.hgb-comments--theme .commentlist .children { padding-inline-start: 24px; border-inline-start: 2px solid var(--hgb-line); margin-block-start: 12px; }
.hgb-comments--theme .comment-body { padding: 18px 20px; margin-block-end: 12px; border: 1px solid var(--hgb-line); border-radius: var(--hgb-r); background: #fff; }
.hgb-comments--theme .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.hgb-comments--theme .comment-author .avatar { border-radius: 50%; width: 40px; height: 40px; }
.hgb-comments--theme .comment-author .says { display: none; }
.hgb-comments--theme .comment-meta { font-size: 12px; margin: 4px 0 10px; }
.hgb-comments--theme .comment-meta a { color: var(--hgb-muted); }
.hgb-comments--theme .comment-body p { line-height: 2; color: #3a3236; margin: 0 0 8px; }
.hgb-comments--theme .reply a { font-size: 13px; font-weight: 700; color: var(--hgb-wine); }
.hgb-comments--theme .navigation { display: flex; justify-content: space-between; font-size: 13px; }
.hgb-comments--theme .comment-respond { margin-block-start: 28px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--hgb-line); border-radius: var(--hgb-r); background: var(--hgb-cream); }
.hgb-comments--theme .comment-reply-title { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.hgb-comments--theme .comment-reply-title small a { font-size: 13px; color: var(--hgb-wine); margin-inline-start: 8px; }
.hgb-comments--theme .comment-notes, .hgb-comments--theme .logged-in-as { font-size: 13px; color: var(--hgb-muted); }
.hgb-comments--theme .comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hgb-comments--theme .comment-form > p { margin: 0; }
.hgb-comments--theme .comment-form-comment, .hgb-comments--theme .comment-notes, .hgb-comments--theme .logged-in-as,
.hgb-comments--theme .comment-form-url, .hgb-comments--theme .comment-form-cookies-consent, .hgb-comments--theme .form-submit { grid-column: 1 / -1; }
.hgb-comments--theme .comment-form label { display: block; font-size: 13px; font-weight: 700; margin-block-end: 6px; }
.hgb-comments--theme .comment-form input[type="text"],
.hgb-comments--theme .comment-form input[type="email"],
.hgb-comments--theme .comment-form input[type="url"],
.hgb-comments--theme .comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--hgb-line);
    border-radius: var(--hgb-r);
    background: #fff;
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.hgb-comments--theme .comment-form textarea { min-height: 140px; resize: vertical; }
.hgb-comments--theme .comment-form input:focus, .hgb-comments--theme .comment-form textarea:focus { outline: none; border-color: var(--hgb-gold); box-shadow: 0 0 0 3px rgba(184, 143, 58, .15); }
.hgb-comments--theme .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.hgb-comments--theme .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.hgb-comments--theme .form-submit .submit { min-height: 44px; padding: 10px 28px; border: 0; border-radius: var(--hgb-r); background: var(--hgb-wine); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.hgb-comments--theme .form-submit .submit:hover { background: var(--hgb-wine-dark); }

/* ---------- واکنش‌گرا */
@media (max-width: 1199.98px) {
    .hgb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hgb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hgb-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
}
@media (max-width: 991.98px) {
    .hgb-layout { grid-template-columns: minmax(0, 1fr); }
    .hgb-side__sticky { position: static; }
    /* موبایل/تبلت: تصویرِ کوتاهِ پهن بالای تیتر، فهرست زیرِ متا و بسته‌شدنی */
    .hgb-post-head__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .hgb-cover { order: -1; aspect-ratio: 16 / 9; }
    .hgb-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
    .hgb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .hgb-grid, .hgb-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .hgb-mosaic { grid-auto-rows: 150px; }
    .hgb-mosaic > :nth-child(n+4) { display: none; }
    .hgb-comments--theme .comment-form { grid-template-columns: minmax(0, 1fr); }
    .hgb-prose { font-size: 16px; }
    .hgb-toc__list { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .hgb *, .hgb *::before, .hgb *::after { animation: none !important; transition: none !important; }
}
