/* ASAE Group Rosters — shortcode output styles.
 *
 * Intentionally neutral so themes can override. Responsive switch to a
 * single column happens below 1200px, per the project spec.
 */

.asae-gr-roster {
    display: block;
    margin: 1.5rem 0;
}

.asae-gr-group-name {
    margin: 0 0 1rem;
}

.asae-gr-members {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.asae-gr-layout-list .asae-gr-members {
    display: block;
}

.asae-gr-member {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--asae-radius, 3px);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
}

.asae-gr-layout-list .asae-gr-member {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--asae-radius, 3px);
    margin-bottom: 0.5rem;
}

.asae-gr-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--asae-radius-media, 3px);
    background: #f2f2f2;
}

.asae-gr-layout-list .asae-gr-photo-wrap {
    width: 64px;
    height: 64px;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

.asae-gr-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Headshots look best when the crop favors the upper portion of the
     * image — center-center tends to clip the top of people's heads. */
    object-position: center 20%;
    display: block;
}

.asae-gr-details {
    display: block;
}

.asae-gr-name {
    font-weight: 600;
    font-size: 1.05em;
    line-height: 1.25;
}

.asae-gr-credentials {
    font-weight: 400;
    color: #555;
}

.asae-gr-role {
    color: #666666;
    font-weight: 600;
    font-size: 0.95em;
    margin-top: 0.2rem;
}

.asae-gr-title,
.asae-gr-org {
    color: #444;
    font-size: 0.85em;
    line-height: 1.25;
    margin-top: 0.15rem;
}

.asae-gr-empty {
    font-style: italic;
    color: #555;
}

@media (max-width: 1200px) {
    .asae-gr-members {
        grid-template-columns: 1fr;
    }
}

/* "This is you!" self-notice — rendered inside the member card when the
 * row's Wicket UUID matches the current WP user's personUUID user_meta
 * (written by asae-extended-sso v1.4.18+). Visual treatment mirrors
 * asae-news-releases' pale-yellow stale-content warning so the cue is
 * consistent across ASAE plugins. */
.asae-gr-self-notice {
    margin: 0.6em 0 0;
    padding: 0.55em 0.75em;
    background: #fcf8e3;
    border-left: 3px solid #f0ad4e;
    border-radius: 0 var(--asae-radius, 3px) var(--asae-radius, 3px) 0;
    color: #1d2327;
    font-size: 0.9em;
    line-height: 1.4;
    display: flex;
    gap: 0.5em;
    align-items: flex-start;
}
.asae-gr-self-notice__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #f0ad4e;
    margin-top: 0.1em;
}
.asae-gr-self-notice__text {
    flex: 1 1 auto;
}
.asae-gr-self-notice__link {
    color: inherit;
    text-decoration: underline;
}
.asae-gr-self-notice__link:hover,
.asae-gr-self-notice__link:focus {
    color: #bd491e;
    text-decoration-thickness: 2px;
}
