/* Mukto Bangla v2.17.6 — official publisher avatar hotfix */
.mb-post-card{border-radius:17px!important;box-shadow:0 8px 24px rgba(0,70,32,.065)!important;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.mb-post-card:hover{border-color:color-mix(in srgb,var(--mb-green) 28%,var(--mb-line));box-shadow:0 13px 34px rgba(0,70,32,.1)!important}.mb-post-head{padding:12px 14px 7px!important}.mb-post-author img{width:42px!important;height:42px!important}.mb-post-author strong{font-size:12px!important}.mb-post-author small{font-size:9px!important}.mb-post-body{padding:5px 14px 10px!important;font-size:12px!important;line-height:1.62!important}.mb-post-body p{margin:4px 0}.mb-post-card:not(.is-post-modal-content) .mb-post-body{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:5}.mb-post-card:not(.is-post-modal-content) .mb-post-media img,.mb-post-card:not(.is-post-modal-content) .mb-post-video video{max-height:300px!important;object-fit:cover}.mb-post-footer{padding:0 12px 10px}.mb-engagement-stats{min-height:29px;padding:2px 3px 6px!important;font-size:10px!important}.mb-post-actions{min-height:38px}.mb-post-actions>button,.mb-post-actions form button,.mb-reaction-picker>summary{min-height:36px!important;font-size:10px!important}.mb-post-open-control{display:grid;width:31px;height:31px;place-items:center;border:0;border-radius:9px;background:var(--mb-surface-soft);color:var(--mb-green-deep);font-size:16px;cursor:pointer}.mb-post-open-control:hover{background:var(--mb-mint)}.mb-post-head-tools{display:flex;align-items:center;gap:5px}.mb-post-focus-dialog{width:min(940px,calc(100vw - 28px));height:min(900px,calc(100dvh - 28px));max-width:none;max-height:none;padding:0;border:0;border-radius:22px;background:var(--mb-surface);color:var(--mb-ink);box-shadow:0 35px 120px rgba(0,0,0,.38);overflow:hidden}.mb-post-focus-dialog::backdrop{background:rgba(3,16,8,.74);backdrop-filter:blur(6px)}.mb-post-focus-shell{display:grid;height:100%;grid-template-rows:auto minmax(0,1fr)}.mb-post-focus-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid var(--mb-line);background:var(--mb-surface)}.mb-post-focus-head strong{font-size:14px}.mb-post-focus-head button{width:36px;height:36px;border:1px solid var(--mb-line);border-radius:50%;background:var(--mb-surface-soft);color:var(--mb-ink);font-size:23px;cursor:pointer}.mb-post-focus-stage{overflow:auto;background:var(--mb-bg);padding:18px}.mb-post-focus-stage>.mb-post-card{max-width:760px;margin:0 auto!important;border-radius:19px!important;box-shadow:var(--mb-shadow)!important}.mb-post-card.is-post-modal-content .mb-post-body{display:block!important;padding:10px 18px 15px!important;font-size:14px!important}.mb-post-card.is-post-modal-content .mb-post-media img,.mb-post-card.is-post-modal-content .mb-post-video video{max-height:min(620px,65dvh)!important;object-fit:contain;background:#050806}.mb-post-card.is-post-modal-content .mb-comments-panel{display:block!important}.mb-post-card.is-post-modal-content .mb-post-head{padding:15px 18px 9px!important}.mb-post-card.is-post-modal-content .mb-post-footer{padding:0 16px 14px}.mb-post-focus-open{overflow:hidden}
@media(max-width:700px){.mb-post-card:not(.is-post-modal-content) .mb-post-media img,.mb-post-card:not(.is-post-modal-content) .mb-post-video video{max-height:250px!important}.mb-post-focus-dialog{width:100vw;height:100dvh;border-radius:0}.mb-post-focus-stage{padding:0;background:var(--mb-surface)}.mb-post-focus-stage>.mb-post-card{max-width:none;border:0!important;border-radius:0!important;box-shadow:none!important}.mb-post-focus-head{padding:10px 12px}.mb-post-card.is-post-modal-content .mb-post-media img,.mb-post-card.is-post-modal-content .mb-post-video video{max-height:58dvh!important}}


/* v2.17.6 — official platform publisher identity / avatar rendering hotfix */
.mb-official-author-avatar{--mb-official-avatar-size:48px;display:grid;place-items:center;flex:0 0 var(--mb-official-avatar-size);width:var(--mb-official-avatar-size);height:var(--mb-official-avatar-size);padding:1px;border:0;border-radius:0;overflow:visible;background:transparent;box-shadow:none;line-height:0}
.mb-official-author-avatar .mb-official-author-logo,.mb-official-author-avatar .mb-official-author-logo-image{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;filter:none!important}
.mb-post-author .mb-official-author-avatar img,.mb-shared-author .mb-official-author-avatar img{width:100%!important;height:100%!important}
.mb-post-author.is-official-author,.mb-shared-author.is-official-author{color:var(--mb-ink)}
.mb-post-author-name{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.mb-official-author-badge{display:inline-flex;align-items:center;gap:3px;padding:2px 6px;border-radius:999px;background:var(--mb-mint);color:var(--mb-green-deep);font-size:9px!important;line-height:1.25;font-style:normal;font-weight:800;white-space:nowrap;letter-spacing:.01em}
.mb-post-dialog-author.is-official-author>div>strong{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
@media(max-width:700px){.mb-official-author-badge{font-size:8px!important}.mb-official-author-avatar{padding:1px}}

/* v2.21.0 — one official publisher mark, theme-aware */
.mb-official-author-theme-logo{display:block!important;max-width:none!important;max-height:none!important;object-fit:contain!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;filter:none!important}
.mb-official-author-avatar>.mb-official-author-theme-logo{width:100%!important;height:100%!important}
/* One DOM image is used everywhere. Dark mode swaps that same image to the bundled white asset; the filter is a fallback for browsers that ignore content on replaced elements. */
html[data-mb-theme="dark"] .mb-official-author-theme-logo{content:url('../img/logo-white.svg');filter:brightness(0) invert(1)!important}
@media(prefers-color-scheme:dark){html[data-mb-theme="system"] .mb-official-author-theme-logo{content:url('../img/logo-white.svg');filter:brightness(0) invert(1)!important}}
/* Official posts must never inherit a second presence/avatar mark. */
.mb-post-author.is-official-author>.mb-presence-avatar,.mb-post-author.is-official-author>img:not(.mb-official-author-theme-logo),.mb-shared-author.is-official-author>.mb-presence-avatar,.mb-shared-author.is-official-author>img:not(.mb-official-author-theme-logo){display:none!important}
.mb-post-author.is-official-author>.mb-official-author-avatar,.mb-shared-author.is-official-author>.mb-official-author-avatar{display:grid!important}

/* v2.21.1 audit hardening: official identity is a single logo in profile and REST/search surfaces too. */
.mb-search-popup-post.is-official-author header>img.mb-search-popup-official-logo{width:36px!important;height:36px!important;padding:2px!important;border-radius:0!important;background:transparent!important;object-fit:contain!important}
.mb-public-avatar.is-official-profile{padding:10px;box-sizing:border-box;border-color:var(--mb-line)!important;background:var(--mb-surface)!important;box-shadow:0 5px 18px rgba(0,0,0,.10)!important}
.mb-public-avatar.is-official-profile>.mb-official-author-avatar{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;flex:1 1 auto!important;padding:0!important}
.mb-public-avatar.is-official-profile .mb-official-author-theme-logo{width:100%!important;height:100%!important;border-radius:0!important}
