/* Shared styles for post preview lists: ensure long content wraps and never overflows */

/* Allow flex children to shrink properly inside list items */
.post-list .post-item, 
.post-list .post-item .flex-grow-1,
.post-list .post-item .min-w-0 {
  min-width: 0; /* critical for text truncation inside flex */
}

/* Make sure long words/URLs line-break instead of overflowing */
.post-list .post-item h6,
.post-list .post-item p,
.text-truncate-2 {
  overflow-wrap: anywhere; /* modern */
  word-break: break-word;  /* legacy fallback */
}

/* Keep the two-line clamp behavior but prevent horizontal overflow */
.text-truncate-2 {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
