.public-user-profile-page {
    max-width: 980px;
    margin: 0 auto;
}

.public-profile-cover {
    height: 280px;
    background: linear-gradient(135deg, #0d6078, #12a1bd);
    background-size: cover;
    background-position: center;
}

.public-profile-info {
    background: #fff;
    display: flex;
    gap: 26px;
    align-items: center;
    padding: 0 40px 38px;
    box-shadow: 0 8px 20px rgba(143, 83, 39, .1);
}

.public-profile-avatar {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    border: 6px solid #fff;
    margin-top: -74px;
    background: linear-gradient(135deg, var(--orange), var(--magenta), var(--cyan));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 52px;
    font-weight: 800;
    overflow: hidden;
    flex: 0 0 auto;
}

.public-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-profile-main {
    min-width: 0;
}

.public-profile-main h1 {
    margin: 0;
    color: var(--blue);
    font-size: 30px;
}

.public-profile-main > p {
    margin: 4px 0;
    color: var(--cyan);
    font-weight: 700;
}

.public-profile-extra {
    margin-top: 14px;
    color: #666;
    line-height: 1.6;
}

.public-profile-extra p {
    margin: 8px 0 0;
}

.public-profile-actions {
    margin-left: auto;
}

.public-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #fff;
    border-top: 1px solid #eee;
    padding: 18px 40px;
    gap: 16px;
    text-align: center;
    margin-bottom: 30px;
}

.public-profile-stats a,
.public-profile-stats span {
    color: var(--muted);
}

.public-profile-stats strong {
    display: block;
    color: var(--cyan);
    font-size: 22px;
}

.public-profile-posts {
    max-width: 760px;
    margin: 0 auto;
}

.user-connections-page .page-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.post-author a:hover,
.user-card-main:hover strong {
    color: var(--cyan);
}

@media (max-width: 760px) {
    .public-profile-cover {
        height: 200px;
    }

    .public-profile-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 24px 28px;
    }

    .public-profile-actions {
        margin-left: 0;
        width: 100%;
    }

    .public-profile-actions .follow-form,
    .public-profile-actions .follow-button {
        width: 100%;
    }

    .public-profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 18px 24px;
    }

    .user-connections-page .page-heading-row {
        flex-direction: column;
    }
}
