/* Mobile feed layout, scoped to Feed tab at phone widths only (see README Mobile Feed Layout Plan). */

@media (max-width: 520px) {
  #view-feed #feed-container {
    gap: var(--space-8);
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  #view-feed .activity-item {
    padding: var(--space-7) var(--space-6);
    gap: var(--space-5);
  }

  /* Slice 2, score row below reviewer info (not cramped in header column) */
  #view-feed .activity-header {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-areas:
      "avatar meta"
      "scores scores";
    column-gap: var(--space-4);
    row-gap: var(--space-3);
    align-items: start;
    margin-bottom: var(--space-1);
  }

  #view-feed .activity-avatar {
    grid-area: avatar;
  }

  #view-feed .activity-meta {
    grid-area: meta;
    min-width: 0;
  }

  #view-feed .activity-scores {
    grid-area: scores;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-2);
    width: 100%;
    padding-top: var(--space-4);
    border-top: 1px solid var(--hairline);
  }

  #view-feed .activity-score-pill {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    letter-spacing: 0;
  }

  /* Slice 3, reviewer → reviewed → café name hierarchy */
  #view-feed .activity-line {
    flex-direction: column;
    align-items: flex-start;
    row-gap: var(--space-1);
    column-gap: 0;
  }

  #view-feed .activity-reviewer-row {
    max-width: 100%;
  }

  #view-feed .activity-reviewed-word {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
  }

  #view-feed .activity-cafe-title {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
    word-break: break-word;
  }

  #view-feed .activity-time {
    margin-top: var(--space-2);
  }

  /* Slice 4, verdict, photo, reactions rhythm */
  #view-feed .activity-verdict {
    font-size: 14px;
    line-height: 1.55;
    margin-top: 0;
    padding-top: var(--space-1);
  }

  #view-feed .review-photo-carousel {
    margin-top: var(--space-3);
  }

  #view-feed .activity-photo {
    margin-top: var(--space-2);
  }

  #view-feed .activity-reactions {
    padding-top: var(--space-6);
    margin-top: var(--space-2);
    gap: 8px;
  }

  #view-feed .reaction-btn {
    padding: 6px 11px;
    min-height: 34px;
  }
}
