/* Author page (JaySearch-inspired, simplified) */

.author-hero {
    padding: 90px 0 44px;
    background: #f0efed;
}

.author-hero__grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    align-items: start;
}

.author-hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6e6ea;
}

.author-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-hero__avatarPlaceholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 34px;
}

.author-hero__name {
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111;
    line-height: 1.1;
}

.author-hero__bio {
    color: #444;
    font-size: 16px;
    line-height: 1.7;
    margin-top: 6px;
}

.author-hero__bio p:last-child {
    margin-bottom: 0;
}

/* Bio collapse */
.author-bio__content {
    max-height: 7.2em; /* ~4 lines at 1.7 line-height */
    overflow: hidden;
    position: relative;
}

.author-bio.is-collapsed .author-bio__content {
    max-height: 7.2em;
}

.author-bio:not(.is-collapsed) .author-bio__content {
    max-height: none;
}

.author-bio.is-collapsed .author-bio__content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.2em;
    background: linear-gradient(to bottom, rgba(240, 239, 237, 0), rgba(240, 239, 237, 1));
    pointer-events: none;
}

.author-bio__toggle {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-weight: 700;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.author-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    color: #666;
    font-size: 14px;
}

.author-hero__metaLabel {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    color: #888;
    display: block;
}

.author-hero__metaValue {
    font-weight: 700;
    color: #111;
}

.author-hero__metaLink {
    color: #111;
    text-decoration: none;
    font-weight: 700;
}

.author-hero__social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.author-hero__socialLink {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #e7e7ea;
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.author-posts {
    padding: 36px 0 70px;
    background: #fff;
}

.author-posts__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
}

/* Simple post item (used on author page; matches related-posts style) */
.simple-post-item {
    padding: 14px 16px;
    border: 1px solid #efeff3;
    border-radius: 10px;
    background:#f7f6f3;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.simple-post-title {
    display: inline-block;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.35;
    color: #3d3d3d;
    text-decoration: none;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.simple-post-meta {
    margin: 8px 0;
    font-size: 0.85rem;
    color: #777777;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.simple-post-meta__sep {
    color: #b6b6bc;
}

.author-hero__metaItem {
    display: flex;
    gap:20px;
    align-items: center;
}

.simple-post-summary {
    margin: 6px 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666666;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-top: auto;
}

@media (max-width: 768px) {
    .author-hero__grid {
        grid-template-columns: 88px 1fr;
        gap: 16px;
    }
    .author-hero__avatar {
        width: 88px;
        height: 88px;
        border-radius: 50%;
    }
    .author-hero__name {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .author-hero {
        padding: 56px 0 28px;
    }

    .author-hero__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .author-hero__avatar {
        width: 76px;
        height: 76px;
    }

    .author-hero__name {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .author-hero__meta {
        gap: 12px;
        margin-top: 12px;
    }

    .author-posts {
        padding: 22px 0 60px;
    }
}

