/* HG Author Box — frontend styles */

.hgab-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8f5ee;
    border-left: 4px solid #2d6a4f;
    border-radius: 0 12px 12px 0;
    margin: 32px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Avatar */
.hgab-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #e1f5ee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hgab-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.hgab-avatar-initials {
    font-size: 24px;
    font-weight: 600;
    color: #2d6a4f;
    line-height: 1;
}

/* Body */
.hgab-body {
    flex: 1;
    min-width: 0;
}
.hgab-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.hgab-name {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}
.hgab-badge {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    background: #e1f5ee;
    color: #2d6a4f;
    font-weight: 500;
    white-space: nowrap;
}
.hgab-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}
.hgab-bio {
    font-size: 14px;
    color: #333;
    line-height: 1.65;
    margin-bottom: 12px;
}

/* Credentials */
.hgab-creds {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.hgab-cred {
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1px solid #ddd;
    color: #555;
    line-height: 1.6;
}

/* Links */
.hgab-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.hgab-link {
    font-size: 12.5px;
    color: #2d6a4f;
    text-decoration: none;
    border-bottom: 1px solid #1d9e75;
    padding-bottom: 1px;
    transition: opacity 0.15s;
}
.hgab-link:hover {
    opacity: 0.75;
}

/* Updated */
.hgab-updated {
    font-size: 11.5px;
    color: #999;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 540px) {
    .hgab-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        border-left: 1px solid #e8f5ee;
        border-top: 4px solid #2d6a4f;
        border-radius: 0 0 12px 12px;
    }
    .hgab-meta {
        justify-content: center;
    }
    .hgab-links {
        justify-content: center;
    }
    .hgab-creds {
        justify-content: center;
    }
}
