/**
 * AI Multiple Authors - Frontend Author Image Styles
 *
 * These styles control how author images are displayed on the frontend.
 * They can be overridden in your theme's stylesheet.
 *
 * @package AI_Multiple_Authors
 */

.ai-author-image {
    display: inline-block;
    object-fit: cover;
    vertical-align: middle;
}

.ai-author-image--circle {
    border-radius: 50%;
}

.ai-author-image--rounded {
    border-radius: 8px;
}

.ai-author-image--square {
    border-radius: 0;
}

/* Inline images used within native the_author() / the_author_posts_link() output */
.ai-author-image--inline {
    margin-right: 0.2em;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Placeholder (initial-based fallback) */
.ai-author-image--placeholder {
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* Branded profile block (company link, then a separate centered sponsor block) */
.ai-branded-profile {
    margin-top: 0.5em;
    font-size: 0.9em;
}

.ai-branded-profile-company {
    line-height: 1.1;
}

.ai-branded-profile-company-link {
    font-weight: 700;
    text-decoration: underline;
}

/* Sponsor block sits apart from the byline, centered, like a standalone credit line */
.ai-branded-profile-sponsor-wrap {
    margin-top: 0.75em;
    text-align: center;
}

.ai-branded-profile-sponsored-label {
    display: block;
    margin-bottom: 0.4em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.5);
}

.ai-company-logo,
.ai-branded-profile-logo {
    display: inline-block;
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ai-author-profile-card-bio-header {
    margin-bottom: 0.5em;
    font-weight: 700;
    font-size: 0.9em;
}

/* Full profile card: image + byline (label, name, title, branded profile) */
.ai-author-profile-card {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    gap: 1em;
    margin-bottom: 1em;
}

.ai-author-profile-card-image {
    flex-shrink: 0;
}

.ai-author-profile-card-image .ai-author-image,
.ai-author-profile-card-image .ai-author-image--placeholder {
    width: 96px;
    height: 96px;
}

.ai-author-profile-card-byline {
    flex: 1;
    min-width: 0;
}

.ai-author-profile-card-label {
    display: block;
    margin-bottom: 0.2em;
    font-size: 0.75em;
    font-weight: 700;
}

.ai-author-profile-card-name {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.2;
}

.ai-author-profile-card-name a {
    text-decoration: none;
}

.ai-author-profile-card-title {
    display: block;
    margin-top: 0.15em;
    font-size: 0.85em;
    font-weight: 300;
}

