body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* Light gray background */
}
.post-card {
    background-color: white;
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem; /* 16px */
    padding: 1rem; /* 16px */
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border: 1px solid transparent;
}
.post-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.reaction-btn {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.25rem 0.625rem;
    margin-right: 0.375rem;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    color: #374151;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.reaction-btn .count {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    color: #4b5563;
}
.reaction-btn:hover {
    background-color: #e5e7eb;
}
.reaction-btn.add-reaction {
    background-color: transparent;
    border: 1px dashed #d1d5db;
}
.reaction-btn.add-reaction:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.avatar-container {
    position: relative;
    width: 40px; /* Size of larger (group) avatar */
    height: 40px;
    margin-right: 0.75rem; /* 12px gap to the next element */
    flex-shrink: 0; /* Prevent this container from shrinking */
}
.group-avatar { /* The main, larger avatar (group) */
    width: 100%; /* Fill avatar-container */
    height: 100%; /* Fill avatar-container */
    border-radius: 0.25rem; /* 4px, like Tailwind's rounded-sm */
    object-fit: cover;
    display: block; /* Consistency */
    background-color: #e5e7eb; /* Fallback bg for the image itself */
}
.user-avatar-stacked { /* Smaller, overlapping avatar (user/actor) */
    width: 20px;   /* As per c-avatar__S typical size */
    height: 20px;
    border-radius: 9999px; /* Fully rounded */
    object-fit: cover;
    position: absolute;
    bottom: -4px;  /* Tailwind: -bottom-1. Overlaps bottom edge. */
    right: -8px;   /* Tailwind: -right-2. Overlaps right edge more significantly. */
    border: 2px solid white; /* Crucial for visual separation */
    background-color: #f9fafb; /* Fallback bg for the image area, slightly off-white */
}
 .user-avatar-initials {
    /* This class is ADDED to the user-avatar-stacked div when initials are shown */
    /* It inherits width, height, border-radius, position, border from .user-avatar-stacked */
    display: flex; /* Centering content */
    align-items: center;
    justify-content: center;
    font-size: 0.625rem; /* 10px, for small initials */
    font-weight: 600;
    color: #374151; /* Darker text for initials */
    /* The background-color from .user-avatar-stacked will apply. */
}

.filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}
.comment-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}
.comment {
    background-color: #f9fafb;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}
.comment-author {
    font-weight: 500;
    font-size: 0.875rem;
    color: #374151;
    margin-right: 0.25rem;
}
.comment-text {
    font-size: 0.875rem;
    color: #4b5563;
}
.post-title-link {
    color: #1f2937;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
}
.post-title-link:hover {
    text-decoration: underline;
}
.post-meta-text {
    font-size: 0.875rem;
    color: #6b7280;
}
.post-content-text {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}
.post-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.post-image-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
}