/* Progress.tz v2.9.2 — Facebook-inspired Shorts Feed */

.progress-shorts-social{
  --fb-bg:#f0f2f5;
  --fb-card:#ffffff;
  --fb-text:#050505;
  --fb-muted:#65676b;
  --fb-line:#e4e6eb;
  --fb-hover:#f2f2f2;
  --fb-blue:#1877f2;
  --progress-green:#79b82a;
  background:var(--fb-bg);
  padding:20px 0 28px;
}

.progress-shorts-social .ps-feed{
  max-width:680px;
  margin:0 auto;
  display:grid;
  gap:16px;
}

.progress-shorts-social .ps-post,
.progress-shorts-social article[data-ps-post="1"]{
  background:var(--fb-card);
  color:var(--fb-text);
  border:1px solid #dddfe2;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,.10);
}

.progress-shorts-social .ps-post-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 16px 10px;
}

.progress-shorts-social .ps-identity{
  display:flex;
  gap:10px;
  align-items:center;
}

.progress-shorts-social .ps-avatar{
  width:42px;
  height:42px;
  border-radius:50%;
  background:#17345e;
  border:1px solid #d8dce2;
  overflow:hidden;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:800;
}

.progress-shorts-social .ps-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.progress-shorts-social .ps-brand{
  font-size:15px;
  line-height:1.2;
  font-weight:700;
  color:var(--fb-text);
}

.progress-shorts-social .ps-meta{
  font-size:12px;
  color:var(--fb-muted);
  margin-top:2px;
}

.progress-shorts-social .ps-more{
  border:0;
  background:transparent;
  color:var(--fb-muted);
  border-radius:50%;
  width:36px;
  height:36px;
  cursor:pointer;
  font-size:20px;
}

.progress-shorts-social .ps-more:hover{
  background:var(--fb-hover);
}

.progress-shorts-social .ps-media{
  width:100%;
  aspect-ratio:16/9;
  background:#000;
  overflow:hidden;
  border-top:1px solid var(--fb-line);
  border-bottom:1px solid var(--fb-line);
}

.progress-shorts-social .ps-media img,
.progress-shorts-social .ps-media video,
.progress-shorts-social .ps-media iframe{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border:0;
}

.progress-shorts-social .ps-body{
  padding:12px 16px 8px;
}

.progress-shorts-social .ps-title{
  font-size:17px;
  line-height:1.35;
  font-weight:700;
  color:var(--fb-text);
  margin:0 0 7px;
}

.progress-shorts-social .ps-story-text{
  font-size:15px;
  line-height:1.45;
  color:var(--fb-text);
}

.progress-shorts-social .ps-story-text.ps-collapsed{
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.progress-shorts-social .ps-read-more{
  border:0;
  background:transparent;
  color:var(--fb-muted);
  font-weight:600;
  padding:4px 0 0;
  cursor:pointer;
}

.progress-shorts-social .ps-read-more:hover{
  text-decoration:underline;
}

.progress-shorts-social .ps-full-story{
  display:inline-block;
  margin-top:7px;
  color:var(--fb-blue);
  text-decoration:none;
  font-weight:600;
}

.progress-shorts-social .ps-engagement{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:8px 16px;
  color:var(--fb-muted);
  font-size:13px;
}

.progress-shorts-social .ps-engagement::before{
  content:"";
  display:none;
}

.progress-shorts-social .ps-actions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:4px;
  border-top:1px solid var(--fb-line);
  border-bottom:1px solid var(--fb-line);
  padding:4px 8px;
  margin:0 12px;
}

.progress-shorts-social .ps-action{
  border:0;
  background:transparent;
  color:var(--fb-muted);
  border-radius:8px;
  padding:9px 8px;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.progress-shorts-social .ps-action:hover,
.progress-shorts-social .ps-action:focus-visible{
  background:var(--fb-hover);
}

.progress-shorts-social .ps-action.is-active{
  color:var(--fb-blue);
}

.progress-shorts-social .ps-comments{
  padding:10px 16px 14px;
}

.progress-shorts-social .ps-comments-toggle{
  border:0;
  background:transparent;
  color:var(--fb-muted);
  padding:0;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}

.progress-shorts-social .ps-comment{
  display:flex;
  gap:8px;
  margin-top:9px;
}

.progress-shorts-social .ps-comment-bubble{
  background:var(--fb-bg);
  color:var(--fb-text);
  padding:8px 11px;
  border-radius:16px;
  line-height:1.4;
  flex:1;
}

.progress-shorts-social .ps-comment-compose{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.progress-shorts-social .ps-comment-compose input{
  width:100%;
  border:0;
  background:var(--fb-bg);
  color:var(--fb-text);
  border-radius:18px;
  padding:9px 12px;
  outline:none;
}

.progress-shorts-social .ps-share-menu{
  position:absolute;
  right:14px;
  bottom:50px;
  min-width:190px;
  z-index:30;
  display:none;
  background:#fff;
  border:1px solid var(--fb-line);
  border-radius:10px;
  padding:6px;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}

.progress-shorts-social .ps-share-menu.is-open{
  display:grid;
}

.progress-shorts-social .ps-share-menu a,
.progress-shorts-social .ps-share-menu button{
  border:0;
  background:transparent;
  color:var(--fb-text);
  text-align:left;
  text-decoration:none;
  padding:9px 10px;
  border-radius:7px;
  cursor:pointer;
}

.progress-shorts-social .ps-share-menu a:hover,
.progress-shorts-social .ps-share-menu button:hover{
  background:var(--fb-hover);
}

.progress-shorts-social .ps-post,
.progress-shorts-social article[data-ps-post="1"]{
  position:relative;
}

/* Optional feed framing to feel more social on desktop */
@media(min-width:1100px){
  .progress-shorts-social{
    border-radius:16px;
  }
}

/* Mobile: edge-to-edge feed */
@media(max-width:720px){
  .progress-shorts-social{
    margin-left:-12px;
    margin-right:-12px;
    padding-top:8px;
  }

  .progress-shorts-social .ps-feed{
    gap:8px;
  }

  .progress-shorts-social .ps-post,
  .progress-shorts-social article[data-ps-post="1"]{
    border-left:0;
    border-right:0;
    border-radius:0;
  }

  .progress-shorts-social .ps-media{
    aspect-ratio:4/3;
  }
}