/* Mobile: shrink feed UI (~25%)
   Targets: avatar + author name/date + share/edit/delete + content + reactions.
   Applies across combined feed + archives (shared class names).
*/

@media (max-width: 768px) {
  /* Card padding/spacing (~25% smaller than p-6) */
  .custom-feed-item {
    padding: 18px !important; /* 24px * 0.75 */
    padding-bottom: 6px !important;
  }

  /* Keep "edge-to-edge" media aligned with the reduced padding */
  .custom-feed-item .-mx-6 {
    margin-left: -18px !important;
    margin-right: -18px !important;
  }

  .custom-feed-item .avatar-img img {
    width: 36px !important; /* 48px * 0.75 */
    height: 36px !important;
  }

  .custom-feed-item .avatar-img {
    margin-right: 12px !important; /* mr-4 (16px) * 0.75 */
  }

  .custom-feed-item > .flex.items-center.mb-4 {
    margin-bottom: 12px !important; /* 16px * 0.75 */
  }

  .custom-feed-item .font-semibold.text-lg.leading-tight {
    font-size: 14px !important; /* 18px * ~0.78 */
    line-height: 1.15 !important;
  }

  .custom-feed-item .text-gray-500.text-sm.mt-1 {
    font-size: 11px !important; /* 14px * 0.78 */
    margin-top: 2px !important;
  }

  /* Top-right tag row (Share + New/Draft) */
  .custom-feed-item .ds-feed-top-tags {
    top: 12px !important; /* top-4 (16px) * 0.75 */
    gap: 5px !important;
    max-width: 85% !important;
  }

  .custom-feed-item .ds-feed-top-tags a,
  .custom-feed-item .ds-feed-top-tags > div {
    font-size: 10px !important; /* 12px * ~0.83 */
    padding: 2px 8px !important;
    gap: 5px !important;
  }

  .custom-feed-item .ds-feed-top-tags .text-base {
    font-size: 12px !important; /* 16px * 0.75 */
    line-height: 1 !important;
  }

  /* Share pill (button + icon) */
  .custom-feed-item .ds-share-btn {
    padding: 4px 8px !important;
    gap: 6px !important;
  }
  .custom-feed-item .ds-share-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
  .custom-feed-item .ds-share-btn-label {
    font-size: 10px !important;
    line-height: 1 !important;
  }

  /* Edit/Delete icons (top-right) */
  .custom-feed-item .absolute.top-4.right-4 {
    top: 12px !important;
    right: 12px !important;
    gap: 6px !important;
  }
  .custom-feed-item .edit-post-btn svg,
  .custom-feed-item .delete-post-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* Post body text */
  .custom-feed-item .annc-content,
  .custom-feed-item .annc-content .prose {
    font-size: 13px !important; /* ~16px * 0.8 (more readable than 12px) */
    line-height: 1.35 !important;
  }
  .custom-feed-item .annc-content p {
    margin-bottom: 0.6em !important;
  }

  /* "See more" button */
  .custom-feed-item .annc-see-more {
    padding: 0.28rem 0.5rem !important;
    font-size: 0.675rem !important;
    line-height: 1 !important;
  }

  /* Reactions row */
  .custom-feed-item .reaction-picker-btn {
    font-size: 0.875rem !important; /* ~18px * 0.78 */
    line-height: 1.1 !important;
    gap: 6px !important;
  }
  .custom-feed-item .reaction-picker-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
  .custom-feed-item .reaction-picker-btn .text-lg {
    font-size: 0.95rem !important;
    line-height: 1 !important;
  }
  .custom-feed-item .reactions-display {
    gap: 6px !important;
    font-size: 12px !important;
  }
  .custom-feed-item .reactions-display .reaction-item {
    padding: 2px 6px !important;
  }
  .custom-feed-item .reactions-display .reaction-item .text-lg {
    font-size: 0.9rem !important;
    line-height: 1 !important;
  }
  .custom-feed-item .reactions-display .reaction-item .font-medium {
    font-size: 0.75rem !important;
    line-height: 1 !important;
  }
}

