/* components/org-avatar.css
 *
 * Shared styles for the `org_avatar` Jinja macro (templates/_org_avatar.html).
 * Used by the global header org switcher, the sidebar org switcher, and the
 * org settings page empty-state preview.
 */

.org-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
    user-select: none;
    overflow: hidden;
}

img.org-avatar {
    object-fit: cover;
}

.org-avatar--tile {
    /* Subtle inset border adds definition on both light and dark backgrounds */
    box-shadow: inset 0 0 0 1px var(--overlay-12);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.org-avatar--sm {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    font-size: 0.6875rem;
}

.org-avatar--md {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.org-avatar--lg {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    font-size: 1.375rem;
}
