/* Graconia mobile feed density pass */
@media (max-width: 760px) {
  /* Use more of the phone screen without applying browser zoom. */
  .feed,
  .discovery-feed {
    width: calc(100% - 24px);
    margin-top: 14px;
    margin-bottom: 30px;
  }

  #page-home .post-composer,
  .feed .quick-composer {
    padding: 11px;
    margin-bottom: 12px;
    border-radius: 16px;
  }

  #page-home .composer-header {
    gap: 8px;
  }

  #page-home .composer-header h3 {
    font-size: 1rem;
    line-height: 1.2;
  }

  #page-home .avatar,
  #page-home .composer-avatar-image {
    width: 36px;
    height: 36px;
  }

  #page-home .post-input {
    min-height: 78px;
    margin: 9px 0;
    padding: 9px 10px;
    font-size: 1rem;
    line-height: 1.4;
  }

  #page-home .composer-actions {
    gap: 8px;
  }

  #page-home .post-options {
    gap: 6px;
  }

  #page-home .post-options button {
    min-height: 38px;
    padding: 6px 8px;
    font-size: .82rem;
  }

  #page-home .post-button {
    min-height: 40px;
    padding: 8px 14px;
  }

  .feed-title {
    margin: 17px 0 8px;
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .feed .post-card,
  .discovery-feed .post-card {
    margin-bottom: 9px;
    padding: 9px !important;
    border-radius: 14px !important;
  }

  .feed .post-label,
  .discovery-feed .post-label {
    margin-bottom: 6px;
    padding: 3px 7px;
  }

  .feed .post-header,
  .discovery-feed .post-header {
    gap: 7px;
  }

  .feed .post-avatar-slot .avatar,
  .discovery-feed .post-avatar-slot .avatar {
    width: 36px;
    height: 36px;
  }

  .feed .post-author,
  .discovery-feed .post-author {
    font-size: 1rem;
    line-height: 1.2;
  }

  .feed .post-text,
  .discovery-feed .post-text {
    margin: 9px 0;
    font-size: 1rem;
    line-height: 1.42;
  }

  .feed .post-photo,
  .feed .post-reel-video,
  .discovery-feed .post-photo,
  .discovery-feed .post-reel-video {
    margin: 8px 0;
    border-radius: 12px;
  }

  /* Keep reactions compact and evenly balanced while preserving touch targets. */
  .feed .post-actions,
  .discovery-feed .post-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    margin-top: 7px;
    padding-top: 6px;
  }

  .feed .post-actions button,
  .discovery-feed .post-actions button {
    min-width: 0;
    min-height: 44px;
    padding: 4px 2px;
    font-size: .84rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .feed .post-actions button:only-child,
  .discovery-feed .post-actions button:only-child {
    grid-column: auto;
  }

  .feed .comment-section,
  .discovery-feed .comment-section {
    margin-top: 7px;
    padding-top: 7px;
  }
}

@media (max-width: 380px) {
  .feed,
  .discovery-feed {
    width: calc(100% - 18px);
  }

  .feed .post-card,
  .discovery-feed .post-card {
    padding: 8px !important;
  }

  .feed .post-actions button,
  .discovery-feed .post-actions button {
    font-size: .82rem;
    padding-inline: 1px;
  }
}
