/* ============================================================
   Comments under posts, comment counts, public profile page
   ============================================================ */

/* Comment count on cards */

.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--muted);
}


/* Post owner link in the post window */

.person-link {
    text-decoration: none;
    border-radius: 10px;
}

.person-link:hover b {
    color: var(--accent);
}


/* Comments section */

.comments {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.comments-title {
    margin: 0 0 14px;
    font-size: 16px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.comment {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.comment-avatar {
    flex: none;
    text-decoration: none;
}

.comment-main {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--soft);
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
}

.comment-name {
    font-weight: 700;
    text-decoration: none;
}

.comment-name:hover {
    color: var(--accent);
}

.comment-head time {
    font-size: 12px;
    color: var(--muted);
}

.owner-badge {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.comment-text {
    margin: 3px 0 0;
    font-size: 14.5px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.comment-remove {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}

.comment-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form .field {
    flex: 1;
    min-width: 0;
}

.comment-signin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px dashed var(--line);
    border-radius: 12px;
}


/* Someone else's profile */

.public-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.public-head h2 {
    margin: 0 0 4px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.public-section-title {
    margin: 8px 0 16px;
    font-size: 17px;
}

.public-profile .grid + .public-section-title {
    margin-top: 32px;
}
