.popularity-criteria { margin: 0 0 14px; color: #62716d; font-size: 12px; line-height: 1.7; }
.popularity-criteria summary { cursor: pointer; font-weight: 600; }
.popularity-criteria p { margin: 7px 0 0; }
.popularity-empty { padding: 22px 16px; color: #62716d; font-size: 13px; line-height: 1.7; text-align: center; }
.popularity-empty button { display: block; margin: 10px auto 0; }
.post-recent-activity { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-top: 8px; color: #62716d; font-size: 11px; line-height: 1.7; }
.post-recent-activity strong { color: #11684d; font-size: 12px; white-space: nowrap; }

/* Keep titles and activity on separate rows in the compact mobile feed. */
@media (max-width: 900px) {
  .ranked-post { align-items: start; }
  #popularList .ranked-post { padding: 12px 0; gap: 10px; }
  .ranked-post .post-main { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 5px; }
  .ranked-post .post-labels { max-width: none; }
  .ranked-post .post-title-line { width: 100%; min-width: 0; align-items: baseline; }
  .ranked-post .post-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.55;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow-wrap: anywhere;
  }
  .ranked-post .post-comment-count { flex-shrink: 0; }
  .ranked-post .post-recent-activity { min-width: 0; max-width: 100%; margin-top: 0; gap: 2px 6px; }
  .post-recent-activity > span { min-width: 0; overflow-wrap: anywhere; }
  /* Only the home preview is limited to three rows, never the full ranking. */
  #latestList .ranked-post:nth-child(n+4) { display: grid; }
  #rankingCriteria { margin-left: 20px; margin-right: 20px; }
}
