/* P47 • Home-only fresh-news slider. Full news list, comments and editor remain untouched.
   Canonical Mahya tokens, compact vertical rhythm, readable Persian RTL. */
body.mh11-layout .mh12-fresh-box [data-mh12-slide][hidden]{display:none!important}
body.mh11-layout .mh12-fresh-box .mh47-slide-card{
  background:transparent;border:0!important;border-radius:0;box-shadow:none!important;
  margin:0!important;color:var(--mahya-text,#172033);direction:rtl;min-width:0;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-card>.mh47-head{
  display:flex!important;flex-direction:row;align-items:flex-start!important;
  justify-content:space-between;gap:8px!important;padding:10px 12px 8px!important;
  border:0!important;background:transparent;min-height:0;
}
body.mh11-layout .mh47-head-main{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0}
body.mh11-layout .mh47-unit{
  display:inline-flex;align-self:flex-start;max-width:100%;align-items:center;
  gap:5px;padding:3px 8px;border-radius:999px;
  background:var(--mahya-primary-soft,#f3f0ff);color:#645087;
  font-size:10px;font-weight:650;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.mh11-layout .mh47-author{display:flex;align-items:center;gap:7px;min-width:0}
body.mh11-layout .mh12-fresh-box .mh47-author .mh11-avatar{
  flex:0 0 29px;width:29px;height:29px;min-width:29px;border-radius:50%;
  overflow:hidden;background:#eee9f7
}
body.mh11-layout .mh47-author-details{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}
body.mh11-layout .mh47-author-details strong{font-size:11px!important;font-weight:700;line-height:1.35;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--mahya-text,#172033)}
body.mh11-layout .mh47-author-details time{display:block;font-size:10px;line-height:1.5;
  color:var(--mahya-muted,#64748b);white-space:nowrap;direction:rtl;text-align:right;unicode-bidi:normal}
body.mh11-layout .mh47-menu{margin-inline-start:auto;flex:0 0 27px;position:relative;z-index:3}
body.mh11-layout .mh47-menu>summary{width:27px;min-height:28px;border-radius:8px;
  display:grid;place-items:center;color:#6f6680;font-size:20px}
body.mh11-layout .mh47-menu>summary:hover{background:#f2eff8}
body.mh11-layout .mh47-menu[open]{z-index:20}
body.mh11-layout .mh47-menu[open]>summary{position:relative;inset:auto}
body.mh11-layout .mh47-menu[open]>button{position:relative;white-space:nowrap}
body.mh11-layout .mh12-fresh-box .mh47-slide-card .mh47-content{
  display:flex;flex-direction:column;gap:8px;min-width:0;padding:0 12px 9px!important;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-card.layout-image .mh47-media{
  width:100%!important;flex:none!important;display:block;
  overflow:hidden;border-radius:12px;background:#f2f4fa;line-height:0;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-card.layout-image .mh47-media img{
  display:block;width:100%!important;height:auto!important;aspect-ratio:16/9;max-height:170px!important;
  object-fit:cover!important;object-position:center;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-card.layout-compact:has(.mh47-media) .mh47-content{
  display:grid;grid-template-columns:78px minmax(0,1fr);gap:10px;align-items:start;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-card.layout-compact .mh47-media{
  grid-column:1;width:78px!important;flex:0 0 78px!important;
  border-radius:9px;overflow:hidden;background:#f2f4fa;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-card.layout-compact .mh47-media img{
  display:block;width:78px!important;height:78px!important;max-height:78px!important;object-fit:cover;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-card.layout-compact .mh47-copy{
  grid-column:2;min-width:0;
}
body.mh11-layout .mh12-fresh-box .mh47-copy{min-width:0;text-align:right}
body.mh11-layout .mh12-fresh-box .mh47-title{margin:0 0 4px!important;
  font-size:13px!important;font-weight:750;line-height:1.7}
body.mh11-layout .mh12-fresh-box .mh47-title>button{
  color:var(--mahya-text,#172033)!important;font:inherit;font-weight:inherit;min-height:0!important;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;
  white-space:normal;text-align:right;overflow:hidden;padding:0
}
body.mh11-layout .mh12-fresh-box .mh47-excerpt{
  color:#626977!important;font-size:11px!important;line-height:1.9!important;
  margin:0!important;padding:0!important;white-space:pre-line;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;
  overflow:hidden;overflow-wrap:anywhere;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-card.layout-image .mh47-excerpt{-webkit-line-clamp:2;line-clamp:2}
body.mh11-layout .mh12-fresh-box .mh47-slide-card>.mh47-actions{
  display:flex;align-items:center;gap:16px;padding:6px 12px!important;
  margin:0 12px;border-top:1px solid var(--mahya-border,#e9e6ee);
  border-bottom:0!important;min-height:30px;
}
body.mh11-layout .mh12-fresh-box .mh47-actions>button{
  display:inline-flex;align-items:center;gap:5px;min-height:28px;
  border:0;background:transparent;color:#6f7280;font-size:11px!important;
  cursor:pointer;padding:1px 0;font-family:inherit;
}
body.mh11-layout .mh47-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.mh11-layout .mh47-actions>button[aria-pressed=true]{color:#d04678}
body.mh11-layout .mh47-actions>[data-mh11-post-status]{flex:1;min-width:0;font-size:10px}
body.mh11-layout .mh12-fresh-box .mh47-slide-nav{
  display:flex;justify-content:center;align-items:center;gap:12px;padding:5px 12px 8px;
}
body.mh11-layout .mh47-slide-nav>button{
  width:26px!important;min-height:26px!important;height:26px;
  display:grid;place-items:center;border:1px solid #e8e4ee;border-radius:9px;
  background:#f9f8fc;color:#716188;font-size:19px;line-height:1;cursor:pointer;
}
body.mh11-layout .mh47-slide-nav>button:hover{background:#f1edf8}
body.mh11-layout .mh47-dots{display:inline-flex;align-items:center;gap:2px}
body.mh11-layout .mh47-dots>.mh47-dot{
  appearance:none;border:0;display:grid;place-items:center;cursor:pointer;
  width:20px;height:26px;padding:0;background:transparent;border-radius:8px;
}
body.mh11-layout .mh47-dot:before{content:"";display:block;width:6px;height:6px;
  border-radius:50%;background:#cec6da;transition:background .12s,width .12s}
body.mh11-layout .mh47-dot[aria-current=true]:before{width:15px;border-radius:999px;background:#7454b0}
body.mh11-layout .mh47-slide-sr{position:absolute!important;width:1px;height:1px;padding:0;
  margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.mh11-layout .mh12-fresh-box .mh12-fresh-box-foot{
  padding:6px 12px;border-top:1px solid #efebf5;
}
body.mh11-layout .mh12-fresh-box .mh12-fresh-box-foot a{min-height:23px;font-size:10px}
body.mh11-layout .mh47-slide-card :is(button,summary):focus-visible,
body.mh11-layout .mh47-slide-nav :is(button):focus-visible{
  outline:2px solid var(--mahya-primary,#7454b0)!important;outline-offset:2px!important
}
@media(max-width:390px){
 body.mh11-layout .mh12-fresh-box .mh47-slide-card>.mh47-head{padding-inline:10px!important}
 body.mh11-layout .mh12-fresh-box .mh47-slide-card .mh47-content{padding-inline:10px!important}
 body.mh11-layout .mh12-fresh-box .mh47-slide-card.layout-image .mh47-media img{max-height:154px!important}
}
@media(prefers-reduced-motion:reduce){body.mh11-layout .mh47-dot:before{transition:none}}

/* P48 — exact requested card hierarchy: photo, title, byline/actions, slider. */
body.mh11-layout .mh12-fresh-box > header > .mh48-add-post{
  display:grid!important;place-items:center!important;align-items:center!important;
  justify-items:center!important;padding:0!important;margin:0!important;
  width:32px!important;height:32px!important;min-height:32px!important;flex:0 0 32px!important;
  border:1px solid #e7e0f2!important;border-radius:9px!important;
  background:#f5f0fd!important;color:#7653a5!important;line-height:1!important;
}
body.mh11-layout .mh12-fresh-box > header > .mh48-add-post svg{
  width:17px;height:17px;display:block;stroke:currentColor;stroke-width:2;
  stroke-linecap:round;fill:none;pointer-events:none;
}
body.mh11-layout .mh12-fresh-box .mh48-slide-card{
  position:relative;overflow:visible!important;
}
body.mh11-layout .mh12-fresh-box .mh48-slide-card:has(.mh48-post-menu[open]){
  z-index:25;
}
body.mh11-layout .mh12-fresh-box .mh48-slide-card > header.mh48-top{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:space-between!important;min-height:33px!important;height:33px!important;
  padding:2px 12px 0!important;margin:0!important;border:0!important;
  background:transparent!important;position:relative;
}
body.mh11-layout .mh48-top-spacer{flex:1;min-width:0}
body.mh11-layout .mh12-fresh-box .mh48-post-menu{
  position:relative;flex:0 0 30px;margin:0!important;padding:0;
  z-index:30;line-height:1;
}
body.mh11-layout .mh12-fresh-box .mh48-post-menu > summary,
body.mh11-layout .mh12-fresh-box .mh48-post-menu[open] > summary{
  display:grid;place-items:center;position:relative!important;inset:auto!important;
  width:30px!important;height:30px!important;min-height:30px!important;
  border-radius:8px;list-style:none;cursor:pointer;
  font-size:0!important;line-height:1!important;color:#665979;
}
body.mh11-layout .mh48-post-menu > summary::-webkit-details-marker{display:none}
body.mh11-layout .mh48-post-menu > summary > svg{
  display:block;width:17px;height:17px;fill:currentColor;stroke:none;
}
body.mh11-layout .mh48-post-menu[open] > summary,
body.mh11-layout .mh48-post-menu > summary:hover{background:#f3eff9}
body.mh11-layout .mh48-post-menu .mh48-menu-list{
  display:none;position:absolute;z-index:80;top:calc(100% + 4px);
  left:0;right:auto;width:139px;max-width:min(139px,90vw);
  padding:4px;border:1px solid #e5e0ec;border-radius:11px;
  background:#fff;box-shadow:0 9px 26px rgba(41,29,66,.14);
  direction:rtl;
}
body.mh11-layout .mh48-post-menu[open] .mh48-menu-list{
  display:flex;flex-direction:column;gap:1px;
}
body.mh11-layout .mh48-post-menu .mh48-menu-list > button{
  display:flex!important;align-items:center!important;justify-content:flex-start;
  gap:9px;text-align:right;width:100%;padding:8px 10px!important;
  min-height:34px!important;box-sizing:border-box;position:static!important;
  font-family:inherit!important;font-size:11px!important;font-weight:500!important;
  line-height:1.6!important;color:#374151!important;border:0!important;
  border-radius:7px!important;background:transparent!important;box-shadow:none!important;
  cursor:pointer;
}
body.mh11-layout .mh48-menu-list > button:hover{background:#f5f2fa!important}
body.mh11-layout .mh48-menu-list > button[data-mh11-post-delete]{color:#a13645!important}
body.mh11-layout .mh48-menu-list > button svg{
  display:block;flex:0 0 15px;width:15px;height:15px;
  fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;
}
body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-content{
  padding:0 12px 5px!important;gap:8px!important;
}
body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-copy{
  min-width:0!important;margin:0!important;text-align:right!important;
}
body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-title{
  margin:0!important;padding:1px 0 0!important;line-height:1.75!important;
  font-size:15px!important;font-weight:750!important;color:#263246!important;
}
body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-title > button{
  display:-webkit-box!important;-webkit-line-clamp:2;line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;
  font-family:inherit!important;font-size:15px!important;font-weight:750!important;
  line-height:1.75!important;color:#263246!important;text-align:right!important;
  min-height:0!important;padding:0!important;margin:0!important;max-width:100%;
}
body.mh11-layout .mh12-fresh-box .mh48-slide-card > footer.mh48-meta-actions{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  flex-direction:row!important;gap:7px!important;
  margin:3px 12px 0!important;padding:9px 0 9px!important;
  border-top:1px solid #f0ecf5!important;border-bottom:0!important;
  min-height:41px!important;position:relative;direction:rtl;
}
body.mh11-layout .mh48-author{
  display:flex;flex:1 1 auto;align-items:center;gap:6px;min-width:0;
}
body.mh11-layout .mh12-fresh-box .mh48-author > .mh11-avatar{
  flex:0 0 27px!important;width:27px!important;height:27px!important;min-width:27px!important;
  border-radius:50%!important;overflow:hidden;background:#eee9f7;font-size:11px!important;
}
body.mh11-layout .mh48-author-details{
  display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;text-align:right;
}
body.mh11-layout .mh48-author-details strong{
  display:block;font-size:10.8px!important;font-weight:650!important;
  line-height:1.35;color:#344054;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
body.mh11-layout .mh48-author-details time{
  display:block;font-size:9px;line-height:1.4;white-space:nowrap;
  color:#7c8290;direction:rtl;text-align:right;overflow:hidden;text-overflow:ellipsis;
}
body.mh11-layout .mh48-actions{
  display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:10px;
  margin-inline-start:auto;
}
body.mh11-layout .mh48-actions > button{
  display:inline-flex!important;align-items:center;gap:3px;min-height:30px!important;
  padding:2px 0!important;border:0!important;background:transparent!important;
  color:#687383;font-family:inherit;font-size:11px;font-weight:500;
  cursor:pointer;line-height:1.3;
}
body.mh11-layout .mh48-actions > button[aria-pressed=true]{color:#d34578!important}
body.mh11-layout .mh48-actions > button svg{
  display:block;width:15px;height:15px;fill:none;stroke:currentColor;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;
}
body.mh11-layout .mh48-actions > button[aria-pressed=true] svg{fill:#fce8f0}
body.mh11-layout .mh48-meta-actions [data-mh11-post-status]{
  position:absolute;bottom:100%;left:0;max-width:100%;font-size:10px;color:#b22845;
}
@media(max-width:390px){
 body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-title,
 body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-title > button{font-size:14px!important}
 body.mh11-layout .mh48-actions{gap:7px}
}

/* P49: home Fresh News action hierarchy and scoped My Posts tab. */
body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-content{padding-top:0!important}
body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-title,
body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-title>button{
  font-size:16px!important;font-weight:800!important;line-height:1.75!important;
  color:var(--mahya-text,#263246)!important;text-align:right!important;
}
body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-title>button{
  display:-webkit-box!important;max-width:100%;width:100%;text-wrap:pretty;
}
body.mh11-layout .mh12-fresh-box .mh48-author{
  flex:1 1 auto!important;min-width:0;display:flex!important;gap:7px;align-items:center;
}
body.mh11-layout .mh12-fresh-box .mh48-author>.mh11-avatar{
  display:grid!important;place-items:center!important;
  overflow:hidden!important;box-sizing:border-box!important;
  flex:0 0 29px!important;width:29px!important;min-width:29px!important;
  height:29px!important;min-height:29px!important;max-height:29px!important;
  padding:0!important;margin:0!important;line-height:1!important;
  border-radius:50%!important;background:#f0eaf8;
}
body.mh11-layout .mh12-fresh-box .mh48-author>.mh11-avatar>img{
  display:block!important;position:static!important;
  width:100%!important;height:100%!important;
  max-width:none!important;max-height:none!important;min-width:100%!important;
  aspect-ratio:1/1!important;object-fit:cover!important;
  object-position:50% 50%!important;border-radius:50%!important;
  margin:0!important;padding:0!important;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-nav{
  display:grid!important;direction:ltr!important;
  grid-template-columns:30px minmax(0,1fr) 30px!important;
  align-items:center!important;justify-content:stretch!important;
  justify-items:stretch!important;width:100%!important;
  gap:0!important;padding:5px 12px 8px!important;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-nav>[data-mh12-slide-prev]{
  grid-column:1;justify-self:start;margin:0!important;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-nav>.mh47-dots{
  grid-column:2;justify-self:center;direction:ltr;max-width:100%;min-width:0;
}
body.mh11-layout .mh12-fresh-box .mh47-slide-nav>[data-mh12-slide-next]{
  grid-column:3;justify-self:end;margin:0!important;
}
body.mh11-layout .mh12-fresh-box .mh12-fresh-box-foot{
  display:flex!important;align-items:center!important;
  justify-content:center!important;text-align:center!important;
  width:100%!important;padding:7px 12px!important;
}
body.mh11-layout .mh12-fresh-box .mh12-fresh-box-foot>a{
  display:inline-flex!important;align-items:center;justify-content:center!important;
  text-align:center!important;width:auto!important;margin:auto!important;
  gap:6px;min-height:28px!important;
  font-size:11px!important;font-weight:600;
}
/* My Posts is user-scoped by backend; controls are available only in that filtered view. */
body.mh11-layout .mh49-feed-modes{
  display:inline-flex;align-items:center;gap:4px;
  margin:0 0 13px;padding:3px;
  border:1px solid var(--mahya-border,#e5e1ec);
  border-radius:10px;background:var(--mahya-surface-soft,#f7f5fa);
  direction:rtl;
}
body.mh11-layout .mh49-feed-modes>a{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:94px;min-height:33px;padding:6px 13px;
  color:var(--mahya-muted,#655e70);font-size:12px;font-weight:550;
  text-decoration:none;border:1px solid transparent;border-radius:8px;
}
body.mh11-layout .mh49-feed-modes>a[aria-current=page]{
  color:var(--mahya-text,#372b4c);background:var(--mahya-surface,#fff);
  border-color:var(--mahya-border,#e9e4f0);
  box-shadow:0 1px 3px #392a490d;font-weight:700;
}
body.mh11-layout .mh49-feed-modes>a:hover{background:var(--mahya-surface,#fff)}
body.mh11-layout .mh49-feed-modes>a:focus-visible{
  outline:2px solid var(--mahya-primary,#7951a8);outline-offset:2px;
}
@media(max-width:390px){
 body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-title,
 body.mh11-layout .mh12-fresh-box .mh48-slide-card .mh48-title>button{
  font-size:15px!important;font-weight:800!important;
 }
 body.mh11-layout .mh12-fresh-box .mh47-slide-nav{padding-inline:10px!important}
}
