/* TIMBER-147970: creator avatar shown in place of "by [name]" text. */
.creator-avatar {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    /* Keep the avatar from making a single-line meta row taller. */
    margin-block: -4px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text-secondary, #6c757d) 18%, var(--surface, #fff));
    color: var(--text-secondary, #495057);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    vertical-align: middle;
    cursor: default;
}

.creator-avatar__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.creator-avatar__icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.creator-avatar:focus { outline: none; }
.creator-avatar:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
}

/* Name tooltip on hover, keyboard focus and tap. */
.creator-avatar::after {
    content: attr(data-creator-name);
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 20;
    max-width: 240px;
    padding: 4px 8px;
    overflow: hidden;
    border-radius: 6px;
    background: #212529;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .12s ease;
}

.creator-avatar:hover::after,
.creator-avatar:focus::after {
    opacity: 1;
    visibility: visible;
}
